]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Extract $code-font-size variable 19246/head
authorChris Rebert <code@chrisrebert.com>
Wed, 17 Feb 2016 06:37:00 +0000 (22:37 -0800)
committerChris Rebert <code@chrisrebert.com>
Wed, 17 Feb 2016 06:37:00 +0000 (22:37 -0800)
[skip sauce]
[skip validator]

scss/_code.scss
scss/_variables.scss

index e3235169828f7d0dac002043f447e43468a1fbea..59273d1781c09082c095296a9e6027240620d80d 100644 (file)
@@ -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
index c02af45f556ad933cf1bf984412004ac7a04da69..78122192f9ad2296fec6ee055471328556a8c0ff 100644 (file)
@@ -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;