Skip to content

Instantly share code, notes, and snippets.

View re4388's full-sized avatar
🎯
Focusing

re4388 re4388

🎯
Focusing
  • Taipei,Taiwan
View GitHub Profile
@re4388
re4388 / dabblet.css
Created August 26, 2020 01:53 — 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;
@re4388
re4388 / dabblet.css
Created August 26, 2020 01:52 — forked from csssecrets/dabblet.css
Horizontal stripes
/**
* Horizontal stripes
*/
background: linear-gradient(#fb3 50%, #58a 0);
background-size: 100% 30px;
@re4388
re4388 / dabblet.css
Created August 26, 2020 01:52 — forked from csssecrets/dabblet.css
Vertical stripes
/**
* Vertical stripes
*/
background: linear-gradient(to right, #fb3 50%, #58a 0);
background-size: 30px 100%;
@re4388
re4388 / dabblet.css
Created August 26, 2020 01:52 — forked from csssecrets/dabblet.css
Diagonal stripes - repeating-linear-gradient() method
/**
* Diagonal stripes - repeating-linear-gradient() method
*/
background: repeating-linear-gradient(60deg,
#fb3,
#fb3 15px,
#58a 0,
#58a 30px);
@re4388
re4388 / dabblet.css
Created August 26, 2020 01:52 — forked from csssecrets/dabblet.css
Subtle stripes
/**
* Subtle stripes
*/
background: #58a;
background-image: repeating-linear-gradient(30deg,
hsla(0,0%,100%,.1),
hsla(0,0%,100%,.1) 15px,
transparent 0,
transparent 30px);
@re4388
re4388 / dabblet.css
Created August 26, 2020 01:48 — 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);
@re4388
re4388 / dabblet.css
Created August 26, 2020 01:48 — 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;
@re4388
re4388 / dabblet.css
Created August 26, 2020 01:44 — 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,
@re4388
re4388 / dabblet.css
Created August 26, 2020 01:39 — forked from csssecrets/dabblet.css
Translucent borders
/**
* Translucent borders
*/
body {
background: url('http://csssecrets.io/images/stone-art.jpg');
}
div {
border: 10px solid hsla(0,0%,100%,.5);