aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2016-02-16 22:37:00 -0800
committerChris Rebert <[email protected]>2016-02-16 22:37:00 -0800
commit9fdae5f39185eb3509502419490452c06e54e5bd (patch)
treeb961ef06c7f07560c7f169792072360fd5be178d
parent79c955f01921b8ab7b28c18406b01591e80d4703 (diff)
downloadbootstrap-9fdae5f39185eb3509502419490452c06e54e5bd.tar.xz
bootstrap-9fdae5f39185eb3509502419490452c06e54e5bd.zip
Extract $code-font-size variable
[skip sauce] [skip validator]
-rw-r--r--scss/_code.scss6
-rw-r--r--scss/_variables.scss1
2 files changed, 4 insertions, 3 deletions
diff --git a/scss/_code.scss b/scss/_code.scss
index e32351698..59273d178 100644
--- a/scss/_code.scss
+++ b/scss/_code.scss
@@ -9,7 +9,7 @@ samp {
// Inline code
code {
padding: .2rem .4rem;
- font-size: 90%;
+ font-size: $code-font-size;
color: $code-color;
background-color: $code-bg;
@include border-radius($border-radius);
@@ -18,7 +18,7 @@ code {
// User input typically entered via keyboard
kbd {
padding: .2rem .4rem;
- font-size: 90%;
+ font-size: $code-font-size;
color: $kbd-color;
background-color: $kbd-bg;
@include border-radius($border-radius-sm);
@@ -37,7 +37,7 @@ pre {
display: block;
margin-top: 0;
margin-bottom: 1rem;
- font-size: 90%;
+ font-size: $code-font-size;
color: $pre-color;
// Account for some code outputs that place code tags in pre tags
diff --git a/scss/_variables.scss b/scss/_variables.scss
index c02af45f5..78122192f 100644
--- a/scss/_variables.scss
+++ b/scss/_variables.scss
@@ -781,6 +781,7 @@ $close-text-shadow: 0 1px 0 #fff !default;
// Code
+$code-font-size: 90% !default;
$code-color: #bd4147 !default;
$code-bg: #f7f7f9 !default;