-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
95 lines (95 loc) · 1.61 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
* {
padding: 0;
margin: 0;
}
body {
background-color: white;
}
.image-container {
margin: 1rem auto 0;
width: 40vw;
height: 40vw;
background-image: url("images/clock.png");
background-repeat: no-repeat;
background-size: contain;
background-position: center center;
position: relative;
}
.hours {
position: absolute;
width: 1.75%;
height: 24%;
border-radius: 10px;
background-color: red;
z-index: 2;
top: 26%;
left: 50%;
transform-origin: bottom;
}
.minutes {
position: absolute;
width: 1.5%;
height: 30%;
border-radius: 10px;
background-color: green;
z-index: 2;
top: 20%;
left: 50%;
transform-origin: bottom;
}
.seconds {
position: absolute;
width: 1.25%;
height: 35%;
border-radius: 10px;
background-color: blue;
z-index: 2;
top: 15%;
left: 50%;
transform-origin: bottom;
}
.digital-clock {
position: absolute;
height: 10%;
width: 35%;
left: 32.5%;
top: 28%;
z-index: 1;
background-color: yellow;
display: flex;
justify-content: space-evenly;
align-items: center;
}
.digital-clock div {
color: white;
height: 80%;
width: 20%;
background-color: black;
display: flex;
justify-content: center;
align-items: center;
}
.night {
background-color: black;
filter: invert(1);
}
@media screen and (max-width: 778px) {
.digital-clock div {
font-size: small;
}
}
@media screen and (max-width: 660px) {
.digital-clock div {
font-size: smaller;
}
}
@media screen and (max-width: 550px) {
.digital-clock div {
font-size: x-small;
}
}
@media screen and (max-width: 460px) {
.digital-clock div {
font-size: xx-small;
}
}