ꯁ꯭ꯄꯦꯁꯤꯡ ꯇꯧꯕꯥ꯫
ꯕꯨꯠꯁ꯭ꯠꯔꯥꯄꯇꯥ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯃꯒꯤ ꯃꯑꯣꯡ ꯃꯇꯧ ꯃꯣꯗꯤꯐꯥꯏ ꯇꯧꯅꯕꯥ ꯁꯣꯔꯇꯍꯦꯟꯗ ꯔꯦꯁ꯭ꯄꯣꯟꯁꯤꯕ ꯃꯥꯔꯖꯤꯟ ꯑꯃꯁꯨꯡ ꯄꯦꯗꯤꯡ ꯌꯨꯇꯤꯂꯤꯇꯤ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤ ꯄꯥꯛ ꯆꯥꯎꯔꯕꯥ ꯔꯦꯟꯖ ꯑꯃꯥ ꯌꯥꯑꯣꯔꯤ꯫
ꯃꯁꯤ ꯀꯔꯝꯅꯥ ꯊꯕꯛ ꯇꯧꯕꯒꯦ꯫
ꯁꯣꯔꯇꯍꯦꯟꯗ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯥ ꯂꯣꯌꯅꯅꯥ ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯃꯗꯥ ꯅꯠꯠꯔꯒꯥ ꯃꯁꯤꯒꯤ ꯁꯥꯏꯗꯁꯤꯡꯒꯤ ꯁꯕꯁꯦꯠ ꯑꯃꯗꯥ ꯔꯦꯁ꯭ꯄꯣꯟꯁꯤꯕꯜ-ꯐ꯭ꯔꯦꯟꯗꯂꯤ margin
ꯅꯠꯠꯔꯒꯥ ꯚꯦꯜꯌꯨꯁꯤꯡ ꯑꯦꯁꯥꯏꯟ ꯇꯧ꯫ padding
ꯃꯤꯑꯣꯏ ꯑꯃꯒꯤ ꯄ꯭ꯔꯣꯄꯔꯇꯤ, ꯄ꯭ꯔꯣꯄꯔꯇꯤ ꯄꯨꯝꯅꯃꯛ, ꯑꯃꯁꯨꯡ ꯚꯔꯇꯤꯀꯦꯜ ꯑꯃꯁꯨꯡ ꯍꯣꯔꯥꯏꯖꯣꯟꯇꯦꯜ ꯄ꯭ꯔꯣꯄꯔꯇꯤꯒꯤ ꯁꯄꯣꯔꯠ ꯌꯥꯑꯣꯔꯤ꯫ ꯀ꯭ꯂꯥꯁꯁꯤꯡ ꯑꯁꯤ ꯗꯤꯐꯣꯜꯇ ꯁꯥꯁ ꯃꯦꯞ ꯑꯃꯗꯒꯤ ꯁꯦꯃꯒꯠꯄꯗꯒꯤ .25rem
ꯍꯧꯔꯒꯥ 3rem
.
ꯅꯣꯇꯦꯁꯟ ꯇꯧꯕꯥ꯫
ꯕ꯭ꯔꯦꯀꯄꯣꯏꯟꯇ ꯄꯨꯝꯅꯃꯛꯇꯥ ꯆꯠꯅꯕꯥ ꯌꯥꯕꯥ ꯁ꯭ꯄꯦꯁꯤꯡ ꯌꯨꯇꯤꯂꯤꯇꯤꯁꯤꯡ, ꯗꯒꯤ xs
, xl
ꯃꯈꯣꯌꯗꯥ ꯕ꯭ꯔꯦꯀꯄꯣꯏꯟꯇ ꯑꯦꯕꯕ꯭ꯔꯤꯕꯤꯌꯔ ꯑꯃꯠꯇꯥ ꯂꯩꯇꯦ꯫ ꯃꯁꯤꯒꯤ ꯃꯔꯃꯗꯤ ꯀ꯭ꯂꯥꯁꯁꯤꯡ ꯑꯗꯨꯗꯒꯤ min-width: 0
ꯑꯃꯁꯨꯡ ꯃꯊꯛꯇꯥ ꯑꯦꯞꯂꯥꯏ ꯇꯧꯏ, ꯑꯃꯁꯨꯡ ꯃꯔꯝ ꯑꯁꯤꯅꯥ ꯃꯦꯗꯤꯌꯥ ꯀ꯭ꯕꯦꯔꯤ ꯑꯃꯅꯥ ꯕꯣꯟꯗ ꯇꯧꯗꯦ꯫ ꯑꯗꯨꯝ ꯑꯣꯏꯅꯃꯛ, ꯂꯦꯃꯍꯧꯔꯤꯕꯥ ꯕ꯭ꯔꯦꯀꯄꯣꯏꯟꯇꯁꯤꯡꯗꯥ ꯕ꯭ꯔꯦꯀꯄꯣꯏꯟꯇ ꯑꯦꯕꯕ꯭ꯔꯤꯕꯤꯌꯔ ꯑꯃꯥ ꯌꯥꯑꯣꯔꯤ꯫
ꯀ꯭ꯂꯥꯁꯁꯤꯡ {property}{sides}-{size}
ꯑꯁꯤ , , , xs
ꯑꯃꯁꯨꯡ . {property}{sides}-{breakpoint}-{size}
_sm
md
lg
xl
ꯄ꯭ꯔꯣꯄꯔꯇꯤ ꯑꯁꯤ ꯃꯈꯥꯗꯥ ꯄꯤꯔꯤꯕꯥ ꯑꯁꯤꯒꯤ ꯃꯅꯨꯡꯗꯥ ꯑꯃꯅꯤ ꯍꯥꯌꯕꯥ ꯃꯐꯝ ꯑꯗꯨꯗꯥ:
m
- ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛ꯫margin
p
- ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛ꯫padding
ꯃꯐꯝ ꯑꯗꯨꯗꯥ ꯁꯥꯏꯗꯁꯤꯡ ꯑꯁꯤ ꯃꯈꯥꯗꯥ ꯄꯤꯔꯤꯕꯁꯤꯡꯁꯤꯒꯤ ꯃꯅꯨꯡꯗꯥ ꯑꯃꯅꯤ:
t
- ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛmargin-top
ꯅꯠꯔꯒꯥ ...padding-top
b
- ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛmargin-bottom
ꯅꯠꯔꯒꯥ ...padding-bottom
l
- ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛmargin-left
ꯅꯠꯔꯒꯥ ...padding-left
r
- ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛmargin-right
ꯅꯠꯔꯒꯥ ...padding-right
x
- ꯑꯅꯤꯃꯛ ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛ*-left
ꯑꯃꯁꯨꯡ ...*-right
y
- ꯑꯅꯤꯃꯛ ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛ*-top
ꯑꯃꯁꯨꯡ ...*-bottom
- blank - ꯑꯦꯂꯤꯃꯦꯟꯇ ꯑꯗꯨꯒꯤ ꯃꯥꯏꯀꯩ ꯴ ꯄꯨꯝꯅꯃꯛꯇꯥ
margin
ꯅꯠꯔꯒꯥ ꯑꯃꯥ ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛ꯫padding
ꯁꯥꯏꯖ ꯑꯁꯤ ꯃꯈꯥꯗꯥ ꯄꯤꯔꯤꯕꯁꯤꯡꯁꯤꯒꯤ ꯃꯅꯨꯡꯗꯥ ꯑꯃꯅꯤ:
0
margin
- ꯅꯠꯔꯒꯥpadding
ꯁꯦꯠ ꯇꯧꯗꯨꯅꯥ ꯂꯧꯊꯣꯀꯄꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛ꯫0
1
margin
- (ꯗꯤꯐꯣꯜꯇ ꯑꯣꯏꯅꯥ) ꯅꯠꯔꯒꯥpadding
ꯇꯨ ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛ꯫$spacer * .25
2
margin
- (ꯗꯤꯐꯣꯜꯇ ꯑꯣꯏꯅꯥ) ꯅꯠꯔꯒꯥpadding
ꯇꯨ ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛ꯫$spacer * .5
3
margin
- (ꯗꯤꯐꯣꯜꯇ ꯑꯣꯏꯅꯥ) ꯅꯠꯔꯒꯥpadding
ꯇꯨ ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛ꯫$spacer
4
margin
- (ꯗꯤꯐꯣꯜꯇ ꯑꯣꯏꯅꯥ) ꯅꯠꯔꯒꯥpadding
ꯇꯨ ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛ꯫$spacer * 1.5
5
margin
- (ꯗꯤꯐꯣꯜꯇ ꯑꯣꯏꯅꯥ) ꯅꯠꯔꯒꯥpadding
ꯇꯨ ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛ꯫$spacer * 3
auto
margin
- ꯇꯨ ꯑꯣꯇꯣ ꯁꯦꯠ ꯇꯧꯕꯥ ꯀ꯭ꯂꯥꯁꯁꯤꯡꯒꯤꯗꯃꯛ꯫
$spacers
( ꯁꯥꯁ ꯃꯦꯞ ꯚꯦꯔꯤꯑꯦꯕꯂꯗꯥ ꯑꯦꯟꯠꯔꯤꯁꯤꯡ ꯍꯥꯄꯆꯤꯟꯗꯨꯅꯥ ꯑꯗꯣꯝꯅꯥ ꯑꯍꯦꯅꯕꯥ ꯁꯥꯏꯖꯁꯤꯡ ꯍꯥꯄꯆꯤꯅꯕꯥ ꯌꯥꯒꯅꯤ꯫)
ꯈꯨꯗꯃꯁꯤꯡ꯫
ꯀ꯭ꯂꯥꯁꯁꯤꯡ ꯑꯁꯤꯒꯤ ꯔꯤꯞꯔꯖꯦꯟꯇꯦꯇꯤꯕ ꯈꯨꯗꯝ ꯈꯔꯥ ꯃꯈꯥꯗꯥ ꯄꯤꯔꯤ:
.mt-0 {
margin-top: 0 !important;
}
.ml-1 {
margin-left: ($spacer * .25) !important;
}
.px-2 {
padding-left: ($spacer * .5) !important;
padding-right: ($spacer * .5) !important;
}
.p-3 {
padding: $spacer !important;
}
ꯍꯣꯔꯥꯏꯖꯣꯟꯇꯦꯜ ꯁꯦꯟꯇꯔ ꯇꯧꯕꯥ꯫
ꯃꯁꯤꯒꯤ ꯃꯊꯛꯇꯥ, ꯕꯨꯠꯁ꯭ꯠꯔꯥꯄꯇꯥ .mx-auto
ꯐꯤꯛꯁ-ꯋꯥꯏꯗ ꯕ꯭ꯂꯣꯛ ꯂꯦꯚꯦꯜ ꯀꯟꯇꯦꯟꯇ-ꯑꯔꯕꯥꯟ ꯀꯟꯇꯦꯟꯇ ꯂꯩꯕꯥ display: block
ꯑꯃꯁꯨꯡ width
ꯁꯦꯠ ꯑꯃꯥ-ꯍꯣꯔꯤꯖꯣꯟꯇꯦꯜ ꯃꯥꯔꯖꯤꯅꯁꯤꯡ ꯑꯗꯨ auto
.
<div class="mx-auto" style="width: 200px;">
Centered element
</div>
ꯅꯦꯒꯦꯇꯤꯕ ꯃꯥꯔꯖꯤꯟ ꯑꯣꯏꯕꯥ꯫
ꯁꯤ.ꯑꯦꯁ.ꯑꯦꯁ.ꯇꯥ, margin
ꯄ꯭ꯔꯣꯄꯔꯇꯤꯁꯤꯡꯅꯥ ꯅꯦꯒꯦꯇꯤꯕ ꯚꯦꯜꯌꯨꯁꯤꯡ ꯁꯤꯖꯤꯟꯅꯕꯥ ꯌꯥꯏ ( padding
ꯇꯧꯕꯥ ꯉꯃꯗꯦ)꯫ ꯴.꯲ ꯐꯥꯑꯣꯕꯗꯥ, ꯑꯩꯈꯣꯌꯅꯥ ꯃꯊꯛꯇꯥ ꯄꯅꯈ꯭ꯔꯤꯕꯥ ꯅꯟ-ꯖꯤꯔꯣ ꯏꯟꯇꯤꯖꯔ ꯁꯥꯏꯖ ꯈꯨꯗꯤꯡꯃꯛꯀꯤ ꯅꯦꯒꯦꯇꯤꯕ ꯃꯥꯔꯖꯤꯟ ꯌꯨꯇꯤꯂꯤꯇꯤꯁꯤꯡ ꯍꯥꯄꯆꯤꯜꯂꯦ (ꯈꯨꯗꯝ ꯑꯣꯏꯅꯥ, 1
, 2
, 3
, 4
, 5
). ꯍꯥꯌꯔꯤꯕꯥ ꯌꯨꯇꯤꯂꯤꯇꯤꯁꯤꯡ ꯑꯁꯤ ꯕ꯭ꯔꯦꯀꯄꯣꯏꯟꯇꯁꯤꯡꯒꯤ ꯃꯔꯛꯇꯥ ꯒ꯭ꯔꯤꯗ ꯀꯂꯝ ꯒꯇꯔꯁꯤꯡ ꯀꯁ꯭ꯇꯃꯁ ꯇꯧꯕꯗꯥ ꯌꯥꯝꯅꯥ ꯐꯩ꯫
ꯁꯤꯟꯇꯦꯛꯁ ꯑꯁꯤ ꯗꯤꯐꯣꯜꯇ, ꯄꯣꯖꯤꯇꯤꯕ ꯃꯥꯔꯖꯤꯟ ꯌꯨꯇꯤꯂꯤꯇꯤꯁꯤꯡꯒꯥ ꯆꯥꯎꯔꯥꯛꯅꯥ ꯃꯥꯟꯅꯩ, ꯑꯗꯨꯕꯨ n
ꯍꯥꯌꯖꯔꯀꯄꯥ ꯁꯥꯏꯖ ꯑꯗꯨꯒꯤ ꯃꯃꯥꯡꯗꯥ ꯍꯥꯄꯆꯤꯅꯕꯒꯥ ꯂꯣꯌꯅꯅꯥ꯫ ꯃꯈꯥꯗꯥ ꯄꯤꯔꯤꯕꯥ ꯑꯁꯤꯒꯤ ꯑꯣꯟꯅ-ꯇꯩꯅꯕꯗꯥ ꯈꯨꯗꯝ ꯑꯣꯏꯕꯥ ꯀ꯭ꯂꯥꯁ ꯑꯃꯥ ꯄꯤꯔꯤ .mt-1
:
.mt-n1 {
margin-top: -0.25rem !important;
}
ꯃꯐꯃꯁꯤꯗꯥ ꯃꯦꯗꯤꯌꯝ ( md
) ꯕ꯭ꯔꯦꯀꯄꯣꯏꯟꯇ ꯑꯃꯁꯨꯡ ꯃꯊꯛꯇꯥ ꯂꯩꯕꯥ ꯕꯨꯇꯁ꯭ꯠꯔꯥꯞ ꯒ꯭ꯔꯤꯗ ꯀꯁ꯭ꯇꯃꯁ ꯇꯧꯕꯒꯤ ꯈꯨꯗꯝ ꯑꯃꯥ ꯄꯤꯔꯤ꯫ ꯑꯩꯈꯣꯌꯅꯥ .col
ꯄꯦꯗꯤꯡ ꯑꯁꯤ ꯍꯦꯅꯒꯠꯍꯜꯂꯦ ꯑꯃꯁꯨꯡ ꯃꯗꯨꯒꯤ ꯃꯇꯨꯡꯗꯥ ꯃꯃꯥ-ꯃꯄꯥ ꯑꯗꯨꯗꯥ .px-md-5
ꯌꯥꯑꯣꯕꯥ ꯑꯗꯨ ꯀꯥꯎꯟꯇꯔꯑꯦꯛꯇ ꯇꯧꯈ꯭ꯔꯦ ..mx-md-n5
.row
<div class="row mx-md-n5">
<div class="col px-md-5"><div class="p-3 border bg-light">Custom column padding</div></div>
<div class="col px-md-5"><div class="p-3 border bg-light">Custom column padding</div></div>
</div>