Last active
August 29, 2015 14:05
-
-
Save steverydz/8ccf8649fef19405cb95 to your computer and use it in GitHub Desktop.
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
/* Sane box model */ | |
html { | |
box-sizing: border-box; | |
} | |
*, | |
*:before, | |
*:after { | |
box-sizing: inherit; | |
} | |
/* Clearfix */ | |
.clearfix:before, | |
.clearfix:after { | |
content: " "; | |
display: table; | |
} | |
.clearfix:after { | |
clear: both; | |
} | |
/* Positioning */ | |
.center-xy { | |
margin: 0 auto; | |
display: table; | |
position: relative; | |
top: 50%; | |
-webkit-transform: translateY(-50%); | |
transform: translateY(50%); | |
} | |
/* Visibility */ | |
.show { | |
display: block; | |
} | |
.hide { | |
display: none; | |
} | |
.invisible { | |
visibility: hidden; | |
} | |
.hidden-accessible { | |
border: 0; | |
clip: rect(0 0 0 0); | |
height: 1px; | |
margin: -1px; | |
overflow: hidden; | |
padding: 0; | |
position: absolute; | |
width: 1px; | |
} | |
/* Disabled elements */ | |
.disabled, | |
[disabled=true], | |
:disabled { | |
cursor: default; | |
opacity: 0.6; | |
pointer-events: none; | |
-moz-user-input: disabled; | |
user-input: disabled; | |
-moz-user-focus: ignore; | |
user-focus: ignore; | |
} | |
/* Image replacement */ | |
.hide-text { | |
text-indent: 100%; | |
white-space: nowrap; | |
overflow: hidden; | |
} | |
/* Transitions */ | |
.transition { | |
-webkit-transition: all 0.3s ease-out; | |
transition: all 0.3s ease-out; | |
} | |
.fade { | |
opacity: 0; | |
-webkit-transition: opacity 0.15s linear; | |
transition: opacity 0.15s linear; | |
} | |
.fade.in { | |
opacity: 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment