-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
71 lines (71 loc) · 1.11 KB
/
main.css
File metadata and controls
71 lines (71 loc) · 1.11 KB
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: rgb(201, 218, 234, 0.5);
}
.calculator {
margin: 4rem auto;
padding: 2rem 1rem;
height: 500px;
width: 350px;
display: grid;
grid: repeat(6, 1fr) / repeat(4, 1fr);
grid-gap: 10px;
text-align: center;
background: #03254e;
border-radius: 15px;
box-shadow: 10px 13px 10px #fcfff7;
}
.display,
.btn {
border: none;
outline: none;
border-radius: 7px;
font-size: 2rem;
color: #011c27;
display: flex;
align-items: center;
}
.display {
padding: 0 10px;
grid-area: 1/1/2/5;
width: 100%;
justify-content: left;
background: #f8f8f8;
}
.btn {
background: #d3d5d7;
justify-content: center;
box-shadow: 0 4px #666;
}
.btn:active {
box-shadow: 0 2px #666;
transform: translateY(2px);
}
.number:hover {
background: #e5fcff;
}
.changeNumBackground {
background: #e5fcff;
}
.clear:hover,
.backspace:hover,
.operator:hover,
.equal:hover {
background: #7ea8be;
}
.changeBtnBackground {
background: #7ea8be;
}
.clear {
grid-area: 2/1/3/3;
}
.zero {
grid-area: 6/1/7/3;
}
.selected {
background: #7ea8be;
}