mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 12:51:52 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user