Skip to content

Instantly share code, notes, and snippets.

@blackfalcon
Created March 12, 2014 18:13
Show Gist options
  • Save blackfalcon/9512872 to your computer and use it in GitHub Desktop.
Save blackfalcon/9512872 to your computer and use it in GitHub Desktop.
Example form field and lable
<label for="input">Lable:</label>
<input id="input" type="text">
// ----
// 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;
}
}
* {
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; }
<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