The restart bar is a pill at the bottom, and the offline title reads Server restarting
Browse files at this commit2ba0cda9ccf5e430bca3f092f4a2a5142b10ed31Parent: 2b69914- fix
- the restart bar is a pill at the bottom, and the offline title reads Server restarting
2 changed files +12 -8
- crates/forge-web/assets/offline.html +2 -2
- style/_link.scss +10 -6
crates/forge-web/assets/offline.htmlmodified+2 -2
| @@ -12,8 +12,8 @@ | ||
| 12 | 12 | <body> |
| 13 | 13 | <main class="link-offline" role="status" aria-live="polite"> |
| 14 | 14 | <p class="link-offline-mark">Forge</p> |
| 15 | -<p class="link-offline-text" lang="en">Server restarting… your page is kept</p> | |
| 16 | -<p class="link-offline-text" lang="tr">Sunucu yeniden başlıyor… sayfanız korunuyor</p> | |
| 15 | +<p class="link-offline-text" lang="en">Server restarting…</p> | |
| 16 | +<p class="link-offline-text" lang="tr">Sunucu yeniden başlıyor…</p> | |
| 17 | 17 | <p class="link-offline-sub" lang="en">This page loads again by itself when the server is back.</p> |
| 18 | 18 | <p class="link-offline-sub" lang="tr">Sunucu geri gelince bu sayfa kendiliğinden yeniden yüklenir.</p> |
| 19 | 19 | </main> |
style/_link.scssmodified+10 -6
| @@ -1,19 +1,23 @@ | ||
| 1 | 1 | // The restart bar (shown while the server is down, nav.js) and the offline page (service worker). |
| 2 | 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 | 5 | .link-bar { |
| 5 | 6 | position: fixed; |
| 6 | - top: 0; | |
| 7 | - left: 0; | |
| 8 | - right: 0; | |
| 7 | + bottom: 16px; | |
| 8 | + left: 50%; | |
| 9 | 9 | z-index: 1000; |
| 10 | 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 | 16 | text-align: center; |
| 13 | - font-size: 0.875rem; | |
| 17 | + font-size: 0.8125rem; | |
| 18 | + line-height: 1.4; | |
| 14 | 19 | color: var(--text); |
| 15 | 20 | background: var(--accent-soft); |
| 16 | - border-bottom: 1px solid var(--accent); | |
| 17 | 21 | overflow-wrap: anywhere; |
| 18 | 22 | } |
| 19 | 23 |