diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:22:02 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-07-24 09:22:02 +0000 |
commit | 8b9e5144f7af3bb0578d80ed619dd0743d0d5f0f (patch) | |
tree | c651acc917541c3ad4fc91eb30df52c2f07095fd /site/layouts | |
parent | Adding upstream version 5.3.1+dfsg. (diff) | |
download | bootstrap-html-8b9e5144f7af3bb0578d80ed619dd0743d0d5f0f.tar.xz bootstrap-html-8b9e5144f7af3bb0578d80ed619dd0743d0d5f0f.zip |
Adding upstream version 5.3.3+dfsg.upstream/5.3.3+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'site/layouts')
-rw-r--r-- | site/layouts/_default/examples.html | 11 | ||||
-rw-r--r-- | site/layouts/partials/docs-navbar.html | 6 | ||||
-rw-r--r-- | site/layouts/partials/home/get-started.html | 6 | ||||
-rw-r--r-- | site/layouts/shortcodes/example.html | 14 |
4 files changed, 21 insertions, 16 deletions
diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index 11759a2..e99c697 100644 --- a/site/layouts/_default/examples.html +++ b/site/layouts/_default/examples.html @@ -89,9 +89,14 @@ --bs-btn-active-bg: #5a23c8; --bs-btn-active-border-color: #5a23c8; } + .bd-mode-toggle { z-index: 1500; } + + .bd-mode-toggle .dropdown-menu .active .bi { + display: block !important; + } </style> {{ range .Page.Params.extra_css }} @@ -129,21 +134,21 @@ <ul class="dropdown-menu dropdown-menu-end shadow" aria-labelledby="bd-theme-text"> <li> <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false"> - <svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em"><use href="#sun-fill"></use></svg> + <svg class="bi me-2 opacity-50" width="1em" height="1em"><use href="#sun-fill"></use></svg> Light <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg> </button> </li> <li> <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="dark" aria-pressed="false"> - <svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em"><use href="#moon-stars-fill"></use></svg> + <svg class="bi me-2 opacity-50" width="1em" height="1em"><use href="#moon-stars-fill"></use></svg> Dark <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg> </button> </li> <li> <button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true"> - <svg class="bi me-2 opacity-50 theme-icon" width="1em" height="1em"><use href="#circle-half"></use></svg> + <svg class="bi me-2 opacity-50" width="1em" height="1em"><use href="#circle-half"></use></svg> Auto <svg class="bi ms-auto d-none" width="1em" height="1em"><use href="#check2"></use></svg> </button> diff --git a/site/layouts/partials/docs-navbar.html b/site/layouts/partials/docs-navbar.html index a69fb2d..94f61d6 100644 --- a/site/layouts/partials/docs-navbar.html +++ b/site/layouts/partials/docs-navbar.html @@ -96,21 +96,21 @@ <ul class="dropdown-menu dropdown-menu-end" aria-labelledby="bd-theme-text"> <li> <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="light" aria-pressed="false"> - <svg class="bi me-2 opacity-50 theme-icon"><use href="#sun-fill"></use></svg> + <svg class="bi me-2 opacity-50"><use href="#sun-fill"></use></svg> Light <svg class="bi ms-auto d-none"><use href="#check2"></use></svg> </button> </li> <li> <button type="button" class="dropdown-item d-flex align-items-center" data-bs-theme-value="dark" aria-pressed="false"> - <svg class="bi me-2 opacity-50 theme-icon"><use href="#moon-stars-fill"></use></svg> + <svg class="bi me-2 opacity-50"><use href="#moon-stars-fill"></use></svg> Dark <svg class="bi ms-auto d-none"><use href="#check2"></use></svg> </button> </li> <li> <button type="button" class="dropdown-item d-flex align-items-center active" data-bs-theme-value="auto" aria-pressed="true"> - <svg class="bi me-2 opacity-50 theme-icon"><use href="#circle-half"></use></svg> + <svg class="bi me-2 opacity-50"><use href="#circle-half"></use></svg> Auto <svg class="bi ms-auto d-none"><use href="#check2"></use></svg> </button> diff --git a/site/layouts/partials/home/get-started.html b/site/layouts/partials/home/get-started.html index ac377a7..ad64511 100644 --- a/site/layouts/partials/home/get-started.html +++ b/site/layouts/partials/home/get-started.html @@ -41,15 +41,15 @@ <h4 class="fw-semibold">Read our getting started guides</h4> <p>Get a jump on including Bootstrap's source files in a new project with our official guides.</p> <div class="d-flex flex-wrap align-items-center justify-content-center gap-4 mt-4"> - <a class="d-flex flex-column align-items-center text-decoration-none animate-img" href="/docs/{{ .Site.Params.docs_version }}/getting-started/webpack"> + <a class="d-flex flex-column align-items-center text-decoration-none animate-img" href="/docs/{{ .Site.Params.docs_version }}/getting-started/webpack/"> <img class="d-block mb-2" src="/docs/{{ .Site.Params.docs_version }}/assets/img/webpack.svg" alt="" width="72" height="72" loading="lazy"> <span class="text-body-secondary">Webpack</span> </a> - <a class="d-flex flex-column align-items-center text-decoration-none animate-img" href="/docs/{{ .Site.Params.docs_version }}/getting-started/parcel"> + <a class="d-flex flex-column align-items-center text-decoration-none animate-img" href="/docs/{{ .Site.Params.docs_version }}/getting-started/parcel/"> <img class="d-block mb-2" src="/docs/{{ .Site.Params.docs_version }}/assets/img/parcel.png" alt="" width="72" height="72" loading="lazy"> <span class="text-body-secondary">Parcel</span> </a> - <a class="d-flex flex-column align-items-center text-decoration-none animate-img" href="/docs/{{ .Site.Params.docs_version }}/getting-started/vite"> + <a class="d-flex flex-column align-items-center text-decoration-none animate-img" href="/docs/{{ .Site.Params.docs_version }}/getting-started/vite/"> <img class="d-block mb-2" src="/docs/{{ .Site.Params.docs_version }}/assets/img/vite.svg" alt="" width="72" height="72" loading="lazy"> <span class="text-body-secondary">Vite</span> </a> diff --git a/site/layouts/shortcodes/example.html b/site/layouts/shortcodes/example.html index a162db5..5b398e6 100644 --- a/site/layouts/shortcodes/example.html +++ b/site/layouts/shortcodes/example.html @@ -13,23 +13,23 @@ {{- $id := .Get "id" -}} {{- $class := .Get "class" -}} {{- $lang := .Get "lang" | default "html" -}} -{{- $stackblitz_add_js := .Get "stackblitz_add_js" | default false -}} {{- $show_markup := .Get "show_markup" | default true -}} {{- $show_preview := .Get "show_preview" | default true -}} -{{- $input := .Inner -}} +{{- $stackblitz_add_js := .Get "stackblitz_add_js" | default false -}} + {{- $content := .Inner -}} <div class="bd-example-snippet bd-code-snippet"> - {{- if eq $show_preview true -}} + {{- if eq $show_preview true }} <div{{ with $id }} id="{{ . }}"{{ end }} class="bd-example m-0 border-0{{ with $class }} {{ . }}{{ end }}"> - {{- $input -}} + {{ $content }} </div> - {{- end -}} + {{- end }} {{- if eq $show_markup true -}} {{- if eq $show_preview true -}} <div class="d-flex align-items-center highlight-toolbar ps-3 pe-2 py-1 border-0 border-top border-bottom"> - <small class="font-monospace text-body-secondary text-uppercase">{{- $lang -}}</small> + <small class="font-monospace text-body-secondary text-uppercase">{{ $lang }}</small> <div class="d-flex ms-auto"> <button type="button" class="btn-edit text-nowrap"{{ with $stackblitz_add_js }} data-sb-js-snippet="{{ $stackblitz_add_js }}"{{ end }} title="Try it on StackBlitz"> <svg class="bi" aria-hidden="true"><use xlink:href="#lightning-charge-fill"/></svg> @@ -45,5 +45,5 @@ {{- $content = replaceRE `<img class="bd-placeholder-img(?:-lg)?(?: *?bd-placeholder-img-lg)? ?(.*?)".*?>` `<img src="..." class="$1" alt="...">` $content -}} {{- $content = replaceRE ` (class=" *?")` "" $content -}} {{- highlight (trim $content "\n") $lang "" -}} - {{- end -}} + {{- end }} </div> |