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
/** | |
* Vertical stripes | |
*/ | |
height: 100%; width: 100%; | |
background: | |
linear-gradient( | |
to right, | |
#fb3 50%, | |
#58a 0); | |
/*bg repeated 15 times and finishing |
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
/** | |
* Inner rounding | |
*/ | |
div { | |
border-radius: .8em; | |
outline:calc(.34em + .01em) solid #655; /*min .35em*/ | |
box-shadow:0 0 0 .34em #655; /*min .34em*/ | |
max-width: 10em; |
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
/** | |
* Flexible background positioning | |
* via calc() | |
*/ | |
div { | |
margin: 3em auto; | |
background: url(http://csssecrets.io/images/code-pirate.svg) | |
no-repeat bottom right #58a; | |
background-position: calc(100% - 20px) calc(100% - 10px); |
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
/** | |
* Flexible background positioning | |
* via extended background-position | |
*/ | |
div { | |
background: url(http://csssecrets.io/images/code-pirate.svg) | |
no-repeat bottom right #58a; | |
background-origin: content-box; | |
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
/** | |
* Multiple borders | |
*/ | |
div { | |
width: 100px; | |
height: 60px; | |
margin: calc(50% - 40px) auto; | |
background: yellowgreen; | |
box-shadow: |
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
/** | |
* Translucent borders | |
*/ | |
body { | |
margin: 0; | |
background: url('http://csssecrets.io/images/stone-art.jpg'); | |
} | |
div { |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; } | |
body > *:first-child { |
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
/** | |
* Justified Menu | |
*/ | |
body { text-align: center; } | |
nav { | |
user-select: none; | |
resize: both; | |
overflow: auto; | |
display: inline-block; |
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
/** | |
* Add event listeners | |
*/ |
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
/** | |
* Angry Birds Star Wars purple button | |
*/ | |
:root, body { | |
overflow: hidden; | |
height: 100%; | |
background-color: #122347; | |
} | |
.b-angry-birds-star-wars-btn { |
NewerOlder