Skip to content

Instantly share code, notes, and snippets.

/*
* @supports
*/
#supportsCSSVariables {
display: none;
font-size: 70px;
font-family: monospace;
}
@julia-r
julia-r / dabblet.css
Last active March 16, 2018 14:40
Color Accessibility Example
/**
* Color Accessibility Example
*/
.contrast {
background-color: #585858;
color: #777575;
}
.red-green {
@julia-r
julia-r / dabblet.css
Last active March 16, 2018 14:44
Box arrangements
/**
* Box arrangements
*/
.container { }
.item {}
@julia-r
julia-r / dabblet.css
Last active March 16, 2018 15:01
CSS Grid Layout
/**
* CSS Grid Layout
* Source: https://codepen.io/mozilladevelopers/pen/GMjwvG
*/
.container {
display: grid;
width: 750px;
height: 600px;
grid-template-columns: 200px 1fr 1fr;
@julia-r
julia-r / dabblet.css
Created March 22, 2018 14:08
Untitled
#container { }
footer { }
#container {
background-color: skyblue;
margin: 0;
padding: 0;
@julia-r
julia-r / dabblet.css
Created March 22, 2018 14:08
Untitled
#container { }
footer { }
#container {
background-color: skyblue;
margin: 0;
padding: 0;
@julia-r
julia-r / dabblet.css
Last active March 22, 2018 15:19
CSS Grid
/**
* CSS Grid
*/
.container {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(5, 1fr);
}
@julia-r
julia-r / dabblet.css
Last active March 23, 2018 10:41
Font example
/**
* Font example
*/
span {
font-family: 'Montserrat Alternates', sans-serif;
font-size: 80px;
font-weight: 400;
display: block;
}
@julia-r
julia-r / dabblet.css
Last active March 23, 2018 10:43
Untitled
*{
/* set variable, needs to start with "--" */
--my-color: #009688;
}
.demo {
border: solid 5px var(--my-color);
box-shadow: 0 0 5px var(--my-color);
color: var(--my-color);
@julia-r
julia-r / dabblet.css
Last active March 23, 2018 10:45
Untitled
*{
--footer-height: 30px;
}
#container {
height: calc(100vh - var(--footer-height));
}
footer {
height: var(--footer-height);