forked from javascript-tutorial/server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.styl
More file actions
executable file
·304 lines (239 loc) · 5.2 KB
/
main.styl
File metadata and controls
executable file
·304 lines (239 loc) · 5.2 KB
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
// we use placeholder selector to make it easier to rename the block
// we can't extend selectors with &, so we don't use them for extends
$main-loud
font-size font_size_m
font-weight 700
line-height line_height_l
margin 1em 0
.main
margin auto
padding 0 0 35px
&_width-limit
max-width max_width
&_width-limit-wide
max-width max_width_wide
&_width-limit-wider
max-width max_width_extra_wide
&_align-left
margin auto 0
&.main_width-limit-list
max-width 960px
&_no-padding
padding-bottom 0
&_white-page
margin-top 56px
padding 0 56px 53px
box-sizing border-box
background var(--backgroundBases)
&_frontpage
& .comments
padding 0 16px
max-width calc(984px + 16 * 20)
& .article-tablet-foot
padding 0 16px
&::before,
&__header::before
content ""
display table // убираем margin collapse
&__header .breadcrumbs
margin 0 0 12px 0
padding 0
&__header
margin 40px 0 16px 0
&__header_center
border 0
&__header_center &__header-title,
&__header_center-desktop &__header-title,
&__header_center .breadcrumbs
text-align center
& &__header-title
font 700 32px/40px secondary_font
margin 0 auto 12px auto
padding 0
& &__header-title:not(::first-line)
color var(--foregroundConstructive)
& &__header-title:only-child
padding-bottom 5px
&__username
font-style inherit
font-weight inherit
color secondary_color
&__header-nav
float right
&__lesson-nav
display table
float right
&__lesson-nav-prev,
&__lesson-nav-next
display table-cell
&__lesson-nav-prev
padding-right 15px
border-right 2px solid var(--borderAlt)
&__lesson-nav-next
padding-left 15px
&__lesson-nav-prev:last-child
border none
padding-right 0
&__lesson-nav kbd
font-size 11px
color var(--foregroundAlt)
font inherit
&__lesson-nav-arr
position relative
top -.1em
&__lesson-nav-link
color var(--foregroundAlt)
text-decoration underline
h2,
h3,
h4
position relative
h1 code,
h1 a,
h2 code,
h2 a,
h3 code,
h3 a,
h4 code,
h4 a
font inherit
color inherit
text-decoration none
h1,
h2,
h3,
h4,
h5
page-break-after avoid
h1 + p,
h2 + p,
h3 + p,
h4 + p,
h5 + p
page-break-before avoid
& h2 &__anchor,
& h3 &__anchor,
& h4 &__anchor,
& h2 &__anchor:before,
& h3 &__anchor:before,
& h4 &__anchor:before
transition unqufote('color') animation_duration
& h2 &__anchor:hover,
& h3 &__anchor:hover,
& h4 &__anchor:hover,
& h2 &__anchor:hover:before,
& h3 &__anchor:hover:before,
& h4 &__anchor:hover:before
color hoverize(color)
// .format_error - old code support?
.format_error
color var(--foregroundAccent)
div.format_error
border 1px solid var(--foregroundAccent)
padding 5px
.admin_link
float right
color var(--foregroundAlt)
&__anchor
var(--foregroundDefault)
outline 0
&__anchor::before
@extend $font-link
position absolute
right 100%
width 30px
text-align left
outline 0
color var(--foregroundDefault)
font-size 90%
line-height inherit
font-weight 400
opacity 0
transition opacity animation_duration
&__anchor:hover::before
opacity 1
&__anchor_noicon::before
display none
/*
figure
margin 30px 0
padding 30px
border 3px solid #F5F2F0
border-radius 6px
*/
&__loud
@extend $main-loud
&__strong
@extend $main-loud
font-style italic
color var(--foregroundAccent)
&__footer
@extend $clearfix
background var(--backgroundAlt)
margin 30px 0 27px
padding 16px 40px 9px
.rating
margin-right 22px
.social
float right
&__footer-date,
&__footer-author,
&__footer-author a
color var(--foregroundAlt)
font 13px 'Open Sans', Helvetica, Arial, sans-serif
&__footer-date
margin-right 15px
&__footer-author
margin-right 10px
&__footer-star
position absolute
font-size 18px
color var(--foregroundSubtle)
margin 0 10px
&__footer-star::before
@extend $font-star
display inline-block
vertical-align middle
min-width 17px
min-height 19px
.clearfix
@extend $clearfix
[with-zone]::after
@extend $font-info-blank
font-size 18px
font-weight 400
color var(--foregroundSubtle)
margin-left 8px
@media tablet
padding 0 0 35px
&_white-page
margin-top 0
padding 0 16px 24px
max-width 100%
&__header_center-desktop &__header-title
text-align left
@media phone
&
padding-bottom 0
&__header
&_jobs
margin-top 24px
&__header-title
font-size 34px
&__header_jobs &__header-title
font-size 24px
line-height 32px
color text_courses_dark
&_padding-bottom
padding-bottom 35px
@media (min-width: media_step_1)
line-height line_height_s
@media (min-width: media_step_2)
line-height line_height_s
font-size font_size_m
@media (min-width: media_step_3)
line-height line_height_l
font-size font_size_m
@media (min-width: largescreen)
font-size font_size_m
line-height line_height_l