-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.sass
437 lines (363 loc) · 8 KB
/
style.sass
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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
/* --------------- reset.css --------------- */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, em, img, strong, sub, sup, b, u, i, dl, dt, dd, ol, ul, li, fieldset, form, label, table, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, menu, nav, section, summary, time, mark, audio, video
margin: 0
padding: 0
border: 0
outline: 0 /* обнуляем отступы и убираем бордюры */
vertical-align: baseline /* приводим все к одной базовой линии */
background: transparent /* чтобы не проскакивали левые фоны, установленные по умолчанию */
font-size: 100% /* размер шрифта всем одинаковый */
a /* ссылка не в общем списке чтобы не сбрасывать outline по умолчанию */
margin: 0
padding: 0
font-size: 100%
vertical-align: baseline
background: transparent
outline: none
input, select, button, textarea
margin: 0 /* убираем отступы по умолчанию для элементов форм (в частности для checkbox и radio) */
font-size: 100% /* делаем размер шрифтов везде одинаковым */
outline: none
article, aside, details, figcaption, figure, footer, header, menu, nav, section
display: block
nav ul
list-style: none
/* --------------- /reset.css --------------- */
/* --------------- базовые настройки ---------*/
html
min-height: 100% /* всегда показываем вертикальную полосу прокрутки */
body
font-family: 'Neucha', cursive
font-size: 15px
max-width: 1280px
max-height: 100%
box-sizing: border-box
background-color: #ffffff
position: relative
a, a:visited
text-decoration: none
a:hover
color: #ef1e24
text-decoration: none
a:focus, a:active
color: #66aec4
text-decoration: none
h1, h2, h3, h4, h5, h6
font-weight: normal
img
max-width: 100%
.clearfix:after
clear: both
content: ""
display: table
/* --------------- /базовые настройки ---------*/
/* --------------- flexbox---------*/
.flex-start
padding: 0
margin: 0
list-style: none
-js-display: flex
display: flex
-webkit-flex-flow: row wrap
justify-content: flex-start
align-items: center
.flex-between
padding: 0
margin: 0
list-style: none
-js-display: flex
display: flex
-webkit-flex-flow: row wrap
justify-content: space-between
align-items: center
.flex-end
padding: 0
margin: 0
list-style: none
-js-display: flex
display: flex
-webkit-flex-flow: row wrap
justify-content: flex-end
align-items: center
/* --------------- flexbox---------*/
.name
text-align: center
color: #66aec4
font-size: 40px
font-weight: bold
margin: 15px 0
.main
margin: 0 auto
width: 720px
height: 520px
border: 1px solid #66aec4
border-radius: 30px
position: relative
.buttons
text-align: center
margin: 20px 0
.buttons-more
width: 170px
border: none
border-radius: 20px
background-color: #66aec4
color: aliceblue
text-transform: uppercase
font-weight: bold
padding: 10px 0
margin-right: 30px
cursor: pointer
transition: all .5s
font-family: 'Neucha', cursive
&:hover
background-color: #5a97ad
.buttons-find
width: 166px
border: 2px solid #c5cccf
border-radius: 20px
background-color: transparent
color: #c5cccf
text-transform: uppercase
font-weight: bold
padding: 8px 0
margin-right: 30px
cursor: pointer
transition: all .5s
font-family: 'Neucha', cursive
&:hover
border: 2px solid #5a97ad
color: #5a97ad
.buttons-new-game
@extend .buttons-more
margin-right: 0
.button-help
position: absolute
right: 0
top: -10%
border: 2px solid rgba(197,204,207,0.4)
border-radius: 20px
background-color: transparent
color: rgba(197,204,207,0.4)
text-transform: uppercase
font-weight: bold
padding: 8px 0
width: 40px
cursor: pointer
transition: all .5s
font-family: 'Neucha', cursive
&:hover
border: 2px solid #5a97ad
color: #5a97ad
.main-12
width: 80%
.main-add-3
width: 20%
.card
margin: 10px
position: relative
cursor: pointer
.card-img
width: 100px
height: 150px
user-select: none
.card-hover::after
content: ''
position: absolute
border-radius: 10px
top: 0
left: 0
width: 100px
height: 150px
background: rgba(197,204,207,0.4)
cursor: pointer
z-index: 3
.card-hover-right::before
content: ''
position: absolute
border-radius: 10px
top: 0
left: 0
width: 100px
height: 150px
background: rgba(223,242,191,0.4)
cursor: pointer
z-index: 2
.modal
position: relative
margin: 0 auto
width: 720px
padding: 10px 0
font-size: 18px
margin-top: 20px
border-radius: 10px
text-align: center
background-color: rgba(197,204,207,0.4)
color: #5a97ad
.modals
position: absolute
top: 0
left: 0
margin: 0 auto
width: 720px
padding: 10px 0
font-size: 18px
border-radius: 10px
text-align: center
color: #5a97ad
.modal-false
background-color: #FFBABA
display: none
.modal-true
background-color: #DFF2BF
display: none
.modal-congrat
background-color: #faf79b
display: none
.info
position: absolute
top: 60px
left: 2%
width: 200px
padding: 15px 15px
border: 1px solid #66aec4
border-radius: 30px
color: #66aec4
& p
margin-bottom: 10px
&:last-child
margin-bottom: 0
.help-window
position: absolute
top: 30%
left: 50%
width: 720px
height: 50%
border: 2px solid #c5cccf
padding: 20px
color: #66aec4
border-radius: 20px
background: #ffffff
box-sizing: border-box
display: none
z-index: 1000
.help-window-headline
font-size: 20px
font-weight: bold
text-transform: uppercase
color: #66aec4
text-align: center
margin-bottom: 20px
.close-button
position: absolute
top: -5%
right: -5%
width: 30px
height: auto
cursor: pointer
.overlay
width: 100%
height: 100%
background: rgba(0, 0, 0, .7)
position: fixed
top: 0
left: 0
z-index: 999
@media only screen and (max-width: 1024px)
.main
width: 500px
height: 416px
.help-window
width: 500px
.card
margin: 10px
.card-img
width: 70px
height: 110px
.card-hover::after
width: 70px
height: 110px
.card-hover-right::before
width: 70px
height: 110px
.buttons-more, .buttons-find, .buttons-find
width: 150px
font-size: 12px
margin-right: 10px
.buttons-new-game
margin-right: 0
.modals
width: 500px
.modal
width: 500px
.info
position: static
margin: 0 auto
margin-bottom: 20px
.buttons-more
transition: all .1s
&:hover
background-color: #66aec4
&:active
background-color: #5a97ad
.buttons-find
transition: all .1s
&:hover
border: 2px solid #c5cccf
color: #c5cccf
&:active
border: 2px solid #5a97ad
color: #5a97ad
.buttons-new-game
transition: all .1s
&:hover
background-color: #66aec4
&:active
background-color: #5a97ad
@media only screen and (max-width: 500px)
.main
width: 300px
height: 300px
.help-window
top: 3%
width: 300px
height: 90%
.close-button
top: 5px
right: 5px
.card
margin: 5px
.card-img
width: 50px
height: 80px
.card-hover::after
width: 50px
height: 80px
border-radius: 5px
.card-hover-right::before
width: 50px
height: 80px
border-radius: 5px
.buttons-more, .buttons-find, .buttons-find
width: 90px
.modals
width: 300px
padding: 5px 0
font-size: 15px
.modal
width: 300px
padding: 5px 0
margin-top: 10px
font-size: 15px
.name
font-size: 30px
margin: 10px 0
.info
margin-bottom: 10px
box-sizing: border-box
width: 300px
.buttons
margin: 10px 0
.button-help
width: 30px
top: -44%
padding: 4px 0