-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
216 lines (195 loc) · 3.43 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
/* --------------- CSS Reset ------------------ */
/*
1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
/*
2. Remove default margin
*/
* {
margin: 0;
}
/*
Typographic tweaks!
3. Add accessible line-height
4. Improve text rendering
*/
body {
line-height: 1.5;
-webkit-font-smoothing: antialiased;
}
/*
5. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
display: block;
max-width: 100%;
}
/*
6. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
font: inherit;
}
/*
7. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
overflow-wrap: break-word;
}
/*
8. Create a root stacking context
*/
#root,
#__next {
isolation: isolate;
}
/* -------------------------------------------- */
@font-face {
font-family: "seven-segment";
/* src: url(./fonts/Seven\ Segment.ttf); */
src: url(./fonts/7segment.woff);
}
/* -------------------------------------------- */
body {
height: 100vh;
display: flex;
flex-direction: column;
}
#header {
display: flex;
align-items: end;
padding: 8px;
border-bottom: 1px solid black;
/* background-color: pink; */
}
#header-title {
font-size: 3rem;
flex-grow: 1;
}
#header-author {
font-size: 2.25rem;
}
#main {
flex-grow: 1;
display: flex;
}
#main-left {
/* background-color: aqua; */
flex-grow: 3;
display: flex;
align-items: center;
justify-content: center;
}
#calc-container {
/* padding: 10px;
border: 1px solid rgba(0,0,0,0.2);
border-radius: 25px;
background-color: rgba(0, 0, 0, 0.03); */
}
#calculator {
/* border: 1px solid red; */
background-color: rgba(0, 0, 0, 0.03);
border-radius: 25px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2), 0px 6px 20px rgba(0, 0, 0, 0.2),
4px 4px 4px #dddddd inset, -4px -4px 4px #dddddd inset,
4px -4px 4px #dddddd inset, -4px 4px 4px #dddddd inset;
width: 400px;
height: 600px;
padding: 25px;
display: flex;
flex-direction: column;
}
#screen {
padding: 2px 6px 0px 6px;
background-color: pink;
height: 70px;
font-family: "seven-segment", monospace, sans-serif;
font-size: 70px;
line-height: 100%;
text-align: right;
background-color: #a0a984;
border-radius: 5px;
box-shadow: 2px 2px #cccccc, -2px -2px 2px #cccccc, 2px -2px 2px #cccccc,
-2px 2px 2px #cccccc;
position: relative;
}
#sign-display {
font-family: monospace;
font-size: 26px;
font-weight: 800;
line-height: 100%;
position: absolute;
top: -2px;
left: 4px;
}
.simple-line {
margin: 16px 0px;
height: 4px;
border-radius: 2px;
background-color: #cccccc;
}
#button-container {
/* background-color: pink; */
flex-grow: 1;
display: flex;
flex-direction: column;
gap: 15px;
}
.button-row {
display: flex;
justify-content: center;
gap: 15px;
}
.button {
width: 75px;
height: 75px;
/* border: 2px solid black; */
border-radius: 10px;
font-size: 60px;
line-height: 70px;
text-align: center;
font-family: monospace;
box-shadow: 3px 3px #cccccc, -3px -3px 3px #cccccc, 3px -3px 3px #cccccc,
-3px 3px 3px #cccccc;
cursor: pointer;
}
.wide-button {
width: 344px;
height: 70px;
font-size: 50px;
}
#main-right {
background-color: brown;
min-width: 300px;
flex-grow: 1;
}
#footer {
min-height: 3rem;
display: flex;
justify-content: center;
align-items: center;
border-top: 1px solid black;
/* background-color: lime; */
}
#footer-author-link {
color: green;
font-weight: 700;
}