From 7c26400380c44d0edc917bbf0618b85643f2921b Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Thu, 1 Sep 2022 16:46:37 -0700 Subject: [PATCH] more tweaks --- docs/assets/scss/_ads.scss | 3 ++- docs/assets/scss/docs.scss | 22 +++++++++++++++++--- docs/layouts/_default/home.html | 31 ++++++++++++++++++++-------- docs/layouts/partials/home/hero.html | 6 +++--- docs/layouts/partials/icons.html | 7 ------- 5 files changed, 46 insertions(+), 23 deletions(-) diff --git a/docs/assets/scss/_ads.scss b/docs/assets/scss/_ads.scss index 1251ec5e3a..3eada3afe8 100644 --- a/docs/assets/scss/_ads.scss +++ b/docs/assets/scss/_ads.scss @@ -5,7 +5,8 @@ margin-right: auto; margin-left: auto; overflow: auto; - background-color: var(--bs-gray-100); + background-color: var(--bs-body-bg); + border: 1px solid var(--bs-border-color); border-radius: .25rem; @media (min-width: 992px) { diff --git a/docs/assets/scss/docs.scss b/docs/assets/scss/docs.scss index e5341b0d39..62e925e164 100644 --- a/docs/assets/scss/docs.scss +++ b/docs/assets/scss/docs.scss @@ -117,9 +117,12 @@ } .hero { - border-bottom: 1px solid rgba(0, 0, 0, .075); + background-color: #fafafa; + border-bottom: 1px solid rgba(0, 0, 0, .1); + box-shadow: 0 0 0 1px #fff, 0 1rem 2rem rgba(0, 0, 0, .05); .highlight { + padding: 1rem 1.25rem; margin-bottom: 0; color: var(--bs-gray-200); background-color: var(--bs-gray-800); @@ -134,13 +137,13 @@ } .btn-clipboard { - top: .625em; + top: .4em; color: var(--bs-gray-200); background-color: var(--bs-gray-800); } .btn { - padding: 1rem 1.25rem; + padding: .75rem 1.25rem; border-radius: .5rem; } @@ -158,6 +161,11 @@ .list { font-size: 2rem; + :target { + padding-top: 6rem; + margin-top: -6rem; + } + // stylelint-disable declaration-no-important a:hover, a:focus { @@ -234,3 +242,11 @@ overflow-y: auto; } } + +.bd-sidebar-list { + --bs-nav-link-padding-y: .375rem; + --bs-nav-link-padding-x: .75rem; + --bs-nav-link-color: var(--bs-gray-600); + --bs-nav-pills-link-active-color: var(--bd-purple); + --bs-nav-pills-link-active-bg: rgba(var(--bd-violet-rgb), .05); +} diff --git a/docs/layouts/_default/home.html b/docs/layouts/_default/home.html index b7ae1ed301..fca76b4268 100644 --- a/docs/layouts/_default/home.html +++ b/docs/layouts/_default/home.html @@ -4,16 +4,29 @@ {{ define "main" }}
-
+
-

Categories

-
-
+
{{ partialCached "icons" . "home" }}
diff --git a/docs/layouts/partials/home/hero.html b/docs/layouts/partials/home/hero.html index 36932503f2..ac49dfb608 100644 --- a/docs/layouts/partials/home/hero.html +++ b/docs/layouts/partials/home/hero.html @@ -12,7 +12,7 @@ New in v1.9.0: 140+ new icons!

Bootstrap Icons

-

Free, high quality, open source icon library with over 1,800 icons. Include them anyway you like—SVGs, SVG sprite, or web fonts. Use them with or without Bootstrap in any project.

+

Free, high quality, open source icon library with over 1,800 vector icons. Use them as SVGs, SVG sprite, or web fonts—with or without Bootstrap.

@@ -26,9 +26,9 @@

Bootstrap Icons

{{ partialCached "ads" . }} -
+
-

+

Currently v{{ .Site.Params.version }} Icons diff --git a/docs/layouts/partials/icons.html b/docs/layouts/partials/icons.html index b64693d222..e90a65890f 100644 --- a/docs/layouts/partials/icons.html +++ b/docs/layouts/partials/icons.html @@ -1,11 +1,4 @@

-
-

Icons

- -
    {{ range $taxonomyname, $taxonomy := .Site.Taxonomies }} {{ if eq "categories" $taxonomyname }}