-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
103 lines (88 loc) · 1.56 KB
/
styles.css
File metadata and controls
103 lines (88 loc) · 1.56 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
background-color: #1c1c1c;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}
.calculator {
width: 100%;
max-width: 320px;
padding: 20px;
}
.display {
background-color: #1c1c1c;
color: #ffffff;
font-size: 64px;
font-weight: 300;
text-align: right;
padding: 20px;
margin-bottom: 10px;
min-height: 100px;
overflow: hidden;
word-wrap: break-word;
word-break: break-all;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}
.btn {
border: none;
border-radius: 50%;
font-size: 28px;
font-weight: 400;
cursor: pointer;
transition: all 0.15s ease;
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
}
.btn:active {
transform: scale(0.95);
opacity: 0.8;
}
.btn-number {
background-color: #333333;
color: #ffffff;
}
.btn-number:hover {
background-color: #4a4a4a;
}
.btn-function {
background-color: #a5a5a5;
color: #000000;
}
.btn-function:hover {
background-color: #d4d4d4;
}
.btn-operator {
background-color: #ff9f0a;
color: #ffffff;
}
.btn-operator:hover {
background-color: #ffb340;
}
.btn-equals {
background-color: #ff9f0a;
color: #ffffff;
}
.btn-equals:hover {
background-color: #ffb340;
}
.btn-zero {
grid-column: span 2;
border-radius: 40px;
aspect-ratio: auto;
justify-content: flex-start;
padding-left: 30px;
}