File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 9696</ head >
9797< body >
9898
99- <!-- Dark‑ Mode + 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 >
Original file line number Diff line number Diff 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+
202206body .dark-mode # theme-time-container {
203207 background-color : var (--sidebar-bg );
204208 color : var (--text-color );
You can’t perform that action at this time.
0 commit comments