From f18c9628aa437631d0ff205222e04c9749251a3c Mon Sep 17 00:00:00 2001 From: Doug Date: Wed, 23 Aug 2023 15:48:20 +0200 Subject: [PATCH 1/4] initial navbar --- _assets/borg.css | 68 ++++++++++++++++++++++++++++-------------------- index.rst | 60 ------------------------------------------ rst_template.txt | 12 +++++++++ 3 files changed, 52 insertions(+), 88 deletions(-) diff --git a/_assets/borg.css b/_assets/borg.css index be4341c..141f256 100644 --- a/_assets/borg.css +++ b/_assets/borg.css @@ -8,7 +8,7 @@ header { background-color: black; padding-top: 1.5rem; padding-bottom: 1rem; - border-bottom: 2px solid #22D045; + border-bottom: 5px solid #22D045; } #logo { @@ -21,6 +21,45 @@ header h1 { text-align: center; } +nav { + display: flex; + justify-content: center; +} + +nav > ol { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 1rem; + padding: 0; +} + +nav > ol > li { + list-style: none; +} + +/* mono system font stack courtesy of https://qwtel.com/posts/software/the-monospaced-system-ui-css-font-stack/ */ +nav > ol > li > a { + font-size: 1.1rem; + font-weight: bold; + color: #22D045; + font-family: ui-monospace, + Menlo, Monaco, + "Cascadia Mono", "Segoe UI Mono", + "Roboto Mono", + "Oxygen Mono", + "Ubuntu Monospace", + "Source Code Pro", + "Fira Mono", + "Droid Sans Mono", + "Courier New", monospace; +} + +nav > ol > li > a:hover { + text-shadow: 0 0 5px black; + background: radial-gradient(#22D045, transparent); +} + main.content { max-width: 600px; padding: 0 1rem; @@ -54,33 +93,6 @@ main ul { margin: 1.5rem 0; } -#links { - padding-bottom: 1.5rem; - display: flex; - flex-wrap: wrap; - justify-content: space-around; -} - -#links a { - color: #22D045; -} - -#links a:hover .action { - background: white; - text-shadow: 0 0 5px #22D045; -} - -#links .link { - display: flex; - text-align: center; - padding: 0.75rem 1.5rem; - float: left; -} - -#links .action { - font-size: 400%; -} - .contributors { line-height: 1.5; font-style: italic; diff --git a/index.rst b/index.rst index 784247d..a77eea0 100644 --- a/index.rst +++ b/index.rst @@ -19,65 +19,5 @@ BorgBackup – Deduplicating archiver with compression and authenticated encrypt
  • Free software (BSD license).
  • Backed by a large and active open source community. - - - -
    ... and always check your backups! diff --git a/rst_template.txt b/rst_template.txt index df29e65..12ff8f8 100644 --- a/rst_template.txt +++ b/rst_template.txt @@ -18,6 +18,18 @@ +
    From 0c407dceda6aeed872c7fec890f7f34e3a5c8eb1 Mon Sep 17 00:00:00 2001 From: Doug Date: Wed, 30 Aug 2023 12:35:51 +0200 Subject: [PATCH 2/4] remove questionable slab-serif mono from system font stack --- _assets/borg.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_assets/borg.css b/_assets/borg.css index 141f256..84f41ee 100644 --- a/_assets/borg.css +++ b/_assets/borg.css @@ -52,7 +52,7 @@ nav > ol > li > a { "Source Code Pro", "Fira Mono", "Droid Sans Mono", - "Courier New", monospace; + monospace; } nav > ol > li > a:hover { From c67d12fd216f99e8d39c737c1a58f2cb83c5caba Mon Sep 17 00:00:00 2001 From: Doug Date: Wed, 30 Aug 2023 13:05:02 +0200 Subject: [PATCH 3/4] remove back buttons --- demo.rst | 2 -- releases/borg-1.1.rst | 2 -- releases/borg-1.2.rst | 2 -- releases/borg-2.0.rst | 2 -- releases/index.rst | 2 -- support/commercial.rst | 2 -- support/free.rst | 2 -- support/fund.rst | 2 -- 8 files changed, 16 deletions(-) diff --git a/demo.rst b/demo.rst index cb1189f..4222eff 100644 --- a/demo.rst +++ b/demo.rst @@ -11,8 +11,6 @@ Demo — BorgBackup

    Deduplicating archiver
    with compression and encryption

    - « back -

    BorgBackup 1.1 - basic usage

    diff --git a/releases/borg-1.1.rst b/releases/borg-1.1.rst index 87c2087..16883a8 100644 --- a/releases/borg-1.1.rst +++ b/releases/borg-1.1.rst @@ -1,8 +1,6 @@ Borg 1.1 ======== -`« back to all releases <.>`_ - :Links: `Documentation `_ · `Installation `_ · `Downloads `_ :Date: 7th October 2017 diff --git a/releases/borg-1.2.rst b/releases/borg-1.2.rst index 8a43f5d..0ac7b63 100644 --- a/releases/borg-1.2.rst +++ b/releases/borg-1.2.rst @@ -1,8 +1,6 @@ Borg 1.2 ======== -`« back to all releases <.>`_ - :Links: `Documentation `_ · `Installation `_ · `Downloads `_ :Date: 2022-02-22 diff --git a/releases/borg-2.0.rst b/releases/borg-2.0.rst index 75d9b1a..2440aaa 100644 --- a/releases/borg-2.0.rst +++ b/releases/borg-2.0.rst @@ -1,8 +1,6 @@ Borg 2.0 (preliminary infos) ============================ -`« back to all releases <.>`_ - :Links: `Documentation `_ · `Downloads `_ :Date: (testing releases out, no final release yet) diff --git a/releases/index.rst b/releases/index.rst index 586b32e..bf9b731 100644 --- a/releases/index.rst +++ b/releases/index.rst @@ -1,8 +1,6 @@ Borg release series =================== -`« back `_ - .. include:: releases.rst.inc Borg Future diff --git a/support/commercial.rst b/support/commercial.rst index c72e5ae..f49649f 100644 --- a/support/commercial.rst +++ b/support/commercial.rst @@ -1,8 +1,6 @@ Paid Support and Services ========================= -`« back `_ - Here are some commercial service and support providers for borgbackup: diff --git a/support/free.rst b/support/free.rst index 2841490..9fc2cff 100644 --- a/support/free.rst +++ b/support/free.rst @@ -1,8 +1,6 @@ Support ======= -`« back `_ - Please first read the docs, the existing issue tracker issues and mailing list posts -- a lot of stuff is already documented / explained / discussed / filed there. diff --git a/support/fund.rst b/support/fund.rst index 99361b4..1c4954c 100644 --- a/support/fund.rst +++ b/support/fund.rst @@ -1,8 +1,6 @@ Donations, Bounties and Fundraisers =================================== -`« back `_ - Overview -------- From dd3ae0ebcae7b71da18b3db03282ad93d8b737d0 Mon Sep 17 00:00:00 2001 From: Doug Date: Wed, 30 Aug 2023 15:10:14 +0200 Subject: [PATCH 4/4] add hover effect to logo, standartdise behavior with navbar --- _assets/borg.css | 17 ++++++++++++----- _assets/logo.svg | 2 +- rst_template.txt | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/_assets/borg.css b/_assets/borg.css index 84f41ee..15b0ed0 100644 --- a/_assets/borg.css +++ b/_assets/borg.css @@ -16,6 +16,11 @@ header { margin: 0 auto; } +/* apply drop shadow to logo paths */ +#logo path { + filter: drop-shadow(0 0 2px black) +} + header h1 { margin: 0; text-align: center; @@ -30,8 +35,8 @@ nav > ol { display: flex; flex-wrap: wrap; justify-content: center; - gap: 1rem; - padding: 0; + gap: 0.5rem; + padding: 0 0.75rem; } nav > ol > li { @@ -53,11 +58,13 @@ nav > ol > li > a { "Fira Mono", "Droid Sans Mono", monospace; + padding: 0.25rem; } -nav > ol > li > a:hover { - text-shadow: 0 0 5px black; - background: radial-gradient(#22D045, transparent); +nav > ol > li > a:hover, +#logo svg:hover { + text-shadow: 0 0 2px black; + background: radial-gradient(closest-side, #22D045, transparent); } main.content { diff --git a/_assets/logo.svg b/_assets/logo.svg index 5f9c5a1..5f04784 100644 --- a/_assets/logo.svg +++ b/_assets/logo.svg @@ -3,7 +3,7 @@ - + diff --git a/rst_template.txt b/rst_template.txt index 12ff8f8..e0f4813 100644 --- a/rst_template.txt +++ b/rst_template.txt @@ -11,7 +11,7 @@