-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
159 lines (158 loc) · 3.47 KB
/
style.css
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
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
* {
box-sizing: border-box;
justify-content: center;
align-items: center;
}
*::before {
box-sizing: border-box;
}
*::after {
box-sizing: border-box;
}
*:focus {
outline: none;
}
html {
font-size: 62.5%;
box-sizing: initial;
line-height: 1.2;
}
.error {
font-family: 'Roboto',serif;
margin-bottom: 1.5rem;
font-size: 2rem;
color: #ff553a;
text-transform: uppercase;
}
.calculator {
width: 27.9rem;
height: 43.4rem;
background: #f2f7fc;
box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.15),
-4px -4px 4px rgba(255, 255, 255, 0.85);
border-radius: 30px;
display: grid;
gap: 0.1rem;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: minmax(8rem, auto) repeat(5, 1fr);
padding: 2rem 1.5rem;
margin: 100px;
}
.hidden {
display: none;
}
.span-4 {
width: 23.5rem;
height: 5.3rem;
background: #f2f6fc;
box-shadow: 2px 3px 5px rgba(0, 0, 0, 0.13),
-2px -2px 3px rgba(255, 255, 255, 0.85),
inset 2px 2px 4px rgba(0, 0, 0, 0.03),
inset -2px -2px 4px rgba(255, 255, 255, 0.76);
border-radius: 13px;
display: flex;
justify-content: center;
align-content: center;
grid-column: 1 / span 4;
align-self: center;
justify-self: center;
}
.output {
background: linear-gradient(270deg, rgb(58, 182, 227) 0%,
rgb(122, 183, 208) 100%);
border: 2px solid rgba(255, 255, 255, 0);
box-sizing: border-box;
border-radius: 13px;
width: 22.903rem;
height: 4.7rem;
}
.output__cal {
font-size: 2rem;
text-align: end;
font-weight: bold;
margin: 0.5rem 1rem 0 0;
font-family: Roboto, serif;
}
.prevois__cal2 {
font-size: 1.4rem;
height: 1rem;
}
.button {
width: 4.6rem;
height: 4.6rem;
background: #f2f6fc;
box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1),
-3px -3px 4px rgba(255, 255, 255, 0.6);
border-radius: 18px;
border: none;
font-family: 'Roboto',serif;
font-weight: bold;
font-size: 16px;
cursor: pointer;
align-self: center;
justify-self: center;
}
.button:active {
box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.35),
inset 3px 3px 4px rgba(0, 0, 0, 0.25);
background: #e9f0fa;
}
.span-2 {
grid-column: 1 / span 2;
width: 10.9rem;
text-align: left;
padding-left: 1.8rem;
}
body {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
transition: background 0.2s linear;
}
body.dark {
background-color: #263238;
}
body.dark p {
color: black;
transition: color 0.2s linear;
}
.checkbox {
opacity: 0;
position: absolute;
}
.checkbox:checked + .label .ball {
transform: translatex(24px);
}
label {
display: flex;
position: relative;
background-color: #2d2b2b;
width: 50px;
height: 26px;
border-radius: 50px;
padding: 5px;
align-items: center;
justify-content: space-between;
transform: scale(1.2);
cursor: pointer;
}
label .fa-moon {
color: #f1c40f;
}
label .fa-sun {
color: #f39c12;
}
label .ball {
width: 22px;
height: 22px;
background-color: #fff;
position: absolute;
border-radius: 50px;
top: 2px;
left: 2px;
transition: transform 0.2s linear;
}