Skip to content

Instantly share code, notes, and snippets.

@kenwheeler
Last active August 29, 2015 14:07
Show Gist options
  • Save kenwheeler/6a56409f2524862f1f6e to your computer and use it in GitHub Desktop.
Save kenwheeler/6a56409f2524862f1f6e to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
<input type="text" class="input" placeholder="Put text in me"/>
<input type="text" class="error-input" placeholder="Something went wrong!"/>
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
%input-style {
border-radius: 3px;
color: #555;
font-size: 17px;
padding: 10px 20px;
display: inline-block;
outline: 0;
}
.input {
@extend %input-style;
border: 4px solid #ddd;
}
.error-input {
@extend %input-style;
border:4px solid #e74c3c;
}
body {
text-align: center;
padding-top: 100px;
}
.input, .error-input {
border-radius: 3px;
color: #555;
font-size: 17px;
padding: 10px 20px;
display: inline-block;
outline: 0;
}
.input {
border: 4px solid #ddd;
}
.error-input {
border: 4px solid #e74c3c;
}
body {
text-align: center;
padding-top: 100px;
}
<input type="text" class="input" placeholder="Put text in me"/>
<input type="text" class="error-input" placeholder="Something went wrong!"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment