diff options
| author | Mark Otto <[email protected]> | 2016-12-21 20:28:34 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2016-12-21 20:28:34 -0800 |
| commit | a2b2f99e3b7bb99b66353e450fa77d7e99ab48e1 (patch) | |
| tree | 0d9bb6f6d4ac590a062559168d44dcbce37cb752 | |
| parent | eb2e1102be0f4641ee3e5c4e7853360d5a04e3d8 (diff) | |
| download | bootstrap-a2b2f99e3b7bb99b66353e450fa77d7e99ab48e1.tar.xz bootstrap-a2b2f99e3b7bb99b66353e450fa77d7e99ab48e1.zip | |
Restyle code elements in links (#21392)
* Restyle code elements in links
Fixes #21259. Removes the background, color, and padding on code elements within anchors.
* Update _code.scss
| -rw-r--r-- | scss/_code.scss | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scss/_code.scss b/scss/_code.scss index ea660bcdb..759da15b7 100644 --- a/scss/_code.scss +++ b/scss/_code.scss @@ -13,6 +13,13 @@ code { color: $code-color; background-color: $code-bg; @include border-radius($border-radius); + + // Streamline the style when inside anchors to avoid broken underline and more + a > & { + padding: 0; + color: inherit; + background-color: inherit; + } } // User input typically entered via keyboard |
