Created
November 11, 2020 15:07
-
-
Save jessegilbride/9dcd70a775ff84d3347d9ee908eed923 to your computer and use it in GitHub Desktop.
My CSS boilerplate (2020)
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
:root { | |
--variableName: value; | |
} | |
header {} | |
main {} | |
section { | |
margin: 0 auto; /* center the content */ | |
max-width: 1200px; | |
padding: 2rem; | |
} | |
a {color: ;} | |
a:visited {color: ;} | |
a:hover {color: ;} | |
a:active {color: ;} | |
.list-style-none { | |
list-style: none; | |
} | |
/**************************************** | |
FLEXBOX styles | |
****************************************/ | |
.flex-container { | |
display: flex; | |
flex-direction: column; | |
} | |
.flex-align-center { | |
align-items: center; | |
} | |
.flex-item-1x {flex: 1;} | |
.flex-item-2x {flex: 2;} | |
.flex-item-3x {flex: 3;} | |
.flex-item-4x {flex: 4;} | |
/**************************************** | |
Media Queries | |
****************************************/ | |
@media all and (min-width: 1024px) { | |
.flex-container { | |
flex-direction: row; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment