From db46bfc03f3a22752ef6bd91ae577d893872a216 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 24 Jun 2023 14:44:40 +0200 Subject: Merging upstream version 5.3.0+dfsg. Signed-off-by: Daniel Baumann --- site/layouts/_default/examples.html | 95 ++++++++++++++++++++++++++++++++----- 1 file changed, 84 insertions(+), 11 deletions(-) (limited to 'site/layouts/_default/examples.html') diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index f70f859..5ec9263 100644 --- a/site/layouts/_default/examples.html +++ b/site/layouts/_default/examples.html @@ -1,6 +1,9 @@ - + + {{- $colorModeJS := printf "/docs/%s/assets/js/color-modes.js" $.Site.Params.docs_version -}} + + @@ -33,6 +36,7 @@ } .b-example-divider { + width: 100%; height: 3rem; background-color: rgba(0, 0, 0, .1); border: solid rgba(0, 0, 0, .15); @@ -68,6 +72,26 @@ white-space: nowrap; -webkit-overflow-scrolling: touch; } + + .btn-bd-primary { + --bd-violet-bg: #712cf9; + --bd-violet-rgb: 112.520718, 44.062154, 249.437846; + + --bs-btn-font-weight: 600; + --bs-btn-color: var(--bs-white); + --bs-btn-bg: var(--bd-violet-bg); + --bs-btn-border-color: var(--bd-violet-bg); + --bs-btn-hover-color: var(--bs-white); + --bs-btn-hover-bg: #6528e0; + --bs-btn-hover-border-color: #6528e0; + --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb); + --bs-btn-active-color: var(--bs-btn-hover-color); + --bs-btn-active-bg: #5a23c8; + --bs-btn-active-border-color: #5a23c8; + } + .bd-mode-toggle { + z-index: 1500; + } {{ range .Page.Params.extra_css }} @@ -76,18 +100,67 @@ {{- end }} - {{ .Content }} + + + + + + + + + + + + + + + + + - {{ if ne .Page.Params.include_js false -}} - {{- if eq hugo.Environment "production" -}} - - {{- else -}} - - {{- end }} + {{ .Content }} - {{ range .Page.Params.extra_js -}} - - {{- end -}} + {{- if eq hugo.Environment "production" -}} + + {{- else -}} + {{- end }} + + {{ range .Page.Params.extra_js -}} + + {{- end -}} -- cgit v1.2.3