Skip to content

Instantly share code, notes, and snippets.

View Ruslan2230's full-sized avatar
πŸ‘Œ
Live and learn

Ruslan Hrytsak Ruslan2230

πŸ‘Œ
Live and learn
View GitHub Profile
@Ruslan2230
Ruslan2230 / dabblet.css
Created June 3, 2018 10:09 — forked from csssecrets/dabblet.css
Marching ants border
/**
* Marching ants border
*/
@keyframes ants { to { background-position: 100% 100% } }
div {
padding: 1em;
border: 1px solid transparent;
background: linear-gradient(white, white) padding-box,
@Ruslan2230
Ruslan2230 / dabblet.css
Created June 3, 2018 10:06 — forked from csssecrets/dabblet.css
Vintage envelope themed border
/**
* Vintage envelope themed border
*/
div {
padding: 1em;
border: 1em solid transparent;
background: linear-gradient(white, white) padding-box,
repeating-linear-gradient(-45deg, red 0, red 12.5%, transparent 0, transparent 25%,
#58a 0, #58a 37.5%, transparent 0, transparent 50%) 0 / 6em 6em;
@Ruslan2230
Ruslan2230 / dabblet.css
Created June 3, 2018 10:05 — forked from csssecrets/dabblet.css
Vintage envelope themed border via border-image
/**
* Vintage envelope themed border via border-image
*/
div {
padding: 1em;
border: 16px solid transparent;
border-image: 16 repeating-linear-gradient(-45deg, red 0, red 1em, transparent 0, transparent 2em,
#58a 0, #58a 3em, transparent 0, transparent 4em);
@Ruslan2230
Ruslan2230 / dabblet.css
Created June 3, 2018 10:04 — forked from csssecrets/dabblet.css
Continuous image borders
/**
* Continuous image borders
*/
div {
border: 1em solid transparent;
background: linear-gradient(white, white) padding-box,
url(http://csssecrets.io/images/stone-art.jpg) border-box 0 / cover;
/* Styling & enable resize */
@Ruslan2230
Ruslan2230 / dabblet.css
Last active June 3, 2018 19:11 — forked from csssecrets/dabblet.css
Text on a circle
/**
* Text on a circle
*/
body {
font: bold 120% Helvetica, sans-serif;
}
.circular {
width: 30em;
@Ruslan2230
Ruslan2230 / dabblet.css
Last active June 3, 2018 18:39 — forked from csssecrets/dabblet.css
Glowing text
/**
* Glowing text
*/
body {
background: #203;
font: bold 500%/1 Rockwell, serif;
}
a {
@Ruslan2230
Ruslan2230 / dabblet.css
Last active June 3, 2018 18:59 — forked from csssecrets/dabblet.css
Extruded text
/**
* Extruded text
*/
body {
background: #58a;
color: white;
text-shadow: 0 1px hsl(0,0%,85%),
0 2px hsl(0,0%,80%),
0 3px hsl(0,0%,75%),
@Ruslan2230
Ruslan2230 / dabblet.css
Last active June 3, 2018 19:39 — forked from csssecrets/dabblet.css
Custom checkboxes
/**
* Custom checkboxes
*/
input[type="checkbox"] {
position: absolute;
clip: rect(0,0,0,0);
}
input[type="checkbox"] + label::before {
@Ruslan2230
Ruslan2230 / dabblet.css
Last active June 3, 2018 20:15 — forked from csssecrets/dabblet.css
Extending the hit area β€” with borders
/**
* Extending the hit area β€” with borders
*/
button {
padding: .3em .5em;
border: 10px solid transparent;
border-radius: 50%;
background: #58a;
background-clip: padding-box;
@Ruslan2230
Ruslan2230 / dabblet.css
Created June 3, 2018 09:58 — forked from csssecrets/dabblet.css
Toggle buttons
/**
* Toggle buttons
*/
input[type="checkbox"] {
position: absolute;
clip: rect(0,0,0,0);
}
input[type="checkbox"] + label {