-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
67 lines (57 loc) · 1.41 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
*{
box-sizing: border-box;
font-weight: normal;
font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif
}
body{
background: linear-gradient(to right, rgb(38, 192, 77), rgb(72, 117, 212));
margin: 0;
padding: 0;
}
.calculator-grid{
display: grid;
justify-content: center;
align-content: center;
min-height: 100vh;
grid-template-columns: repeat(4, 100px);
grid-template-rows: minmax(120px, auto) repeat(5, 100px);
}
.calculator-grid button{
border-radius: 5px;
border: 1px solid white;
background-color: rgba(255, 255, 255, .75);
font-size: 2rem;
}
.calculator-grid button:hover{
background-color: rgba(255, 255, 255, .9);
}
.calculator-grid button:active{
transform: scale(0.95);
}
.span-two{
grid-column: span 2;
}
.display{
border-radius: 5px;
grid-column: 1 / -1;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: flex-end;
padding: 10px;
background-color: rgba(0, 0, 0, .75);
}
.current-operand{
color: white;
font-size: 2.5rem;
display: flex;
word-wrap: break-word;
word-break: break-all;
}
.previous-operand{
color: rgba(255, 255, 255, .75);
font-size: 1.5rem;
display: flex;
word-wrap: break-word;
word-break: break-all;
}