From f40e76d1f77c020be337d4244c7cfb13a2b5bd9c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Tue, 10 Jan 2023 16:33:33 -0800 Subject: [PATCH] Update snippet examples for dark mode (#37834) * Update snippet examples for dark mode * Fix markup * Review comments * undo colored links docs from this PR --- .../content/docs/5.3/examples/blog/index.html | 2 +- .../docs/5.3/examples/dropdowns/dropdowns.css | 24 +- .../docs/5.3/examples/dropdowns/index.html | 349 +++++++++++++----- .../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/modals/modals.css | 7 - .../docs/5.3/examples/sidebars/index.html | 44 +-- .../docs/5.3/examples/sidebars/sidebars.css | 14 +- site/content/docs/5.3/utilities/link.md | 1 + site/layouts/_default/examples.html | 1 + 15 files changed, 470 insertions(+), 315 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..8fbe4069fa67 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 @@ -
-