-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
155 lines (138 loc) · 2.54 KB
/
main.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
:root{
--textbox_text_size: 120px;
--font_size_buttons: 7vmin;
}
*{
padding: 0px;
margin: 0px;
box-sizing: border-box;
}
.body {
height: 100vh;
width: 100vw;
}
.full-page{
display: grid;
height: 100%;
width: 100%;
grid-template: "tb tb tb tb tb tb" 3fr
"seven eight nine exponentiation undo clear" 1fr
"four five six multiply left_parenthesis right_parenthesis" 1fr
"one two three divide equals equals" 1fr
"zero period subtract add e e" 1fr
/ 1fr 1fr 1fr 1fr 1fr 1fr;
justify-content: center;
align-items: center;
}
.full-page div {
width: 100%;
height: 100%;
justify-self: center;
}
button{
font-size: var(--font_size_buttons) ;
width: 100%;
height: 100%;
color: white;
background: linear-gradient(to top, white 50%, rgba(0, 0, 0, 0.900) 50%);
border: 1px solid white;
background-size: 200% 200%;
background-position: top;
transition: all .25s ease-in;
}
button:hover{
cursor: pointer;
background-position: bottom;
color: black;
border: 1px solid white;
}
.button_press{
color: black;
font-size: calc(var(--font_size_buttons)*1.25);
border: 1px solid white;
}
.operators{
background: linear-gradient(to top, white 50%, rgba(0, 0, 0, 0.800) 50%);
background-size: 200% 200%;
}
.right_side{
background: linear-gradient(to top, white 50%, rgba(0, 0, 0, 0.700) 50%);
background-size: 200% 200%;
}
.textarea{
grid-area: tb;
color: white;
background-color: rgba(0, 0, 0, 0.999);
height: 100%;
width: 100%;
font-size: var(--textbox_text_size);
text-align: center;
word-wrap: break-word;
word-wrap: normal;
}
.nine {
grid-area: nine;
}
.eight {
grid-area: eight;
}
.seven {
grid-area: seven;
}
.six {
grid-area: six;
}
.five {
grid-area: five;
}
.four {
grid-area: four;
}
.three {
grid-area: three;
}
.two {
grid-area: two;
}
.one {
grid-area: one;
}
.zero {
grid-area: zero;
}
.period {
grid-area: period;
}
.multiply {
grid-area: multiply;
}
.divide{
grid-area: divide;
}
.subtract {
grid-area: subtract;
}
.add {
grid-area: add;
}
.equals {
grid-area: equals;
}
.undo {
grid-area: undo;
}
.clear {
grid-area: clear;
}
.right_parenthesis{
grid-area: right_parenthesis;
}
.left_parenthesis{
grid-area: left_parenthesis;
}
.exponentiation{
grid-area: exponentiation;
}
.e{
grid-area: e;
}