-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
189 additions
and
23 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
// ---------------------------------------------------------------------------- | ||
// Forms | ||
// ---------------------------------------------------------------------------- | ||
// | ||
// Form field styling for base forms and common variants. | ||
// | ||
// ---------------------------------------------------------------------------- | ||
|
||
// ------------------------------------- | ||
// Default Elements | ||
// ------------------------------------- | ||
form { | ||
margin: 0; | ||
} | ||
|
||
a, | ||
area, | ||
button, | ||
[role='button'], | ||
input, | ||
label, | ||
select, | ||
summary, | ||
textarea { | ||
touch-action: manipulation; | ||
} | ||
|
||
input, | ||
textarea, | ||
select { | ||
border: 1px solid $light-grey; | ||
appearance: none; | ||
border-radius: 0; | ||
max-width: 100%; | ||
outline: none; | ||
position: relative; | ||
|
||
&[disabled] { | ||
background-color: $background-color--disabled; | ||
border-color: $text-color--disabled; | ||
color: $text-color--disabled; | ||
cursor: default; | ||
} | ||
|
||
// ------------------------------------- | ||
// Placeholders | ||
// ------------------------------------- | ||
&::placeholder { | ||
@include font-placeholder; | ||
} | ||
|
||
&:-moz-placeholder { | ||
@include font-placeholder; | ||
} | ||
|
||
&:-ms-input-placeholder { | ||
@include font-placeholder; | ||
} | ||
|
||
&::-ms-input-placeholder { | ||
@include font-placeholder; | ||
} | ||
|
||
&::-webkit-input-placeholder { | ||
@include font-placeholder; | ||
} | ||
} | ||
|
||
button, | ||
input[type='submit'], | ||
label[for] { | ||
cursor: pointer; | ||
} | ||
|
||
textarea { | ||
min-height: 100px; | ||
} | ||
|
||
select::-ms-expand { | ||
display: none; | ||
} | ||
|
||
// Force option color (affects IE only) | ||
option { | ||
background-color: $background-color; | ||
color: $text-color; | ||
} | ||
|
||
|
||
|
||
// ------------------------------------- | ||
// Form Styles | ||
// ------------------------------------- | ||
.form__item { | ||
margin: ($site-gutter / 2) 0; | ||
} | ||
|
||
|
||
.form__label { | ||
@include font-size(18); | ||
display: block; | ||
font-weight: 700; | ||
margin: 0 0 ($paragraph-gutter / 2); | ||
} | ||
|
||
.form__input, | ||
.form__textarea { | ||
@include font-size(16); | ||
border-radius: 3px; | ||
margin: 0 0 ($paragraph-gutter / 2); | ||
padding: 10px 15px; | ||
width: 100%; | ||
|
||
&:focus { | ||
border-color: $primary-color; | ||
} | ||
} |
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
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
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
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