-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
179 lines (153 loc) · 2.75 KB
/
index.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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
border: none;
}
html {
font-size: 24px;
font-family: "Unica One", cursive;
background-color: rgb(228, 228, 181);
}
/* For the whole calculator */
#app {
display: flex;
position: relative;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
padding: 1rem 0;
}
#app h1 {
font-size: 2.5rem;
letter-spacing: 0.5rem;
margin-top: -25px;
margin-bottom: 8px;
}
.calculator {
background-color: gray;
border: 2px solid goldenrod;
border-radius: 10px;
}
/*For the display part (upper part) */
.display {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr;
height: 20vh;
margin: 1vw;
border-radius: 10px;
border: 2px solid goldenrod;
background-color: rgb(181, 128, 231);
}
.display div {
text-align: right;
vertical-align: center;
padding: 0 10px;
padding-top: 5px;
font-size: 3vh;
}
/* For the controls (bottom part) */
.controls {
display: grid;
grid-template-columns: 1fr 3fr 1fr;
grid-template-rows: 4fr 1fr;
grid-gap: 1vw;
margin: 1vw;
padding-top: 1vw;
border-top: 1px solid black;
width: 30vw;
height: 60vh;
}
.leftColumn {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 1fr 1fr 1fr 1fr;
grid-gap: 1vw;
}
.leftColumn > button:nth-child(1) {
background-color: rgb(241, 217, 241);
}
.enter {
grid-area: 3 / 1 / 5 / 1;
writing-mode: vertical-rl;
text-orientation: upright;
background-color: rgb(248, 109, 17);
}
.operations {
grid-area: 1 / 3 / 2 / 3;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: repeat(4, 1fr);
grid-gap: 1vw;
}
.operations button {
background-color: rgb(228, 205, 77);
}
.digits {
grid-area: 1 / 2/ 2 / 2;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(4, 1fr);
grid-gap: 1vw;
}
.zero {
grid-area: 4 / 1 / 4 / 3;
}
.bottom {
grid-area: 2 / 1 / 2 / 4;
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-gap: 1vw;
}
.bottom button {
background-color: rgb(120, 209, 236);
}
.clear {
grid-column: 2 / span 2;
}
.switch {
display: none;
}
button {
font-family: monospace;
font-size: 1.8vw;
border-radius: 10px;
box-shadow: 2px 2px 2px black;
}
button:hover {
box-shadow: 4px 4px 4px black;
}
.digits *,
.operations * {
font-size: 2vw;
font-weight: bold;
}
/* For the side buttons and note ************************* */
.sideNote {
position: fixed;
right: 50px;
top: 200px;
}
.sideNote button {
display: block;
margin: 20px;
padding: 10px;
}
.rpnInfo {
position: fixed;
display: none;
right: 30px;
top: 100px;
width: 30vw;
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
background-color: rgb(196, 196, 43);
padding: 20px;
border-radius: 5px;
}
.close {
margin-left: 350px;
margin-top: -35px;
}