From: Mark Otto Date: Thu, 22 Dec 2016 04:28:34 +0000 (-0800) Subject: Restyle code elements in links (#21392) X-Git-Tag: v4.0.0-alpha.6~306 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2b2f99e3b7bb99b66353e450fa77d7e99ab48e1;p=thirdparty%2Fbootstrap.git 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 --- diff --git a/scss/_code.scss b/scss/_code.scss index ea660bcdbf..759da15b79 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