aboutsummaryrefslogtreecommitdiff
path: root/_scss/components/theme
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2018-04-24 15:09:44 +0300
committerValentin Popov <info@valentineus.link>2018-04-24 15:09:44 +0300
commita95089f1483b5e594a0c000c66b513643fe9d6a8 (patch)
tree74a46b04983c220a7f3d7308e11c725c76a0a4d5 /_scss/components/theme
parent719511ec9a0f1de8fdd85564222d8bf2c19c78e9 (diff)
downloadpopov.link-a95089f1483b5e594a0c000c66b513643fe9d6a8.tar.xz
popov.link-a95089f1483b5e594a0c000c66b513643fe9d6a8.zip
Decor form
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to '_scss/components/theme')
-rw-r--r--_scss/components/theme/_form.scss67
1 files changed, 67 insertions, 0 deletions
diff --git a/_scss/components/theme/_form.scss b/_scss/components/theme/_form.scss
new file mode 100644
index 0000000..6efcdcf
--- /dev/null
+++ b/_scss/components/theme/_form.scss
@@ -0,0 +1,67 @@
+@import 'utilities/appearance';
+@import 'utilities/boxshadow';
+
+input:not([type]),
+input[type='color'],
+input[type='date'],
+input[type='datetime'],
+input[type='datetime-local'],
+input[type='email'],
+input[type='month'],
+input[type='number'],
+input[type='password'],
+input[type='search'],
+input[type='tel'],
+input[type='text'],
+input[type='url'],
+input[type='week'],
+select,
+textarea {
+ background-color: transparent;
+ border: .1rem solid $color-quaternary;
+ border-radius: .4rem;
+ box-sizing: inherit;
+ height: 3.8rem;
+ padding: .6rem 1rem;
+ width: 100%;
+
+ @include appearance(none);
+ @include boxshadow(none);
+
+ &:focus {
+ border-color: $color-primary;
+ outline: 0;
+ }
+}
+
+select {
+ padding-right: 3rem;
+}
+
+textarea {
+ min-height: 6.5rem;
+}
+
+label,
+legend {
+ display: block;
+ font-size: 1.6rem;
+ font-weight: 700;
+ margin-bottom: .5rem;
+}
+
+fieldset {
+ border-width: 0;
+ padding: 0;
+}
+
+input[type='checkbox'],
+input[type='radio'] {
+ display: inline;
+}
+
+.label-inline {
+ display: inline-block;
+ font-weight: normal;
+ margin-left: .5rem;
+}