Skip to content

Instantly share code, notes, and snippets.

@tsmith512
Last active August 29, 2015 14:14
Show Gist options
  • Save tsmith512/e089eca5a455ba902c19 to your computer and use it in GitHub Desktop.
Save tsmith512/e089eca5a455ba902c19 to your computer and use it in GitHub Desktop.
Examples for Presentation: Advanced Responsive Web Design Part 2: Compass Basics
// ----
// Sass (v3.4.11)
// Compass (v1.0.3)
// ----
/**
* Examples for Presentation: Advanced Responsive Web Design
* Part 2: Compass Basics
* For More Information: http://github.com/tsmith512/arwd
*/
// SCSS:
@import "compass";
.modal {
@include box-shadow(1px 1px 2px rgba(0,0,0,0.5));
}
.overlay {
@include opacity(0.5);
}
#{headings(1,3)} {
text-transform: uppercase;
}
#{nest('header, footer', 'ul, ol')} {
font-size: 0.75em;
}
/**
* Examples for Presentation: Advanced Responsive Web Design
* Part 2: Compass Basics
* For More Information: http://github.com/tsmith512/arwd
*/
.modal {
-moz-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
-webkit-box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}
.overlay {
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
opacity: 0.5;
}
h1, h2, h3 {
text-transform: uppercase;
}
header ul, header ol, footer ul, footer ol {
font-size: 0.75em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment