-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathstyles.css
161 lines (151 loc) · 3.6 KB
/
styles.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
160
161
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Rubik:wght@300;400;500;600;700;800;900&display=swap");
html {
font-size: 62.5%;
}
body {
font-family: Arial, sans-serif;
background: linear-gradient(180deg, #807ece 0%, #8e7ece 100%);
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.calculator {
display: flex;
padding: 5.4rem 3.2rem 3.2rem 3.2rem;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 2.6rem;
border-radius: 4.8rem;
background: #2d2a37;
box-shadow: 0px -4px 5px 0px rgba(0, 0, 0, 0.22) inset,
0px 6px 8px 0px rgba(255, 255, 255, 0.1) inset,
0px 8px 17px 0px rgba(0, 0, 0, 0.29), 0px 30px 30px 0px rgba(0, 0, 0, 0.26),
0px 68px 41px 0px rgba(0, 0, 0, 0.15),
0px 120px 48px 0px rgba(0, 0, 0, 0.04),
0px 188px 52px 0px rgba(0, 0, 0, 0.01), 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}
.display {
margin-bottom: 10px;
display: flex;
width: 90%;
justify-content: center;
align-items: center;
border: 2px solid #7f45e2;
border-radius: 10px;
}
input[type="text"] {
width: 100%;
padding: 10px;
font-size: 2rem;
text-align: right;
color: #ebebeb;
font-family: Rubik;
background-color: transparent;
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 8px;
}
.buttons {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 10px;
}
button {
border: none;
cursor: pointer;
color: #ebebeb;
font-family: Rubik;
font-size: 2.4rem;
font-weight: 400;
letter-spacing: -0.48px;
border-radius: 999px;
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.05) 0%,
rgba(255, 255, 255, 0.05) 100%
),
#2d2a37;
box-shadow: 0px 2px 3px 0px rgba(255, 255, 255, 0.06) inset,
0px 0px 2px 0px rgba(0, 0, 0, 0.29), 0px 2px 4px 0px rgba(0, 0, 0, 0.26),
0px 4px 6px 0px rgba(0, 0, 0, 0.1), 0px 7px 7px 0px rgba(0, 0, 0, 0.04),
0px 11px 7px 0px rgba(0, 0, 0, 0.01);
display: flex;
width: 64px;
height: 64px;
justify-content: center;
align-items: center;
}
button:hover {
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.15) 0%,
rgba(255, 255, 255, 0.05) 100%
),
#7f45e2;
box-shadow: 0px 2px 3px 0px rgba(255, 255, 255, 0.1) inset,
0px 0px 2px 0px rgba(0, 0, 0, 0.29), 0px 2px 4px 0px rgba(0, 0, 0, 0.26),
0px 4px 6px 0px rgba(0, 0, 0, 0.1), 0px 7px 7px 0px rgba(0, 0, 0, 0.04),
0px 11px 7px 0px rgba(0, 0, 0, 0.01);
}
.btn {
height: 64px;
width: 64px;
}
.action {
background: linear-gradient(
180deg,
rgba(0, 0, 0, 0.05) 0.01%,
rgba(255, 255, 255, 0.05) 100%
),
#462878;
box-shadow: 0px 2px 3px 0px rgba(255, 255, 255, 0.1) inset,
0px 0px 2px 0px rgba(0, 0, 0, 0.29), 0px 2px 4px 0px rgba(0, 0, 0, 0.26),
0px 4px 6px 0px rgba(0, 0, 0, 0.1), 0px 7px 7px 0px rgba(0, 0, 0, 0.04),
0px 11px 7px 0px rgba(0, 0, 0, 0.01);
}
#btnEmpty {
box-shadow: none;
background: none;
cursor: default;
pointer-events: none;
}
@media (max-width: 370px) {
.calculator {
width: 200px;
}
.btn {
display: flex;
justify-content: center;
align-items: center;
height: 52px;
width: 52px;
}
#btn {
display: flex;
justify-content: center;
align-items: center;
height: 52px;
width: 52px;
}
}
@media (max-width: 280px) {
.calculator {
width: 150px;
}
.btn {
display: flex;
justify-content: center;
align-items: center;
height: 42px;
width: 42px;
}
#btn {
display: flex;
justify-content: center;
align-items: center;
height: 42px;
width: 42px;
}
}