/
_course-page.scss
151 lines (130 loc) · 3.1 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
.summary {
flex: 1 1 em(200px);
margin: 0 0 em(70px);
@media (min-width: em(768px)) {
max-width: em(370px);
margin: 0 em(70px) 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);
text-align: left;
}
& + & {
@media (min-width: em(768px)) {
margin-top: em(60px);
}
}
}
&__step-number {
$context: 40px;
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(70px, $context);
height: em(70px, $context);
.-current & {
background-color: $brand-yellow;
}
}
&__step-title {
color: #bbc1c4;
font-size: em(22px);
line-height: 1.1;
margin: em(15px) 0 0;
@media (min-width: em(768px)) {
margin: 0 0 0 em(15px);
}
}
}
.course {
@include flex(row wrap);
@media (min-width: em(768px)) {
flex-wrap: nowrap;
}
&__content {
flex: 1 1 em(400px);
width: 100%;
}
&__navigation {
display: flex;
flex-direction: row;
justify-content: space-between;
}
&__button {
background-color: $brand-yellow;
border: none;
border-radius: 30%;
width: em(70px);
height: em(70px);
&[disabled] {
visibility: hidden;
}
&.-previous {
transform: rotate(180deg);
}
}
&__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;
}
}
}