Bläddra i källkod

Merge pull request #1500 from virtuacoplenny/whitelist-user-select

fix: do not apply user-select none to inputs
j8
yanas 8 år sedan
förälder
incheckning
dc994173d7
1 ändrade filer med 6 tillägg och 1 borttagningar
  1. 6
    1
      css/_base.scss

+ 6
- 1
css/_base.scss Visa fil

@@ -1,4 +1,9 @@
1
-* {
1
+/**
2
+ * Safari will limit input in input elements to one character when user-select
3
+ * none is applied. Other browsers already support selecting within inputs while
4
+ * user-select is none. As such, disallow user-select except on inputs.
5
+ */
6
+*:not(input) {
2 7
     -webkit-user-select: none;
3 8
     user-select: none;
4 9
 }

Laddar…
Avbryt
Spara