diff options
| author | Leitwolf | 2026-11-16 14:49:23 +0300 |
|---|---|---|
| committer | GitHub | 2026-11-16 14:49:23 +0300 |
| commit | 324048967d1fb198e3489b1722ca1ff317338550 (patch) | |
| tree | e270ad6dc86200cc79cbdccfa1ef6de1da8aff0d /app/pages | |
| parent | 45c1bb14326cbee8fe57c6f639550e8eadd81f0a (diff) | |
| parent | 4ee77681379619b3fab7b8b33446a67164216cc8 (diff) | |
| download | tazel.net-main.tar.gz | |
Rewrite the site for the Tazel of C, C++, Objective-C, Objective-C++ and Zig
Diffstat (limited to 'app/pages')
| -rw-r--r-- | app/pages/[[locale]]/docs/[...slug].vue | 4 | ||||
| -rw-r--r-- | app/pages/[[locale]]/index.vue | 26 |
2 files changed, 9 insertions, 21 deletions
diff --git a/app/pages/[[locale]]/docs/[...slug].vue b/app/pages/[[locale]]/docs/[...slug].vue index 84ec522..a0490a0 100644 --- a/app/pages/[[locale]]/docs/[...slug].vue +++ b/app/pages/[[locale]]/docs/[...slug].vue @@ -247,7 +247,7 @@ h1 { text-decoration: none; } -@media (max-width: 1180px) { +@media (width <= 1180px) { .docs-layout { grid-template-columns: 240px minmax(0, 1fr); } @@ -257,7 +257,7 @@ h1 { } } -@media (max-width: 860px) { +@media (width <= 860px) { .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 0; diff --git a/app/pages/[[locale]]/index.vue b/app/pages/[[locale]]/index.vue index c6d347a..90d7a12 100644 --- a/app/pages/[[locale]]/index.vue +++ b/app/pages/[[locale]]/index.vue @@ -4,13 +4,7 @@ <script setup lang="ts"> import { home, projectSample, terminalSample } from "~/content/home"; import { localeOfPrefix } from "~/content/locales"; -import { - firstDocPage, - latestChannel, - latestRelease, - releaseNotes, - repository, -} from "~/content/site"; +import { firstDocPage, nextRelease, releaseNotes, repository } from "~/content/site"; definePageMeta({ validate: (route) => @@ -35,9 +29,7 @@ const headline = computed(() => { <div class="shell hero-grid"> <div class="hero-copy"> <a class="release" :href="releaseNotes"> - <span class="badge" - >{{ text.release.replace("{version}", latestRelease) }} · {{ latestChannel }}</span - > + <span class="badge">{{ text.release.replace("{version}", nextRelease) }}</span> <span class="arrow" aria-hidden="true">→</span> </a> <p class="eyebrow">{{ text.eyebrow }}</p> @@ -150,12 +142,6 @@ const headline = computed(() => { text-decoration: none; } -/* The arrow points onward in the reading direction. */ -:root[dir="rtl"] .arrow { - display: inline-block; - transform: scaleX(-1); -} - .badge { padding: 2px 10px; border-radius: 999px; @@ -243,7 +229,9 @@ h1 { .terminal pre { margin: 0; padding: 14px 18px 20px; - overflow-x: auto; + /* The real output of Tazel is wider than the box: its lines wrap instead of hiding their end. */ + white-space: pre-wrap; + overflow-wrap: anywhere; color: #dcebee; font-size: 0.88rem; line-height: 1.7; @@ -360,7 +348,7 @@ h1 { color: #c9dde1; } -@media (max-width: 960px) { +@media (width <= 960px) { .hero-grid, .sample { grid-template-columns: 1fr; @@ -379,7 +367,7 @@ h1 { } } -@media (max-width: 640px) { +@media (width <= 640px) { .hero { padding-block: 56px 64px; } |