-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
140 lines (123 loc) · 2.54 KB
/
styles.css
File metadata and controls
140 lines (123 loc) · 2.54 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
html {
height: 100vh;
width: 100vw;
}
body {
align-items: center;
box-sizing: border-box;
display: flex;
font-family: Syne;
font-feature-settings: "lnum";
font-size: 32px;
font-weight: 400;
height: 100vh;
justify-content: center;
margin: 0;
width: 100vw;
}
button {
all: unset;
border-radius: 10px;
text-align: center;
text-justify: center;
transition: all 100ms ease;
}
.calculator {
background-color: #fefefe;
display: grid;
gap: 16px 0;
grid-template-areas:
"calculatorScreenDisplay"
"calculatorDigits"
"calculatorFeatures";
grid-template-columns: 1fr;
grid-template-rows: 2fr 4fr 1fr;
justify-content: center;
max-height: 100vh;
max-width: 50vh;
min-height: 528px;
padding: 16px;
width: 100%;
}
.calculator_screen {
background-color: #efefef;
border-radius: 10px;
grid-area: calculatorScreenDisplay;
padding: 16px;
overflow: hidden;
box-shadow: 1px 1px 4px rgb(200, 200, 200) inset, -1px -1px 4px rgb(200, 200, 200) inset;
}
.calculator_screen_p {
width: 100%;
font-size: 54px;
margin: 0;
text-align: right;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.calculator_digits {
display: grid;
gap: 8px 8px;
grid-area: calculatorDigits;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr;
grid-template-areas:
". . . ."
". . . ."
". . . ."
". . . .";
}
.calculator_features {
display: grid;
gap: 8px 8px;
grid-area: calculatorFeatures;
grid-template-areas: "clrButton equalButton equalButton equalButton";
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: 1fr;
}
.calculator_features_equalButton {
background-color: #ff7a00;
color: white;
grid-area: equalButton;
}
.calculator_features_clrButton {
background-color: #000000;
color: white;
grid-area: clrButton;
}
.calculator_digits button {
aspect-ratio: 1/1;
background-color: #efefef;
}
.calculator_digits i,
.calculator_features i {
font-size: 24px;
}
.calculator_screen i {
font-size: 40px;
}
button:hover {
transition: all 200ms ease;
background-color: #dadada;
transform: translateY(-1px);
}
button:active {
transition: all 100ms ease;
transform: translateY(1px);
}
.calculator_features_equalButton:hover {
background-color: #ff891b;
}
.calculator_features_clrButton:hover {
background-color: white;
border: 2px solid black;
box-sizing: border-box;
color: black;
}
@media screen and (width > 440px) {
.calculator {
border-radius: 10px;
box-shadow: 2px 5px 12px 0px #949494;
}
}