-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
140 lines (139 loc) · 3.29 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: sans-serif;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #edf1f4;
}
.dark {
background: #282c2f;
}
.calculator {
position: relative;
width: 340px;
padding: 20px;
border-radius: 20px;
box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.1), -15px -15px 20px #fffb;
}
.dark .calculator {
background: #33393e;
box-shadow: 15px 15px 20px rgba(0, 0, 0, 0.25),
-15px -15px 20px rgba(255, 255, 255, 0.1);
}
.calculator .buttons {
position: relative;
display: grid;
}
.calculator .buttons #value {
position: relative;
grid-column: span 4;
user-select: none;
overflow: none;
width: 100%;
text-align: end;
color: #5166d6;
height: 100px;
line-height: 100px;
box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.1), inset -5px -5px 20px #fff;
border-radius: 10px;
margin-bottom: 12px;
font-size: 2em;
font-weight: 500;
}
.dark .calculator .buttons #value {
color: #eee;
box-shadow: inset 15px 15px 20px rgba(0, 0, 0, 0.5),
inset -15px -15px 20px rgba(255, 255, 255, 0.1);
}
.calculator .buttons span {
position: relative;
padding: 10px;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 20px #fff;
margin: 10px;
cursor: pointer;
user-select: none;
min-width: 40px;
display: flex;
justify-content: center;
justify-items: center;
font-size: 1.2em;
color: #666;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px #fff;
border-radius: 10px;
}
.dark .calculator .buttons span {
color: #eee;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25),
-5px -5px 10px rgba(255, 255, 255, 0.1);
}
.calculator .buttons span:active {
box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.1), inset -5px -5px 10px #fff;
color: #f44336;
}
.dark .calculator .buttons span:active {
box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.25),
inset -5px -5px 10px rgba(255, 255, 255, 0.1);
}
.calculator .buttons span#clear {
background: #2196f3;
color: #fff;
font-size: 1rem;
font-family: sans-serif;
display: flex;
justify-content: center;
align-items: center;
}
.calculator .buttons span#plus {
grid-row: span 2;
background: #2196f3;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
}
.calculator .buttons span#equal {
grid-row: span 2;
background: #2196f3;
color: #fff;
}
.calculator .buttons span#clear:active,
.calculator .buttons span#plus:active,
.calculator .buttons span#equal:active {
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px #fff,
inset 5px 5px 10px rgba(0, 0, 0, 0.1);
}
.dark .calculator .buttons span#clear:active,
.dark .calculator .buttons span#plus:active,
.dark .calculator .buttons span#equal:active {
box-shadow: inset 5px 5px 10px rgba(0, 0, 0, 0.1);
}
.toggleBtn {
position: fixed;
top: 20px;
right: 20px;
width: 40px;
height: 40px;
border-radius: 50%;
background: #555;
cursor: pointer;
border: 2px solid #edf1f4;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1), -5px -5px 10px #fff;
display: flex;
justify-content: center;
align-items: center;
}
.dark .toggleBtn {
background: #edf1f4;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.25),
-5px -5px 10px rgba(255, 255, 255, 0.25);
}
.dark .toggleBtn .fa-solid {
font-size: 1.5rem;
color: #2196f3;
}