]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Remove $line-height-computed
authorMark Otto <markdotto@gmail.com>
Wed, 29 Apr 2015 19:00:11 +0000 (12:00 -0700)
committerMark Otto <markdotto@gmail.com>
Wed, 29 Apr 2015 19:00:11 +0000 (12:00 -0700)
We have it set to `1` right now just to avoid compilation errors, but
it’s been replaced everywhere with our new spacer classes anywho. We’ll
likely want to remap that var to custom component vars though (e.g.,
`$pagination-margin` instead of `$spacer-y`).

scss/_alert.scss
scss/_breadcrumb.scss
scss/_forms.scss
scss/_navbar.scss
scss/_pager.scss
scss/_pagination.scss
scss/_progress.scss
scss/mixins/_nav-divider.scss

index 2e6f46b1665e9fd2b1c926f6d330d647a4da236d..b264dc5af2621ebf0c6019651afa7910c82a94bc 100644 (file)
@@ -9,7 +9,7 @@
 
 .alert {
   padding: $alert-padding;
-  margin-bottom: $line-height-computed;
+  margin-bottom: $spacer-y;
   border: 1px solid transparent;
   @include border-radius($alert-border-radius);
 
index 73698c46b1dcbc99f0995bb644fb42edc10e887a..7cccd182a2aaa8f80357e9a8c64051c9ffab5d07 100644 (file)
@@ -5,7 +5,7 @@
 
 .breadcrumb {
   padding: $breadcrumb-padding-vertical $breadcrumb-padding-horizontal;
-  margin-bottom: $line-height-computed;
+  margin-bottom: $spacer-y;
   list-style: none;
   background-color: $breadcrumb-bg;
   @include border-radius($border-radius-base);
index 154430119d4ff9a49b1c851fe49d62c1ccdfbdcc..671be46fb9b50b309f403eed50db458770218591 100644 (file)
 // horizontal form layout.
 
 .form-control-static {
-  min-height: ($line-height-computed + $font-size-base);
+  min-height: $input-height-base;
   // Size it appropriately next to real form controls
   padding-top: ($padding-base-vertical + $border-width);
   padding-bottom: ($padding-base-vertical + $border-width);
index 801e671356c8cf6b7cb68c2fe8f4de32c6c1a0d6..513ed000041a8a0cad9f0e4d6083c52bfecff7ac 100644 (file)
   margin-right: $spacer;
   margin-bottom: 0; // For headings
   font-size: $font-size-lg;
-  line-height: $line-height-computed;
+  line-height: 1;
   background: none;
   border: 0;
 
index cb4ccfb354011a3b763b6dcda589258d3839d9f2..98db07500fa72217c3c3733028110ebdffd527e6 100644 (file)
@@ -5,7 +5,8 @@
 
 .pager {
   padding-left: 0;
-  margin: $line-height-computed 0;
+  margin-top: $spacer-y;
+  margin-bottom: $spacer-y;
   text-align: center;
   list-style: none;
   @include clearfix();
index 01e4c3f0814beb44a2e85d70150d5803be114031..0c00bd89e3005f017956dfdd9f954bb967867fe2 100644 (file)
@@ -6,6 +6,8 @@
 .pagination {
   display: inline-block;
   padding-left: 0;
+  margin-top: $spacer-y;
+  margin-bottom: $spacer-y;
   margin: $line-height-computed 0;
   @include border-radius();
 
index beeff3816e3042dd7f69567f881116a35902a8d4..c99b5af923da5941e24c58bf8c713ea25b927eb2 100644 (file)
@@ -8,7 +8,7 @@
 //
 
 @keyframes progress-bar-stripes {
-  from  { background-position: $line-height-computed 0; }
+  from  { background-position: $spacer-y 0; }
   to    { background-position: 0 0; }
 }
 
@@ -20,8 +20,8 @@
 .progress {
   display: block;
   width: 100%;
-  height: $line-height-computed;
-  margin-bottom: $line-height-computed;
+  height: $spacer-y; // todo: make a new var for this
+  margin-bottom: $spacer-y;
 }
 .progress[value] {
   // IE10 uses `color` to set the bar background-color
@@ -85,7 +85,7 @@
   }
   .progress-bar {
     display: inline-block;
-    height: $line-height-computed;
+    height: $spacer-y;
     text-indent: -999rem; // Simulate hiding of value as in native `<progress>`
     background-color: #0074d9;
     border-top-left-radius: $border-radius-base;
 
 .progress-striped[value]::-webkit-progress-value {
   @include gradient-striped();
-  background-size: $line-height-computed $line-height-computed;
+  background-size: $spacer-y $spacer-y;
 }
 .progress-striped[value]::-moz-progress-bar {
   @include gradient-striped();
-  background-size: $line-height-computed $line-height-computed;
+  background-size: $spacer-y $spacer-y;
 }
 @media screen and ("min-width:0\0") {
   .progress-bar-striped {
     @include gradient-striped();
-    background-size: $line-height-computed $line-height-computed;
+    background-size: $spacer-y $spacer-y;
   }
 }
 
index 2e6da02a4748b00cf67c21cc1735c26373e9c4c8..fb3d12e9f69253bb53e35d69688c6cbf6cc153ac 100644 (file)
@@ -4,7 +4,7 @@
 
 @mixin nav-divider($color: #e5e5e5) {
   height: 1px;
-  margin: (($line-height-computed / 2) - 1) 0;
+  margin: ($spacer-y / 2) 0;
   overflow: hidden;
   background-color: $color;
 }