This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* @supports | |
*/ | |
#supportsCSSVariables { | |
display: none; | |
font-size: 70px; | |
font-family: monospace; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Color Accessibility Example | |
*/ | |
.contrast { | |
background-color: #585858; | |
color: #777575; | |
} | |
.red-green { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Box arrangements | |
*/ | |
.container { } | |
.item {} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CSS Grid Layout | |
* Source: https://codepen.io/mozilladevelopers/pen/GMjwvG | |
*/ | |
.container { | |
display: grid; | |
width: 750px; | |
height: 600px; | |
grid-template-columns: 200px 1fr 1fr; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#container { } | |
footer { } | |
#container { | |
background-color: skyblue; | |
margin: 0; | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#container { } | |
footer { } | |
#container { | |
background-color: skyblue; | |
margin: 0; | |
padding: 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* CSS Grid | |
*/ | |
.container { | |
display: grid; | |
grid-template-columns: repeat(3, 1fr); | |
grid-template-rows: repeat(5, 1fr); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Font example | |
*/ | |
span { | |
font-family: 'Montserrat Alternates', sans-serif; | |
font-size: 80px; | |
font-weight: 400; | |
display: block; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*{ | |
/* 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*{ | |
--footer-height: 30px; | |
} | |
#container { | |
height: calc(100vh - var(--footer-height)); | |
} | |
footer { | |
height: var(--footer-height); |
OlderNewer