Created
October 16, 2020 15:24
-
-
Save geongeorge/2f2e994643918029c4182a5b2a9265b3 to your computer and use it in GitHub Desktop.
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
/** @format */ | |
// Flex parent | |
.flex { | |
display: flex; | |
} | |
.flex-row { | |
flex-direction: column; | |
} | |
.flex-col { | |
flex-direction: row; | |
} | |
.flex-wrap { | |
flex-wrap: wrap; | |
} | |
// Flex items | |
.flex-1 { | |
flex: 1 1 0%; | |
} | |
.flex-auto { | |
flex: 1 1 auto; | |
} | |
.flex-initial { | |
flex: 0 1 auto; | |
} | |
.flex-none { | |
flex: none; | |
} | |
// Justify / Align | |
.justify-start { | |
justify-content: flex-start; | |
} | |
.justify-end { | |
justify-content: flex-end; | |
} | |
.justify-center { | |
justify-content: center; | |
} | |
.justify-between { | |
justify-content: space-between; | |
} | |
.justify-around { | |
justify-content: space-around; | |
} | |
.justify-evenly { | |
justify-content: space-evenly; | |
} | |
// Width | |
.w-auto { | |
width: auto; | |
} | |
.w-px { | |
width: 1px; | |
} | |
.w-1\/2 { | |
width: 50%; | |
} | |
.w-1\/3 { | |
width: 33.333333%; | |
} | |
.w-2\/3 { | |
width: 66.666667%; | |
} | |
.w-1\/4 { | |
width: 25%; | |
} | |
.w-2\/4 { | |
width: 50%; | |
} | |
.w-3\/4 { | |
width: 75%; | |
} | |
.w-1\/5 { | |
width: 20%; | |
} | |
.w-2\/5 { | |
width: 40%; | |
} | |
.w-3\/5 { | |
width: 60%; | |
} | |
.w-4\/5 { | |
width: 80%; | |
} | |
.w-1\/6 { | |
width: 16.666667%; | |
} | |
.w-2\/6 { | |
width: 33.333333%; | |
} | |
.w-3\/6 { | |
width: 50%; | |
} | |
.w-4\/6 { | |
width: 66.666667%; | |
} | |
.w-5\/6 { | |
width: 83.333333%; | |
} | |
.w-1\/12 { | |
width: 8.333333%; | |
} | |
.w-2\/12 { | |
width: 16.666667%; | |
} | |
.w-3\/12 { | |
width: 25%; | |
} | |
.w-4\/12 { | |
width: 33.333333%; | |
} | |
.w-5\/12 { | |
width: 41.666667%; | |
} | |
.w-6\/12 { | |
width: 50%; | |
} | |
.w-7\/12 { | |
width: 58.333333%; | |
} | |
.w-8\/12 { | |
width: 66.666667%; | |
} | |
.w-9\/12 { | |
width: 75%; | |
} | |
.w-10\/12 { | |
width: 83.333333%; | |
} | |
.w-11\/12 { | |
width: 91.666667%; | |
} | |
.w-full { | |
width: 100%; | |
} | |
.w-screen { | |
width: 100vw; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment