diff options
| author | Mark Otto <[email protected]> | 2015-11-14 17:23:22 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2015-11-14 17:23:22 -0800 |
| commit | 1a3acc8a4b95f2efc45ccbd5218330c6193c4424 (patch) | |
| tree | 274bc1741bad7ca837040e59cd7d607b9e80e11a /scss | |
| parent | 23e746d479f3098448d76ccafc9c2d77019c2562 (diff) | |
| parent | 0d34169e1f1126c0e752694905c037278402e0c8 (diff) | |
| download | bootstrap-1a3acc8a4b95f2efc45ccbd5218330c6193c4424.tar.xz bootstrap-1a3acc8a4b95f2efc45ccbd5218330c6193c4424.zip | |
Merge branch 'v4-dev' of https://github.com/twbs/bootstrap into v4-dev
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/_alert.scss | 2 | ||||
| -rw-r--r-- | scss/_card.scss | 6 | ||||
| -rw-r--r-- | scss/_dropdown.scss | 6 | ||||
| -rw-r--r-- | scss/_images.scss | 9 | ||||
| -rw-r--r-- | scss/_nav.scss | 2 | ||||
| -rw-r--r-- | scss/_reboot.scss | 10 | ||||
| -rw-r--r-- | scss/_variables.scss | 1 | ||||
| -rw-r--r-- | scss/mixins/_forms.scss | 2 |
8 files changed, 24 insertions, 14 deletions
diff --git a/scss/_alert.scss b/scss/_alert.scss index 8e550d8f7..b9f6c60da 100644 --- a/scss/_alert.scss +++ b/scss/_alert.scss @@ -5,7 +5,7 @@ .alert { padding: $alert-padding; margin-bottom: $spacer-y; - border: 1px solid transparent; + border: $alert-border-width solid transparent; @include border-radius($alert-border-radius); // Improve alignment and spacing of inner content diff --git a/scss/_card.scss b/scss/_card.scss index cab7b65e3..75e4513b3 100644 --- a/scss/_card.scss +++ b/scss/_card.scss @@ -169,10 +169,10 @@ // Card image caps .card-img-top { - @include border-radius(.25rem .25rem 0 0); + @include border-radius($card-border-radius-inner $card-border-radius-inner 0 0); } .card-img-bottom { - @include border-radius(0 0 .25rem .25rem); + @include border-radius(0 0 $card-border-radius-inner $card-border-radius-inner); } @@ -257,7 +257,7 @@ } &:last-child { @include border-left-radius(0); - + .card-img-top { border-top-left-radius: 0; } diff --git a/scss/_dropdown.scss b/scss/_dropdown.scss index d5861e19e..c477dfb17 100644 --- a/scss/_dropdown.scss +++ b/scss/_dropdown.scss @@ -10,8 +10,8 @@ display: inline-block; width: 0; height: 0; - margin-left: .25rem; margin-right: .25rem; + margin-left: .25rem; vertical-align: middle; content: ""; border-top: $caret-width solid; @@ -45,8 +45,8 @@ min-width: 160px; padding: 5px 0; margin: 2px 0 0; // override default ul - color: $body-color; font-size: $font-size-base; + color: $body-color; text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer) list-style: none; background-color: $dropdown-bg; @@ -172,7 +172,7 @@ // Allow for dropdowns to go bottom up (aka, dropup-menu) // -// Just add .dropup after the standard .dropdown class and you're set, bro. +// Just add .dropup after the standard .dropdown class and you're set. // TODO: abstract this so that the navbar fixed styles are not placed here? .dropup, diff --git a/scss/_images.scss b/scss/_images.scss index ac481d58d..ffcd7086d 100644 --- a/scss/_images.scss +++ b/scss/_images.scss @@ -40,12 +40,11 @@ .figure { // Ensures the caption's text aligns with the image. display: inline-block; +} - > img { - @extend .img-fluid; - margin-bottom: ($spacer-y / 2); - line-height: 1; - } +.figure-img { + margin-bottom: ($spacer-y / 2); + line-height: 1; } .figure-caption { diff --git a/scss/_nav.scss b/scss/_nav.scss index 90d02b254..5714c77eb 100644 --- a/scss/_nav.scss +++ b/scss/_nav.scss @@ -92,7 +92,7 @@ .nav-pills { @include clearfix(); - + .nav-item { float: left; diff --git a/scss/_reboot.scss b/scss/_reboot.scss index ae183e7ea..58fd54c68 100644 --- a/scss/_reboot.scss +++ b/scss/_reboot.scss @@ -196,6 +196,16 @@ img { } +// iOS "clickable elements" fix for role="button" +// +// Fixes "clickability" issue (and more generally, the firing of events such as focus as well) +// for traditionally non-focusable elements with role="button" +// see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile + +[role="button"] { + cursor: pointer; +} + // // Tables // diff --git a/scss/_variables.scss b/scss/_variables.scss index 74f05a2a7..b7bb88090 100644 --- a/scss/_variables.scss +++ b/scss/_variables.scss @@ -526,6 +526,7 @@ $modal-sm: 300px !default; $alert-padding: 15px !default; $alert-border-radius: $border-radius !default; $alert-link-font-weight: bold !default; +$alert-border-width: $border-width !default; $alert-success-bg: $state-success-bg !default; $alert-success-text: $state-success-text !default; diff --git a/scss/mixins/_forms.scss b/scss/mixins/_forms.scss index 8a59e04f6..eab8063e0 100644 --- a/scss/mixins/_forms.scss +++ b/scss/mixins/_forms.scss @@ -5,7 +5,7 @@ @mixin form-control-validation($color) { // Color the label and help text - .help-block, + .text-help, .form-control-label, .radio, .checkbox, |
