mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-17 05:00:24 +00: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
1 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue