diff options
| author | Chris Rebert <[email protected]> | 2016-01-10 18:38:26 -0800 |
|---|---|---|
| committer | Chris Rebert <[email protected]> | 2016-01-10 18:38:26 -0800 |
| commit | cbc71dc229f3d04d0666c089cca235d65e56a62b (patch) | |
| tree | e90ce29720e6b43e04b82a6b2e61e27b47597af9 | |
| parent | 6338ea2b2b8bc75fcb68c323d88f6d6f74a0167f (diff) | |
| parent | 350ce2f707d38f5b87364e858177f4bd3cc13d27 (diff) | |
| download | bootstrap-cbc71dc229f3d04d0666c089cca235d65e56a62b.tar.xz bootstrap-cbc71dc229f3d04d0666c089cca235d65e56a62b.zip | |
Merge pull request #18816 from twbs/fix-17308
Switch to actually-Safari-specific CSS hack for iOS temporal input fix
| -rw-r--r-- | scss/.scss-lint.yml | 1 | ||||
| -rw-r--r-- | scss/_forms.scss | 34 |
2 files changed, 19 insertions, 16 deletions
diff --git a/scss/.scss-lint.yml b/scss/.scss-lint.yml index 06c6207d1..b736c3699 100644 --- a/scss/.scss-lint.yml +++ b/scss/.scss-lint.yml @@ -396,6 +396,7 @@ linters: SelectorFormat: enabled: true convention: hyphenated_lowercase # or 'BEM', or 'snake_case', or 'camel_case', or a regex pattern + ignored_types: ["element"] Shorthand: enabled: true diff --git a/scss/_forms.scss b/scss/_forms.scss index 0d5e364ec..6de81fcf8 100644 --- a/scss/_forms.scss +++ b/scss/_forms.scss @@ -92,26 +92,28 @@ // // Note that as of 8.3, iOS doesn't support `week`. -@media screen and (-webkit-min-device-pixel-ratio: 0) { - input[type="date"], - input[type="time"], - input[type="datetime-local"], - input[type="month"] { - &.form-control { - line-height: $input-height; - } +// SCSS-Lint exemption until https://github.com/brigade/scss-lint/pull/672 gets merged +// scss-lint:disable PseudoElement +_::-webkit-full-page-media, // Hack to make this CSS be Safari-only; see http://browserbu.gs/css-hacks/webkit-full-page-media/ +input[type="date"], +input[type="time"], +input[type="datetime-local"], +input[type="month"] { + &.form-control { + line-height: $input-height; + } - &.input-sm, - .input-group-sm &.form-control { - line-height: $input-height-sm; - } + &.input-sm, + .input-group-sm &.form-control { + line-height: $input-height-sm; + } - &.input-lg, - .input-group-lg &.form-control { - line-height: $input-height-lg; - } + &.input-lg, + .input-group-lg &.form-control { + line-height: $input-height-lg; } } +// scss-lint:enable PseudoElement // Static form control text |
