Browse Source

Fixes #26 Textarea now respects rows attribute (#859)

* textarea now respects rows attribute

* use the :not() selector

* better sass selectors
Tim MacDonald 8 years ago
parent
commit
ee6a225e78
1 changed files with 5 additions and 2 deletions
  1. 5 2
      sass/elements/form.sass

+ 5 - 2
sass/elements/form.sass

@@ -70,12 +70,15 @@ $input-radius:              $radius !default
 
 
 .textarea
 .textarea
   display: block
   display: block
-  max-height: 600px
   max-width: 100%
   max-width: 100%
-  min-height: 120px
   min-width: 100%
   min-width: 100%
   padding: 0.625em
   padding: 0.625em
   resize: vertical
   resize: vertical
+  &:not([rows])
+    max-height: 600px
+    min-height: 120px
+  &[rows]
+    height: unset
 
 
 .checkbox,
 .checkbox,
 .radio
 .radio