-
Notifications
You must be signed in to change notification settings - Fork 0
/
stylesheet.css
117 lines (100 loc) · 1.94 KB
/
stylesheet.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
@import url("https://fonts.googleapis.com/css2?family=Spartan:wght@700&display=swap");
*,
*::after,
*::before {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Spartan", sans-serif;
font-size: 32px;
}
:root {
--bg-theme: hsl(222, 26%, 31%);
--bg-toggle-keypad: hsl(223, 31%, 20%);
--bg-screen: hsl(224, 36%, 15%);
--bg-del-reset-key: hsl(225, 21%, 49%);
--bg-keys: hsl(30, 25%, 89%);
--bg-result-toggle-key: hsl(6, 63%, 50%);
--hover-equal-sign: hsl(6, 70%, 34%);
--text-color: hsl(221, 14%, 31%);
}
body {
height: 100vh;
background-color: var(--bg-theme);
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.calculator {
text-align: center;
width: 400px;
}
.calculator-screen {
width: 100%;
height: 100px;
background-color: var(--bg-screen);
color: #fff;
text-align: right;
font-size: 36px;
border: none;
padding: 0 20px;
border-radius: 10px;
margin-bottom: 15px;
}
.calculator-keys {
width: 100%;
background-color: var(--bg-toggle-keypad);
padding: 15px 10px;
border-radius: 10px;
}
.row {
display: flex;
}
button {
height: 80px;
border: 1px solid black;
font-size: 32px;
width: 25%;
outline: none;
border-radius: 5px;
background-color: var(--bg-keys);
color: var(--text-color);
}
.all-clear,
.zero-btn {
width: 50%;
}
.operator {
background-color: var(--bg-del-reset-key);
color: #fff;
}
.equal-sign {
background-color: var(--bg-result-toggle-key);
color: #fff;
}
button:hover {
background-color: darkgray;
}
.operator:hover {
background-color: var(--bg-toggle-keypad);
}
.equal-sign:hover {
background-color: var(--hover-equal-sign);
}
footer {
text-align: center;
position: absolute;
bottom: 0;
width: 100%;
font-size: 13px;
}
footer a {
text-decoration: none;
color: var(--bg-result-toggle-key);
transition-duration: 0.7s;
font-size: 13px;
}
footer a:hover {
color: var(--text-color);
}