From f4539842a00e8675bbf5f65c6f27c2e0eda8e4fd Mon Sep 17 00:00:00 2001 From: Davide Marchegiani Date: Sun, 22 Sep 2024 01:29:05 +1000 Subject: [PATCH] Removed 'Home' button from header tabs. Added link to homepage to ACCESS-Hive Docs title. Adjusted responsiveness. --- docs/css/access-nri.css | 55 ++++++++-------------------------- mkdocs.yml | 3 -- overrides/partials/header.html | 11 +++---- 3 files changed, 17 insertions(+), 52 deletions(-) diff --git a/docs/css/access-nri.css b/docs/css/access-nri.css index cd23bb831..8e3576a65 100644 --- a/docs/css/access-nri.css +++ b/docs/css/access-nri.css @@ -314,7 +314,7 @@ */ /* Grid */ .md-grid { - max-width: 68rem; + max-width: 99%; } /* Article */ .md-content__inner { @@ -774,7 +774,6 @@ details.code { justify-content: center; align-items: stretch; gap: 0.1rem; - height: 7rem; } .md-footer-meta.md-typeset.md-grid > * { @@ -865,16 +864,6 @@ details.code { flex-shrink: 1; position: relative; } -.md-header__img { - justify-content: center; - align-items: center; - margin: 0 0.2em 0 0.3em; - flex-shrink: 1; - position: relative; -} -.md-header__img img { - max-height: 2rem; -} /* Main logo */ .md-header__button:hover { @@ -933,15 +922,13 @@ details.code { Header Buttons CSS - "Hive Forum", "ACCESS-NRI", "Contribute" */ .header-btn-container { - flex-grow: 1; - flex-shrink: 1; max-width: 20rem; display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: flex-end; align-items: stretch; - gap: 1rem; + gap: 0.8rem; margin: 0 .5rem; } @@ -953,6 +940,7 @@ details.code { flex-wrap: nowrap; justify-content: center; align-items: center; + gap: 0.2rem; border-radius: 0.3rem; border: 1px solid; padding: 0 0.3em; @@ -1313,22 +1301,13 @@ img.intro-img { } } - -@media screen and (width <= 608px) { - /* Footer */ - .md-footer-meta.md-typeset.md-grid { - height: 11rem; - } -} - -@media screen and (width > 600px) { +@media screen and (width > 650px) { .small-card { max-height: 5rem; max-width: 40%; } } - -@media screen and (width <= 600px) { +@media screen and (width <= 650px) { .vertical-card { width: 40%; } @@ -1362,10 +1341,6 @@ img.intro-img { flex-wrap: wrap; } - /* Forum, ACCESS-NRI and GitHub buttons */ - .header-btn-container { - flex-grow: 0; - } /* Make squared btn */ .header-btn { flex-basis: 0; @@ -1409,20 +1384,16 @@ img.intro-img { } } -@media screen and (width > 400px) { - /* Hide logo in title */ - .md-header__img { - display: none; +@media screen and (width <= 450px) { + /* Hide title in header */ + .md-header__title { + visibility: hidden; } } -@media screen and (width <= 400px) { - /* Show logo in title */ - .md-header__title { - display: none; - } - /* Hide text in title */ - .md-header__img { - display: flex; +/* Overwrites build */ +@media screen and (max-width: 76.1875em) { + .md-header__button.md-logo { + display: block; } } \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index fd48a2746..052f04c27 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -92,9 +92,6 @@ markdown_extensions: # Navigation nav: - - Home: - - index.md - - Getting Started: - getting_started/index.md - Set Up your NCI Account: getting_started/set_up_nci_account.md diff --git a/overrides/partials/header.html b/overrides/partials/header.html index e17185a2a..f0a711888 100644 --- a/overrides/partials/header.html +++ b/overrides/partials/header.html @@ -28,17 +28,14 @@ {% endif %}