-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
60 lines (51 loc) · 1.22 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
@import url('https://fonts.googleapis.com/css2?family=Varela+Round&display=swap');
* {
box-sizing: border-box;
font-family: 'Varela Round', sans-serif;
font-weight: normal;
}
body {
padding: 0;
margin: 0;
background: linear-gradient(to right, #00AAFF, #00FF6C);
}
.calculator-grid {
display: grid;
justify-content: center;
align-content: center;
min-height: 100vh;
grid-template-columns: repeat(4, 4.2rem);
grid-template-rows: minmax(5.5rem, auto) repeat(5, 4.2rem);
}
.calculator-grid > button {
cursor: pointer;
font-size: 1.6rem;
border: 1px solid white;
outline: none;
background-color: rgba(255, 255, 255, .75);
}
.calculator-grid > button:hover {
background-color: rgba(255, 255, 255, .9);
}
.span-two {
grid-column: span 2;
}
.output {
padding: 7px;
grid-column: 1 / -1;
background-color: rgba(0, 0, 0, .75);
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: flex-end;
word-wrap: break-word;
word-break: break-all;
}
.output .previous-operand {
color: rgba(255, 255, 255, .75);
font-size: 1rem;
}
.output .current-operand {
color: rgba(255, 255, 255, .75);
font-size: 1.8rem;
}