-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
127 lines (110 loc) · 1.79 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
@import url("https://fonts.googleapis.com/css2?family=Fira+Sans&display=swap");
.body {
font-family: "Fira Sans", sans-serif;
background-color: #8ecae6;
color: #023047;
}
.title {
text-align: center;
}
.calculator {
display: grid;
border: 0.4em solid #023047;
background-color: #dfd3c3;
border-radius: 1.5em;
margin: auto;
height: 40em;
width: 30em;
justify-content: center;
align-content: center;
grid-template-columns: 6em 6em 6em 6em;
grid-template-rows: 7em 5em 6em 6em 6em 6em;
gap: 0.5em;
grid-template-areas:
"display display display display"
"delete delete clear clear"
"seven eight nine divide"
"four five six multiply"
"one two three minus"
"point null equal plus";
}
.display {
display: grid;
grid-area: display;
background-color: rgb(255, 255, 255);
border: 0.3em solid #023047;
border-radius: 0.5em;
justify-items: end;
align-items: center;
font-size: 1.5em;
overflow: hidden;
}
.buttons {
border-radius: 0.5em;
border-color: #023047;
background-color: #d0b8a8;
font-size: 1.5em;
}
.buttons:active {
transform: scale(0.98);
}
.delete {
background-color: #d27b31;
}
.clear {
background-color: #969876;
}
.button-1 {
grid-area: delete;
}
.button-2 {
grid-area: clear;
}
.button-3 {
grid-area: seven;
}
.button-4 {
grid-area: eight;
}
.button-5 {
grid-area: nine;
}
.button-6 {
grid-area: divide;
}
.button-7 {
grid-area: four;
}
.button-8 {
grid-area: five;
}
.button-9 {
grid-area: six;
}
.button-10 {
grid-area: multiply;
}
.button-11 {
grid-area: one;
}
.button-12 {
grid-area: two;
}
.button-13 {
grid-area: three;
}
.button-14 {
grid-area: minus;
}
.button-15 {
grid-area: point;
}
.button-16 {
grid-area: null;
}
.button-17 {
grid-area: equal;
}
.button-18 {
grid-area: plus;
}