Skip to content

Instantly share code, notes, and snippets.

View MartaZiobrowska's full-sized avatar

MartaZiobrowska

View GitHub Profile
@MartaZiobrowska
MartaZiobrowska / dabblet.css
Last active October 6, 2016 09:23
Range input solution
/**
* Range input solution
*/
.image-slider {
position: relative;
display: inline-block;
}
.image-slider > div {
@MartaZiobrowska
MartaZiobrowska / dabblet.css
Last active October 6, 2016 07:09 — forked from csssecrets/dabblet.css
Taming table column widths
/**
* Taming table column widths
*/
body { background: #ddd }
section {
width: 600px;
margin: 2em;
background: white;
@MartaZiobrowska
MartaZiobrowska / dabblet.css
Last active October 5, 2016 13:42 — forked from csssecrets/dabblet.css
Intrinsic sizing
/**
* Intrinsic sizing
*/
figure {
/** max-width: 400px;*/
max-width: min-content;
margin: auto;
}
@MartaZiobrowska
MartaZiobrowska / dabblet.css
Last active October 5, 2016 15:43
Zip - interactive image
/**
* Zip - interactive image
*/
.image-slider
{
position: relative;
display: inline-block;
}
@MartaZiobrowska
MartaZiobrowska / dabblet.css
Last active October 5, 2016 09:37 — forked from csssecrets/dabblet.css
Interactive image comparison - with CSS resize
/**
* Interactive image comparison - with CSS resize
*/
.image-slider{
position: relative;
display: inline-block;
}
.image-slider > div {
@MartaZiobrowska
MartaZiobrowska / dabblet.css
Created October 4, 2016 14:35 — forked from csssecrets/dabblet.css
Scrolling hints
/**
* Scrolling hints
*/
ul {
display: inline-block;
overflow: auto;
width: 7em;
height: 7em;
border: 1px solid silver;
@MartaZiobrowska
MartaZiobrowska / dabblet.css
Last active October 4, 2016 13:38 — 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 {
@MartaZiobrowska
MartaZiobrowska / dabblet.css
Created October 4, 2016 08:01 — 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 {
@MartaZiobrowska
MartaZiobrowska / dabblet.css
Created October 3, 2016 07:38 — forked from csssecrets/dabblet.css
Glowing text
/**
* Glowing text
*/
body {
background: #203;
font: bold 500%/1 Rockwell, serif;
}
a {
@MartaZiobrowska
MartaZiobrowska / dabblet.css
Created September 30, 2016 11:30 — forked from csssecrets/dabblet.css
Custom underlines
/**
* Custom underlines
*/
body {
font: 250%/1.6 Baskerville, Palatino, serif;
}
a {
background: linear-gradient(gray, gray) no-repeat;