mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-24 20:02:53 +01: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:
parent
eb2e1102be
commit
a2b2f99e3b
@ -13,6 +13,13 @@ code {
|
|||||||
color: $code-color;
|
color: $code-color;
|
||||||
background-color: $code-bg;
|
background-color: $code-bg;
|
||||||
@include border-radius($border-radius);
|
@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
|
// User input typically entered via keyboard
|
||||||
|
Loading…
x
Reference in New Issue
Block a user