-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
91 lines (70 loc) · 1.48 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
body {
height: 100vh;
margin: 0;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #f6f6f6;
}
button {
border: 2px solid #232323;
}
.container {
height: 600px;
width: 350px;
border: 1px solid black;
border-radius: 15px;
background-color: #3e3e3e;
display: flex;
flex-direction: column;
align-items: center;
}
.display {
display: flex;
align-items: center;
justify-content: end;
margin: 30px 0px;
padding-right: 20px;
height: 100px;
width: 290px;
border: 1px solid black;
border-radius: 10px;
background-color: #9baf52;
font-size: 32px;
}
.buttons-container {
display: grid;
grid-template-columns: 50px 50px 50px 50px;
grid-template-rows: 50px 50px 50px 50px 50px;
column-gap: 30px;
row-gap: 30px;
}
.digit, #decimal, .operator[value="+"], .operator[value="-"] {
background-color: #5b5b5b;
color: #b8b8b8;
font-weight: bold;
font-size: 18px;
}
.operator[value="/"], .operator[value="*"], #clear, #del {
background-color: #252525;
color: #b8b8b8;
font-weight: bold;
font-size: 18px;
}
button[value="0"] {
grid-column-start: 1;
grid-column-end: 3;
}
button[id="equals"] {
grid-column-start: 4;
grid-row-start: 4;
grid-row-end: 6;
background-color: #a8240a;
font-weight: bold;
font-size: 18px;
color: #b8b8b8;
}
footer {
display: flex;
}