Skip to content

Commit 13d4e7d

Browse files
committed
Updated UI 1.5 Added Done Final
Signed-off-by: Someshdiwan <[email protected]>
1 parent b694d2e commit 13d4e7d

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

site/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
</head>
9797
<body>
9898

99-
<!-- DarkMode + Time Zone Toggle Container -->
99+
//Dark Mode and Time
100100
<div id="theme-time-container">
101101
<button id="dark-mode-btn" class="dark-toggle" onclick="toggleDarkMode()">🌓</button>
102102
<button id="tz-toggle-btn" class="time-toggle" onclick="toggleTimezone()">IST</button>

site/assets/style.css

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,20 +185,24 @@ body {
185185

186186
/* Dark‑Mode Toggle & Live‑Time Container */
187187
#theme-time-container {
188-
max-width: 320px;
189-
margin: 1rem auto;
190-
padding: 0.5rem 1rem;
188+
position: fixed;
189+
top: 1rem;
190+
right: 1rem; /* move to the right */
191+
left: auto; /* ensure no left offset */
192+
display: flex;
193+
align-items: center;
194+
gap: 0.5rem;
191195
background-color: var(--sidebar-bg);
192196
color: var(--text-color);
197+
padding: 0.5rem 1rem;
193198
border-radius: 8px;
194-
display: flex;
195-
justify-content: space-between;
196-
align-items: center;
197199
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
200+
font-size: 0.9rem;
201+
z-index: 1002;
198202
transition: background-color 0.3s, color 0.3s;
199-
font-size: 0.95rem;
200203
}
201204

205+
202206
body.dark-mode #theme-time-container {
203207
background-color: var(--sidebar-bg);
204208
color: var(--text-color);

0 commit comments

Comments
 (0)