Created
March 12, 2014 18:13
-
-
Save blackfalcon/9512872 to your computer and use it in GitHub Desktop.
Example form field and lable
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
<label for="input">Lable:</label> | |
<input id="input" type="text"> |
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
// ---- | |
// libsass (v0.7.0) | |
// ---- | |
@import "bourbon/bourbon"; | |
* { | |
box-sizing: border-box; | |
outline: none; | |
} | |
label { | |
display: block; | |
line-height: 2em; | |
font-weight: bold; | |
font: { | |
variant: small-caps; | |
family: arial; | |
}; | |
} | |
input { | |
width: 50%; | |
padding: em(20); | |
border: 1px solid #999; | |
&:focus { | |
background-color: transparentize(orange, .5); | |
color: #333; | |
} | |
} |
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
* { | |
box-sizing: border-box; | |
outline: none; } | |
label { | |
display: block; | |
line-height: 2em; | |
font-weight: bold; | |
font-variant: small-caps; | |
font-family: arial; } | |
input { | |
width: 50%; | |
padding: 1.25em; | |
border: 1px solid #999; } | |
input:focus { | |
background-color: rgba(255, 165, 0, 0.5); | |
color: #333; } |
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
<label for="input">Lable:</label> | |
<input id="input" type="text"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment