Last active
October 22, 2017 12:17
-
-
Save JeansBolong/7c25e10943202108ab6493095fb7ca93 to your computer and use it in GitHub Desktop.
Some css tips and trik
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
::selection { | |
background: #eac06e; /* Safari */ | |
color: white; | |
} | |
::-moz-selection { | |
background: #eac06e; /* Firefox */ | |
color: white; | |
} |
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
.selector{ | |
filter: alpha(opacity=50); /* internet explorer */ | |
-khtml-opacity: 0.5; /* khtml,old safari */ | |
-moz-opacity: 0.5; /* mozilla, netscape */ | |
opacity: 0.5; /* fix,safari,opera */ | |
} |
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
/* ========================================================================== | |
custom radio - checkbox GLOBAL | |
========================================================================== */ | |
input[type=checkbox], | |
input[type=radio]{ | |
margin:0;padding:0; | |
-webkit-appearance:none; | |
-moz-appearance:none; | |
appearance:none; | |
} | |
input[type=checkbox]:after, | |
input[type=radio]:after{ | |
content: ""; | |
background: url("../images/Check-Box.png") 0 0; | |
width: 19px; | |
height: 18px; | |
display: block | |
} | |
input[type=checkbox]:checked:after, | |
input[type=radio]:checked:after{ | |
content: ""; | |
background: url("../images/Check-Box.png") 0 -17px; | |
width: 19px; | |
height: 18px; | |
display: block | |
} |
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
overflow:hidden;-webkit-overflow-scrolling:touch; | |
//put this at the first component after body |
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
/* animation keyframes */ | |
@keyframes showoverlay { | |
0%{ opacity: 0; } | |
100%{ opacity: 1; } | |
} | |
/* call the animation */ | |
a:hover{ | |
animation: showoverlay 500ms ease-in-out; | |
} |
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
@-moz-document url-prefix() { | |
/*content goes here*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment