-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
97 lines (94 loc) · 1.67 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
* {
font-family: monospace;
font-size: 120%;
box-sizing: border-box;
}
main {
display: flex;
flex-direction: column;
width: 70%;
margin: auto;
background-color: #000f0f;
padding: .5em;
}
h1 {
text-align: center;
}
.display {
background-color: #338888;
border: 1px solid #001010;
color: white;
text-align: end;
padding: .5em;
}
.keys {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(5, 1fr);
}
button {
transition: all 0.5s;
position: relative;
}
#clear, .operation, .digit, .manipulation {
border-radius: 0px;
border: 1px solid #001010;
padding: .2em;
}
#clear {
grid-column: 1 / span 2;
background-color: #dddddd;
}
.operation {
background-color: #ddeeee;
}
.manipulation {
background-color: #eeeeee;
}
.digit {
background-color: #ffffff;
}
footer {
display: flex;
justify-content: center;
margin: 1.2em;
}
#startAnewBtn {
display: none;
background-color: white;
border: 2px solid #001010;
text-transform: uppercase;
padding: .3em .5em;
}
/* functional classes */
.brokenDisplay {
background-color: #b22222;
position: relative;
transform: translate(0px, 150px) rotate(-25deg) scale(1.1);
z-index: 3;
}
.brokenBckground {
background-color: #000000;
}
.brokenBtns {
background-color: #ffd700;
}
#startAnewBtn.emergeFreshStartBtn {
display: block;
z-index: 3;
}
@media screen and (min-width: 1000px) {
main {
width: 50%;
}
}
@media screen and (max-width: 800px) {
main {
width: 80%;
}
}
@media screen and (max-width: 600px) {
main {
width: 95%;
}
}