-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
99 lines (88 loc) · 2.02 KB
/
styles.css
File metadata and controls
99 lines (88 loc) · 2.02 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
@font-face {
font-family: 'VT323';
src: url('./font/VT323-Regular.eot');
src: url('./font/VT323-Regular.eot?#iefix') format('embedded-opentype'),
url('./font/VT323-Regular.woff2') format('woff2'),
url('./font/VT323-Regular.woff') format('woff'),
url('./font/VT323-Regular.ttf') format('truetype'),
url('./font/VT323-Regular.svg#VT323-Regular') format('svg');
font-weight: normal;
font-style: normal;
font-display: swap;
}
body {
background: grey;
}
.shell {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
border-radius: 7% / 5%;
background: darkslategrey;
padding: 12px;
width: 360px;
}
.display {
position: relative;
margin: 5px;
margin-bottom: 12px;
border-radius: 4% / 12%;
background: pink;
height: 98px;
color: #590730;
padding: 30px;
}
#displayText {
position: absolute;
bottom: 0;
right: 30px;
left:30px;
text-align: right;
font-family: 'VT323', monospace;
font-size: 40px;
font-style: bolder;
overflow-wrap: anywhere;
user-select: none;
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
}
.operator, .allClear, .number, .equals {
margin: 5px;
border: 2px solid transparent;
border-radius: 18% / 20%;
height: 71px;
width: 76px;
float: left;
text-align: center;
vertical-align: middle;
line-height: 71px;
font-family: Arial;
font-size: 32px;
font-weight: bolder;
color: darkslategrey;
user-select: none;
-moz-user-select: -moz-none;
-khtml-user-select: none;
-webkit-user-select: none;
}
.operator:hover, .allClear:hover, .number:hover, .equals:hover {
filter: brightness(85%);
}
.operator {
background: lightblue;
}
.allClear {
background: orange;
}
.number {
background: lightgreen;
}
.equals {
background: #ffffa0;
}
#openParenthesis, #closeParenthesis {
line-height: 65px;
}