-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
167 lines (142 loc) · 2.81 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
body {
display: flex;
align-items: center;
justify-content: center;
background-image: url("https://cdn.pixabay.com/photo/2015/12/03/08/50/paper-1074131_960_720.jpg");
background-position: center; /* Center the image */
background-repeat: no-repeat; /* Do not repeat the image */
background-size: cover; /* Resize the background image to cover the entire container */
height: 100vh;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
.container {
border: 3px solid darkgoldenrod;
background-color: darkslategray;
border-top-left-radius: 50%;
border-top-right-radius: 50%;
border-bottom-left-radius: 30%;
border-bottom-right-radius: 30%;
width: 60vw;
text-align: center;
position: relative;
box-shadow: inset -0.3em -0.25em rgba(0, 0, 0, 0.2), 0.3em 0.25em rgba(0, 0, 0, 0.15);
}
.disc {
transform-origin: center;
width: 45vw;
height: 45vw;
margin: 5%;
}
.screen {
background-color: darkseagreen;
color: white;
text-transform: uppercase;
font-weight: 600;
font-family: 'Courier New', Courier, monospace;
letter-spacing: 2px;
border-radius: 5px;
padding: 0.3rem;
width: 35%;
margin-bottom: 1rem;
box-shadow: inset -0.1em -0.15em rgba(0, 0, 0, 0.2);
}
.counter {
margin-block-end: 0;
margin-block-start: 0;
}
.buttons {
display: flex;
justify-content: center;
align-items: center;
}
.button {
text-align: center;
color: rgb(71, 66, 105);
text-transform: uppercase;
background-color: whitesmoke;
border: none;
padding: 0.4rem;
border-radius: 50%;
cursor: pointer;
box-shadow: inset 0 -0.2em rgba(0, 0, 0, 0.2);
outline: 0;
transition: 0.2s;
will-change: transform;
position: absolute;
}
.play {
bottom: 28%;
left: 3%;
}
.pause {
bottom: 8%;
left: 9%;
}
.stop {
bottom: 28%;
right: 3%;
}
.reverse {
bottom: 8%;
right: 9%;
}
.button:active {
transform: scale(0.9);
}
@media (min-width: 540px) {
.button {
padding: 0.9rem;
}
.play {
left: 2%;
}
.pause {
left: 13%;
}
.stop {
right: 2%;
}
.reverse {
right: 13%;
}
}
@media (min-width: 768px) {
.container {
width: 40vw;
}
.disc {
width: 35vw;
height: 35vw;
}
.play {
bottom: 23%;
left: 2%;
}
.pause {
left: 10%;
}
.stop {
bottom: 23%;
right: 2%;
}
.reverse {
right: 10%;
}
.screen {
padding: 0.5rem 1rem;
}
}
@media (min-width: 1200px) {
.button {
padding: 1rem;
font-size: 1.5rem;
}
.play {
bottom: 20%;
left: 5%;
}
.stop {
bottom: 20%;
right: 5%;
}
}