/
_header.scss
123 lines (109 loc) · 2.49 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
.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__content {
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;
}
&__image {
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,
.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;
}
&__title {
$context: 24px;
font-size: em($context);
margin-bottom: em(20px, $context);
@media (min-width: 48em) {
margin-bottom: 0;
}
}
&__duration {
$context: 20px;
font-size: $context;
margin: 0;
&:before {
content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2MCA2MCI+PHBhdGggZD0iTTMwIDBDMTMuNDU4IDAgMCAxMy40NTggMCAzMHMxMy40NTggMzAgMzAgMzAgMzAtMTMuNDU4IDMwLTMwUzQ2LjU0MiAwIDMwIDB6bTAgNThDMTQuNTYxIDU4IDIgNDUuNDM5IDIgMzBTMTQuNTYxIDIgMzAgMnMyOCAxMi41NjEgMjggMjgtMTIuNTYxIDI4LTI4IDI4eiIvPjxwYXRoIGQ9Ik0zMCA2YTEgMSAwIDAgMC0xIDF2MjNIMTRhMSAxIDAgMSAwIDAgMmgxNmExIDEgMCAwIDAgMS0xVjdhMSAxIDAgMCAwLTEtMXoiLz48L3N2Zz4=");
display: inline-block;
margin-right: em(10px, $context);
width: em(35px, $context);
vertical-align: middle;
}
}
}