-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.css
93 lines (79 loc) · 1.95 KB
/
index.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
:root {
--color-primary: #e6e6e6;
--color-result-background: #222222;
--color-button-numeric: #595959;
--color-button-operation-primary: #f7a239;
--color-button-operation-secondary: #383838;
--color-button-operation-primary-clicked: #c5802b;
--color-button-operation-secondary-clicked: #595959;
--color-button-numeric-clicked: #9b9b9b;
--color-button-primary-border: #222222;
--width-button: 24.75%;
--width-button-double: 49.75%;
}
body {
min-height: 630px;
padding: 0;
margin: 0;
box-sizing: border-box;
}
.body {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.calculator {
display: flex;
flex-direction: column;
width: 460px;
background-color: var(--color-result-background);
}
.results {
font-family: monospace;
padding: 50px 10px 10px 0px;
font-size: 70px;
color: var(--color-primary);
background-color: var(--color-result-background);
text-align: right;
}
.buttons-row {
display: flex;
margin-bottom: 0.25%;
justify-content: space-between;
}
.buttons-row:last-of-type {
margin-bottom: 0;
}
.button {
font-size: 30px;
background-color: var(--color-button-numeric);
color: var(--color-primary);
width: var(--width-button);
height: 95px;
border: none;
user-select: none;
}
.primary-op {
font-size: 35px;
background-color: var(--color-button-operation-primary);
}
.secondary-op {
background-color: var(--color-button-operation-secondary);
}
.secondary-op--clicked {
background-color: var(--color-button-operation-secondary-clicked);
}
.primary-op--clicked {
background-color: var(--color-button-operation-primary-clicked);
}
.primary-op--selected {
border: var(--color-button-primary-border) 4px solid;
border-right: none;
}
.numeric--clicked {
background-color: var(--color-button-numeric-clicked);
}
.double {
width: var(--width-button-double);
}