diff options
author | Mario <mario@mariovavti.com> | 2023-04-28 19:02:23 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-04-28 19:02:23 +0000 |
commit | 2a1341b910dfb1187dd9fceebd2b3be14e825e28 (patch) | |
tree | f2f5a26394d0a1a905823dd71b620e9c964fb155 /vendor/twbs/bootstrap/scss/_nav.scss | |
parent | 1ed8b9dd149b9d2cb2fe30dc56ddc24cc523255c (diff) | |
download | volse-hubzilla-2a1341b910dfb1187dd9fceebd2b3be14e825e28.tar.gz volse-hubzilla-2a1341b910dfb1187dd9fceebd2b3be14e825e28.tar.bz2 volse-hubzilla-2a1341b910dfb1187dd9fceebd2b3be14e825e28.zip |
update bootstrap
Diffstat (limited to 'vendor/twbs/bootstrap/scss/_nav.scss')
-rw-r--r-- | vendor/twbs/bootstrap/scss/_nav.scss | 43 |
1 files changed, 40 insertions, 3 deletions
diff --git a/vendor/twbs/bootstrap/scss/_nav.scss b/vendor/twbs/bootstrap/scss/_nav.scss index 9efc03bc8..aedbdba54 100644 --- a/vendor/twbs/bootstrap/scss/_nav.scss +++ b/vendor/twbs/bootstrap/scss/_nav.scss @@ -28,6 +28,8 @@ font-weight: var(--#{$prefix}nav-link-font-weight); color: var(--#{$prefix}nav-link-color); text-decoration: if($link-decoration == none, null, none); + background: none; + border: 0; @include transition($nav-link-transition); &:hover, @@ -36,6 +38,11 @@ text-decoration: if($link-hover-decoration == underline, none, null); } + &:focus-visible { + outline: 0; + box-shadow: $nav-link-focus-box-shadow; + } + // Disabled state lightens text &.disabled { color: var(--#{$prefix}nav-link-disabled-color); @@ -63,7 +70,6 @@ .nav-link { margin-bottom: calc(-1 * var(--#{$prefix}nav-tabs-border-width)); // stylelint-disable-line function-disallowed-list - background: none; border: var(--#{$prefix}nav-tabs-border-width) solid transparent; @include border-top-radius(var(--#{$prefix}nav-tabs-border-radius)); @@ -110,8 +116,6 @@ // scss-docs-end nav-pills-css-vars .nav-link { - background: none; - border: 0; @include border-radius(var(--#{$prefix}nav-pills-border-radius)); &:disabled { @@ -130,6 +134,39 @@ // +// Underline +// + +.nav-underline { + // scss-docs-start nav-underline-css-vars + --#{$prefix}nav-underline-gap: #{$nav-underline-gap}; + --#{$prefix}nav-underline-border-width: #{$nav-underline-border-width}; + --#{$prefix}nav-underline-link-active-color: #{$nav-underline-link-active-color}; + // scss-docs-end nav-underline-css-vars + + gap: var(--#{$prefix}nav-underline-gap); + + .nav-link { + padding-right: 0; + padding-left: 0; + border-bottom: var(--#{$prefix}nav-underline-border-width) solid transparent; + + &:hover, + &:focus { + border-bottom-color: currentcolor; + } + } + + .nav-link.active, + .show > .nav-link { + font-weight: $font-weight-bold; + color: var(--#{$prefix}nav-underline-link-active-color); + border-bottom-color: currentcolor; + } +} + + +// // Justified variants // |