diff options
| -rw-r--r-- | documentation/themes/beastie/assets/styles/global.scss | 16 | ||||
| -rw-r--r-- | documentation/themes/beastie/layouts/index.html | 19 |
2 files changed, 25 insertions, 10 deletions
diff --git a/documentation/themes/beastie/assets/styles/global.scss b/documentation/themes/beastie/assets/styles/global.scss index 88554f711e..17a496ffd0 100644 --- a/documentation/themes/beastie/assets/styles/global.scss +++ b/documentation/themes/beastie/assets/styles/global.scss @@ -141,12 +141,14 @@ body { flex-direction: column; text-decoration: none; - h5 { + .card-title { color: var(--global-font-color); font-weight: 700; font-size: 22px; margin: 0px 0px 8px 0px; border-bottom: 0px; + padding-top: 0.1rem; + padding-bottom: 0.5rem; } p { @@ -213,6 +215,18 @@ ul.language-list { font-weight: 700; } +.visually-hidden { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} + h1, h2, h3, diff --git a/documentation/themes/beastie/layouts/index.html b/documentation/themes/beastie/layouts/index.html index 3789a3d1b0..7ae440920f 100644 --- a/documentation/themes/beastie/layouts/index.html +++ b/documentation/themes/beastie/layouts/index.html @@ -8,59 +8,60 @@ {{ $downloadurl = printf "%s/%s/" $.Site.Params.websiteURL "where" }} {{ end }} <main class="main-wrapper"> + <h1 class="visually-hidden">{{ .Title }}</h1> {{ partial "global-search.html" . }} <section class="cards-container"> <div class="card"> <a href={{ "books/handbook/basics" | absLangURL }}> - <h5>{{ i18n "getting-started" }}</h5> + <h3 class="card-title">{{ i18n "getting-started" }}</h3> <p>{{ i18n "learn-basics" }}</p> </a> </div> <div class="card"> <a href={{ "books/handbook/" | absLangURL }}> - <h5>{{ i18n "handbook" }}</h5> + <h3 class="card-title">{{ i18n "handbook" }}</h3> <p>{{ i18n "handbook-desc" }}</p> </a> </div> <div class="card"> <a href={{ "books/porters-handbook/" | absLangURL }}> - <h5>{{ i18n "porters-handbook" }}</h5> + <h3 class="card-title">{{ i18n "porters-handbook" }}</h3> <p>{{ i18n "porters-handbook-desc" }}</p> </a> </div> <div class="card"> <a href={{ "books/faq/" | absLangURL }}> - <h5>{{ i18n "faq" }}</h5> + <h3 class="card-title">{{ i18n "faq" }}</h3> <p>{{ i18n "faq-desc" }}</p> </a> </div> <div class="card"> <a href="https://docs.FreeBSD.org/en/books/fdp-primer/"> - <h5>{{ i18n "fdp" }}</h5> + <h3 class="card-title">{{ i18n "fdp" }}</h3> <p>{{ i18n "fdp-desc" }}</p> </a> </div> <div class="card"> <a href={{ "books" | absLangURL }}> - <h5>{{ i18n "books" }}</h5> + <h3 class="card-title">{{ i18n "books" }}</h3> <p>{{ i18n "books-list" }}</p> </a> </div> <div class="card"> <a href={{ "articles" | absLangURL }}> - <h5>{{ i18n "articles" }}</h5> + <h3 class="card-title">{{ i18n "articles" }}</h3> <p>{{ i18n "articles-list" }}</p> </a> </div> <div class="card"> <a href="https://man.FreeBSD.org/cgi/man.cgi"> - <h5>{{ i18n "manual-pages" }}</h5> + <h3 class="card-title">{{ i18n "manual-pages" }}</h3> <p>{{ i18n "manual-pages-desc" }}</p> </a> </div> <div class="card"> <a href="https://docs-archive.freebsd.org"> - <h5>{{ i18n "docs-archive" }}</h5> + <h3 class="card-title">{{ i18n "docs-archive" }}</h3> <p>{{ i18n "docs-archive-desc" }}</p> </a> </div> |
