Quellcode durchsuchen

aligning the text in the middle (vertically)

the 40px just made it stick to the bottom. however, with 1em insted you can change the height of the input and it will always stay in the middle.
elron vor 11 Jahren
Ursprung
Commit
0296b56b4d
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      library/scss/modules/_forms.scss

+ 1 - 1
library/scss/modules/_forms.scss

@@ -40,7 +40,7 @@ textarea,
 .field {
   display: block;
   height: 40px;
-  line-height: 40px;
+  line-height: 1em;
   padding: 0 12px;
   margin-bottom: 14px;
   font-size: 1em;