Permalink
Browse files

added form component

  • Loading branch information...
Maximilian Hoffmann
Maximilian Hoffmann committed Dec 16, 2012
1 parent 6038d3c commit 0106277fa17107d7254658f591c93577659101ae
Showing with 31 additions and 0 deletions.
  1. +31 −0 components/form.scss
View
@@ -0,0 +1,31 @@
+/**
+ * Component: Form
+ *
+ * @author Maximilian Hoffmann http://maximilianhoffmann.com
+ */
+
+form {
+ @extend .clearfix;
+}
+
+label {
+ display: block;
+
+ @media (min-width: 768px) {
+ clear: both;
+ float: left;
+ line-height: 34px;
+ }
+}
+
+input,
+textarea,
+select {
+ width: 100%;
+ font-family: inherit;
+}
+
+input[type="submit"],
+button {
+ width: 100%;
+}

0 comments on commit 0106277

Please sign in to comment.