Skip to content

Commit bb7aa53

Browse files
committed
Updated UI 1.7 CSS
Signed-off-by: Someshdiwan <[email protected]>
1 parent 7d31ee7 commit bb7aa53

File tree

1 file changed

+33
-21
lines changed

1 file changed

+33
-21
lines changed

site/assets/style.css

Lines changed: 33 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* 1. Color Variables & DarkMode Overrides*/
1+
/* 1. Color Variables & Dark-Mode Overrides */
22
:root {
33
--bg-color: #ffffff;
44
--text-color: #000000;
@@ -29,7 +29,7 @@ body {
2929
transition: background-color 0.3s ease, color 0.3s ease;
3030
}
3131

32-
/* 2. Sidebar Styles*/
32+
/* 2. Sidebar Styles */
3333
.sidebar {
3434
background-color: var(--sidebar-bg);
3535
width: 260px;
@@ -60,7 +60,7 @@ body {
6060
background-color: var(--hover-bg);
6161
}
6262

63-
/* 3. Main Content Area*/
63+
/* 3. Main Content Area */
6464
.content {
6565
margin-left: 260px;
6666
padding: 1rem;
@@ -71,9 +71,7 @@ body {
7171
margin-left: 0;
7272
}
7373

74-
/*
75-
4. Toggle Buttons
76-
*/
74+
/* 4. Toggle Buttons */
7775
.toggle-btn {
7876
position: fixed;
7977
top: 1rem;
@@ -93,10 +91,6 @@ body {
9391
}
9492

9593
.dark-toggle {
96-
position: fixed;
97-
top: 1rem;
98-
right: 1rem;
99-
z-index: 1001;
10094
background: var(--button-bg);
10195
color: var(--button-text);
10296
border: none;
@@ -110,8 +104,7 @@ body {
110104
background-color: var(--hover-bg);
111105
}
112106

113-
/* 5. Fade‑In Animation*/
114-
107+
/* 5. Fade-In Animation */
115108
.fade-in {
116109
animation: fadeIn 0.4s ease-in;
117110
}
@@ -121,8 +114,7 @@ body {
121114
to { opacity: 1; transform: translateY(0); }
122115
}
123116

124-
125-
/* 6. Responsive Sidebar (Mobile)*/
117+
/* 6. Responsive Sidebar (Mobile) */
126118
@media (max-width: 768px) {
127119
.sidebar {
128120
transform: translateX(-100%);
@@ -137,7 +129,7 @@ body {
137129
}
138130
}
139131

140-
/*7. Image Layout Helpers*/
132+
/* 7. Image Layout Helpers */
141133
.image-row {
142134
display: flex;
143135
flex-wrap: wrap;
@@ -183,12 +175,11 @@ body {
183175
box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
184176
}
185177

186-
/* DarkMode Toggle & LiveTime Container */
178+
/* 8. Dark-Mode Toggle & Live-Time Container */
187179
#theme-time-container {
188180
position: fixed;
189181
top: 1rem;
190-
right: 1rem; /* move to the right */
191-
left: auto; /* ensure no left offset */
182+
right: 1rem;
192183
display: flex;
193184
align-items: center;
194185
gap: 0.5rem;
@@ -202,7 +193,28 @@ body {
202193
transition: background-color 0.3s, color 0.3s;
203194
}
204195

205-
body.dark-mode #theme-time-container {
206-
background-color: var(--sidebar-bg);
207-
color: var(--text-color);
196+
/* Alignment Fix: Dark Mode Button on Left, Time Elements on Right */
197+
#theme-time-container .dark-toggle {
198+
position: static; /* Remove fixed positioning to follow flex layout */
199+
margin-right: auto; /* Push the dark mode button to the left */
200+
}
201+
202+
/* Optional: Consistent Button Styling in Container */
203+
#theme-time-container button {
204+
background: var(--button-bg);
205+
color: var(--button-text);
206+
border: none;
207+
padding: 0.5rem 1rem;
208+
border-radius: 5px;
209+
cursor: pointer;
210+
transition: background-color 0.3s ease;
208211
}
212+
213+
#theme-time-container button:hover {
214+
background-color: var(--hover-bg);
215+
}
216+
217+
/* Optional: Style the Time Display */
218+
#live-time {
219+
padding: 0.5rem; /* Matches button padding for consistency */
220+
}

0 commit comments

Comments
 (0)