Last active
April 21, 2017 21:18
-
-
Save matt-diehl/5178112 to your computer and use it in GitHub Desktop.
An example of a module written in Sass.
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
/* ===== Contact Form Styles ===== */ | |
// Base styles | |
.contact_form { | |
background: #FFF; | |
border: 4px solid #999; | |
padding: 10px; | |
} | |
.contact_form-label { | |
color: #000; | |
font-weight: bold; | |
} | |
.contact_form-styled_input { | |
border: 1px solid #CCC; | |
padding: 2px 4px; | |
} | |
// Mobile-only styles | |
@include mobile-only { | |
.contact_form-label { | |
display: block; | |
font-size: 1em; | |
} | |
.contact_form-styled_input { | |
display: block; | |
font-size: 1em; | |
} | |
} | |
// Desktop-only styles | |
@include desktop-only { | |
.contact_form-label { | |
display: inline-block; | |
font-size: 1.2em; | |
} | |
.contact_form-styled_input { | |
display: inline-block; | |
font-size: 1.2em; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment