Procházet zdrojové kódy

Add border-box box-sizing

theenglishway (time) před 6 roky
rodič
revize
1c1f149e35
1 změnil soubory, kde provedl 8 přidání a 1 odebrání
  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;
 }
-