Skip to content

Commit 05dee5d

Browse files
committed
header design detail
1 parent 94f437b commit 05dee5d

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

site/_css/index.less

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ body.index {
2525
.hero {
2626
background: @dark-color;
2727
color: #f8f8f8;
28+
min-height: 500px;
29+
max-height: 1000px;
2830
height: 80vh;
2931
position: relative;
3032
z-index: 11;
@@ -34,15 +36,25 @@ body.index {
3436
-moz-osx-font-smoothing: grayscale;
3537

3638
header {
37-
background: none;
39+
background: linear-gradient(
40+
fadeout(@dark-color, 20%),
41+
fadeout(@dark-color, 100%)
42+
);
3843
box-shadow: none;
44+
min-height: 75px;
45+
max-height: 150px;
46+
height: 12vh;
3947

40-
nav a:hover, nav a:focus {
41-
color: white;
42-
}
48+
nav > a {
49+
text-shadow: 0 1px 1px @dark-color, 0 0 3px @dark-color;
50+
51+
&:hover, &:focus {
52+
color: white;
53+
}
4354

44-
a:first-child {
45-
margin-left: -1em;
55+
&:first-child {
56+
margin-left: -1em;
57+
}
4658
}
4759
}
4860

@@ -63,6 +75,8 @@ body.index {
6375
.content {
6476
text-align: center;
6577
margin: 30px;
78+
animation: fade 1.3s ease-in-out;
79+
animation-fill-mode: both;
6680
}
6781

6882
.main-logo {
@@ -100,7 +114,7 @@ body.index {
100114
.fadein-cols(@n) when (@n > 0) {
101115
.fadein-cols(@n - 1);
102116
.marketing-col:nth-child(@{n}) {
103-
animation: fade 1.1s 0.8s * (@n - 1) ease-in-out;
117+
animation: fade 1.1s 0.8s * @n ease-in-out;
104118
animation-fill-mode: both;
105119
}
106120
}

0 commit comments

Comments
 (0)