Skip to content

Instantly share code, notes, and snippets.

@jessegilbride
Created November 11, 2020 15:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessegilbride/9dcd70a775ff84d3347d9ee908eed923 to your computer and use it in GitHub Desktop.
Save jessegilbride/9dcd70a775ff84d3347d9ee908eed923 to your computer and use it in GitHub Desktop.
My CSS boilerplate (2020)
: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