-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyles.css
146 lines (124 loc) · 2.69 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
body {
font-family: sans-serif;
margin: 0;
padding: 0;
background-size: cover;
background-repeat: no-repeat;
display: flex;
flex-direction: column;
min-height: 100vh;
position: relative;
}
body.dark-mode {
background-color: #000000;
color: white;
}
body.light-mode {
background-color: white;
color: black;
}
header {
padding: 10px 20px;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: space-between;
background: transparent; /* Make background transparent */
border-bottom: 1px solid #ccc; /* Optional: add a border if needed */
}
header.dark-mode {
background-color: #000000;
}
header.light-mode {
background-color: #f1f1f1;
}
.logo {
font-size: 24px; /* Adjust size as needed */
font-weight: bold;
color: inherit;
margin-left: 20px; /* Space from the left edge */
}
.mode-toggle-icon {
font-size: 30px;
cursor: pointer;
color: inherit;
margin-right: 20px; /* Space from the right edge */
}
main {
text-align: center;
padding: 5% 10%;
flex: 1;
}
.clock-container {
display: flex;
flex-direction: column;
align-items: center;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.day-date-container {
display: flex;
justify-content: center;
align-items: center;
padding: 0 10px; /* Padding between day and date */
}
.day-date-container h1 {
margin: 0 10px; /* Space between day and date */
font-size: 3vw;
}
#day, #date {
font-size: 5vw;
}
#time {
font-size: 22vw; /* Increased font size for time */
margin: 1% 0;
}
.fullscreen-btn {
margin-top: 10px;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
footer {
text-align: center;
padding: 1px;
width: 100%; /* Ensure footer spans the full width */
position: fixed;
bottom: 0;
z-index: 999; /* Ensure footer is visible */
}
footer.dark-mode {
background-color: #000000;
color: white;
}
footer.light-mode {
background-color: #f1f1f1;
color: black;
}
/* New CSS for responsive design */
@media only screen and (max-width: 768px) and (orientation: landscape) {
#time {
font-size: 25vw; /* Adjust as needed to fit the screen */
}
footer {
width: 0; /* Reduce footer width to negligible */
padding: 0;
overflow: hidden;
}
}
@media only screen and (max-width: 768px) and (orientation: portrait) {
#time {
font-size: 30vw; /* Adjust as needed to fit the screen */
}
}
@media only screen and (min-width: 769px) {
#time {
font-size: 15vw; /* Adjust as needed to fit the screen */
}
}