-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
121 lines (101 loc) · 1.73 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
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
115
116
117
118
119
120
121
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
padding: 0 1.5em;
font-family: 'Orbitron', sans-serif;
}
button {
cursor: pointer;
border-radius: 1em;
height: 45px;
width: 45px;
border: none;
border-radius: 50%;
}
.calculator {
background-color: #1c1c1c;
padding: 1.5em;
border-radius: 1em;
max-width: 70vw;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
.display {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
background-color: #505050;
border-radius: 20px;
padding: 0 10px;
height: 80px;
font-size: 2rem;
margin-bottom: 20px;
width: 100%;
color: #fff;
}
.buttons__utility {
display: flex;
margin-bottom: 1.5em;
}
.buttons__utility button {
width: 60px;
border-radius: 1.5em;
margin: 0.15em;
}
.buttons__math {
display: flex;
}
.buttons__math button {
aspect-ratio: 1;
}
.buttons__numbers {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
max-width: 150px;
}
.number {
margin: 0.15em;
}
.button__equals {
margin: 0.15em;
font-size: 1.2rem;
}
.buttons__operators {
display: flex;
flex-direction: column;
}
.operator {
background-color: #ff9500;
font-size: 1.2rem;
margin: 0.15em;
}
@media (prefers-color-scheme: dark) {
body {
background-color: #1b1b1b;
}
.calculator {
background-color: black;
}
button {
background-color: #1b1b1b;
color: white;
}
}
@media screen and (min-width: 768px) {
.display {
max-width: 25vw;
}
}