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 12, 2018 00:39 — forked from LeaVerou/dabblet.css
Example to show off inline CSS highlighting
/**
* Example to show off inline CSS highlighting
*/
@Ruslan2230
Ruslan2230 / dabblet.css
Created June 4, 2018 10:11
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@Ruslan2230
Ruslan2230 / dabblet.css
Created June 4, 2018 10:09
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@Ruslan2230
Ruslan2230 / dabblet.css
Created June 3, 2018 19:23 — forked from csssecrets/dabblet.css
Extending the hit area β€” with generated content
/**
* Extending the hit area β€” with generated content
*/
button {
position: relative;
padding: .3em .5em;
background: #58a;
border-radius: 50%;
border: 1px solid rgba(0,0,0,.3);
@Ruslan2230
Ruslan2230 / dabblet.css
Created June 3, 2018 19:20
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 19:04
Letterpress
/**
* Letterpress
*/
body {
font: 250%/1.6 Baskerville, Palatino, serif;
}
p {
padding: .8em 1em;
@Ruslan2230
Ruslan2230 / dabblet.css
Created June 3, 2018 19:00
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
Created June 3, 2018 18:33
Wavy underlines
/**
* Wavy underlines
*/
body {
font: 250%/1.6 Baskerville, Palatino, serif;
}
a {
background: linear-gradient(-45deg, transparent 40%, red 0, red 60%, transparent 0) 0 1em,
@Ruslan2230
Ruslan2230 / dabblet.css
Created June 3, 2018 18:32
Custom underlines
/**
* Custom underlines
*/
body {
font: 250%/1.6 Baskerville, Palatino, serif;
}
a {
background: linear-gradient(gray, gray) no-repeat;
@Ruslan2230
Ruslan2230 / dabblet.css
Created June 3, 2018 18:20 — forked from csssecrets/dabblet.css
Fancy Ampersands
/**
* Fancy Ampersands
*/
@font-face {
font-family: Ampersand;
src: local('Baskerville-Italic'), local('GoudyOldStyleT-Italic'), local('Garamond-Italic'), local('Palatino-Italic');
unicode-range: U+26;
}