diff options
| author | Mark Otto <[email protected]> | 2014-12-23 13:59:26 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2014-12-23 13:59:26 -0800 |
| commit | 6b394ab067f7af82c2e2e640642d47f6ff609ccf (patch) | |
| tree | 5cf9d9143409365dbabcbd4a57f27f9fd4838b17 /scss | |
| parent | 1f5a75e2d75daf231965dd59ea5b82364a375ffb (diff) | |
| parent | 5e102e26006ec8c8c3f19b7ce67d81a83c758b5e (diff) | |
| download | bootstrap-6b394ab067f7af82c2e2e640642d47f6ff609ccf.tar.xz bootstrap-6b394ab067f7af82c2e2e640642d47f6ff609ccf.zip | |
Merge branch 'v4' of https://github.com/twbs/derpstrap into v4
Conflicts:
docs/components/helpers.md
scss/_utilities.scss
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/_buttons.scss | 6 | ||||
| -rw-r--r-- | scss/_forms.scss | 5 | ||||
| -rw-r--r-- | scss/_navbar.scss | 4 | ||||
| -rw-r--r-- | scss/_utilities.scss | 15 | ||||
| -rw-r--r-- | scss/mixins/_buttons.scss | 2 | ||||
| -rw-r--r-- | scss/mixins/_image.scss | 4 |
6 files changed, 10 insertions, 26 deletions
diff --git a/scss/_buttons.scss b/scss/_buttons.scss index 08feff3b6..8f75cbec1 100644 --- a/scss/_buttons.scss +++ b/scss/_buttons.scss @@ -43,7 +43,7 @@ } &.disabled, - &[disabled], + &:disabled, fieldset[disabled] & { pointer-events: none; // Future-proof disabling of clicks cursor: $cursor-disabled; @@ -88,7 +88,7 @@ &, &:active, &.active, - &[disabled], + &:disabled, fieldset[disabled] & { background-color: transparent; @include box-shadow(none); @@ -105,7 +105,7 @@ text-decoration: underline; background-color: transparent; } - &[disabled], + &:disabled, fieldset[disabled] & { &:hover, &:focus { diff --git a/scss/_forms.scss b/scss/_forms.scss index 1f68383f9..68f13d2c1 100644 --- a/scss/_forms.scss +++ b/scss/_forms.scss @@ -133,6 +133,7 @@ output { // Placeholder &::placeholder { color: $input-color-placeholder; + opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526 } // Disabled and read-only inputs @@ -140,7 +141,7 @@ output { // HTML5 says that controls under a fieldset > legend:first-child won't be // disabled if the fieldset is disabled. Due to implementation difficulty, we // don't honor that edge case; we style them as disabled anyway. - &[disabled], + &:disabled, &[readonly], fieldset[disabled] & { cursor: $cursor-disabled; @@ -263,7 +264,7 @@ input[type="search"] { // Note: Neither radios nor checkboxes can be readonly. input[type="radio"], input[type="checkbox"] { - &[disabled], + &:disabled, &.disabled, fieldset[disabled] & { cursor: $cursor-disabled; diff --git a/scss/_navbar.scss b/scss/_navbar.scss index d021ab0de..d4dcb673f 100644 --- a/scss/_navbar.scss +++ b/scss/_navbar.scss @@ -309,7 +309,7 @@ &:focus { color: $navbar-default-link-hover-color; } - &[disabled], + &:disabled, fieldset[disabled] & { &:hover, &:focus { @@ -422,7 +422,7 @@ color: $navbar-inverse-link-hover-color; } - &[disabled], + &:disabled, fieldset[disabled] & { &:hover, &:focus { diff --git a/scss/_utilities.scss b/scss/_utilities.scss index ec96ba1d5..aeffdcd78 100644 --- a/scss/_utilities.scss +++ b/scss/_utilities.scss @@ -46,12 +46,6 @@ z-index: $zindex-navbar-fixed; } - -// Toggling content -.show { - display: block !important; -} - // Always hide an element with the `hidden` HTML attribute (from PureCSS). [hidden] { display: none !important; @@ -66,15 +60,6 @@ } -// Hide from screenreaders and browsers -// -// Credit: HTML5 Boilerplate -.hidden { - display: none !important; - visibility: hidden !important; -} - - // For Affix plugin .affix { position: fixed; diff --git a/scss/mixins/_buttons.scss b/scss/mixins/_buttons.scss index 7233b4dc2..b043d60de 100644 --- a/scss/mixins/_buttons.scss +++ b/scss/mixins/_buttons.scss @@ -28,7 +28,7 @@ @include box-shadow(inset 0 3px 5px rgba(0,0,0,.125)); } &.disabled, - &[disabled], + &:disabled, fieldset[disabled] & { &, &:hover, diff --git a/scss/mixins/_image.scss b/scss/mixins/_image.scss index f25e0ab21..bec9626f6 100644 --- a/scss/mixins/_image.scss +++ b/scss/mixins/_image.scss @@ -16,15 +16,13 @@ // Retina image // -// Short retina mixin for setting background-image and -size. Note that the -// spelling of `min--moz-device-pixel-ratio` is intentional. +// Short retina mixin for setting background-image and -size. @mixin img-retina($file-1x, $file-2x, $width-1x, $height-1x) { background-image: url("#{file-1x}"); @media only screen and (-webkit-min-device-pixel-ratio: 2), - only screen and ( min--moz-device-pixel-ratio: 2), only screen and ( -o-min-device-pixel-ratio: 2/1), only screen and ( min-device-pixel-ratio: 2), only screen and ( min-resolution: 192dpi), |
