Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the theming styles and just include basic normalization instead.
- Loading branch information
Showing
6 changed files
with
86 additions
and
240 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,155 +1,2 @@ | |||
@import formulate/defaults | @import formulate/normalize | ||
|
@import formulate/rhythm | ||
form.formulate | |||
margin: $spacer-size 0 | |||
|
|||
label | |||
color: $label-color | |||
display: block | |||
line-height: $line-height | |||
|
|||
input, | |||
select, | |||
textarea | |||
-moz-box-sizing: content-box | |||
-ms-box-sizing: content-box | |||
-webkit-box-sizing: content-box | |||
box-sizing: content-box | |||
background: $input-background-color | |||
border: $border-width solid $input-border-color | |||
font-family: $input-font-family | |||
font-size: 1em | |||
margin: 0 | |||
padding: 0.25em | |||
vertical-align: top | |||
|
|||
&:focus | |||
border-color: $input-focus-border-color | |||
outline: none | |||
|
|||
input | |||
height: 1.25em | |||
|
|||
&[type="checkbox"], | |||
&[type="radio"] | |||
height: auto | |||
padding: 0 | |||
vertical-align: baseline | |||
width: auto | |||
|
|||
&:focus | |||
outline: thin dotted #333 | |||
outline: 5px auto -webkit-focus-ring-color | |||
|
|||
&[type="file"] | |||
height: 1.625em | |||
line-height: 1.625em | |||
padding: 0 0.25em | |||
|
|||
&[type="submit"] | |||
-webkit-appearance: button | |||
height: 1.125em | |||
|
|||
&[disabled] | |||
border-color: $input-disabled-border-color | |||
|
|||
fieldset | |||
border-top: $border-width solid $fieldset-border-color | |||
margin: ($spacer-size / 2) 0 | |||
padding-top: $spacer-size | |||
|
|||
legend | |||
color: $fieldset-legend-color | |||
font-size: 0.75em | |||
font-weight: bold | |||
padding-right: (0.5em / 0.75) | |||
text-transform: uppercase | |||
|
|||
fieldset | |||
margin-left: $spacer-size * 2 | |||
|
|||
& > p | |||
margin-bottom: $spacer-size | |||
|
|||
.section | |||
clear: left | |||
|
|||
.field | |||
float: left | |||
margin-right: $spacer-size * 2 | |||
|
|||
.field | |||
margin-bottom: $spacer-size | |||
|
|||
&.required label | |||
font-weight: bold | |||
|
|||
&.optional label | |||
color: $label-optional-color | |||
font-style: italic | |||
|
|||
&.checkbox, | |||
&.radio | |||
white-space: nowrap | |||
|
|||
input | |||
display: inline | |||
margin-right: 0.5em | |||
width: inherit | |||
|
|||
&.error | |||
label | |||
color: $error-color | |||
|
|||
input, | |||
select, | |||
textarea | |||
border-color: $error-color | |||
|
|||
p | |||
font-size: 0.875em | |||
font-style: italic | |||
line-height: $line-height / 0.875 | |||
|
|||
&.instructions | |||
color: $instructions-color | |||
|
|||
.submit | |||
border-top: $border-width solid $submit-border-color | |||
overflow: auto | |||
padding-top: $spacer-size | |||
|
|||
input | |||
@include button($submit-button-color) | |||
vertical-align: baseline | |||
|
|||
a | |||
font-weight: bold | |||
margin: 0 0.25em | |||
|
|||
nav | |||
margin: $spacer-size 0 | |||
|
|||
ul | |||
float: left | |||
margin-right: $spacer-size | |||
|
|||
li a | |||
font-weight: normal | |||
margin: 0 | |||
line-height: $line-height | |||
|
|||
.errors | |||
color: $error-color | |||
border-color: $error-color | |||
|
|||
legend | |||
color: $error-color | |||
border-color: $error-color | |||
|
|||
ul | |||
margin-bottom: $spacer-size | |||
|
|||
li | |||
list-style: disc | |||
line-height: $line-height |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,58 @@ | |||
// Adapted from normalize.css v2.0.1 (git.io/normalize) | |||
form.formulate | |||
fieldset | |||
border: 0 | |||
margin: 0 | |||
padding: 0 | |||
|
|||
legend | |||
border: 0 | |||
padding: 0 | |||
|
|||
button, | |||
input, | |||
select, | |||
textarea | |||
font-family: inherit | |||
font-size: 100% | |||
margin: 0 | |||
|
|||
button, | |||
input | |||
line-height: normal | |||
|
|||
button, | |||
html input[type="button"], | |||
input[type="reset"], | |||
input[type="submit"] | |||
-webkit-appearance: button | |||
cursor: pointer | |||
|
|||
button[disabled], | |||
input[disabled] | |||
cursor: default | |||
|
|||
input[type="checkbox"], | |||
input[type="radio"] | |||
box-sizing: border-box | |||
padding: 0 | |||
|
|||
input[type="search"] | |||
-webkit-appearance: textfield | |||
-moz-box-sizing: content-box | |||
-webkit-box-sizing: content-box | |||
box-sizing: content-box | |||
|
|||
input[type="search"]::-webkit-search-cancel-button, | |||
input[type="search"]::-webkit-search-decoration | |||
-webkit-appearance: none | |||
|
|||
button::-moz-focus-inner, | |||
input::-moz-focus-inner | |||
border: 0 | |||
padding: 0 | |||
|
|||
textarea | |||
overflow: auto | |||
vertical-align: top |
This file was deleted.
Oops, something went wrong.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
form.formulate | |||
.field, | |||
.submit, | |||
legend | |||
height: 1.5em | |||
line-height: 1.5em | |||
|
|||
.section .field | |||
display: inline-block |
This file was deleted.
Oops, something went wrong.