-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.scss
97 lines (82 loc) · 1.61 KB
/
index.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
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
$backgroundColor: #9de9db;
$blockColor: #49d7bd;
$blockDarkColor: #1ba088;
$shadowColor: rgba(0, 0, 0, 25%);
$green: #1d9222;
$red: #c71212;
$font: 20px 'Montserrat', sans-serif;
body {
margin: 0;
font: $font;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: $backgroundColor;
user-select: none;
}
::-webkit-scrollbar {
width: 15px;
background-color: $backgroundColor;
}
::-webkit-scrollbar-thumb {
background-color: $blockColor;
border-radius: 10px;
}
@mixin standard-block {
background-color: $blockColor;
border-radius: 40px;
padding: 10px 20px;
}
@mixin item {
min-width: 380px;
label {
@include standard-block;
margin: 10px;
box-shadow: 0 4px 4px $shadowColor;
display: block;
cursor: pointer;
}
input {
position: absolute;
width: 0;
height: 0;
&:checked + label {
background: $blockDarkColor;
box-shadow: inset 0px 4px 4px $shadowColor;
}
}
}
@mixin picture {
width: 400px;
height: auto;
border: 2px solid $blockDarkColor;
border-radius: 40px;
}
@mixin error {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
@mixin loader {
border: 8px solid #f3f3f3;
border-top: 8px solid $blockDarkColor;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 2s linear infinite;
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
}
.error {
@include error;
.loader {
@include loader;
}
}