Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Oliff <christianoliff@yahoo.com>2018-06-24 23:11:39 +0300
committerMark Otto <otto@github.com>2018-06-24 23:11:39 +0300
commit41ab1c6c9d2599b3e32a8cee6091c40ba171fe47 (patch)
tree47e9bfabae5587f1e95db1b1fc2ad7956a7890e1 /docs/4.1/examples
parentd78aac01d638a494e3e8aebe90df68382addb4c7 (diff)
Fixes Edge and IE label overlapping issue (#25919)
The 'Floating labels' example is only supported on Chrome, Safari and Firefox. On Edge and IE the label is displayed always and any text input overlaps the label which makes it unreadable. The fix here targets Edge and IE and makes the form behave normally, the labels are hidden and the placeholder color is standard.
Diffstat (limited to 'docs/4.1/examples')
-rw-r--r--docs/4.1/examples/floating-labels/floating-labels.css22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/4.1/examples/floating-labels/floating-labels.css b/docs/4.1/examples/floating-labels/floating-labels.css
index 2c1d91bf36..a5634ab5f4 100644
--- a/docs/4.1/examples/floating-labels/floating-labels.css
+++ b/docs/4.1/examples/floating-labels/floating-labels.css
@@ -80,3 +80,25 @@ body {
font-size: 12px;
color: #777;
}
+
+/* Fallback for Edge
+-------------------------------------------------- */
+@supports (-ms-ime-align: auto) {
+ .form-label-group > label {
+ display: none;
+ }
+ .form-label-group input::-ms-input-placeholder {
+ color: #777;
+ }
+}
+
+/* Fallback for IE
+-------------------------------------------------- */
+@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
+ .form-label-group > label {
+ display: none;
+ }
+ .form-label-group input:-ms-input-placeholder {
+ color: #777;
+ }
+}