Sfoglia il codice sorgente

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 11 anni fa
parent
commit
0296b56b4d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;