-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
87 lines (73 loc) · 1.19 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
* {
padding: 0;
margin: 0;
}
button {
border: none;
transition: 0.5s;
}
.calculator {
display: flex;
flex-flow: column;
flex: 0 0 auto;
height: 100vh;
justify-content: center;
align-items: center;
overflow: hidden;
}
.row {
display: flex;
width: 360px;
height: 90px;
}
.calculator,
.row {
gap: 2px;
}
.col {
border-radius: 15px;
flex: 1;
font-family: "Ubuntu Mono", monospace, sans-serif;
font-size: 1.8rem;
font-weight: 600;
}
.col.digit.zero {
flex: 2;
}
.row.input {
align-items: center;
text-align: right;
}
.row.input .col {
height: 100%;
display: flex;
justify-content: flex-end;
align-items: center;
padding: 0 20px;
background-color: midnightblue;
color: azure;
}
.digit {
background-color: rgb(12, 12, 51);
color: azure;
}
.digit:hover {
color: midnightblue;
}
.operator {
background-color: burlywood;
color: rgb(12, 12, 51);
}
.misc {
background-color: chocolate;
color: lemonchiffon;
}
.digit:hover,
.misc:hover {
background-color: bisque;
color: midnightblue;
}
.operator:hover {
background-color: midnightblue;
color: bisque;
}