aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2019-09-05 11:43:31 -0700
committerXhmikosR <[email protected]>2019-09-05 21:43:31 +0300
commiteb49bd11c9e5f2705d4efa78c029a1de3a2fb832 (patch)
tree704bb4b3374f21c0a6c2fdd36b58eea22050424e
parentc6a82fcc6f46cc8679df45142dfd2de3312b85e6 (diff)
downloadbootstrap-eb49bd11c9e5f2705d4efa78c029a1de3a2fb832.tar.xz
bootstrap-eb49bd11c9e5f2705d4efa78c029a1de3a2fb832.zip
Update subnav to remove breadcrumb and just keep versions and search (#29368)
-rw-r--r--site/layouts/partials/docs-subnav.html10
-rw-r--r--site/layouts/partials/docs-versions.html4
-rw-r--r--site/layouts/partials/icons/booticon-chevron-right.svg1
-rw-r--r--site/static/docs/4.3/assets/scss/_buttons.scss17
-rw-r--r--site/static/docs/4.3/assets/scss/_subnav.scss4
5 files changed, 20 insertions, 16 deletions
diff --git a/site/layouts/partials/docs-subnav.html b/site/layouts/partials/docs-subnav.html
index 61dd5282d..31006c061 100644
--- a/site/layouts/partials/docs-subnav.html
+++ b/site/layouts/partials/docs-subnav.html
@@ -1,19 +1,11 @@
<nav class="bd-subnavbar pt-2 pb-3 pb-md-2">
<div class="container-xl d-flex align-items-md-center flex-wrap">
<div class="d-flex align-items-center mr-sm-auto order-2 order-md-0">
- <div class="d-none d-md-block">
- <a class="link-dark" href="/" onclick="ga('send', 'event', 'Subnav', 'click', 'Bootstrap');">Bootstrap</a>
- {{ partial "icons/booticon-chevron-right.svg" (dict "class" "booticon d-inline-block mx-2 flex-shrink-0" "width" "12px" "height" "12px") }}
- </div>
-
- <a class="link-dark" href="/docs/{{ .Site.Params.docs_version }}/getting-started/introduction/" onclick="ga('send', 'event', 'Subnav', 'click', 'Documentation');">Documentation</a>
- {{ partial "icons/booticon-chevron-right.svg" (dict "class" "booticon d-inline-block mx-2 flex-shrink-0" "width" "12px" "height" "12px") }}
-
{{ partial "docs-versions" . }}
</div>
<form class="bd-search d-flex align-items-center mb-2 mb-md-0">
- <input type="search" class="form-control" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off" data-docs-version="{{ .Site.Params.docs_version }}">
+ <input type="search" class="form-control" id="search-input" placeholder="Search docs..." aria-label="Search docs for..." autocomplete="off" data-docs-version="{{ .Site.Params.docs_version }}">
</form>
<button class="btn btn-link bd-search-docs-toggle d-md-none p-0 ml-3 order-3 ml-auto" type="button" data-toggle="collapse" data-target="#bd-docs-nav" aria-controls="bd-docs-nav" aria-expanded="false" aria-label="Toggle docs navigation">
diff --git a/site/layouts/partials/docs-versions.html b/site/layouts/partials/docs-versions.html
index b8125447f..a386e9e68 100644
--- a/site/layouts/partials/docs-versions.html
+++ b/site/layouts/partials/docs-versions.html
@@ -1,6 +1,6 @@
<div class="dropdown">
- <button class="btn btn-link dropdown-toggle p-0 link-dark" id="bd-versions" data-toggle="dropdown" aria-expanded="false">
- v{{ .Site.Params.docs_version }}
+ <button class="btn btn-bd-light dropdown-toggle" id="bd-versions" data-toggle="dropdown" aria-expanded="false">
+ Bootstrap v{{ .Site.Params.docs_version }}
</button>
<div class="dropdown-menu dropdown-menu-md-right" aria-labelledby="bd-versions">
<a class="dropdown-item active" href="/docs/{{ .Site.Params.docs_version }}/">Latest (5.0.x)</a>
diff --git a/site/layouts/partials/icons/booticon-chevron-right.svg b/site/layouts/partials/icons/booticon-chevron-right.svg
deleted file mode 100644
index 0c3498b3f..000000000
--- a/site/layouts/partials/icons/booticon-chevron-right.svg
+++ /dev/null
@@ -1 +0,0 @@
-<svg xmlns="http://www.w3.org/2000/svg"{{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 16 16" role="img"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 14l6-6-6-6"/></svg>
diff --git a/site/static/docs/4.3/assets/scss/_buttons.scss b/site/static/docs/4.3/assets/scss/_buttons.scss
index 25bcbbd4b..0ed47855f 100644
--- a/site/static/docs/4.3/assets/scss/_buttons.scss
+++ b/site/static/docs/4.3/assets/scss/_buttons.scss
@@ -35,3 +35,20 @@
box-shadow: 0 0 0 3px rgba($bd-download, .25);
}
}
+
+.btn-bd-light {
+ color: $gray-600;
+ border-color: $gray-300;
+
+ .show > &,
+ &:hover,
+ &:active {
+ color: $bd-purple-bright;
+ background-color: $white;
+ border-color: $bd-purple-bright;
+ }
+
+ &:focus {
+ box-shadow: 0 0 0 3px rgba($bd-purple-bright, .25);
+ }
+}
diff --git a/site/static/docs/4.3/assets/scss/_subnav.scss b/site/static/docs/4.3/assets/scss/_subnav.scss
index e2f6e96f4..38cb628ae 100644
--- a/site/static/docs/4.3/assets/scss/_subnav.scss
+++ b/site/static/docs/4.3/assets/scss/_subnav.scss
@@ -3,10 +3,6 @@
backdrop-filter: blur(1rem);
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05), inset 0 -1px 0 rgba(0, 0, 0, .15);
- .booticon {
- opacity: .25;
- }
-
.dropdown-menu {
@include font-size(.875rem);
box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .05);