-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
118 lines (102 loc) · 2.23 KB
/
Copy pathstyle.css
File metadata and controls
118 lines (102 loc) · 2.23 KB
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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #000;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.calculator {
width: min(90vw, 360px);
display: flex;
flex-direction: column;
gap: 16px;
}
.display {
text-align: right;
padding: 0 12px;
min-height: 100px;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
#finalResult {
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-variant-numeric: tabular-nums;
color: #8e8e93;
font-size: clamp(18px, 5vw, 24px);
font-weight: 400;
min-height: 28px;
}
#currentResult {
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
font-variant-numeric: tabular-nums;
color: #fff;
font-size: clamp(36px, 12vw, 64px);
font-weight: 300;
word-break: break-all;
}
#divButtons {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
#divButtons button {
width: 100%;
min-width: 0;
aspect-ratio: 1 / 1;
border: none;
border-radius: 50%;
font-size: clamp(20px, 6vw, 28px);
font-weight: 500;
cursor: pointer;
transition: filter 0.15s ease, transform 0.05s ease;
}
#divButtons button:active {
transform: scale(0.94);
filter: brightness(1.3);
}
.buttonNumber {
background-color: #333333;
color: #fff;
}
.buttonDecimal {
background-color: #333333;
color: #fff;
}
.buttonClear,
.buttonSpecial {
background-color: #a5a5a5;
color: #000;
}
.buttonOperator,
.buttonResult {
background-color: #ff9f0a;
color: #fff;
}
#divButtons .buttonZero {
grid-column: span 2;
aspect-ratio: auto;
border-radius: 40px;
text-align: left;
padding-left: 28px;
}
@media (hover: hover) {
.buttonNumber:hover,
.buttonDecimal:hover {
background-color: #444444;
}
.buttonClear:hover,
.buttonSpecial:hover {
background-color: #b8b8b8;
}
.buttonOperator:hover,
.buttonResult:hover {
background-color: #ffb03f;
}
}