-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
160 lines (131 loc) · 2.68 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
body {
background-color: rgb(36, 36, 36);
display: grid;
grid-template-rows: 1fr 2fr 1fr;
grid-template-areas: ". . ."
". calculator ."
". . .";
}
#calculator {
grid-area: calculator;
background-color: rgba(78, 131, 126, 0.445);
width: 22em;
height: 30em;
margin: auto;
box-shadow: 3px 3px 10px rgb(0, 0, 0);
display: grid;
gap: .4em;
padding: .5em;
border: .5em solid rgba(40, 163, 172, 0.644);
border-radius: 10px;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(6, 1fr);
grid-template-areas: "display display display display"
"allClear delete plusMinus division"
"seven eight nine multiplication"
"four five six subtraction"
"one two three addition"
"zero zero point equals"
}
button {
font-family: Helvetica;
font-size: 1.35rem;
font-weight: 550;
border-radius: .4em;
border: 0em ;
color: rgb(255, 255, 255);
}
button:active {
background-color:rgb(0, 183, 255);
}
.special {
background-color: rgb(46, 139, 119);
}
.operation {
background-color: rgb(39, 122, 218);
font-size: 1.5em;
}
.number {
background-color: rgba(255, 123, 0, 0.76);
}
#display {
grid-area: display;
font-size: 3.8rem;
padding-right: .25em;
margin-bottom: .06em;
border-radius: .14em;
border: 0px solid;
color: rgba(255, 255, 255, 0.829);
background-color: rgba(45, 218, 218, 0.527);
text-align: end;
overflow: hidden;
}
/* Defining grid area for all buttons */
#allClearBtn {
grid-area: allClear;
}
#deleteBtn {
grid-area: delete;
font-size: 1.25rem;
}
#plusMinusBtn {
grid-area: plusMinus;
}
#divisionBtn {
grid-area: division;
}
#multiplicationBtn {
grid-area: multiplication;
}
#subtractionBtn {
grid-area: subtraction;
}
#additionBtn {
grid-area: addition;
}
#equalsBtn {
grid-area: equals;
}
#point {
grid-area: point;
}
#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;
}
@media (max-width: 767px) {
body {
background-color: rgb(36, 36, 36);
display: grid;
grid-template-rows: .3fr 1fr .2fr;
grid-template-areas: ". . ."
"calculator calculator calculator"
". . .";
}
}