Last active
September 26, 2015 13:37
-
-
Save sbussard/1104862 to your computer and use it in GitHub Desktop.
css3 snippet
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
.no-select { | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-o-user-select: none; | |
user-select: none; | |
} | |
.no-drag { | |
-webkit-touch-callout: none; | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
-webkit-user-drag: none; | |
user-drag: none; | |
} | |
.gradient (@bottom, @top, @bgcolor) { | |
background: @bgcolor; /* Old browsers */ | |
background: fixed -moz-linear-gradient(top, @top 0%, @bottom 100%); /* FF3.6+ */ | |
background: fixed -webkit-gradient(linear, left top, left bottom, color-stop(0%,@top), color-stop(100%,@bottom)); /* Chrome,Safari4+ */ | |
background: fixed -webkit-linear-gradient(top, @top 0%,@bottom 100%); /* Chrome10+,Safari5.1+ */ | |
background: fixed -o-linear-gradient(top, @top 0%,@bottom 100%); /* Opera11.10+ */ | |
background: fixed -ms-linear-gradient(top, @top 0%,@bottom 100%); /* IE10+ */ | |
background: fixed linear-gradient(top, @top 0%,@bottom 100%); /* W3C */ | |
} | |
.boxshadow { | |
-moz-box-shadow: 0px 1px 1px #777; | |
box-shadow: 0px 2px 1px #999; | |
} | |
.textshadow { | |
text-shadow: 0px 2px 3px #333; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment