UNPKG

@roadtrip/css

Version:

CSS framework for Roadtrip Design System

434 lines (324 loc) 5.98 kB
/* * Flexbox utilities * * Index * - Flex direction * - Flex grow * - Flex shrink * - Flex wrap * - Justify content * - Align items */ /* FLEX DIRECTION -------------------- */ .flex-row { flex-direction: row; } .flex-row-reverse { flex-direction: row-reverse; } .flex-column { flex-direction: column; } .flex-column-reverse { flex-direction: column-reverse; } /* FLEX WRAP -------------------- */ .flex-wrap { flex-wrap: wrap; } .flex-nowrap { flex-wrap: nowrap; } /* FLEX GROW -------------------- */ .flex-grow-0 { flex-grow: 0; } .flex-grow-1 { flex-grow: 1; } /* FLEX SHRINK -------------------- */ .flex-shrink-0 { flex-shrink: 0; } .flex-shrink-1 { flex-shrink: 1; } /* FLEX -------------------- */ .flex-1 { flex: 1 1 0%; } /* JUSTIFY CONTENT -------------------- */ .justify-content-start { justify-content: flex-start; } .justify-content-end { justify-content: flex-end; } .justify-content-center { justify-content: center; } .justify-content-between { justify-content: space-between; } .justify-content-around { justify-content: space-around; } /* ALIGN ITEMS -------------------- */ .align-items-start { align-items: flex-start; } .align-items-end { align-items: flex-end; } .align-items-center { align-items: center; } .align-items-baseline { align-items: baseline; } .align-items-stretch { align-items: stretch; } @media (min-width: 576px) { .flex-sm-row { flex-direction: row; } .flex-sm-row-reverse { flex-direction: row-reverse; } .flex-sm-column { flex-direction: column; } .flex-sm-column-reverse { flex-direction: column-reverse; } .flex-sm-wrap { flex-wrap: wrap; } .flex-sm-nowrap { flex-wrap: nowrap; } .justify-content-sm-start { justify-content: flex-start; } .justify-content-sm-end { justify-content: flex-end; } .justify-content-sm-center { justify-content: center; } .justify-content-sm-between { justify-content: space-between; } .justify-content-sm-around { justify-content: space-around; } .align-items-sm-start { align-items: flex-start; } .align-items-sm-end { align-items: flex-end; } .align-items-sm-center { align-items: center; } .align-items-sm-baseline { align-items: baseline; } .align-items-sm-stretch { align-items: stretch; } } @media (min-width: 768px) { .flex-md-row { flex-direction: row; } .flex-md-row-reverse { flex-direction: row-reverse; } .flex-md-column { flex-direction: column; } .flex-md-column-reverse { flex-direction: column-reverse; } .flex-md-wrap { flex-wrap: wrap; } .flex-md-nowrap { flex-wrap: nowrap; } .justify-content-md-start { justify-content: flex-start; } .justify-content-md-end { justify-content: flex-end; } .justify-content-md-center { justify-content: center; } .justify-content-md-between { justify-content: space-between; } .justify-content-md-around { justify-content: space-around; } .align-items-md-start { align-items: flex-start; } .align-items-md-end { align-items: flex-end; } .align-items-md-center { align-items: center; } .align-items-md-baseline { align-items: baseline; } .align-items-md-stretch { align-items: stretch; } } @media (min-width: 992px) { .flex-lg-row { flex-direction: row; } .flex-lg-row-reverse { flex-direction: row-reverse; } .flex-lg-column { flex-direction: column; } .flex-lg-column-reverse { flex-direction: column-reverse; } .flex-lg-wrap { flex-wrap: wrap; } .flex-lg-nowrap { flex-wrap: nowrap; } .justify-content-lg-start { justify-content: flex-start; } .justify-content-lg-end { justify-content: flex-end; } .justify-content-lg-center { justify-content: center; } .justify-content-lg-between { justify-content: space-between; } .justify-content-lg-around { justify-content: space-around; } .align-items-lg-start { align-items: flex-start; } .align-items-lg-end { align-items: flex-end; } .align-items-lg-center { align-items: center; } .align-items-lg-baseline { align-items: baseline; } .align-items-lg-stretch { align-items: stretch; } } @media (min-width: 1200px) { .flex-xl-row { flex-direction: row; } .flex-xl-row-reverse { flex-direction: row-reverse; } .flex-xl-column { flex-direction: column; } .flex-xl-column-reverse { flex-direction: column-reverse; } .flex-xl-wrap { flex-wrap: wrap; } .flex-xl-nowrap { flex-wrap: nowrap; } .justify-content-xl-start { justify-content: flex-start; } .justify-content-xl-end { justify-content: flex-end; } .justify-content-xl-center { justify-content: center; } .justify-content-xl-between { justify-content: space-between; } .justify-content-xl-around { justify-content: space-around; } .align-items-xl-start { align-items: flex-start; } .align-items-xl-end { align-items: flex-end; } .align-items-xl-center { align-items: center; } .align-items-xl-baseline { align-items: baseline; } .align-items-xl-stretch { align-items: stretch; } } .align-content-start { align-content: flex-start; } .align-content-end { align-content: flex-end; } .align-content-center { align-content: center; } .align-content-between { align-content: space-between; } .align-content-around { align-content: space-around; } .align-content-stretch { align-content: stretch; } .align-self-auto { align-self: auto; } .align-self-start { align-self: flex-start; } .align-self-end { align-self: flex-end; } .align-self-center { align-self: center; } .align-self-baseline { align-self: baseline; } .align-self-stretch { align-self: stretch; }