Created
November 10, 2010 19:37
-
-
Save tilomitra/671374 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/*Gradient Text in Webkit*/ | |
.gradient { | |
font-size: 100px; | |
background: -webkit-gradient(linear, left top, left bottom, from(white), to(black)); | |
-webkit-background-clip: text; | |
-webkit-text-fill-color: transparent; | |
} | |
/*Inset Text*/ | |
.inset { | |
-moz-box-shadow: inset 0 3px 5px rgba(6, 6, 6, 0.1); | |
-webkit-box-shadow: inset 0 3px 5px rgba(6, 6, 6, 0.1); | |
box-shadow: inset 0 3px 5px rgba(6, 6, 6, 0.1); | |
} | |
/*Rounded Corners*/ | |
.smallRound { | |
-webkit-border-radius: 3px; | |
-webkit-background-clip: padding-box; | |
-moz-border-radius: 3px; | |
border-radius: 3px; | |
} | |
/* Hide for both screenreaders and browsers | |
css-discuss.incutio.com/wiki/Screenreader_Visibility */ | |
.hidden { display:none; visibility:hidden; } | |
/* Hide only visually, but have it available for screenreaders | |
www.webaim.org/techniques/css/invisiblecontent/ | |
Solution from: j.mp/visuallyhidden - Thanks Jonathan Neal! */ | |
.visuallyhidden { position:absolute !important; | |
clip: rect(1px 1px 1px 1px); /* IE6, IE7 */ | |
clip: rect(1px, 1px, 1px, 1px); } | |
/* Hide visually and from screenreaders, but maintain layout */ | |
.invisible { visibility: hidden; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment