/
_course-page.scss
169 lines (144 loc) · 3.4 KB
/
_course-page.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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
.summary {
flex: 1 1 em(200px);
margin: 0 0 em(30px);
@media (min-width: em(768px)) {
max-width: em(255px);
margin: 0 em(30px) 0 0;
}
&__steps {
display: flex;
flex-direction: row;
flex-wrap: wrap;
list-style: none;
margin: 0;
@media (min-width: em(768px)) {
flex-direction: column;
}
}
&__step {
display: flex;
flex-direction: column;
align-items: center;
flex: 1 1 em(150px);
cursor: pointer;
padding: em(10px);
text-align: center;
@media (min-width: em(768px)) {
flex-direction: row;
flex: 1 1 em(70px);
padding: 0;
text-align: left;
}
& + & {
@media (min-width: em(768px)) {
margin-top: em(20px);
}
}
}
&__step-number {
$context: 32px;
font-size: em($context);
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
flex: 0 0 auto;
border: 2px solid $brand-yellow;
border-radius: 50%;
width: em(50px, $context);
height: em(50px, $context);
.-current & {
background-color: #b8b8b8;
}
}
&__step-title {
$context: 18px;
color: #bbc1c4;
font-size: $context;
line-height: 1.1;
margin: em(15px, $context) 0 0;
@media (min-width: em(768px)) {
margin: 0 0 0 em(15px, $context);
}
}
}
.course {
@include flex(row wrap);
@media (min-width: em(768px)) {
flex-wrap: nowrap;
}
&__content {
flex: 1 1 em(400px);
margin-bottom: em(60px);
width: 100%;
}
&__chapter {
$context: 20px;
font-size: em($context);
margin-bottom: em(20px, $context);
}
&__navigation {
display: flex;
flex-direction: row;
justify-content: space-between;
}
&__button {
position: fixed;
bottom: em(20px);
background-color: $brand-yellow;
border-style: none;
border-radius: 50%;
width: em(60px);
height: em(60px);
&[disabled] {
visibility: hidden;
}
&.-previous {
transform: rotate(180deg);
left: em(20px);
}
&.-next {
right: em(20px);
}
}
&__duration {
$context: 20px;
font-size: $context;
&: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;
}
}
&__text {
h3 {
$context: 17px;
display: inline-block;
background-color: $brand-yellow;
font-size: em($context);
font-weight: 300;
text-transform: uppercase;
margin-bottom: em(16px, $context);
padding: em(5px, $context) em(10px, $context);
}
p, ol, ul {
$context: 20px;
font-size: em($context);
margin-bottom: em(32px, $context);
code {
font-size: em(16px, $context);
}
}
pre {
$context: 16px;
font-size: em($context);
margin: 0 0 em(32px, $context);
word-wrap: normal;
}
a {
letter-spacing: normal;
}
}
}