mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Merge pull request #19246 from twbs/code-font-size
Extract $code-font-size variable
This commit is contained in:
commit
881e51d4a7
@ -9,7 +9,7 @@ samp {
|
|||||||
// Inline code
|
// Inline code
|
||||||
code {
|
code {
|
||||||
padding: .2rem .4rem;
|
padding: .2rem .4rem;
|
||||||
font-size: 90%;
|
font-size: $code-font-size;
|
||||||
color: $code-color;
|
color: $code-color;
|
||||||
background-color: $code-bg;
|
background-color: $code-bg;
|
||||||
@include border-radius($border-radius);
|
@include border-radius($border-radius);
|
||||||
@ -18,7 +18,7 @@ code {
|
|||||||
// User input typically entered via keyboard
|
// User input typically entered via keyboard
|
||||||
kbd {
|
kbd {
|
||||||
padding: .2rem .4rem;
|
padding: .2rem .4rem;
|
||||||
font-size: 90%;
|
font-size: $code-font-size;
|
||||||
color: $kbd-color;
|
color: $kbd-color;
|
||||||
background-color: $kbd-bg;
|
background-color: $kbd-bg;
|
||||||
@include border-radius($border-radius-sm);
|
@include border-radius($border-radius-sm);
|
||||||
@ -37,7 +37,7 @@ pre {
|
|||||||
display: block;
|
display: block;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
font-size: 90%;
|
font-size: $code-font-size;
|
||||||
color: $pre-color;
|
color: $pre-color;
|
||||||
|
|
||||||
// Account for some code outputs that place code tags in pre tags
|
// Account for some code outputs that place code tags in pre tags
|
||||||
|
@ -786,6 +786,7 @@ $close-text-shadow: 0 1px 0 #fff !default;
|
|||||||
|
|
||||||
// Code
|
// Code
|
||||||
|
|
||||||
|
$code-font-size: 90% !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