-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
82 lines (70 loc) · 1.4 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
81
82
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Helvetica;
}
body {
background-color: #333;
display: flex;
align-items: center;
justify-content: center;
padding: 3em;
}
#calc {
width: 400px;
padding: 0.5em;
background-color: #c4c4c4;
color: #000;
display: flex;
flex-direction: column;
}
#calc h3 {
font-size: 0.8em;
font-weight: 300;
color: #666;
}
#operations {
text-align: right;
}
#previous-operation {
color: #777;
padding: 0.2em;
overflow-wrap: break-word;
min-height: 1.6em;
}
#current-operation {
min-height: 1.6em;
font-size: 3em;
font-weight: 700;
padding: 0.2em;
overflow-wrap: break-word;
}
#buttons-container {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
gap: 3px;
}
#buttons-container button {
border: 1px solid transparent;
border-radius: 0;
height: 4em;
font-size: 1.2em;
background-color: #dbdbdb;
cursor: pointer;
}
#buttons-container .number {
background-color: #f3f3f3;
}
#buttons-container button:hover {
background-color: #bababa;
border-color: #999;
}
#buttons-container #equal-btn {
grid-column: span 2;
background-color: #75a5cb;
}
#buttons-container #equal-btn:hover {
grid-column: span 2;
background-color: #3a91d8;
}