-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
114 lines (97 loc) · 2.08 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
:root {
--darkest: #022B3A;
--dark: #1F7A8C;
--button: #BFDBF7;
--light: #E1E5F2;
--lightest: #FFFFFF;
}
html {
box-sizing: border-box;
}
body {
box-sizing: border-box;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
color: var(--darkest);
background-color: var(--button);
margin: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100vh;
}
.flex-container {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
#calc-body {
font-family: "Audiowide", sans-serif;
font-size: x-large;
background-color: var(--darkest);
border: 3px solid var(--dark);
width: 300px !important;
padding: 20px;
border-radius: 5px;
margin: 0 20px;
}
#screen {
background-color: var(--lightest);
font-size: x-large;
text-align: right;
padding: 10px 10px 10px 50px !important;
margin-bottom: 20px;
border-radius: 5px;
display: flex;
flex-direction: column;
}
#screen-equation, #screen-number {
min-height: 50px;
word-wrap: break-word;
max-width: 100% !important;
}
#calc-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px 3px;
}
.span-2 {
grid-column: span 2;
}
.span-4 {
grid-column: span 4;
}
button {
font-family: "Audiowide", sans-serif;
font-size: x-large;
outline: none;
border: none;
background-color: var(--button);
width: 100%;
height: 50px;
border-radius: 5px;
transition: 0.3s;
}
button:hover {
background-color: var(--light) !important;
}
button:active {
background-color: var(--dark) !important;
}
#ac {
background-color: indianred;
}
#del {
background-color: lightseagreen;
}
.operator, #equal-operator {
background-color: lightyellow;
}
.footer {
display: flex;
align-items: center;
background-color: var(--darkest);
color: var(--lightest);
justify-content: center;
padding: 24px;
}