အဓိကအကြောင်းအရာသို့ ကျော်သွားပါ။ စာရွက်စာတမ်းလမ်းညွှန်မှုသို့ ကျော်သွားပါ။
in English

စာသား

ချိန်ညှိမှု၊ ထုပ်ပိုးမှု၊ အလေးချိန်နှင့် အခြားအရာများကို ထိန်းချုပ်ရန် ဘုံစာသားအသုံးအဆောင်များအတွက် စာရွက်စာတမ်းများနှင့် ဥပမာများ။

စာသားချိန်ညှိမှု

စာသား ချိန်ညှိမှု အတန်းများ ဖြင့် စာသားကို အစိတ်အပိုင်းများသို့ အလွယ်တကူ ပြန်ညှိပါ။ အစ၊ အဆုံးနှင့် အလယ်တန်းညှိခြင်းအတွက်၊ ဇယားကွက်စနစ်ကဲ့သို့ တူညီသော viewport width breakpoints များကို အသုံးပြုသည့် တုံ့ပြန်မှုအတန်းများကို ရရှိနိုင်သည်။

Viewport အရွယ်အစားအားလုံးတွင် ညှိထားသော စာသားကို စတင်ပါ။

Viewport အရွယ်အစားအားလုံးရှိ စာသားကို အလယ်တွင် ညှိထားသည်။

Viewport အရွယ်အစားအားလုံးတွင် ညှိထားသော စာသားကို အဆုံးသတ်ပါ။

viewports အရွယ်အစား SM (သေးငယ်သည်) သို့မဟုတ် ပိုကျယ်သော အမြင်တွင် ညှိထားသော စာသားကို စတင်ပါ။

viewports အရွယ်အစား MD (အလယ်အလတ်) သို့မဟုတ် ပိုကျယ်သော နေရာတွင် ညှိထားသော စာသားကို စတင်ပါ။

LG (ကြီး) သို့မဟုတ် ပိုကျယ်သော viewports အရွယ်အစားပေါ်တွင် ညှိထားသော စာသားကို စတင်ပါ။

viewports အရွယ်အစား XL (ပိုကြီးသော) သို့မဟုတ် ပိုကျယ်သော viewports တွင် ညှိထားသော စာသားကို စတင်ပါ။

<p class="text-start">Start aligned text on all viewport sizes.</p>
<p class="text-center">Center aligned text on all viewport sizes.</p>
<p class="text-end">End aligned text on all viewport sizes.</p>

<p class="text-sm-start">Start aligned text on viewports sized SM (small) or wider.</p>
<p class="text-md-start">Start aligned text on viewports sized MD (medium) or wider.</p>
<p class="text-lg-start">Start aligned text on viewports sized LG (large) or wider.</p>
<p class="text-xl-start">Start aligned text on viewports sized XL (extra-large) or wider.</p>
တရားမျှတသောစာသားအတွက် အသုံးဝင်သောအတန်းများကို ကျွန်ုပ်တို့မပေးထားသည်ကို သတိပြုပါ။ လှပသောအားဖြင့်၊ မျှတသောစာသားသည် ပိုမိုဆွဲဆောင်မှုရှိသောပုံပေါက်နေသော်လည်း ၎င်းသည် စကားလုံးအကွာအဝေးကို ပို၍ ကျပန်းဖြစ်စေသောကြောင့် ဖတ်ရပိုမိုခက်ခဲစေသည်။

စာသားကို ထုပ်ပိုးပြီး လျှံကျသွားသည်။

.text-wrapအတန်း တစ်ခုဖြင့် စာသားကို ခြုံပါ ။

ဤစာသားကို ခြုံငုံမိရမည်။
<div class="badge bg-primary text-wrap" style="width: 6rem;">
  This text should wrap.
</div>

.text-nowrapအတန်း တစ်ခုဖြင့် စာသားကို ထုပ်ပိုးခြင်းမှ ကာကွယ်ပါ ။

ဤစာသားသည် မိဘကို လွှမ်းမိုးသင့်သည်။
<div class="text-nowrap bd-highlight" style="width: 8rem;">
  This text should overflow the parent.
</div>

စကားလုံးကွဲ

.text-breakသတ်မှတ်ရန် word-wrap: break-wordနှင့် သတ်မှတ်ရန် အသုံးပြုခြင်းဖြင့် သင်၏ အစိတ်အပိုင်းများ၏ အပြင်အဆင်ကို ချိုးဖျက်ခြင်းမှ ရှည်လျားသော စာကြောင်းများကို တားဆီးပါ word-break: break-word။ ပို ကျယ်သောဘရောက်ဆာပံ့ပိုးမှုအတွက် word-wrapသာ၍ဘုံအစား ကိုအသုံးပြုပြီး flex containers ဆိုင်ရာပြဿနာများကိုရှောင်ရှားရန် ကန့်ကွက်ထားသောအရာကိုထည့်ပါ။overflow-wrapword-break: break-word

hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm

<p class="text-break">mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm</p>
RTL ဘာသာစကားသည် အာရပ်ဘာသာစကားဖြင့် ချိုးဖျက်သောစကားလုံးများ မဖြစ်နိုင်ကြောင်း သတိပြုပါ ။ ထို့ကြောင့် .text-breakကျွန်ုပ်တို့၏ RTL ပြုစုထားသော CSS ကို ဖယ်ရှားသည်။

စာသားအသွင်ပြောင်း

စာသားအရင်းအနှီးအတန်းများဖြင့် အစိတ်အပိုင်းများတွင် စာသားကို ပြောင်းပါ။

စာလုံးအသေး။

စာလုံးအကြီး။

CapiTaliZed စာသား။

<p class="text-lowercase">Lowercased text.</p>
<p class="text-uppercase">Uppercased text.</p>
<p class="text-capitalize">CapiTaliZed text.</p>

စကားလုံးတစ်လုံးစီ၏ ပထမအက္ခရာကို မည်သို့ပြောင်းလဲမည်ကို သတိပြုပါ .text-capitalize၊ အခြားအက္ခရာများ၏ ဖြစ်ရပ်ကို သက်ရောက်မှုမရှိပါ။

ဖောင့်အရွယ်အစား

font-sizeစာသားကို အမြန်ပြောင်း ပါ။ ကျွန်ုပ်တို့၏ ခေါင်းစီးအတန်းများ (ဥပမာ .h1- - .h6) font-sizeသည် , font-weight, နှင့် line-height, ဤအသုံးအဆောင်များ သည်သာ သက်ဆိုင် font-sizeပါသည်။ ဤအသုံးအဆောင်များအတွက် အရွယ်အစားအရွယ်အစားသည် HTML ၏ ခေါင်းစီးဒြပ်စင်များနှင့် ကိုက်ညီသောကြောင့် အရေအတွက်များလာသည်နှင့်အမျှ ၎င်းတို့၏အရွယ်အစား လျော့နည်းသွားပါသည်။

.fs-1 စာသား

.fs-2 စာသား

.fs-3 စာသား

.fs-4 စာသား

.fs-5 စာသား

.fs-6 စာသား

<p class="fs-1">.fs-1 text</p>
<p class="fs-2">.fs-2 text</p>
<p class="fs-3">.fs-3 text</p>
<p class="fs-4">.fs-4 text</p>
<p class="fs-5">.fs-5 text</p>
<p class="fs-6">.fs-6 text</p>

Sass မြေပုံကို font-sizeမွမ်းမံခြင်းဖြင့် သင့်ရရှိနိုင်သော s ကို စိတ်ကြိုက် ပြင်ဆင်ပါ။$font-sizes

ဖောင့်အလေးချိန်နှင့် စာလုံးစောင်း

ဤအသုံးအဆောင်များဖြင့် စာသား font-weightသို့မဟုတ် စာသားကို အမြန်ပြောင်းပါ ။ utilities များကို အတိုချုံး ပြီး utilities များကို အတိုကောက်အဖြစ် .font-stylefont-style.fst-*font-weight.fw-*

ရဲရင့်သောစာသား။

ပိုကြီးသောအလေးချိန်စာသား (ပင်မဒြပ်စင်နှင့်ဆက်စပ်)။

ပုံမှန်အလေးချိန်စာသား။

ပေါ့ပါးသောစာသား။

အလေးချိန်ပေါ့ပါးသော စာသား (ပင်မဒြပ်စင်နှင့် ဆက်စပ်မှု)။

စာလုံးစောင်း။

ပုံမှန်ဖောင့်စတိုင်ဖြင့် စာသား

<p class="fw-bold">Bold text.</p>
<p class="fw-bolder">Bolder weight text (relative to the parent element).</p>
<p class="fw-normal">Normal weight text.</p>
<p class="fw-light">Light weight text.</p>
<p class="fw-lighter">Lighter weight text (relative to the parent element).</p>
<p class="fst-italic">Italic text.</p>
<p class="fst-normal">Text with normal font style</p>

မျဉ်းအမြင့်

.lh-*အသုံးအဆောင်များ ဖြင့် မျဉ်းအမြင့်ကို ပြောင်းပါ။

ဤသည်မှာ ကျွန်ုပ်တို့၏ အသုံးဝင်မှုများကြောင့် ဒြပ်စင်တစ်ခု၏ မျဉ်းအမြင့်ကို မည်ကဲ့သို့ အကျိုးသက်ရောက်ကြောင်း ပြသရန် ရေးသားထားသော စာပိုဒ်ရှည်ဖြစ်သည်။ အတန်းများကို ဒြပ်စင်ကိုယ်တိုင် သို့မဟုတ် တစ်ခါတစ်ရံတွင် ပင်မဒြပ်စင်သို့ သက်ရောက်သည်။ ဤအတန်းများကို ကျွန်ုပ်တို့၏ utility API ဖြင့် လိုအပ်သလို စိတ်ကြိုက်ပြင်ဆင်နိုင်ပါသည်။

ဤသည်မှာ ကျွန်ုပ်တို့၏ အသုံးဝင်မှုများကြောင့် ဒြပ်စင်တစ်ခု၏ မျဉ်းအမြင့်ကို မည်ကဲ့သို့ အကျိုးသက်ရောက်ကြောင်း ပြသရန် ရေးသားထားသော စာပိုဒ်ရှည်ဖြစ်သည်။ အတန်းများကို ဒြပ်စင်ကိုယ်တိုင် သို့မဟုတ် တစ်ခါတစ်ရံတွင် ပင်မဒြပ်စင်သို့ သက်ရောက်သည်။ ဤအတန်းများကို ကျွန်ုပ်တို့၏ utility API ဖြင့် လိုအပ်သလို စိတ်ကြိုက်ပြင်ဆင်နိုင်ပါသည်။

ဤသည်မှာ ကျွန်ုပ်တို့၏ အသုံးဝင်မှုများကြောင့် ဒြပ်စင်တစ်ခု၏ မျဉ်းအမြင့်ကို မည်ကဲ့သို့ အကျိုးသက်ရောက်ကြောင်း ပြသရန် ရေးသားထားသော စာပိုဒ်ရှည်ဖြစ်သည်။ အတန်းများကို ဒြပ်စင်ကိုယ်တိုင် သို့မဟုတ် တစ်ခါတစ်ရံတွင် ပင်မဒြပ်စင်သို့ သက်ရောက်သည်။ ဤအတန်းများကို ကျွန်ုပ်တို့၏ utility API ဖြင့် လိုအပ်သလို စိတ်ကြိုက်ပြင်ဆင်နိုင်ပါသည်။

ဤသည်မှာ ကျွန်ုပ်တို့၏ အသုံးဝင်မှုများကြောင့် ဒြပ်စင်တစ်ခု၏ မျဉ်းအမြင့်ကို မည်ကဲ့သို့ အကျိုးသက်ရောက်ကြောင်း ပြသရန် ရေးသားထားသော စာပိုဒ်ရှည်ဖြစ်သည်။ အတန်းများကို ဒြပ်စင်ကိုယ်တိုင် သို့မဟုတ် တစ်ခါတစ်ရံတွင် ပင်မဒြပ်စင်သို့ သက်ရောက်သည်။ ဤအတန်းများကို ကျွန်ုပ်တို့၏ utility API ဖြင့် လိုအပ်သလို စိတ်ကြိုက်ပြင်ဆင်နိုင်ပါသည်။

<p class="lh-1">This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.</p>
<p class="lh-sm">This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.</p>
<p class="lh-base">This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.</p>
<p class="lh-lg">This is a long paragraph written to show how the line-height of an element is affected by our utilities. Classes are applied to the element itself or sometimes the parent element. These classes can be customized as needed with our utility API.</p>

မိုနိုစပေ့

ကျွန်ုပ်တို့၏ monospace ဖောင့်အတွဲသို့ ရွေးချယ်မှုတစ်ခုကို ပြောင်းပါ .font-monospace

၎င်းသည် monospace တွင်ဖြစ်သည်။

<p class="font-monospace">This is in monospace</p>

အရောင်ပြန်သတ်မှတ်ပါ။

စာသား သို့မဟုတ် လင့်ခ်၏အရောင်ကို ပြန်လည်သတ်မှတ်ပါ .text-reset၊ သို့မှသာ ၎င်းသည် ၎င်း၏မိခင်ထံမှအရောင်ကို အမွေဆက်ခံနိုင်မည်ဖြစ်သည်။

ပြန်လည်သတ်မှတ် သည့်လင့်ခ်ဖြင့် အသံတိတ်ထားသော စာသား ။

<p class="text-muted">
  Muted text with a <a href="#" class="text-reset">reset link</a>.
</p>

စာသားအလှဆင်

စာသားအလှဆင်အတန်းများဖြင့် အစိတ်အပိုင်းများတွင် စာသားကို အလှဆင်ပါ။

ဒီစာသားရဲ့အောက်မှာ စာကြောင်းတစ်ကြောင်းပါပါတယ်။

ဤစာသားတွင် စာကြောင်းတစ်ကြောင်းပါရှိသည်။

ဤလင့်ခ်သည် ၎င်း၏ စာသားအလှဆင်ခြင်းကို ဖယ်ရှားထားသည်။
<p class="text-decoration-underline">This text has a line underneath it.</p>
<p class="text-decoration-line-through">This text has a line going through it.</p>
<a href="#" class="text-decoration-none">This link has its text decoration removed</a>

ဆူး

ကိန်းရှင်များ

// stylelint-disable value-keyword-case
$font-family-sans-serif:      system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
$font-family-monospace:       SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
// stylelint-enable value-keyword-case
$font-family-base:            var(--#{$variable-prefix}font-sans-serif);
$font-family-code:            var(--#{$variable-prefix}font-monospace);

// $font-size-root affects the value of `rem`, which is used for as well font sizes, paddings, and margins
// $font-size-base affects the font size of the body text
$font-size-root:              null;
$font-size-base:              1rem; // Assumes the browser default, typically `16px`
$font-size-sm:                $font-size-base * .875;
$font-size-lg:                $font-size-base * 1.25;

$font-weight-lighter:         lighter;
$font-weight-light:           300;
$font-weight-normal:          400;
$font-weight-bold:            700;
$font-weight-bolder:          bolder;

$font-weight-base:            $font-weight-normal;

$line-height-base:            1.5;
$line-height-sm:              1.25;
$line-height-lg:              2;

$h1-font-size:                $font-size-base * 2.5;
$h2-font-size:                $font-size-base * 2;
$h3-font-size:                $font-size-base * 1.75;
$h4-font-size:                $font-size-base * 1.5;
$h5-font-size:                $font-size-base * 1.25;
$h6-font-size:                $font-size-base;

မြေပုံများ

ကျွန်ုပ်တို့၏ utilities API နှင့် ပေါင်းစပ်၍ ဖောင့်အရွယ်အစား အသုံးဝင်မှုများကို ဤမြေပုံမှ ထုတ်ပေးပါသည်။

$font-sizes: (
  1: $h1-font-size,
  2: $h2-font-size,
  3: $h3-font-size,
  4: $h4-font-size,
  5: $h5-font-size,
  6: $h6-font-size
);

အသုံးအဆောင်များ API

ဖောင့်နှင့် စာသား အသုံးအဆောင်များကို ကျွန်ုပ်တို့၏ utilities API တွင် ကြေငြာ scss/_utilities.scssထားသည်။ utilities API ကို အသုံးပြုနည်းကို လေ့လာပါ။

    "font-family": (
      property: font-family,
      class: font,
      values: (monospace: var(--#{$variable-prefix}font-monospace))
    ),
    "font-size": (
      rfs: true,
      property: font-size,
      class: fs,
      values: $font-sizes
    ),
    "font-style": (
      property: font-style,
      class: fst,
      values: italic normal
    ),
    "font-weight": (
      property: font-weight,
      class: fw,
      values: (
        light: $font-weight-light,
        lighter: $font-weight-lighter,
        normal: $font-weight-normal,
        bold: $font-weight-bold,
        bolder: $font-weight-bolder
      )
    ),
    "line-height": (
      property: line-height,
      class: lh,
      values: (
        1: 1,
        sm: $line-height-sm,
        base: $line-height-base,
        lg: $line-height-lg,
      )
    ),
    "text-align": (
      responsive: true,
      property: text-align,
      class: text,
      values: (
        start: left,
        end: right,
        center: center,
      )
    ),
    "text-decoration": (
      property: text-decoration,
      values: none underline line-through
    ),
    "text-transform": (
      property: text-transform,
      class: text,
      values: lowercase uppercase capitalize
    ),
    "white-space": (
      property: white-space,
      class: text,
      values: (
        wrap: normal,
        nowrap: nowrap,
      )
    ),
    "word-wrap": (
      property: word-wrap word-break,
      class: text,
      values: (break: break-word),
      rtl: false
    ),