forge
Explore
Log in

Don't you dare go Hollow

The restart bar is a pill at the bottom, and the offline title reads Server restarting

Browse files at this commit

2ba0cda9ccf5e430bca3f092f4a2a5142b10ed31Ahmet Kaan GümüşParent: 2b69914
  • fix
    • the restart bar is a pill at the bottom, and the offline title reads Server restarting
Show full message
🐛 fix: the restart bar is a pill at the bottom, and the offline title reads Server restarting
crates/forge-web/assets/offline.htmlmodified+2 -2
@@ -12,8 +12,8 @@
12 <body>12 <body>
13 <main class="link-offline" role="status" aria-live="polite">13 <main class="link-offline" role="status" aria-live="polite">
14 <p class="link-offline-mark">Forge</p>14 <p class="link-offline-mark">Forge</p>
15-<p class="link-offline-text" lang="en">Server restarting&hellip; your page is kept</p>15+<p class="link-offline-text" lang="en">Server restarting&hellip;</p>
16-<p class="link-offline-text" lang="tr">Sunucu yeniden başlıyor&hellip; sayfanız korunuyor</p>16+<p class="link-offline-text" lang="tr">Sunucu yeniden başlıyor&hellip;</p>
17 <p class="link-offline-sub" lang="en">This page loads again by itself when the server is back.</p>17 <p class="link-offline-sub" lang="en">This page loads again by itself when the server is back.</p>
18 <p class="link-offline-sub" lang="tr">Sunucu geri gelince bu sayfa kendiliğinden yeniden yüklenir.</p>18 <p class="link-offline-sub" lang="tr">Sunucu geri gelince bu sayfa kendiliğinden yeniden yüklenir.</p>
19 </main>19 </main>
style/_link.scssmodified+10 -6
@@ -1,19 +1,23 @@
1 // The restart bar (shown while the server is down, nav.js) and the offline page (service worker).1 // The restart bar (shown while the server is down, nav.js) and the offline page (service worker).
2 // Colours come from the tokens, so light and dark follow the theme.2 // Colours come from the tokens, so light and dark follow the theme.
3 3
4+// A small pill at the bottom centre: it covers no part of the header or the page's top.
4 .link-bar {5 .link-bar {
5 position: fixed;6 position: fixed;
6- top: 0;7+ bottom: 16px;
7- left: 0;8+ left: 50%;
8- right: 0;
9 z-index: 1000;9 z-index: 1000;
10 box-sizing: border-box;10 box-sizing: border-box;
11- padding: 8px 16px;11+ transform: translateX(-50%);
12+ max-width: calc(100% - 32px);
13+ padding: 6px 14px;
14+ border: 1px solid var(--accent);
15+ border-radius: 999px;
12 text-align: center;16 text-align: center;
13- font-size: 0.875rem;17+ font-size: 0.8125rem;
18+ line-height: 1.4;
14 color: var(--text);19 color: var(--text);
15 background: var(--accent-soft);20 background: var(--accent-soft);
16- border-bottom: 1px solid var(--accent);
17 overflow-wrap: anywhere;21 overflow-wrap: anywhere;
18 }22 }
19 23