-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
68 lines (59 loc) · 1.21 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
61
62
63
64
65
66
67
68
*, *::before, *::after {
box-sizing: border-box;
font-family: Gotham Rounded, sans-serif;
font-weight: normal;
}
body {
padding: 0;
margin: 0;
background: linear-gradient(to right, #00AAFF, #00ff6c);
}
.calculator {
height: 15rem;
position: relative;
}
.calculator-keys {
position:absolute;
top: 5rem;
left: 4.5rem;
display: grid;
justify-content: center;
align-content: center;
grid-template-columns: repeat(4, 4rem);
grid-template-rows: minmax(4rem, auto) repeat(4, 4rem);
}
.calculator-keys > button {
cursor: pointer;
font-size: 1rem;
border: 1px solid white;
outline: none;
background-color: #9ad18b;;
}
.calculator-keys > button:hover {
background-color: rgba(255, 255, 255, .90);
}
.calculator-keys > button.is-depressed {
background-color: rgba(255, 255, 255, .90);
}
.span-two {
grid-column: span 2;
}
.output {
top: 1.5rem;
left: 4.5rem;
min-height: 2rem;
width: 16rem;
background-color: rgba(0, 0, 0, .75);
display: flex;
position: absolute;
flex-direction: column;
align-items: flex-end;
justify-content: space-around;
padding: 10px;
word-wrap: break-word;
word-break: break-all;
}
.output .current-operand {
color: white;
font-size: 2.5rem;
}