From b89f6b6efcbef4d27fe23c50340de920cb246a19 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 3 Jan 2023 20:41:11 -0800 Subject: [PATCH 1/4] Update snippet examples for dark mode --- .../content/docs/5.3/examples/blog/index.html | 2 +- .../docs/5.3/examples/dropdowns/dropdowns.css | 24 +- .../docs/5.3/examples/dropdowns/index.html | 335 +++++++++++++----- .../docs/5.3/examples/features/index.html | 6 +- .../docs/5.3/examples/footers/index.html | 10 +- .../docs/5.3/examples/headers/index.html | 24 +- .../docs/5.3/examples/heroes/index.html | 12 +- .../docs/5.3/examples/list-groups/index.html | 254 ++++++------- .../5.3/examples/list-groups/list-groups.css | 14 +- .../docs/5.3/examples/modals/index.html | 23 +- .../docs/5.3/examples/sidebars/index.html | 44 +-- .../docs/5.3/examples/sidebars/sidebars.css | 14 +- .../content/docs/5.3/helpers/colored-links.md | 6 + site/content/docs/5.3/utilities/link.md | 1 + site/layouts/_default/examples.html | 1 + 15 files changed, 462 insertions(+), 308 deletions(-) diff --git a/site/content/docs/5.3/examples/blog/index.html b/site/content/docs/5.3/examples/blog/index.html index f600a6540f79..999da44c4ba9 100644 --- a/site/content/docs/5.3/examples/blog/index.html +++ b/site/content/docs/5.3/examples/blog/index.html @@ -14,7 +14,7 @@ Subscribe
- +
diff --git a/site/content/docs/5.3/examples/dropdowns/dropdowns.css b/site/content/docs/5.3/examples/dropdowns/dropdowns.css index 556f310a9daf..f633e2cd8373 100644 --- a/site/content/docs/5.3/examples/dropdowns/dropdowns.css +++ b/site/content/docs/5.3/examples/dropdowns/dropdowns.css @@ -1,7 +1,3 @@ -.dropdown-menu { - margin: 4rem auto; -} - .dropdown-item-danger { color: var(--bs-red); } @@ -15,12 +11,13 @@ } .btn-hover-light { - background-color: var(--bs-white); + color: var(--bs-body-color); + background-color: var(--bs-body-bg); } .btn-hover-light:hover, .btn-hover-light:focus { - color: var(--bs-blue); - background-color: var(--bs-light); + color: var(--bs-link-hover-color); + background-color: var(--bs-tertiary-bg); } .cal-month, @@ -46,22 +43,17 @@ } .cal-btn:not([disabled]) { font-weight: 500; + color: var(--bs-emphasis-color); } .cal-btn:hover, .cal-btn:focus { - background-color: rgba(0, 0, 0, .05); + background-color: var(--bs-secondary-bg); } .cal-btn[disabled] { border: 0; opacity: .5; } -.form-control-dark { - background-color: rgba(255, 255, 255, .05); - border-color: rgba(255, 255, 255, .15); -} - - .w-220px { width: 220px; } @@ -74,6 +66,6 @@ width: 340px; } -.w-600px { - width: 600px; +.opacity-10 { + opacity: .1; } diff --git a/site/content/docs/5.3/examples/dropdowns/index.html b/site/content/docs/5.3/examples/dropdowns/index.html index 90d41c490d61..b905b9ebc544 100644 --- a/site/content/docs/5.3/examples/dropdowns/index.html +++ b/site/content/docs/5.3/examples/dropdowns/index.html @@ -49,15 +49,15 @@ -
-