/
_header.scss
106 lines (95 loc) · 1.79 KB
/
_header.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
.site-header {
align-items: center;
background: $brand-color;
border-bottom: 1px solid $border-color;
display: flex;
flex-flow: column wrap;
align-items: center;
width: 100%;
@media (min-width: 48em) {
flex-direction: row;
height: auto;
margin: 0;
width: 100%;
}
&.-yellow {
background-color: $brand-yellow;
}
.branding {
display: inline-block;
margin-bottom: 5px;
height: 40px;
width: 120px;
@media (min-width: 48em) {
margin-bottom: 0;
height: 60px;
width: 160px;
}
&:hover {
background: none;
text-decoration: none;
}
&::before {
background: url('../images/logo_eleven_lab.svg') top left no-repeat;
background-size: contain;
content: '';
display: block;
margin: 0 auto;
height: 40px;
width: 120px;
@media (min-width: 48em) {
margin: 0;
height: 60px;
width: 160px;
}
}
}
a {
color: $header-link-color;
}
.avatar {
border-radius: .2rem;
float: left;
height: 2rem;
margin-right: 1rem;
margin-top: -3px;
width: 2rem;
}
.site-nav {
ul {
display: inline-block;
line-height: 1.5;
list-style: none;
margin: 0;
padding: 0;
text-align: center;
}
li {
display: inline-block;
margin-right: .4rem;
}
}
.branding-container,
.search-bar,
.site-nav {
@media (min-width: 48em) {
flex: 1 1 12.5em;
max-width: 15.9375em;
margin: 0 1.875em 0 0;
}
}
}
.course-header {
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
@media (min-width: 48em) {
flex-direction: row;
align-items: baseline;
flex: 1 1 25em;
}
&__duration {
margin: 0;
}
}