diff options
| author | Mark Otto <[email protected]> | 2020-06-15 00:25:05 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2020-07-11 11:56:29 -0700 |
| commit | 2b4db023cd3272f30ae9c5d80451e253a8e3383f (patch) | |
| tree | 49251d07135f64f85a6b2c30097d63347ab3576a /scss | |
| parent | f6348f6c89dabbbbe7d2edd1c9503256294b86f2 (diff) | |
| download | bootstrap-2b4db023cd3272f30ae9c5d80451e253a8e3383f.tar.xz bootstrap-2b4db023cd3272f30ae9c5d80451e253a8e3383f.zip | |
Add null variables for nav-link
Replaces #30498 by adding four new null default variables for .nav-link. Doesn't carry over font-style from the original PR though since that's rarely used, at least by default Bootstrap. Nullifies all values from that PR, too, since we count on some basic inheritance here and don't need color by default.
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/_nav.scss | 4 | ||||
| -rw-r--r-- | scss/_variables.scss | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/scss/_nav.scss b/scss/_nav.scss index 84d522405..30c2c819b 100644 --- a/scss/_nav.scss +++ b/scss/_nav.scss @@ -14,11 +14,15 @@ .nav-link { display: block; padding: $nav-link-padding-y $nav-link-padding-x; + @include font-size($nav-link-font-size); + font-weight: $nav-link-font-weight; + color: $nav-link-color; text-decoration: if($link-decoration == none, null, none); @include transition($nav-link-transition); &:hover, &:focus { + color: $nav-link-hover-color; text-decoration: if($link-hover-decoration == underline, none, null); } diff --git a/scss/_variables.scss b/scss/_variables.scss index 707908fa8..cac9febec 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -843,6 +843,10 @@ $zindex-tooltip: 1070 !default; $nav-link-padding-y: .5rem !default; $nav-link-padding-x: 1rem !default; +$nav-link-font-size: null !default; +$nav-link-font-weight: null !default; +$nav-link-color: null !default; +$nav-link-hover-color: null !default; $nav-link-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out !default; $nav-link-disabled-color: $gray-600 !default; |
