summaryrefslogtreecommitdiffstats
path: root/site/content/docs/5.3/examples/breadcrumbs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-24 12:44:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-06-24 12:44:49 +0000
commitdb46bfc03f3a22752ef6bd91ae577d893872a216 (patch)
tree89d924513bc95e6bac4dc8e26f0da84caa477b7b /site/content/docs/5.3/examples/breadcrumbs
parentReleasing debian version 5.2.3+dfsg-8. (diff)
downloadbootstrap-html-db46bfc03f3a22752ef6bd91ae577d893872a216.tar.xz
bootstrap-html-db46bfc03f3a22752ef6bd91ae577d893872a216.zip
Merging upstream version 5.3.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'site/content/docs/5.3/examples/breadcrumbs')
-rw-r--r--site/content/docs/5.3/examples/breadcrumbs/breadcrumbs.css50
-rw-r--r--site/content/docs/5.3/examples/breadcrumbs/index.html88
2 files changed, 138 insertions, 0 deletions
diff --git a/site/content/docs/5.3/examples/breadcrumbs/breadcrumbs.css b/site/content/docs/5.3/examples/breadcrumbs/breadcrumbs.css
new file mode 100644
index 0000000..a6be558
--- /dev/null
+++ b/site/content/docs/5.3/examples/breadcrumbs/breadcrumbs.css
@@ -0,0 +1,50 @@
+.breadcrumb-chevron {
+ --bs-breadcrumb-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
+ gap: .5rem;
+}
+.breadcrumb-chevron .breadcrumb-item {
+ display: flex;
+ gap: inherit;
+ align-items: center;
+ padding-left: 0;
+ line-height: 1;
+}
+.breadcrumb-chevron .breadcrumb-item::before {
+ gap: inherit;
+ float: none;
+ width: 1rem;
+ height: 1rem;
+}
+
+.breadcrumb-custom .breadcrumb-item {
+ position: relative;
+ flex-grow: 1;
+ padding: .75rem 3rem;
+}
+.breadcrumb-custom .breadcrumb-item::before {
+ display: none;
+}
+.breadcrumb-custom .breadcrumb-item::after {
+ position: absolute;
+ top: 50%;
+ right: -25px;
+ z-index: 1;
+ display: inline-block;
+ width: 50px;
+ height: 50px;
+ margin-top: -25px;
+ content: "";
+ background-color: var(--bs-tertiary-bg);
+ border-top-right-radius: .5rem;
+ box-shadow: 1px -1px var(--bs-border-color);
+ transform: scale(.707) rotate(45deg);
+}
+.breadcrumb-custom .breadcrumb-item:first-child {
+ padding-left: 1.5rem;
+}
+.breadcrumb-custom .breadcrumb-item:last-child {
+ padding-right: 1.5rem;
+}
+.breadcrumb-custom .breadcrumb-item:last-child::after {
+ display: none;
+}
diff --git a/site/content/docs/5.3/examples/breadcrumbs/index.html b/site/content/docs/5.3/examples/breadcrumbs/index.html
new file mode 100644
index 0000000..2d90962
--- /dev/null
+++ b/site/content/docs/5.3/examples/breadcrumbs/index.html
@@ -0,0 +1,88 @@
+---
+layout: examples
+title: Breadcrumbs
+extra_css:
+ - "breadcrumbs.css"
+body_class: ""
+---
+
+<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
+ <symbol id="house-door-fill" viewBox="0 0 16 16">
+ <path d="M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5z"/>
+ </symbol>
+</svg>
+
+<div class="container my-5">
+ <nav aria-label="breadcrumb">
+ <ol class="breadcrumb p-3 bg-body-tertiary rounded-3">
+ <li class="breadcrumb-item"><a href="#">Home</a></li>
+ <li class="breadcrumb-item"><a href="#">Library</a></li>
+ <li class="breadcrumb-item active" aria-current="page">Data</li>
+ </ol>
+ </nav>
+</div>
+
+<div class="b-example-divider"></div>
+
+<div class="container my-5">
+ <nav aria-label="breadcrumb">
+ <ol class="breadcrumb p-3 bg-body-tertiary rounded-3">
+ <li class="breadcrumb-item">
+ <a class="link-body-emphasis" href="#">
+ <svg class="bi" width="16" height="16"><use xlink:href="#house-door-fill"></use></svg>
+ <span class="visually-hidden">Home</span>
+ </a>
+ </li>
+ <li class="breadcrumb-item">
+ <a class="link-body-emphasis fw-semibold text-decoration-none" href="#">Library</a>
+ </li>
+ <li class="breadcrumb-item active" aria-current="page">
+ Data
+ </li>
+ </ol>
+ </nav>
+</div>
+
+<div class="b-example-divider"></div>
+
+<div class="container my-5">
+ <nav aria-label="breadcrumb">
+ <ol class="breadcrumb breadcrumb-chevron p-3 bg-body-tertiary rounded-3">
+ <li class="breadcrumb-item">
+ <a class="link-body-emphasis" href="#">
+ <svg class="bi" width="16" height="16"><use xlink:href="#house-door-fill"></use></svg>
+ <span class="visually-hidden">Home</span>
+ </a>
+ </li>
+ <li class="breadcrumb-item">
+ <a class="link-body-emphasis fw-semibold text-decoration-none" href="#">Library</a>
+ </li>
+ <li class="breadcrumb-item active" aria-current="page">
+ Data
+ </li>
+ </ol>
+ </nav>
+</div>
+
+<div class="b-example-divider"></div>
+
+<div class="container my-5">
+ <nav aria-label="breadcrumb">
+ <ol class="breadcrumb breadcrumb-custom overflow-hidden text-center bg-body-tertiary border rounded-3">
+ <li class="breadcrumb-item">
+ <a class="link-body-emphasis fw-semibold text-decoration-none" href="#">
+ <svg class="bi" width="16" height="16"><use xlink:href="#house-door-fill"></use></svg>
+ Home
+ </a>
+ </li>
+ <li class="breadcrumb-item">
+ <a class="link-body-emphasis fw-semibold text-decoration-none" href="#">Library</a>
+ </li>
+ <li class="breadcrumb-item active" aria-current="page">
+ Data
+ </li>
+ </ol>
+ </nav>
+</div>
+
+<div class="b-example-divider"></div>