From 9b3fbb8a73b2b7bf97c49390e1a655ac16c17f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Mon, 22 May 2023 15:39:10 +0200 Subject: [PATCH 1/8] feat: hide unimplemented dark mode for v5.3.0 --- site/layouts/_default/baseof.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/layouts/_default/baseof.html b/site/layouts/_default/baseof.html index 0714faf3aa..bf1fad45fa 100644 --- a/site/layouts/_default/baseof.html +++ b/site/layouts/_default/baseof.html @@ -1,5 +1,5 @@ - + {{ partial "header" . }} From 20584a611800aac189f167865315d070dc3ba973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Mon, 22 May 2023 15:43:59 +0200 Subject: [PATCH 2/8] . --- site/layouts/_default/examples.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index de61a041c7..54e324a1c4 100644 --- a/site/layouts/_default/examples.html +++ b/site/layouts/_default/examples.html @@ -1,5 +1,5 @@ - + {{- $colorModeJS := printf "/docs/%s/assets/js/color-modes.js" $.Site.Params.docs_version -}} From f4f14cedd97045764ab4dcce3d4761e25c61fb4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Tue, 23 May 2023 08:30:21 +0200 Subject: [PATCH 3/8] Drop theme selectors in examples and normal pages --- site/layouts/_default/examples.html | 51 -------------------------- site/layouts/partials/docs-navbar.html | 32 ---------------- 2 files changed, 83 deletions(-) diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index 54e324a1c4..b1e9e98a75 100644 --- a/site/layouts/_default/examples.html +++ b/site/layouts/_default/examples.html @@ -86,57 +86,6 @@ {{- end }} - - - - - - - - - - - - - - - - - - {{ .Content }} {{- if eq hugo.Environment "production" -}} diff --git a/site/layouts/partials/docs-navbar.html b/site/layouts/partials/docs-navbar.html index 8f99fb6858..bcfe57eb87 100644 --- a/site/layouts/partials/docs-navbar.html +++ b/site/layouts/partials/docs-navbar.html @@ -45,38 +45,6 @@ {{ partial "docs-versions" . }} - From da015ba5766ab539a073e370eb79b0d59cf327c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Tue, 23 May 2023 09:03:22 +0200 Subject: [PATCH 4/8] Drop usage of color-modes.js in docs --- site/layouts/_default/examples.html | 3 --- site/layouts/partials/header.html | 3 --- 2 files changed, 6 deletions(-) diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index b1e9e98a75..50bc9e0e8e 100644 --- a/site/layouts/_default/examples.html +++ b/site/layouts/_default/examples.html @@ -1,9 +1,6 @@ - {{- $colorModeJS := printf "/docs/%s/assets/js/color-modes.js" $.Site.Params.docs_version -}} - - diff --git a/site/layouts/partials/header.html b/site/layouts/partials/header.html index e13ed03a66..bf7e84bccc 100644 --- a/site/layouts/partials/header.html +++ b/site/layouts/partials/header.html @@ -25,9 +25,6 @@ -{{- $colorModeJS := printf "/docs/%s/assets/js/color-modes.js" $.Site.Params.docs_version -}} - - {{ partial "stylesheet" . }} {{ partial "favicons" . }} {{ partial "social" . }} From bcc40e215b38d94f20b8a6d7c3285dc9330c99a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20D=C3=A9ramond?= Date: Thu, 20 Jul 2023 13:33:11 +0200 Subject: [PATCH 5/8] . --- scss/_variables.scss | 2 +- site/content/docs/5.3/examples/download-app/index.html | 2 +- site/layouts/_default/baseof.html | 2 +- site/layouts/_default/examples.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scss/_variables.scss b/scss/_variables.scss index f15fa0af50..bba06ad6e1 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -440,7 +440,7 @@ $enable-deprecation-messages: false !default; $enable-important-utilities: true !default; $enable-fixed-header: true !default; // Boosted mod: used to apply scroll-padding-top -$enable-dark-mode: true !default; +$enable-dark-mode: false !default; // Boosted mod: instead of `true` $color-mode-type: data !default; // `data` or `media-query` // Prefix for :root CSS variables diff --git a/site/content/docs/5.3/examples/download-app/index.html b/site/content/docs/5.3/examples/download-app/index.html index 5bb1322bfe..9335cdac97 100644 --- a/site/content/docs/5.3/examples/download-app/index.html +++ b/site/content/docs/5.3/examples/download-app/index.html @@ -35,7 +35,7 @@