-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
80 lines (68 loc) · 1.11 KB
/
styles.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
html {
font-size: 62.5%;
box-sizing: border-box;
}
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: inherit;
}
.calculator {
background-color: lightsalmon;
border: 1px solid #ccc;
border-radius: 20px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 400px;
}
.output-screen {
width: 100%;
font-size: 5rem;
height: 80px;
border: none;
background-color: lightgrey;
color: #fff;
text-align: center;
}
button {
height: 60px;
background-color: #fff;
border-radius: 50%;
border: 1px solid #c4c4c4;
background-color: lightskyblue;
font-size: 2rem;
color: #333;
}
button:hover {
background-color: #eaeaea;
}
.operator {
color: black;
}
.clear {
background-color: lightgreen;
color: #fff;
}
.clear:hover {
background-color: #f17377;
}
.calculate {
background-color: lightgray;
border-radius: 10%;
color: #fff;
height: 100%;
grid-area: 2 / 4 / 6 / 5;
}
.calculate:hover {
background-color: #4e9ed4;
}
.calculator-keys {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 20px;
padding: 20px;
}