mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-29 21:52:22 +01:00
Merge pull request #19247 from twbs/code-padding-vars
Extract $code-padding-{x,y} variables
This commit is contained in:
commit
d8ac2f5de2
@ -8,7 +8,7 @@ samp {
|
|||||||
|
|
||||||
// Inline code
|
// Inline code
|
||||||
code {
|
code {
|
||||||
padding: .2rem .4rem;
|
padding: $code-padding-y $code-padding-x;
|
||||||
font-size: $code-font-size;
|
font-size: $code-font-size;
|
||||||
color: $code-color;
|
color: $code-color;
|
||||||
background-color: $code-bg;
|
background-color: $code-bg;
|
||||||
@ -17,7 +17,7 @@ code {
|
|||||||
|
|
||||||
// User input typically entered via keyboard
|
// User input typically entered via keyboard
|
||||||
kbd {
|
kbd {
|
||||||
padding: .2rem .4rem;
|
padding: $code-padding-y $code-padding-x;
|
||||||
font-size: $code-font-size;
|
font-size: $code-font-size;
|
||||||
color: $kbd-color;
|
color: $kbd-color;
|
||||||
background-color: $kbd-bg;
|
background-color: $kbd-bg;
|
||||||
|
@ -787,6 +787,8 @@ $close-text-shadow: 0 1px 0 #fff !default;
|
|||||||
// Code
|
// Code
|
||||||
|
|
||||||
$code-font-size: 90% !default;
|
$code-font-size: 90% !default;
|
||||||
|
$code-padding-x: .4rem !default;
|
||||||
|
$code-padding-y: .2rem !default;
|
||||||
$code-color: #bd4147 !default;
|
$code-color: #bd4147 !default;
|
||||||
$code-bg: #f7f7f9 !default;
|
$code-bg: #f7f7f9 !default;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user