mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
65 lines
1.7 KiB
SCSS
65 lines
1.7 KiB
SCSS
// Flex utility classes - Layout utilities
|
|
|
|
.flex { display: flex; }
|
|
.inline-flex { display: inline-flex; }
|
|
.flex-col { flex-direction: column; }
|
|
.flex-col-reverse { flex-direction: column-reverse; }
|
|
.flex-row { flex-direction: row; }
|
|
.flex-row-reverse { flex-direction: row-reverse; }
|
|
|
|
// Combined alignment patterns
|
|
.flex-center {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.flex-between {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.flex-around {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
}
|
|
.flex-evenly {
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
align-items: center;
|
|
}
|
|
|
|
// Align items
|
|
.items-start { align-items: flex-start; }
|
|
.items-end { align-items: flex-end; }
|
|
.items-center { align-items: center; }
|
|
.items-baseline { align-items: baseline; }
|
|
.items-stretch { align-items: stretch; }
|
|
|
|
// Justify content
|
|
.justify-start { justify-content: flex-start; }
|
|
.justify-center { justify-content: center; }
|
|
.justify-end { justify-content: flex-end; }
|
|
.justify-between { justify-content: space-between; }
|
|
.justify-around { justify-content: space-around; }
|
|
.justify-evenly { justify-content: space-evenly; }
|
|
|
|
// Flex wrap
|
|
.flex-wrap { flex-wrap: wrap; }
|
|
.flex-nowrap { flex-wrap: nowrap; }
|
|
.flex-wrap-reverse { flex-wrap: wrap-reverse; }
|
|
|
|
// Flex grow/shrink
|
|
.flex-1 { flex: 1 1 0%; }
|
|
.flex-auto { flex: 1 1 auto; }
|
|
.flex-initial { flex: 0 1 auto; }
|
|
.flex-none { flex: none; }
|
|
.flex-grow { flex-grow: 1; }
|
|
.flex-grow-0 { flex-grow: 0; }
|
|
.flex-shrink { flex-shrink: 1; }
|
|
.flex-shrink-0 { flex-shrink: 0; }
|
|
|
|
// Legacy aliases
|
|
.flex-start { align-items: flex-start; }
|
|
.flex-end { align-items: flex-end; }
|