Skip to content

Instantly share code, notes, and snippets.

@yanns1
yanns1 / dabblet.css
Created November 4, 2019 19:21 — forked from csssecrets/dabblet.css
Scrolling hints
/**
* Scrolling hints
*/
ul {
display: inline-block;
overflow: auto;
width: 7.2em;
height: 7em;
border: 1px solid silver;
@yanns1
yanns1 / dabblet.css
Created November 4, 2019 19:20 — forked from csssecrets/dabblet.css
De-emphasizing by blurring (AND dimming)
/**
* De-emphasizing by blurring (AND dimming)
*/
main {
transition: .6s;
background: white;
}
main.de-emphasized {
@yanns1
yanns1 / dabblet.css
Created November 4, 2019 19:20 — forked from csssecrets/dabblet.css
Rudimetary overlay with box-shadow
/**
* Rudimetary overlay with box-shadow
*/
.lightbox {
position: fixed;
top: 50%; left: 50%;
margin: -200px;
box-shadow: 0 0 0 50vmax rgba(0,0,0,.8);
}
@yanns1
yanns1 / dabblet.css
Created November 4, 2019 19:20 — forked from csssecrets/dabblet.css
Toggle buttons
/**
* Toggle buttons
*/
input[type="checkbox"] {
position: absolute;
clip: rect(0,0,0,0);
}
input[type="checkbox"] + label {
@yanns1
yanns1 / dabblet.css
Created November 4, 2019 19:19 — 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 {
@yanns1
yanns1 / dabblet.css
Created November 4, 2019 19:19 — 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);
@yanns1
yanns1 / dabblet.css
Created November 4, 2019 19:19 — forked from csssecrets/dabblet.css
Indicating disabled state
/**
* Indicating disabled state
*/
:disabled, [disabled], [aria-disabled="true"] {
cursor: not-allowed;
}
@yanns1
yanns1 / dabblet.css
Created November 4, 2019 19:19 — forked from csssecrets/dabblet.css
Text on a circle
/**
* Text on a circle
*/
body {
font: bold 120% Helvetica, sans-serif;
}
.circular {
width: 30em;
@yanns1
yanns1 / dabblet.css
Created November 4, 2019 19:18 — 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%),
@yanns1
yanns1 / dabblet.css
Created November 4, 2019 19:17 — forked from csssecrets/dabblet.css
Glowing text
/**
* Glowing text
*/
body {
background: #203;
font: bold 500%/1 Rockwell, serif;
}
a {