-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
224 lines (179 loc) · 4.34 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
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
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* begin styling */
button {
width: 100%;
height: 3rem;
display: flex;
justify-content: center;
align-items: center;
outline: none;
font-size: 17px;
background: #ECECEC;
border-radius: 15px;
padding: 10px 20px;
font-family: arial;
font-weight: bold;
color:#7f7f7f;
text-decoration: none;
text-shadow:0px 1px 0px #fff;
border:1px solid #a7a7a7;
box-shadow: 0px 2px 1px white inset, 0px -2px 8px white, 0px 2px 5px rgba(0, 0, 0, 0.1), 0px 8px 10px rgba(0, 0, 0, 0.1);
-webkit-transition:box-shadow 0.5s;
}
button:hover {
box-shadow: 0px 2px 1px rgb(211, 211, 211) inset, 0px -2px 20px white, 0px 2px 5px rgba(0, 0, 0, 0.1), 0px 8px 10px rgba(0, 0, 0, 0.1);
color: orange;
-webkit-transition:color 0.5s;
/* box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5) inset, 0px -2px 20px white, 0px 1px 5px rgba(0, 0, 0, 0.1), 0px 2px 10px rgba(0, 0, 0, 0.1); */
}
button:active {
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5) inset, 0px -2px 20px white, 0px 1px 5px rgba(0, 0, 0, 0.1), 0px 2px 10px rgba(0, 0, 0, 0.1);
background:-webkit-linear-gradient(top, #d1d1d1 0%,#ECECEC 100%);
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
height: 100vh;
position: relative;
background-color: rgb(206, 206, 206);
}
#calculator {
background-color:#ECECEC;
width: 400px;
height: auto;
border-radius: 15px;
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23), 0 0 5px #aaa inset;
}
#display {
height: 150px;
margin: 20px;
background-color: rgb(181, 190, 192);
display: flex;
flex-direction: column;
box-shadow: inset 2px 2px 4px 5px rgba(0,0,0,0.3);
border-radius: 15px;
}
#display-top {
font-size: 25px;
flex: 1;
padding-left: 20px;
display: inline-flex;
align-items: center;
justify-content: flex-start;
flex-wrap: nowrap;
overflow: hidden;
white-space: nowrap;
color: rgb(95, 95, 95);
}
#display-bottom {
font-size: 50px;
flex: 2;
display: inline-flex;
align-items:flex-end;
justify-content: flex-end;
padding: 0 15px 10px 0;
flex-wrap: nowrap;
overflow: hidden;
white-space: nowrap;
}
#calculator-body {
display: grid;
height: auto;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(6, 1fr);
grid-template-areas:
"header header header operator"
"subhead subhead subhead operator"
"num num num operator"
"num num num operator"
"num num num equal"
"zero zero dot equal"
;
grid-gap: 15px 15px;
margin: 0px 20px 20px 20px;
}
#header-body {
grid-area: header;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 15px 15px;
}
#subhead-body {
grid-area: subhead;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 15px 15px;
}
#num-body {
grid-area: num;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
grid-gap: 15px 15px;
}
.operator-body {
grid-area: operator;
display: grid;
grid-gap: 15px 15px;
}
#zero {
grid-area: zero;
}
#dot {
grid-area: dot;
}
#equal {
grid-area: equal;
height: auto;
}
#color-switch {
width: 100px;
height: 100px;
margin-top: 1%;
background-color: red;
}