From ba37c37615429c5e562d1e9f88a11e263640963c Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Wed, 3 Feb 2016 19:45:13 -0800 Subject: [PATCH] Redo line-height globally - Rename -height to -height-base to match other vars - Drop use of -height across the board and rely on it to be inherited - Adjust padding of .dropdown-header to account for different line-height of h6 heading element (this needs refactoring for variables and rems also) --- docs/assets/scss/_content.scss | 1 - scss/_buttons.scss | 2 +- scss/_code.scss | 1 - scss/_dropdown.scss | 4 +--- scss/_forms.scss | 1 - scss/_images.scss | 1 - scss/_pagination.scss | 1 - scss/_reboot.scss | 2 +- scss/_tables.scss | 1 - scss/_type.scss | 1 - scss/_variables.scss | 10 +++++----- scss/mixins/_buttons.scss | 1 - scss/mixins/_pagination.scss | 1 - scss/mixins/_reset-text.scss | 2 +- 14 files changed, 9 insertions(+), 20 deletions(-) diff --git a/docs/assets/scss/_content.scss b/docs/assets/scss/_content.scss index 70ca83375c..4e753dd04f 100644 --- a/docs/assets/scss/_content.scss +++ b/docs/assets/scss/_content.scss @@ -20,7 +20,6 @@ > th, > td { padding: $table-cell-padding; - line-height: $line-height; vertical-align: top; border: 1px solid $table-border-color; diff --git a/scss/_buttons.scss b/scss/_buttons.scss index 640fe1dfeb..1373218eb0 100644 --- a/scss/_buttons.scss +++ b/scss/_buttons.scss @@ -11,7 +11,7 @@ cursor: pointer; user-select: none; border: $input-btn-border-width solid transparent; - @include button-size($btn-padding-y, $btn-padding-x, $font-size-base, $line-height, $btn-border-radius); + @include button-size($btn-padding-y, $btn-padding-x, $font-size-base, $line-height-base, $btn-border-radius); @include transition(all .2s ease-in-out); &, diff --git a/scss/_code.scss b/scss/_code.scss index a9ddb4c0f5..e323516982 100644 --- a/scss/_code.scss +++ b/scss/_code.scss @@ -38,7 +38,6 @@ pre { margin-top: 0; margin-bottom: 1rem; font-size: 90%; - line-height: $line-height; color: $pre-color; // Account for some code outputs that place code tags in pre tags diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index cf4472acd0..48bdee2869 100644 --- a/scss/_dropdown.scss +++ b/scss/_dropdown.scss @@ -70,7 +70,6 @@ padding: 3px 20px; clear: both; font-weight: normal; - line-height: $line-height; color: $dropdown-link-color; text-align: inherit; // For `