Bläddra i källkod

Add border-box box-sizing

theenglishway (time) 6 år sedan
förälder
incheckning
1c1f149e35
1 ändrade filer med 8 tillägg och 1 borttagningar
  1. 8 1
      form/style.css

+ 8 - 1
form/style.css

@@ -14,6 +14,14 @@
 /* Add nodebug class to any parent field (e.g. body) to turn off coloring */
 .nodebug { --color-form: transparent; --color-field: transparent; --color-label: transparent; --color-input: transparent; }
 
+html {
+  box-sizing: border-box;
+}
+
+*, *::before, *::after {
+  box-sizing: inherit;
+}
+
 body {
   display: flex;
   flex-direction: column;
@@ -23,4 +31,3 @@ body {
 .body--centered {
   align-items: center;
 }
-