-
-
Save TomOffringa/5b827f89a720673da08e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// =========== Gravity forms | |
input[type=search] { -webkit-appearance: textfield; } | |
input[type=search]::-webkit-search-decoration { -webkit-appearance: none; } | |
input[type=text], | |
input[type=number], | |
input[type=password], | |
input[type=search], | |
input[type=email], | |
input[type=tel], | |
input[type=url], | |
textarea { | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
appearance: none; | |
border: 1px solid $color-neutral-40; | |
color: inherit; | |
display: block; | |
font-family: $font-family-body; | |
font-size: $font-size-30; | |
line-height: 1.5em; | |
margin: 0; | |
padding: 0.5rem; | |
vertical-align: baseline; | |
width: 100%; | |
@include transition(border 100ms); | |
&:focus { | |
border: 1px solid $color-neutral-60; | |
box-shadow: 0px 0px 3px rgba($black, 0.2); | |
outline: 0; | |
} | |
} | |
input[type=file] { margin: 0.75rem 0; } | |
textarea { | |
display: block; | |
overflow: auto; | |
resize: vertical; | |
vertical-align: top; | |
} | |
select { | |
width: 100%; | |
font-family: $font-family-body; | |
font-size: $font-size-30; | |
-webkit-appearance: menulist-button; | |
-moz-appearance: none; | |
appearance: none; | |
border: 1px solid $color-neutral-40; | |
color: inherit; | |
padding: 0.5rem; | |
border-radius: 0; | |
height: 2.625rem; | |
line-height: 1.5em; | |
&:focus { | |
border: 1px solid $color-neutral-60; | |
box-shadow: 0px 0px 3px rgba($black, 0.2); | |
outline: 0; | |
} | |
} | |
form { } | |
fieldset { } | |
legend { | |
border: 0; | |
display: block; | |
} | |
ul.gform_fields { | |
list-style: none; | |
margin: 0 0 $spacing 0; | |
> li { @include grid-container; } | |
} | |
label.gfield_label { | |
clear: left; | |
cursor: pointer; | |
display: inline-block; | |
font-weight: bold; | |
padding-top: 0.5rem; | |
text-align: left; | |
@include breakpoint($breakpoint-10) { | |
@include grid(16, 0, 1); | |
text-align: right; | |
} | |
&:hover { color: $color-neutral-100; } | |
span.gfield_required { color: $color-alert-50; } | |
} | |
div.ginput_container { | |
margin-bottom: 0.5rem; | |
@include grid-container; | |
@include breakpoint($breakpoint-10) { | |
@include grid(32); | |
} | |
label { | |
display: block; | |
font-size: $font-size-20; | |
color: $color-neutral-60; | |
margin: 0.25rem 0; | |
} | |
span { | |
margin: 0.5rem 0; | |
display: inline-block; | |
} | |
.ginput_full { | |
@include grid-container; | |
display: block; | |
margin: 0; | |
} | |
.ginput_left { | |
margin: 0; | |
display: block; | |
@include breakpoint($breakpoint-10) { | |
padding-right: 0.5rem; | |
float: left; | |
width: 50%; | |
} | |
} | |
.ginput_right { | |
margin: 0; | |
display: block; | |
@include breakpoint($breakpoint-10) { | |
padding-left: 0.5rem; | |
float: right; | |
width: 50%; | |
} | |
} | |
} | |
// Multiple inputs | |
div.clear-multi { | |
@include breakpoint($breakpoint-10) { | |
@include grid(32); | |
} | |
div.ginput_container { | |
display: inline-block; | |
vertical-align: top; | |
padding-right: 1em; | |
@include breakpoint($breakpoint-10) { | |
@include grid-reset; | |
} | |
} | |
} | |
.gfield_description { | |
margin-bottom: 0.5rem; | |
@include breakpoint($breakpoint-10) { | |
@include grid(48, 16, 0); | |
} | |
} | |
ul.gfield_checkbox, | |
ul.gfield_radio { | |
list-style: none; | |
margin: 0.5rem 0; | |
li { margin: 0.5rem 0; } | |
input { margin-right: 0.5rem; } | |
label { | |
cursor: pointer; | |
display: inline; | |
margin: 0; | |
font-size: $font-size-30; | |
color: $color-neutral-80; | |
&:hover { color: $color-neutral-100; } | |
} | |
} | |
// Footer with buttons | |
.gform_footer { | |
margin-top: $spacing * 2; | |
text-align: right; | |
@include breakpoint($breakpoint-10) { | |
@include grid(48, 16, 0); | |
} | |
} | |
// Errors | |
div.validation_error { | |
color: $color-alert-50; | |
margin-bottom: $spacing; | |
} | |
div.validation_message { | |
color: $color-alert-50; | |
} | |
li.gfield_error { | |
label { | |
color: $color-alert-50; | |
&:hover { color: $color-alert-60; } | |
} | |
span { color: $color-alert-50; } | |
input, | |
input:focus { | |
border: 1px solid $color-alert-50; | |
box-shadow: 0px 0px 3px $color-alert-50; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment