-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
113 lines (92 loc) · 2.44 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
height: 100vh;
width: 100vw;
background: linear-gradient(180deg, #7ece9f 0%, #7ec9ce 100%);
display: grid;
place-content: center;
}
body * {
font-family: "Rubik";
letter-spacing: -0.02em;
}
#calculator {
background: #2d2a37;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25),
0px 188px 52px rgba(0, 0, 0, 0.01), 0px 120px 48px rgba(0, 0, 0, 0.04),
0px 68px 41px rgba(0, 0, 0, 0.15), 0px 30px 30px rgba(0, 0, 0, 0.26),
0px 8px 17px rgba(0, 0, 0, 0.29), inset 0px 6px 8px rgba(255, 255, 255, 0.1),
inset 0px -4px 5px rgba(0, 0, 0, 0.22);
border-radius: 48px;
}
#display {
margin-top: 54px;
padding-inline: 54px;
}
#last-calc {
text-align: right;
font-size: 20px;
line-height: 140%;
color: #6b6b6b;
}
#result {
margin-top: 8px;
display: flex;
justify-content: space-between;
}
#result span {
font-size: 36px;
line-height: 140%;
color: #ebebeb;
}
#keyboard {
padding: 26px 32px 32px;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}
button {
border: 0;
width: 64px;
height: 64px;
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.05) 0%,
rgba(255, 255, 255, 0.05) 100%
),
#2d2a37;
box-shadow: 0px 11px 7px rgba(0, 0, 0, 0.01), 0px 7px 7px rgba(0, 0, 0, 0.04),
0px 4px 6px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.26),
0px 0px 2px rgba(0, 0, 0, 0.29), inset 0px 2px 3px rgba(255, 255, 255, 0.06);
border-radius: 999px;
font-size: 24px;
line-height: 28px;
color: #ebebeb;
display: flex;
align-items: center;
justify-content: center;
}
.secondary {
color: #fa5d5d;
}
.tertiary {
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.05) 0.01%,
rgba(255, 255, 255, 0.05) 100%
),
#782828;
box-shadow: 0px 11px 7px rgba(0, 0, 0, 0.01), 0px 7px 7px rgba(0, 0, 0, 0.04),
0px 4px 6px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.26),
0px 0px 2px rgba(0, 0, 0, 0.29), inset 0px 2px 3px rgba(255, 255, 255, 0.1);
}
.quartiary {
background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%), #e24545;
box-shadow: 0px 11px 7px rgba(0, 0, 0, 0.01), 0px 7px 7px rgba(0, 0, 0, 0.04), 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 2px 4px rgba(0, 0, 0, 0.26), 0px 0px 2px rgba(0, 0, 0, 0.29), inset 0px 2px 3px rgba(255, 255, 255, 0.1);
}