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
/** | |
* fill box-shadow | |
*/ | |
div{ | |
width:400px; | |
height:150px; | |
color:white; | |
margin:100px; | |
border-radius:0 0 100px; | |
} |
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
/** | |
* Testing mailto forms | |
*/ |
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
/** | |
* ex unit | |
*/ | |
p{ | |
font-size:40px; | |
color:DarkBlue | |
} | |
p span{ | |
font-size:1ex; |
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
/** | |
* css transform make text-ugly (depending os/browser) | |
*/ | |
div{ | |
border:1px solid red; | |
padding:15px; | |
margin:50px; | |
font-size:17px; | |
transform-origin:0 0; | |
transform:rotate(10.4deg); |
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
/* transition elastic */ | |
div{ | |
width:50px; | |
height:50px; | |
background-color:#777; | |
position:absolute; | |
left:50px; | |
margin-left:50px; | |
transition: |
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
/* transition bounce */ | |
div{ | |
width:50px; | |
height:50px; | |
background-color:#777; | |
position:absolute; | |
left:50px; | |
margin-left:50px; | |
transition: |
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
/** | |
repeating-linear-gradient bug on chrome | |
*/ | |
html { | |
height: 100%; | |
background-image:repeating-linear-gradient(45deg, rgb(231, 209, 156), rgb(231, 209, 156) 2px, transparent 2px, transparent 4px); | |
/* background-size: 4px 4px; */ | |
} |
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
/* | |
motion blur | |
*/ | |
html{ | |
text-align:center; | |
} | |
div{ | |
background:rgba(255,0,0,.1); | |
display:inline-block; | |
margin:20px; |
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
/** | |
* rgba with 0 alpha component | |
*/ | |
ul>li{ | |
height:30px; | |
line-height:30px; | |
border:1px dotted grey; | |
margin:10px; | |
font-family:sans-serif; | |
} |
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
/** | |
* gracefully degrading switch-style checkboxes | |
* need <label> wrapper and <span> immediatly after checkbox. | |
*/ | |
input[type="checkbox"]+span{display:none} | |
input[type="checkbox"]:not(:checked), | |
input[type="checkbox"]:checked { /* :checked here acting as a filter for older browsers */ | |
display:none; | |
} | |
input[type="checkbox"]:not(:checked)+span, |