Flexbox

Flexbox 레이아웃 관련 모든 클래스입니다.

Direction

클래스CSS
fdrflex-direction: row
fdrrflex-direction: row-reverse
fdcflex-direction: column
fdcrflex-direction: column-reverse

Wrap

클래스CSS
fwnflex-wrap: nowrap
fwwflex-wrap: wrap
fwrflex-wrap: wrap-reverse

Justify Content

클래스CSS
jcfsjustify-content: flex-start
jcfejustify-content: flex-end
jccjustify-content: center
jcsbjustify-content: space-between
jcsajustify-content: space-around
jcsejustify-content: space-evenly

Align Items

클래스CSS
aisalign-items: stretch
aifsalign-items: flex-start
aifealign-items: flex-end
aicalign-items: center
aibalign-items: baseline

Align Content

클래스CSS
acsalign-content: stretch
acfsalign-content: flex-start
acfealign-content: flex-end
accalign-content: center
acsbalign-content: space-between
acsaalign-content: space-around

Align Self

클래스CSS
asaalign-self: auto
assalign-self: stretch
asfsalign-self: flex-start
asfealign-self: flex-end
ascalign-self: center
asbalign-self: baseline

Flex Shorthand

클래스CSS
faflex: auto
fiflex: initial
fs0flex-shrink: 0
fs1flex-shrink: 1
fshiflex-shrink: initial
fshuflex-shrink: unset
fg1flex-grow: 1
fg2flex-grow: 2
fguflex-grow: unset
fbautoflex-basis: auto
fb200pxflex-basis: 200px
order1order: 1
neg-order1order: -1

Justify Items / Self

클래스CSS
jisjustify-items: start
jicjustify-items: center
jifejustify-items: flex-end
jistjustify-items: stretch
jsajustify-self: auto
jsnjustify-self: normal
jssjustify-self: start
jscjustify-self: center
jsfejustify-self: flex-end
jsstjustify-self: stretch

일반적인 패턴

<!-- 센터 정렬 -->
<div class="df jcc aic gap2rem">센터</div>

<!-- 세로 스택 -->
<div class="df fdc gap16px">세로 나열</div>

<!-- 양쪽 정렬 -->
<div class="df jcsb aic">
  <span>왼쪽</span>
  <span>오른쪽</span>
</div>

<!-- 반응형: 가로→세로 -->
<div class="df fdr sm-fdc gap2rem">
  <div class="fg1">왼쪽</div>
  <div class="fg1">오른쪽</div>
</div>