-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
227 lines (191 loc) · 3.39 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
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
@import url("https://fonts.googleapis.com/css2?family=Bungee&display=swap");
/*------------------*/
/* CSS BOILERPLATE */
/*------------------*/
/* RESET BOX MODEL */
* {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
/* ELIMINATE BORDERS */
* {
border: none;
}
/* REMOVES OUTLINE FOR MOUSE USERS, KEEPS OUTLINE FOR KEYBOARD USERS */
:focus:not(:focus-visible) {
outline: none;
}
html {
font-size: 88%; /* 14PX DEFAULT FONT-SIZE */
-webkit-text-size-adjust: none; /* FOR IOS SAFARI */
text-size-adjust: none; /* FOR OTHER MOBILE BROWSERS */
}
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
}
a {
text-underline-position: under; /* UNDERLINES ARE UNDER THE DESCENDERS */
text-decoration-thickness: 8; /* TEXT THICKNESS IS % OF FONT-SIZE */
}
/* OH IMAGES, BEHAVE! */
img {
display: block;
max-width: 100%;
}
/* RESET LIST STYLES */
menu:not(article menu),
ol:not(article ol),
ul:not(article ul) {
list-style: none;
}
/* INTERACTION ELEMENTS = POINTER */
label,
button,
select,
summary,
[type="radio"],
[type="submit"],
[type="checkbox"] {
cursor: pointer;
}
/* END CSS BOILERPLATE */
body {
margin: 0 auto;
padding: 0;
}
#container {
background: linear-gradient(#ffa500, #ff7f50);
font: 3em "Bungee", cursive;
height: 100vh;
width: 100vw;
}
#calculator {
background-color: #ccc;
border: 2px solid #999;
border-radius: 9px;
box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.25);
height: 480px;
margin: 0 auto;
position: relative;
top: 25vh;
padding: 10px;
-ms-transform: rotate(1deg); /* IE 9 */
transform: rotate(1deg);
width: 480px;
}
#calculator > div {
-moz-transition: all 0.15s ease-in;
-o-transition: all 0.15s ease-in;
-webkit-transition: all 0.15s ease-in;
transition: all 0.15s ease-in;
}
#calculator > div:hover {
background: #00fa92;
color: #008f00;
}
#display-frame {
background-color: lightblue;
border: 1px solid #4682b4;
overflow: hidden;
}
#display {
font-size: 100%;
margin: 0;
padding: 0;
}
/*---------------*/
/* GRID LAYOUT */
/*---------------*/
.parent {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-template-rows: 1.5fr repeat(4, 1fr);
grid-gap: 8px;
grid-template-areas:
"result result result result result"
"seven eight nine squ_root clear"
"four five six percent divide"
"one two three addition multiply"
"zero decimal equal addition minus";
}
.button {
align-items: center;
background-color: #909090;
border: 1px solid #ccc;
border-radius: 6px;
box-shadow: 2px 2px 1px rgba(0, 0, 0, 0.25);
color: #fff;
cursor: grab;
display: flex;
justify-content: center;
text-shadow: 1px 2px 2px #666;
transform: translate(0, 0);
}
.seven {
grid-area: seven;
}
.addition {
grid-area: addition;
}
.result {
cursor: default;
grid-area: result;
}
.eight {
grid-area: eight;
}
.nine {
grid-area: nine;
}
.squroot {
grid-area: squ_root;
}
.clear {
grid-area: clear;
}
.four {
grid-area: four;
}
.five {
grid-area: five;
}
.six {
grid-area: six;
}
.percent {
grid-area: percent;
}
.divide {
grid-area: divide;
}
.multiply {
grid-area: multiply;
}
.minus {
grid-area: minus;
}
.equal {
grid-area: equal;
}
.decimal {
grid-area: decimal;
}
.zero {
grid-area: zero;
}
.one {
grid-area: one;
}
.two {
grid-area: two;
}
.three {
grid-area: three;
}
/* END GRID LAYOUT --*/