Skip to content

Commit 1dd523b

Browse files
authored
Merge pull request #2806 from metabrainz/ui-tweaks
UI improvements
2 parents 3ca1274 + fb51c3f commit 1dd523b

32 files changed

+338
-470
lines changed

Diff for: frontend/css/brainzplayer.less

+12-14
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
box-shadow: 0px -4px 12px fade(black, 20%);
3131

3232
padding: @brainzplayer-padding;
33-
border-top: 1px solid #dbccc6;
33+
border-top: 1px solid @gray-light;
3434
z-index: 5;
3535

3636
> * {
@@ -211,38 +211,36 @@
211211
}
212212
}
213213

214-
.fa-heart,
215-
.fa-heart-crack {
214+
.love,
215+
.hate {
216216
color: transparent;
217217
stroke: #8d8d8d;
218218
}
219219

220-
.fa-ellipsis-vertical {
221-
//Thin down ellipsis icon
222-
stroke: @white-background;
223-
}
224-
225-
.fa-heart {
220+
.love {
226221
&:hover {
227222
stroke: @love-color;
228223
}
229-
230224
&.loved {
231225
stroke: transparent;
232226
color: @love-color;
233227
}
234228
}
235229

236-
.fa-heart-crack {
230+
.hate {
237231
&:hover {
238232
stroke: @hate-color;
239233
}
240-
241234
&.hated {
242235
stroke: transparent;
243236
color: @hate-color;
244237
}
245238
}
239+
240+
.fa-ellipsis-vertical {
241+
//Thin down ellipsis icon
242+
stroke: @white-background;
243+
}
246244
}
247245

248246
/** Progress **/
@@ -313,7 +311,7 @@
313311
list-style: none; // In case the elements are <li> items inside a <ul>
314312
font-size: 14px;
315313
background-color: @white-background;
316-
border: 1px solid #ccc; // IE8 fallback
314+
border: 1px solid @gray-light; // IE8 fallback
317315
border: 1px solid rgba(0, 0, 0, 0.15);
318316
background-clip: padding-box;
319317

@@ -333,7 +331,7 @@
333331

334332
&:hover {
335333
color: @white-background;
336-
background-color: #eb743b;
334+
background-color: @orange;
337335
}
338336
}
339337
}

Diff for: frontend/css/cbreviewmodal.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
&:hover {
3030
color: #ffffff;
31-
background-color: #eb743b;
31+
background-color: @orange;
3232
}
3333
}
3434
}

Diff for: frontend/css/entity-pages.less

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
.separator {
9595
width: 1px;
9696
height: 100%;
97-
border-left: 1px solid @light;
97+
border-left: 1px solid @gray-light;
9898
}
9999
.number {
100100
font-size: 1.5em;
@@ -193,7 +193,7 @@
193193
border-top: 1px solid @gray-light;
194194
height: 0;
195195
align-self: center;
196-
margin-left: 0.5em;
196+
margin: 0 0.5em;
197197
}
198198
}
199199

Diff for: frontend/css/explore.less

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
.explore-card-img {
2828
width: 100%;
29-
border: 1px solid #e0e0e0;
29+
border: 1px solid @gray-light;
3030
border-radius: 5px;
3131
}
3232

Diff for: frontend/css/follow.less

+12-4
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
}
77
font-family: "Sintony", sans-serif;
88
color: @white;
9-
background: @blue;
109
border: 2px solid @blue;
10+
background: @blue;
1111
font-weight: bold;
1212
padding: 5px 8px;
1313
border-radius: 4px;
@@ -57,7 +57,7 @@
5757

5858
hr {
5959
margin: 0px 2em;
60-
border-top: 1px solid #eee;
60+
border-top: 1px solid @gray-light;
6161
}
6262
}
6363

@@ -73,7 +73,7 @@
7373
.similar-users-list {
7474
max-height: 250px;
7575
padding: 10px;
76-
overflow-y: scroll;
76+
overflow-y: auto;
7777
border-radius: 2px;
7878
box-shadow: inset 0px 11px 8px -10px #ccc;
7979

@@ -88,7 +88,7 @@
8888
}
8989

9090
&:not(:first-child) {
91-
border-top: 2px solid #ddd;
91+
border-top: 1px solid @gray-light;
9292
padding-top: 12px;
9393
}
9494
}
@@ -98,3 +98,11 @@
9898
.similar-users-empty {
9999
padding: 10px 20px;
100100
}
101+
102+
.musicbrainz-profile-button {
103+
color: #fff;
104+
background: @blue;
105+
padding: 5px 8px;
106+
border-radius: 4px;
107+
transition: background 0.42s;
108+
}

Diff for: frontend/css/fresh-releases.less

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@
251251
.release-card-grid-title::after {
252252
content: "";
253253
flex: 1;
254-
border-bottom: 1px solid #d9d9d9;
254+
border-bottom: 1px solid @gray-light;
255255
}
256256

257257
.release-card-grid-title:not(:empty)::before {
@@ -317,7 +317,7 @@
317317
border-radius: 10px;
318318
height: max-content;
319319
max-height: 100vh;
320-
overflow-y: scroll;
320+
overflow-y: auto;
321321
z-index: 9998;
322322
right: 0;
323323

Diff for: frontend/css/homepage.less

+40-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@dark-grey: #46433a;
22
@even-darker-grey: #353070;
33
#homepage-container {
4-
overflow-y: scroll;
4+
overflow-y: auto;
55
height: 100vh; // absolute fallback
66
height: calc(var(--vh, 1vh) * 100px); // fallback if svh units not available
77
height: 100svh; // using more modern css SVH unit
@@ -45,7 +45,6 @@
4545
}
4646

4747
h1 {
48-
margin-top: 0;
4948
color: #fafafa;
5049
}
5150

@@ -349,7 +348,7 @@
349348

350349
.homepage-upper-headphone {
351350
height: min(66%, 460px);
352-
top: 150px;
351+
top: min(150px, 18%);
353352
}
354353
}
355354

@@ -444,6 +443,44 @@
444443
}
445444
}
446445
}
446+
@media (max-height: 600px) {
447+
.homepage-lower,
448+
.homepage-upper {
449+
.number-count-digit {
450+
background: #383836;
451+
color: #fafafa;
452+
&::after {
453+
background-color: #383836;
454+
}
455+
}
456+
h1 {
457+
font-size: calc(100vh / 13);
458+
color: @dark-grey;
459+
}
460+
padding-left: 3em;
461+
.listen-container {
462+
top: 0;
463+
}
464+
.homepage-info {
465+
bottom: 1.5em;
466+
color: @dark-grey;
467+
max-width: 50%;
468+
}
469+
.create-account-button {
470+
right: 0;
471+
position: absolute;
472+
top: 1.7em;
473+
}
474+
}
475+
.homepage-upper .homepage-upper-grey-box {
476+
clip-path: polygon(58% 0%, 51% 100%, 0% 100%, 0% 0%);
477+
height: 100%;
478+
}
479+
.homepage-lower .homepage-lower-grey-box {
480+
clip-path: polygon(49% 0%, 58% 100%, 0% 100%, 0% 0%);
481+
height: 100%;
482+
}
483+
}
447484
}
448485

449486
@media (max-width: @screen-xs) {

0 commit comments

Comments
 (0)