-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
98 lines (90 loc) · 1.64 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
* {
box-sizing: border-box;
font-family: 'Syne Mono', monospace, sans-serif;
}
body {
margin-bottom: 100px;
}
#main {
display: flex;
align-items: center;
justify-content: center;
}
.main-header {
text-align: center;
margin-top: -12px;
}
.calculator {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 5px solid #ccc;
border-radius: 20px;
width: 300px;
}
#calcDisplay {
width: 100%;
font-size: 45px;
height: 75px;
border-radius: 15px;
background-color: #252525;
color: #ffffff;
text-align: right;
padding-right: 20px;
padding-left: 10px;
}
.calc-keys {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 8px;
padding: 8px;
}
.button {
height: 60px;
background-color: #fff;
border-radius: 10px;
border: 1px solid #c4c4c4;
background-color: transparent;
font-size: 25px;
color: #000000;
box-shadow: 0 0 3px rgb(83, 83, 83);
margin: 2px;
padding: 10px;
}
.button.operator {
background-color: #2fb9f0;
border-color: #337cac;
}
.button.action {
color: #f0595f;
}
.button:hover {
background-color: #eaeaea;
font-weight: bold;
}
#clearBtn {
background-color: #f0595f;
color: #000000;
}
#clearBtn:hover {
background-color: #eaeaea;
color: #f0595f;
border-color: #c0367b;
}
#equalBtn {
grid-column: span 2;
}
#clearBtn {
grid-column: span 2;
}
.footer {
position: absolute;
bottom: 0;
left: 0;
display: flex;
align-items: center;
justify-content: space-around;
width: 100%;
font-size: 10px;
}