-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
121 lines (121 loc) · 2.31 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@600&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Orbitron", sans-serif;
--white: #f0f0f2;
--greywhite: #e3e3e3;
--shadowwhite: #ffffff;
--shadowgray: #d8d8da;
--lightgray: #bdc7d5;
--shadowgrey: #35363b;
--grayblack: #2e2f33;
--shadowblack: #27282b;
--skyblue: #5d8dc3;
}
body {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
color: var(--lightgray);
transition: all 0.3s ease-in-out;
}
body.dark {
background: var(--grayblack);
color: var(--white);
}
.button-container {
display: flex;
justify-content: center;
margin-top: 0.625rem;
}
.toggle {
height: 2.1875rem;
width: 4.375rem;
border-radius: 6.25rem;
background: var(--white);
box-shadow: inset -11px -11px 22px var(--shadowgray),
inset 11px 11px 22px var(--shadowwhite);
cursor: pointer;
}
.toggle::before {
content: "";
position: absolute;
width: 1.875rem;
height: 1.875rem;
background-color: var(--skyblue);
display: flex;
border-radius: 50%;
margin: 0.125rem;
transition: all 0.3s ease-in-out;
}
.toggle.active::before {
left: calc(100% - 50%);
background-color: var(--grayblack);
}
.wrapper {
padding: 3.125rem;
border-radius: 50px;
background: var(--white);
box-shadow: inset -11px -11px 22px var(--shadowgray),
inset 11px 11px 22px var(--shadowwhite);
transition: all 0.3s ease-in-out;
}
.wrapper.dark {
border-radius: 50px;
background: var(--grayblack);
box-shadow: inset -11px -11px 22px var(--shadowblack),
inset 11px 11px 22px var(--shadowgrey);
transition: all 0.3s ease-in-out;
}
#weekends {
padding: 0.625rem;
border: 2px solid var(--greywhite);
border-radius: 20px;
}
#weekends.dark {
background: var(--grayblack);
}
.day {
padding: 0.625rem;
}
#today_date {
padding-top: 0.9375rem;
}
.seconds {
padding: 0.3125rem;
}
#current_time {
font-size: 3.75rem;
}
.ampm {
color: var(--skyblue);
font-size: 1.5625rem;
}
footer {
padding: 1.25rem;
}
footer a {
text-decoration: none;
color: var(--skyblue);
}
body,
#weekends,
.warpper {
background: var(--white);
}
footer,
.clock {
text-align: center;
}
#today_date,
.seconds {
font-size: 1.25rem;
}
#current_time,
.ampm {
text-shadow: 1px 0 6px;
}