Created
March 5, 2014 15:02
-
-
Save sturobson/9368913 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.2.14) | |
// Compass (v0.12.2) | |
// ---- | |
// ------------------------------------- | |
// helpers | |
// ------------------------------------- | |
@mixin ir { | |
color: transparent; | |
font: 0/0 a; | |
text-shadow: none; | |
} | |
// hide from everything ---------------- | |
@mixin hidden { | |
display: none !important; | |
visibility: hidden; | |
} | |
@mixin visually-hidden { | |
border: 0; | |
clip: rect(0 0 0 0); | |
height: 1px; | |
margin: -1px; | |
overflow: hidden; | |
padding: 0; | |
position: absolute; | |
width: 1px; | |
&.focusable:active, | |
&.focusable:focus { | |
clip: auto; | |
height: auto; | |
margin: 0; | |
overflow: visible; | |
position: static; | |
width: auto; | |
} | |
} | |
@mixin invisible { | |
visibility: hidden; | |
} | |
// clearfix ---------------------------- | |
@mixin cf { | |
&:before, | |
&:after { | |
content: ""; | |
display: table; | |
} | |
&:after { | |
clear: both; | |
} | |
} | |
main { | |
@include cf; | |
} | |
aside { | |
@include cf; | |
} | |
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
main:before, main:after { | |
content: ""; | |
display: table; | |
} | |
main:after { | |
clear: both; | |
} | |
aside:before, aside:after { | |
content: ""; | |
display: table; | |
} | |
aside:after { | |
clear: both; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment