Skip to content

Instantly share code, notes, and snippets.

View SBaof's full-sized avatar

dcloud SBaof

View GitHub Profile
@SBaof
SBaof / dabblet.css
Created September 19, 2017 12:57 — forked from csssecrets/dabblet.css
Inner rounding
/**
* Inner rounding
*/
div {
outline: .6em solid #655;
box-shadow: 0 0 0 .4em #655; /* todo calculate max of this */
max-width: 10em;
border-radius: .8em;
@SBaof
SBaof / dabblet.css
Created September 14, 2017 07:56 — forked from csssecrets/dabblet.css
Flexible background positioning
/**
* 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;
@SBaof
SBaof / dabblet.css
Created September 14, 2017 07:55 — forked from csssecrets/dabblet.css
Flexible background positioning
/**
* Flexible background positioning
* via calc()
*/
div {
background: url(http://csssecrets.io/images/code-pirate.svg)
no-repeat bottom right #58a;
background-position: calc(100% - 20px) calc(100% - 10px);
@SBaof
SBaof / dabblet.css
Created September 14, 2017 07:31 — forked from csssecrets/dabblet.css
Multiple borders
/**
* Multiple borders
*/
div {
width: 100px;
height: 60px;
margin: 25px;
background: yellowgreen;
box-shadow: 0 0 0 10px #655,