瀏覽代碼

fix styling

marek 1 月之前
父節點
當前提交
6a2b957089
共有 3 個文件被更改,包括 7 次插入7 次删除
  1. 1 1
      assets/css/style.css
  2. 3 3
      templates/en/partials/topbar.eta
  3. 3 3
      templates/sk/partials/topbar.eta

+ 1 - 1
assets/css/style.css

@@ -68,7 +68,7 @@ header {
     height: 1em;
 }
 
-header .middle {
+header .end {
     font-size: 1.2em;
     display: flex;
     gap: 1em;

+ 3 - 3
templates/en/partials/topbar.eta

@@ -48,12 +48,12 @@
 <header>
     <p><%~ timeIcon %> <span id="topbarTime"><%= date.toLocaleString('en-US', { hour: 'numeric', minute: 'numeric', second: 'numeric', hour12: true }) %></span></p>
     
-    <div class="middle">
+    <p><%~ dateIcon %> <span id="topbarDate"><%= date.toLocaleDateString('en-US', { weekday: "long", year: "numeric", month: "long", day: "numeric" }) %></span></p>
+    
+    <div class="end">
         <a role="button" href="/"><%~ skFlag %></a>
         <a role="button" href="/en/settings"><%~ settingsIcon %></a>
     </div>
-    
-    <p><%~ dateIcon %> <span id="topbarDate"><%= date.toLocaleDateString('en-US', { weekday: "long", year: "numeric", month: "long", day: "numeric" }) %></span></p>
 
     <script defer>
         setInterval(() => {

+ 3 - 3
templates/sk/partials/topbar.eta

@@ -45,13 +45,13 @@
 <header>
     <p><%~ timeIcon %> <span id="topbarTime"><%= date.toLocaleString('sk-SK', { hour: 'numeric', minute: 'numeric', second: 'numeric' }) %></span></p>
     
-    <div class="middle">
+    <p><%~ dateIcon %> <span id="topbarDate"><%= date.toLocaleDateString('sk-SK', { weekday: "long", year: "numeric", month: "long", day: "numeric" }) %></span></p>
+    
+    <div class="end">
         <a role="button" href="/en"><%~ usFlag %></a>
         <a role="button" href="/settings"><%~ settingsIcon %></a>
     </div>
     
-    <p><%~ dateIcon %> <span id="topbarDate"><%= date.toLocaleDateString('sk-SK', { weekday: "long", year: "numeric", month: "long", day: "numeric" }) %></span></p>
-
     <script defer>
         setInterval(() => {
             const topbarTime = document.querySelector("#topbarTime")