Skip to content

Commit 140d28d

Browse files
author
Pedro Duarte
committed
Improving spotlight page
1 parent 093071e commit 140d28d

File tree

11 files changed

+222
-158
lines changed

11 files changed

+222
-158
lines changed

src/site/_sass/_components/_list.scss

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,22 @@ ol.list-links {
284284
color: $colorBlue;
285285
}
286286

287-
& img+p {
288-
padding-top: 13px;
287+
& img {
288+
@include small-only {
289+
width: 50%;
290+
float: left;
291+
}
292+
}
293+
294+
& img + p {
295+
@include small-only {
296+
margin-left: 50%;
297+
padding-left: $lineHeight/2;
298+
}
299+
300+
@include medium {
301+
padding-top: 13px;
302+
}
289303
}
290304

291305
& .tag {
@@ -296,6 +310,7 @@ ol.list-links {
296310
padding-top: $lineHeight;
297311
padding-bottom: $lineHeight - 1;
298312
border-bottom: 1px solid $colorGrayKeyline;
313+
overflow: hidden;
299314

300315
&:last-child {
301316
border-color: transparent;

src/site/_sass/_modules/_latest-spotlights.scss

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
.latest-spotlights {
1414
background: $colorYellowSecondary;
15-
padding-bottom: $lineHeight*3 + 3;
15+
padding-bottom: $lineHeight*2 + 3;
1616
padding-top: $lineHeight*1;
1717

1818
@include medium {
@@ -30,37 +30,34 @@
3030
}
3131

3232
.latest-spotlights__item {
33-
@include medium {
34-
width: 50%;
35-
float: left;
36-
}
37-
margin-top: 2px;
33+
margin-top: $lineHeight/2;
3834

3935
&:first-of-type {
4036
margin-top: 0;
4137
}
4238

4339
@include medium {
40+
width: 50%;
41+
float: left;
42+
margin-top: 2px;
43+
4444
&:nth-of-type(2) {
4545
margin-top: 0;
4646
}
47-
}
4847

49-
&:nth-child(even) {
50-
.latest-spotlights__link {
51-
@include medium {
48+
&:nth-child(even) {
49+
.latest-spotlights__link {
5250
margin-left: 1px;
5351
}
5452
}
55-
}
5653

57-
&:nth-child(odd) {
58-
.latest-spotlights__link {
59-
@include medium {
54+
&:nth-child(odd) {
55+
.latest-spotlights__link {
6056
margin-right: 1px;
6157
}
6258
}
6359
}
60+
6461
}
6562

6663
.latest-spotlights__link {

src/site/_sass/_modules/_main-navigation.scss

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
.js &.nav-is-opened {
3333
display: block;
34-
-webkit-animation: showNav 400ms both;
34+
@include prefixr(animation, showNav 400ms both)
3535
}
3636
}
3737

@@ -86,7 +86,6 @@
8686

8787
.main-nav__item--current {
8888
color: $colorYellowSecondary;
89-
cursor: default;
9089
}
9190

9291
.main-nav__link {
@@ -120,6 +119,10 @@
120119
padding-left: 0;
121120
}
122121

122+
.main-nav__item--current & {
123+
cursor: default;
124+
}
125+
123126
&:hover {
124127
color: $colorYellowSecondary;
125128
// box-shadow: 0 0 1px 0 $colorGray;
@@ -337,12 +340,11 @@
337340
}
338341

339342
/*========== CSS ANIMATION ==========*/
340-
@-webkit-keyframes showNav {
343+
@include keyframes(showNav){
341344
0% {
342345
opacity: 0;
343346
}
344347
100% {
345348
opacity: 1;
346349
}
347350
}
348-

src/site/_sass/_modules/_spotlight-header.scss

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,28 +47,24 @@
4747
content: $icon-star;
4848
font-family: $fontIcon;
4949
display: block;
50-
font-size: 450px;
50+
font-size: 380px;
5151
line-height: 1;
5252
color: $colorGrayBackground;
5353
position: absolute;
54-
right: $lineHeight*2;
55-
top: -$lineHeight*2;
54+
right: 16%;
55+
top: -96px;
5656
z-index: -1;
5757
}
5858
}
5959
}
6060
}
6161

6262
.spotlight-header--detail {
63-
6463
& .spotlight-header__container {
65-
6664
&:after {
6765
display: none;
6866
}
69-
7067
}
71-
7268
}
7369

7470
.spotlight-header__copy {

0 commit comments

Comments
 (0)