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 { | |
| outline: .6em solid #655; | |
| box-shadow: 0 0 0 .1em red; /* todo calculate max of this */ | |
| max-width: 10em; | |
| border-radius: .8em; |
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 | |
| */ | |
| body { | |
| text-align :center; | |
| } | |
| div { | |
| width: 200px; | |
| height: 200px; |
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 { | |
| background: url('http://csssecrets.io/images/stone-art.jpg'); | |
| } | |
| div { | |
| border: 10px solid hsla(0,0%,100%,.5); |
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
| /* iOS Native App Default Style implemented in CSS */ | |
| /* Bootstrapping … */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| font-size: inherit; | |
| -webkit-tap-highlight-color: rgba(0,0,0,0); | |
| } |
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
| /* The wrapper */ | |
| .b-block { | |
| position: relative; | |
| display: inline-block; | |
| overflow: hidden; | |
| width: 10em; | |
| height: 10em; | |
| vertical-align: middle; |
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
| /* The wrapper */ | |
| .b-block { | |
| position: relative; | |
| display: inline-block; | |
| overflow: hidden; | |
| width: 10em; | |
| height: 10em; | |
| vertical-align: middle; |
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
| /* The wrapper */ | |
| .b-block { | |
| position: relative; | |
| display: inline-block; | |
| overflow: hidden; | |
| width: 10em; | |
| height: 10em; | |
| vertical-align: middle; |
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
| /** | |
| * Previewer test | |
| */ | |
| background: #f06; | |
| background: linear-gradient(left bottom, | |
| hsla(340, 100%, 50%,.7), yellow); | |
| min-width: 100px; | |
| width: 400px; | |
| transition-duration: 10s; |
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
| /** | |
| * Previewer test | |
| */ | |
| background: #f06; | |
| background: linear-gradient(left bottom, | |
| hsla(340, 100%, 50%,.7), yellow); | |
| min-width: 100px; | |
| width: 400px; | |
| transition-duration: 10s; |
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
| /** | |
| * Previewer test | |
| */ | |
| background: #f06; | |
| background: linear-gradient(left bottom, | |
| hsla(340, 100%, 50%,.7), yellow); | |
| min-width: 100px; | |
| width: 400px; | |
| transition-duration: 10s; |
NewerOlder