CSS a ni
Global CSS settings, HTML elements fundamentals style leh tihchangtlun theih class te, leh grid system hmasawn tak te a awm bawk.
Global CSS settings, HTML elements fundamentals style leh tihchangtlun theih class te, leh grid system hmasawn tak te a awm bawk.
Bootstrap infrastructure pawimawh tak takte lowdown hmu la, web development tha zawk, rang zawk, chak zawka kan kalpui dan te pawh a tel.
Bootstrap hian HTML element thenkhat leh CSS property thenkhat HTML5 doctype hman ngai te a hmang thin. I project zawng zawng tan tirh lamah telh vek rawh.
Bootstrap 2 hmang hian framework-a thil pawimawh tak takte tan mobile friendly style optional kan dah belh bawk. Bootstrap 3 hmang hian a tir atang khan mobile friendly turin project hi kan ziak thar leh ta a ni. Optional mobile style-a dah belh ai chuan core-ah an bak nghal vek a ni. Dik tak chuan Bootstrap hi mobile hmasa ber a ni . Mobile first style hi file hrang hrangah ni lovin library pumpuiah hmuh theih a ni.
Rendering dik tak leh touch zooming dik tak neih theih nan viewport meta tag chu i <head>
.
user-scalable=no
Mobile device-a zooming theihna chu viewport meta tag-ah dahin i disable thei bawk . Hei hian zooming a titawp a, chu chu users te chuan scroll chauh an ti thei tihna a ni a, chu chuan i site chu native application ang deuh deuhin a awm tir thin. A pum puiin site tinah hei hi kan recommend lo a, chuvangin fimkhur rawh!
Bootstrap hian global display, typography leh link style hrang hrangte a set a. A bik takin, kan:
background-color: #fff;
a nibody
@font-family-base
te @font-size-base
hmang rawh@line-height-base
@link-color
link underlines chauh on rawh:hover
Heng style te hi scaffolding.less
.
Cross-browser rendering tihchangtlun nan Normalize.css kan hmang a, chu chu Nicolas Gallagher leh Jonathan Neal te project a ni.
Bootstrap hian site contents wrap tur leh kan grid system dahna tur containing element a mamawh a ni. I project-a hman tur container pahnih zinga pakhat i thlang thei bawk. Hriat tur chu, a chhan padding
leh a aia tam, container pahnih zinga pakhat mah hi nestable a ni lo.
.container
Responsive fixed width container atan hmang ang che .
Full width container atan hmang la .container-fluid
, i viewport zau zawng zawng a huam vek ang.
Bootstrap hian responsive, mobile first fluid grid system a keng tel a, device emaw viewport size a san chhoh zel chuan column 12 thleng a scale thei a ni. Layout awlsam zawka siam theihna tur class predefined a awm a, chubakah semantic layout tam zawk siamna tur mixin chak tak tak a awm bawk .
Grid system hi i content dahna row leh column hrang hrang hmanga page layout siam nan hman a ni. Bootstrap grid system hnathawh dan chu hetiang hi a ni:
.container
(fixed-width) emaw (full-width) chhungah dah tur a ni ..container-fluid
.row
leh .col-xs-4
grid layout siam thuai theihna tur a awm bawk. Semantic layout tam zawk atan pawh mixin tlem zawk hman theih a ni bawk.padding
. .row
Chu padding chu s -a negative margin hmangin column hmasa leh hnuhnung ber atan row-ah offset a ni..col-xs-4
..col-md-*
element pakhatah class eng pawh apply hian medium device-ah chauh a styling a nghawng dawn lo va, class pakhat a awm loh chuan device lian tak takah pawh a nghawng dawn a .col-lg-*
ni.I code-a heng thu bulte hman dan tur entirnan en rawh.
Kan Less file-ah hian a hnuaia media query te hi kan grid system-a key breakpoint siam nan kan hmang a.
Heng media query te hi kan tizau fo thin a, max-width
CSS chu device set tawi zawka tihtlem nan a telh thin.
Bootstrap grid system aspect hrang hrangte chu device tam takah handy table hmanga hnathawh dan en rawh.
Extra tenau zawk hmanrua Phones (<768px) . | Thil tenawm tak tak Tablet (≥768px) . | Thil hmanrua lian lo tak tak Desktops (≥992px) . | Device lian tak tak Desktops (≥1200px) . | |
---|---|---|---|---|
Grid awm dan | Engtik lai pawhin Horizontal a ni | A bul tan nan a tlakbuak a, breakpoints chungah horizontal a ni | ||
Container zau zawng | A awm lo (auto) . | 750px a ni | 970px a ni | 1170px a ni |
Class hmasa ber a ni | .col-xs- |
.col-sm- |
.col-md- |
.col-lg- |
# of column hrang hrang a awm | 12 a ni | |||
Column zau zawng | Auto a ni | ~62px a ni | ~81px a ni | ~97px a ni |
Gutter zau zawng | 30px (column sir lehlamah 15px) | |||
Nestable a ni | Awle | |||
Offsets te a awm | Awle | |||
Column order tur a ni | Awle |
Grid class set khat hmangin .col-md-*
basic grid system i siam thei a, chu chu mobile device leh tablet device (the extra small to small range)-ah stack-a tan a ni a, chutah chuan desktop (medium) device-ah chuan horizontal a ni. Grid column te chu eng pawh ah dah rawh .row
.
Fixed-width grid layout eng pawh chu full-width layout-ah chantir la, i pawn lam ber .container
chu .container-fluid
.
I column te chu device tenau zawkah stack mai mai turin i duh lo em ni? .col-xs-*
.col-md-*
I column -ah te dah belhin extra small leh medium device grid class te chu hmang rawh . A hnathawh zawng zawng hriatna tha zawk hriat duh chuan a hnuaia entîrna hi en rawh.
Entirna hmasa ang khan tablet .col-sm-*
class hmangin layout chak zawk leh chak zawk siamin siam rawh.
Row khat chhunga column 12 aia tam dah a nih chuan, extra column group tinte chu unit pakhat angin line tharah an khuh ang.
Grid tier pali awm tawhte nen chuan, breakpoint thenkhatah chuan, pakhat chu a dang aiin a sang zawk avangin i column-te chu a clear dik lo hle tih i tawk ngei ang. .clearfix
Chu chu siam\hat nan a leh kan responsive utility class te inzawmkhawm hmang rawh .
Responsive breakpoint-a column clearing bakah hian offset, push, emaw pull emaw reset a ngai mai thei bawk . Hei hi grid entirnan action-ah en rawh .
.col-md-offset-*
Class hmangin column te chu dinglamah sawn rawh . Heng class te hian column pakhat veilam margin chu column hrang hrangin an tipung a *
. Entirnan, column pali chungah .col-md-offset-4
a kal thei..col-md-4
.col-*-offset-0
Grid tier hnuai zawk atanga offset te pawh class te nen i override thei bawk .
Default grid hmanga i content nest tur chuan column awmsa chhungah column thar .row
leh set dah la . Nested row-ah hian column set 12 emaw a aia tlem emaw add tur a awm tur a ni (column awm 12 awm zawng zawng hman vek a ngai lo)..col-sm-*
.col-sm-*
Kan built-in grid column te order .col-md-push-*
leh .col-md-pull-*
modifier class te awlsam takin thlak danglam theih a ni.
Fast layouts atan prebuilt grid class bakah hian Bootstrap ah hian Less variables leh mixins te pawh a awm a, chu chuan i duh duh simple, semantic layouts te rang taka i siam theih nan a hmang bawk.
Variables hian column awm zat, gutter zau zawng, leh floating column tanna tur media query point a tichiang a ni. Hengte hi a chunga kan document tawh predefined grid class te siam nan kan hmang a, chubakah a hnuaia custom mixins tarlan te tan pawh kan hmang bawk.
Mixins te hi grid variable te nen inzawmin grid column hrang hrang tan semantic CSS siam nan hman a ni.
Variable te chu i custom value ah i siam danglam thei a, a nih loh leh mixins te chu an default value nen i hmang mai thei bawk. Hetah hian default settings hmanga two-column layout siam dan tur entirnan kan rawn tarlang e, a inkarah gap awmin.
HTML heading zawng zawng, <h1>
through <h6>
, a awm vek. .h1
through .h6
classes pawh a awm a, heading pakhat font styling nena inmil duh mahse i text chu inline-a lang tura i duh lai atan.
h1. Bootstrap tih thupui hmangin |
Semibold a ni a, 36px a ni |
h2. Bootstrap tih thupui hmangin |
Semibold a ni a, 30px a ni |
h3. Bootstrap tih thupui hmangin |
Semibold a ni a, 24px a ni |
h4. Bootstrap tih thupui hmangin |
Semibold 18px a ni |
h5. Bootstrap tih thupui hmangin |
Semibold 14px a ni |
h6. Bootstrap tih thupui hmangin |
Semibold 12px a ni |
Generic <small>
tag emaw .small
class emaw hmangin heading eng pawhah text lighter, secondary siam rawh.
h1. Bootstrap tih thupui hmangin Secondary text a awm |
h2. Bootstrap tih thupui hmangin Secondary text a awm |
h3. Bootstrap tih thupui hmangin Secondary text a awm |
h4. Bootstrap tih thupui hmangin Secondary text a awm |
h5. Bootstrap tih thupui hmangin Secondary text a awm |
h6. Bootstrap tih thupui hmangin Secondary text a awm |
Bootstrap hian global default font-size
chu 14px a ni a, a line-height
chu 1.428 a ni. Hei hi <body>
paragraph leh paragraph zawng zawngah hman a ni. Chu bakah, <p>
(paragraphs) te chuan an computed line-height chanve (10px by default) bottom margin an dawng bawk.
A rilru a buai em em a, a rilru a hah em em bawk a. Nullam quis risus eget urna mollis ornare vel eu leo. A rilru a buai em em a, a rilru a hah em em bawk a, a rilru a buai em em bawk a. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam id dolor id nibh ultricies lirthei.
A rilru a buai em em a, a rilru a hah em em bawk a, a rilru a buai em em bawk a. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. non metus auctor fringilla. A rilru a buai em em a, a rilru a hah em em bawk a, a rilru a buai em em bawk a, a rilru a hah em em bawk a. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. non metus auctor fringilla.
A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. Donec id elit non mi porta gravida chu eget metus ah a awm a. A rilru a buai em em a, a rilru a hah em em bawk a, a rilru a buai em em bawk a, a rilru a hah em em bawk a.
Paragraph pakhat chu .lead
.
A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. Duis mollis, est non commodo luctus tih a ni a, a man pawh a tlawm hle.
Typographic scale hi variable -a Less variable pahnih atanga siam a ni.less : @font-size-base
leh @line-height-base
. A hmasa ber chu base font-size hman zawng zawng a ni a, a pahnihna chu base line-height a ni. Chu variable leh math awlsam tak tak thenkhat hmangin kan type zawng zawng leh a dangte margin, padding, leh line-height te kan siam thin. Customize la, Bootstrap pawh a adapt thei ang.
Context danga a relevance avanga text run pakhat highlight tur chuan <mark>
tag hmang la.
Mark tag hmangin i hmang thei angtlangpuithumal.
Text block delete tawhte tarlanna atan <del>
tag hmang ang che.
He line of text hi deleted text anga ngaih tur a ni.
Text block inzawm tawh lote tarlanna atan <s>
tag hmang ang che.
He thuziak line hi a dik tawh lo anga ngaih tur a ni.
Document-a thil belh tur tarlanna atan <ins>
tag hmang rawh.
He line of text hi document-a dah belh anga ngaih tur a ni.
Text underline tur chuan <u>
tag hmang la.
He line of text hian underline angin a render ang
HTML-a default emphasis tags hmangin style lightweight tak tak hmangin hmang rawh.
Inline emaw text block emaw de-emphasizing atan chuan <small>
tag hmangin text chu parent size 85%-ah set rawh. font-size
Heading element te hian nested atan anmahni an dawng thin<small>
.
A dang pawhin inline element with .small
in place of any <small>
.
He line of text hi fine print anga ngaih tur a ni.
Font-weight rit zawka thuziak snippet pakhat ngaih pawimawh nan.
A hnuaia thuziak snippet hi bold text angin kan render ang .
Italic hmanga thuziak snippet pakhat ngaih pawimawh nan.
A hnuaia thuziak snippet hi italicized text anga render a ni .
Zalen takin hmang la <b>
, <i>
HTML5 ah pawh hman theih a ni. <b>
thumal emaw thumal emaw pawimawhna belhchhah lovin tarlanna tur a nih laiin <i>
a tam zawk chu aw, technical terms, etc. atan a ni.
Text alignment class nei component hrang hrangah awlsam takin text realign theih.
Left aligned thuziak a awm.
Center aligned thuziak.
Thuziak dinglam aligned a ni.
Thudik dik tak.
Wrap text a awm lo.
Text capitalization class hmangin component hrang hrangah text siam danglam.
Thuziak te tak te.
Thuziak lian tak tak.
Thuziak lian tak tak hmanga ziah.
<abbr>
Hover-a expanded version lantir nan abbreviation leh acronym-te tana HTML’s element stylized implementation . Attribute nei abbreviation te title
hian light dotted bottom border leh hover-a help cursor an nei a, hei hian hover-ah leh assistive technology hmangtute tan context dang a pe a ni.
Attribute tih thumal tawifelna chu attr tih a ni.
.initialism
Font-size tlem deuh deuh atan abbreviation- ah dah la .
HTML hi chhangphut sliced hnua thil tha ber a ni.
Pi leh pu hnai ber emaw hnathawhna taksa pum pui emaw biak theihna tur information present rawh. Line zawng zawng chu <br>
.
I document chhunga source dang atanga block block quoting atan.
HTML<blockquote>
eng pawh chu quote angin wrap vek ang che. Straight quote atan chuan a .<p>
A rilru a buai em em a, a rilru a hah em em bawk a. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere chu a ante a ni.
Standard pakhata simple variation atan style leh content thlak danglam <blockquote>
.
<footer>
Source hriat theihna tur a dah belh bawk ang che. Source work hming chu <cite>
.
A rilru a buai em em a, a rilru a hah em em bawk a. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere chu a ante a ni.
.blockquote-reverse
Right-aligned content awmna blockquote atan add rawh .
Order-in chiang taka a pawimawh loh thil list .
Order -in chiang taka a pawimawhna thil list .
list-style
List item-a default leh left margin chu paih chhuak rawh (immediate children chauh). This only applies to immediate children list items , chu chu nested list eng pawh tan pawh class i add a ngai dawn tihna a ni.
List item zawng zawng chu line khatah dah la, display: inline-block;
light padding thenkhat nen.
Thumal list leh a kaihhnawih sawifiahna.
Term leh description te chu <dl>
line up side-by-side-in siam rawh. Default s angin stacked off in a start a <dl>
, mahse navbar a expand chuan hengte hi ti ve rawh.
Horizontal description list-ah chuan term sei lutuk, veilam column-a fit theih loh chu a truncate ang text-overflow
. Viewport tawi zawkah chuan default stacked layout ah an inthlak ang.
Code inline snippet te chu <code>
.
<section>
inline angin wrapped tur a ni.
<kbd>
Keyboard hmanga input luh tlangpui chu entir nan hmang rawh .
<pre>
Code line tam tak atan hmang ang che . Rendering dik tak neih theih nan code chhunga angle bracket awm zawng zawng chu escape ngei ngei tur a ni.
<p>Hetah hian thuziak entir rawh...</p>
Class chu duhthusamin i dah thei a .pre-scrollable
, chu chuan max-height 350px a set ang a, y-axis scrollbar a pe bawk ang.
Variable tarlanna atan <var>
tag hmang ang che.
y = m x + b tih a ni
Program atanga block sample output tarlanna atan <samp>
tag hmang ang che.
He thuziak hi computer program atanga sample output anga ngaih tur a ni.
Basic styling atan—light padding leh horizontal divider chauh—base class .table
chu eng <table>
. Super redundant angin a lang thei a, mahse calendar leh date picker ang chi plugin dang tana table hman tam tak avang hian kan custom table style te chu isolate kan thlang ta a ni.
# a ni. | Hming hmasa | Hming hnuhnung | User hming a ni |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
.table-striped
A chhunga table row eng pawhah zebra-striping dah belh nan hmang ang che <tbody>
.
Striped table te hi CSS selector hmangin style a ni a :nth-child
, hei hi Internet Explorer 8 ah chuan a awm lo.
# a ni. | Hming hmasa | Hming hnuhnung | User hming a ni |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
.table-bordered
Table leh cell sir zawng zawnga border awmte tan add rawh .
# a ni. | Hming hmasa | Hming hnuhnung | User hming a ni |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
.table-hover
A chhunga table row hrang hranga hover state enable turin Add rawh <tbody>
.
# a ni. | Hming hmasa | Hming hnuhnung | User hming a ni |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | chu Sava chu a ni | @twitter ah a awm |
.table-condensed
Cell padding chu a chanvea then la, table compact zawka siam turin dah rawh .
# a ni. | Hming hmasa | Hming hnuhnung | User hming a ni |
---|---|---|---|
1. a ni | Mark | Otto chuan a ti a | @mdo a ni |
2. 2. | Jakoba chu a ni | Thornton-a chuan a ti a | @thau |
3. A ni | Larry chuan a ti a | @twitter ah a awm |
Table row emaw cell pakhat zel emaw color turin contextual class hmang ang che.
Pawl | Hrilhfiahna |
---|---|
.active |
Row emaw cell emaw bik ah hover color a apply thin |
.success |
Thiltih hlawhtling emaw, thil \ha emaw a nih thu a tarlang |
.info |
Neutral informative change emaw action emaw a nih thu a tarlang |
.warning |
Ngaihsak ngai thei vaukhânna a târ lang |
.danger |
Thil hlauhawm tak emaw, thil tha lo awm thei emaw a nih thu a tarlang |
# a ni. | Column thupui (heading) a awm | Column thupui (heading) a awm | Column thupui (heading) a awm |
---|---|---|---|
1. a ni | Column chhunga thu awmte | Column chhunga thu awmte | Column chhunga thu awmte |
2. 2. | Column chhunga thu awmte | Column chhunga thu awmte | Column chhunga thu awmte |
3. A ni | Column chhunga thu awmte | Column chhunga thu awmte | Column chhunga thu awmte |
4. 4. | Column chhunga thu awmte | Column chhunga thu awmte | Column chhunga thu awmte |
5. 5. | Column chhunga thu awmte | Column chhunga thu awmte | Column chhunga thu awmte |
6. 6. | Column chhunga thu awmte | Column chhunga thu awmte | Column chhunga thu awmte |
7. 7.1 | Column chhunga thu awmte | Column chhunga thu awmte | Column chhunga thu awmte |
8. A ni | Column chhunga thu awmte | Column chhunga thu awmte | Column chhunga thu awmte |
9. A ni | Column chhunga thu awmte | Column chhunga thu awmte | Column chhunga thu awmte |
Table row emaw, cell pakhat zel emawa awmzia belh turin color hman hian hmuh theiha hriattirna chauh a pe a, chu chu assistive technology hmangtute – screen reader ang chi hmangtute hnenah a thlen dawn lo. Color hmanga tarlan information chu a thupui a\ang ngeia lang (table row/cell kaihhnawih a thuziak hmuh theih) a nih theih nan, a nih loh leh kawng dang hmanga telh a nih theih nan, .sr-only
class nena thup belh thuziak ang chi.
Responsive table siam la, eng .table
in pawh wrapping .table-responsive
la, device tenau (768px hnuai lam)-ah horizontal-a scroll turin siam rawh. 768px wide aia lian thil i en hian heng table-ah hian danglamna i hmu lo vang.
Responsive tables make use of overflow-y: hidden
, chu chuan table hnuai lam emaw, chunglam emaw atanga chhuak content eng pawh a clip off thin. A bik takin hei hian dropdown menu leh third-party widget dangte a clip off thei a ni.
Firefox hian fieldset styling awkward engemaw zat a nei a width
, chu chuan responsive table a tibuai a ni. Hei hi Bootstrap-a kan pek loh Firefox-specific hack tel lo chuan override theih a ni lo :
Hriat belh duh chuan he Stack Overflow chhanna hi chhiar la .
# a ni. | Table thupuiah hian | Table thupuiah hian | Table thupuiah hian | Table thupuiah hian | Table thupuiah hian | Table thupuiah hian |
---|---|---|---|---|---|---|
1. a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni |
2. 2. | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni |
3. A ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni |
# a ni. | Table thupuiah hian | Table thupuiah hian | Table thupuiah hian | Table thupuiah hian | Table thupuiah hian | Table thupuiah hian |
---|---|---|---|---|---|---|
1. a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni |
2. 2. | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni |
3. A ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni | Table cell a ni |
Mimal form control te hian global styling engemaw zat an dawng nghal vek a. Textual <input>
, <textarea>
, leh <select>
elements with zawng zawng chu default-in .form-control
a set vek a ni. width: 100%;
Label leh control te chu wrap in a, .form-group
a hlat zawng tha ber tur a ni.
Form group leh input group te chu direct in mix suh . Chu ai chuan input group chu form group chhungah nest la.
Left-aligned leh inline-block controls atan i form- ah dah la .form-inline
(a nih a ngai lo ). Hei hi viewport chhunga form 768px zau aia tlem lo tan chauh a ni.<form>
Bootstrap ah hian inputs leh selects te width: 100%;
chu default in a apply tawh a. Inline form chhungah chuan chu chu width: auto;
line khatah control tam tak awm thei turin kan reset thin. I layout a zirin custom width dang a ngai mai thei.
Input tin atan label i dah tel loh chuan screen reader-te chuan i form-ah harsatna an nei ang. .sr-only
Heng inline form te tan hian class hmangin label te chu i thup thei ang . Assistive technology-te tana label pek dan dang dang a awm a, chu chu aria-label
, aria-labelledby
emaw title
attribute te hi a ni. Chûng zînga pakhat mah a awm loh chuan screen reader-te chuan placeholder
attribute hman an hmang thei a, a awm chuan, mahse placeholder
labeling method dangte aiah hman a ṭha lo tih hre reng ang che.
Bootstrap-a grid class ruahman lawk hmangin form control-a label leh group-te chu horizontal layout-ah align la, form-ah dah belh rawh .form-horizontal
(chu chu a nih a ngai lo <form>
). Chutianga tih chuan .form-group
s chu grid row anga awm turin a thlak danglam a, chuvangin .row
.
Entirna form layout-a support standard form control entirnan.
Form control tlanglawn ber, text hmanga input field te. HTML5 chi hrang hrang support a huam vek: text
, password
, datetime
, , datetime-local
, date
, month
, time
, week
, number
, email
, url
, search
, tel
leh color
.
type
Inputs te chu an declare dik a nih chauhvin fully styled a ni ang .
Text-based eng pawh hma leh/ emaw hnua integrated text emaw button emaw dah belh duh chuan input group component kha en<input>
la .
Form control a ni a, chu chuan text line tam tak a support thei. rows
A tul angin attribute thlak rawh .
Checkbox hi list pakhata option pakhat emaw, a aia tam emaw thlan nan a ni a, radio erawh chu tam tak zinga option pakhat thlan nan a ni thung.
Disabled checkbox leh radio te hi a support a, mahse parent hover-a "not-allowed" cursor pek tur chuan class chu parent , , , or -ah <label>
i dah a ngai ang ..disabled
.radio
.radio-inline
.checkbox
.checkbox-inline
Line khata control langte tan checkbox emaw radio emaw series-a .checkbox-inline
or class te hmang rawh ..radio-inline
, chhungah text i neih loh <label>
chuan input chu i beisei angin a awm a. Tunah hian non-inline checkbox leh radio-ah chauh a thawk mek. Assistive technology-te tana label chi khat (entir nan, hman aria-label
) la pe turin hre reng ang che.
Native select menu tam tak—chu chu Safari leh Chrome-ah chuan— border-radius
properties hmanga siam danglam theih loh tur rounded corner an nei tih hre reng ang che.
<select>
Attribute nei control tan chuan multiple
default-in option tam tak a lang.
Form chhunga form label bulah plain text dah i mamawh hunah chuan .form-control-static
class chu a -ah hmang ang che <p>
.
outline
Form control thenkhata default styles te chu kan paih a, box-shadow
a aiah a kan apply thin a :focus
.
:focus
state a niA chunga entirnan input hian kan documentation-ah custom styles hmangin :focus
a .form-control
.
disabled
Input pakhatah boolean attribute dah la, user interaction a awm loh nan. Disabled input te chu a light zawkin a lang a, not-allowed
cursor add bawk.
disabled
attribute chu a chhungah dah la, <fieldset>
a chhunga control zawng zawng chu <fieldset>
vawi khatah disable vek rawh.
<a>
Default-ah chuan browser-te chuan a chhunga native form control ( <input>
, <select>
leh <button>
elements) zawng zawng <fieldset disabled>
chu disabled angin an en ang a, keyboard leh mouse-a inzawmna pahnih a awm loh nan. Mahse, i form-ah <a ... class="btn btn-*">
elements pawh a tel a nih chuan hengte hi style of pointer-events: none
. Button-te tana disabled state chungchang section-a kan sawi tawh ang khan (leh a bik takin anchor element-te tana sub-section-ah) he CSS property hi standardized a la ni lo va, Opera 18 leh a hnuai lamah emaw, Internet Explorer 11-ah emaw chuan a support kim lo a, hnehna a chang ta a ni 't keyboard hmangtute'n heng link-te hi an focus emaw, an activate emaw theih lohna turin a khap lo. Chuvangin him taka awm tur chuan custom JavaScript hmangin chutiang link chu disable rawh.
disabled
Bootstrap hian browser zawng zawngah heng style te hi a hmang vek dawn laiin, Internet Explorer 11 leh a hnuai lam hian attribute hi a support kim lo a <fieldset>
ni. Heng browser-a fieldset awmte hi tihtawp nan custom JavaScript hmang ang che.
Input pakhatah boolean attribute dah la, readonly
input value tihdanglam loh nan. Read-only inputs te chu a light zawkin a lang (disabled inputs ang bawkin), mahse standard cursor chu vawng reng rawh.
Form control hrang hrang atan block level help text.
aria-describedby
Help text chu attribute hmanna nena inzawm form control nen chiang taka inzawm tur a ni. Hei hian assistive technology – screen reader ang chi – te chuan user-in control a focus emaw, a luh emaw hunah he help text hi an puang chhuak ang.
Bootstrap hian form control-a error, warning, leh hlawhtlinna state hrang hrangte validation style a keng tel a ni. Hman tur chuan parent element- ah .has-warning
, .has-error
, emaw dah la. Chu element chhunga , , leh awm .has-success
apiang chuan validation styles te chu a dawng ang..control-label
.form-control
.help-block
Heng validation styles te hi form control dinhmun tarlanna atana hman hian hmuh theih, color-based indication chauh a pe a, chu chu assistive technology hmangtute - screen reader ang chi - hmangtute hnenah emaw, colorblind hmangtute hnenah emaw a thlen dawn lo.
State indication dang pawh pek a nih theih nan hma la rawh. Entirnan, form control-a <label>
text-ah ngei pawh state chungchanga hint i dah thei (a hnuaia code entirnan a awm ang hian), Glyphicon i.sr-only
dah thei bawk ( class hmanga alternative text dik tak nen - Glyphicon entirnan en rawh ), emaw, an additional help text block a awm bawk. A bik takin assistive technology te tan chuan form control dik lo te pawh aria-invalid="true"
attribute pek theih a ni bawk.
Tin, optional feedback icon te pawh a dah belh thei bawk a, .has-feedback
icon dik tak chu i dah belh thei bawk.
Feedback icon te hian textual <input class="form-control">
elements chauh hmangin hna an thawk thin.
Label nei lo input leh dinglama add-on nei input group tan feedback icon te chu manual positioning a ngai a ni. Accessibility avang hian input zawng zawng tan label pe turin kan fuih tak zet che u a ni. Label tarlan loh i duh chuan .sr-only
class nen thup rawh. Label tel lova i tih tur a nih chuan top
feedback icon value kha siamrem rawh. Input group tan chuan right
i addon zau zawng a zirin pixel value dik takah value chu siamrem rawh.
Assistive technology – screen reader ang chi – te hian icon awmzia dik taka an sawi theih nan, .sr-only
class-ah hian thuziak thup dang dah belh tur a ni a, a hmanna nena inzawm form control nen chiang taka inzawm tir tur a aria-describedby
ni A dang pawhin, a awmzia (entir nân, text entry field pakhat tâna vaukhânna a awm tih) chu <label>
form control nêna inzawm tak tak thuziak tihdanglam ang chi, form dang hmanga sawi chhuah a nih theih nân enfiah bawk ang che.
A hnuaia entîrnate hian an form control hrang hrangte validation state chu <label>
text-ah ngei pawh sawi tawh mah se, a chunga technique ( .sr-only
text leh aria-describedby
) hmanga tarlan chu a lantîr nân dah tel a ni.
.sr-only
label thup te nen.sr-only
Class chu form control’s thup nan i hmang a nih chuan <label>
(labelling option dang, aria-label
attribute ang chi hmang lovin) Bootstrap hian icon a dah zawh veleh a awmna tur chu a siam rem nghal vek ang.
Class ang chi hmangin heights set la .input-lg
, grid column class ang chi hmangin width set .col-lg-*
rawh.
Button size nena inmil form control sang zawk emaw tawi zawk emaw siam rawh.
Rang takin size label leh form controls chhungah emaw .form-horizontal
dahin .form-group-lg
emaw .form-group-sm
.
Input te chu grid column-ah wrap la, emaw custom parent element eng pawh hmangin, awlsam taka width duhzawng enforce turin.
<a>
, <button>
, emaw <input>
element pakhata button class te hmang rawh .
<a>
Button class hi on leh <button>
elements hman theih a nih laiin , <button>
kan nav leh navbar component chhungah hian elements chauh support a ni.
Element-te chu button anga thawk tura hman a nih chuan <a>
– in-page functionality tichhuaktu, tuna page chhunga document emaw section dang emaw kal ai chuan – a remchan dan angin pek tur a ni bawk role="button"
.
A tha ber angin, cross-browser rendering inmil theihna turin a theih phawt chuan element hman kan rawt tak zet a ni.<button>
Thil dang dang zingah Firefox <30 ah hian bug aline-height
awm a, chu chuan of <input>
-based buttons te chu kan set thei lo a, chu chuan Firefox a button dangte san zawng nen a inmil chiah lo a ni.
Button class awm zawng zawng hmang la, rang takin styled button siam rawh.
Button pakhata awmzia belh turin color hman hian hmuh theiha hriattirna chauh a pe a, chu chu assistive technology hmangtute – screen reader ang chi hmangtute hnenah a thlen dawn lo. Color hmanga tarlan information chu a thupui a\ang ngeia lang (button-a thuziak hmuh theih), a nih loh leh kawng dang hmanga telh a nih theih nan enfiah rawh, chu chu .sr-only
class nena thup thup belh ang chi a ni.
Button lian zawk emaw te zawk emaw i duh em? Add .btn-lg
, .btn-sm
, emaw .btn-xs
size dang atan.
Block level button—nu leh pa pakhat zau zawng zawnga huam vek—chu , dah belhin siam .btn-block
rawh.
Active laiin buttons chu pressed (background dum zawk, border dum zawk, leh inset shadow nen) a lang ang. <button>
Elements tan chuan hei hi :active
. <a>
Elements tan chuan .active
. Mahse, active state chu programmatic-a replicate a ngai a nih chuan s .active
-ah i hmang thei (leh attribute pawh i dah tel thei bawk).<button>
aria-pressed="true"
:active
Pseudo-class a nih avangin add a ngai lo , mahse a hmel ang chiah kha force a ngai a nih chuan kal zel la, add rawh .active
.
.active
Class chu <a>
buttons ah dah la .
Button te chu click theih loh angin siam la, opacity
.
disabled
Attribute chu <button>
buttons ah te dah la .
disabled
attribute chu a -ah i dah chuan <button>
Internet Explorer 9 leh a hnuaia mi hian text-shadow tenawm tak, kan siam that theih loh nen text gray-ah a rawn render ang.
.disabled
Class chu <a>
buttons ah dah la .
Hetah hian utility class atan kan hmang .disabled
a, common class nen a inang a .active
, chuvangin prefix a ngai lo.
He class hian s pointer-events: none
-a link functionality tihtawp tumna atan a hmang a <a>
, mahse chu CSS property chu standardized a la ni lo va, Opera 18 leh a hnuai lamah emaw, Internet Explorer 11-ah emaw a support kim lo a, chubakah, browser support pointer-events: none
, keyboard -ah pawh a support kim lo navigation chu a nghawng lo a, chu chu sighted keyboard hmangtu leh assistive technology hmangtute chuan heng link te hi an la activate thei dawn tihna a ni. Chuvangin him tur chuan custom JavaScript hmangin chutiang link chu disable rawh.
.img-responsive
Bootstrap 3-a images te hi class dah belh hmangin responsive-friendly-a siam theih a ni . Hei hi max-width: 100%;
, height: auto;
leh display: block;
image-ah pawh a hman theih a, chutiang chuan parent element-ah a scale tha hle.
.img-responsive
Class hmanga thlalak center tur .center-block
chuan .text-center
. Hman dan tur chipchiar zawka hriat duh chuan helper classes section en rawh.center-block
.
Internet Explorer 8-10 ah chuan SVG images with .img-responsive
te hi a size a inang lo hle. Hei hi siamthat tur width: 100% \9;
chuan a tulna hmunah add tur a ni. Bootstrap hian image format dangte tan harsatna a thlen avangin automatic in a apply lo.
<img>
Eng project pawha awlsam taka image style turin element pakhatah class dah belh rawh .
Internet Explorer 8 hian rounded corners support a tlachham tih hre reng ang che.
Emphasis utility class tlemte hmangin colour hmangin awmzia sawi rawh. Hengte hi link-ah pawh hman theih a ni a, kan default link style ang bawkin hover-ah pawh a thim ang.
A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. tortor mauris nibh.
Nullam id dolor id nibh ultricies lirthei ut id elit.
A rilru a buai em em a, a rilru a hah em em bawk a, a rilru a buai em em bawk a, a rilru a hah em em bawk a.
A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a.
A rilru a buai em em a, a rilru a hah em em bawk a. Etiam porta sem malesuada magna mollis euismod.
A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. non metus auctor fringilla.
A châng chuan selector dang specificity vangin emphasis class hman theih a ni lo. A tam zawkah chuan workaround tling tak chu i text <span>
chu class nen a wrap hi a ni.
awmzia belhchhah nan color hman hian hmuh theiha hriattirna chauh a pe a, chu chu assistive technology hmangtute hnenah a thlen dawn lo – screen reader ang chi te. Color-in a tarlan information chu a thupui a\ang ngeia lang thei a nih leh nih loh enfiah rawh (contextual color-te chu text/markup-a awm tawh awmzia tihchak nan chauh hman a ni), a nih loh leh kawng dang hmanga dah tel a nih theih nan, .sr-only
class nena thup belh text ang chi .
Contextual text color class ang bawkin element pakhat background chu contextual class eng pawhah awlsam takin set rawh. Anchor component te chu hover-ah a thim ang a, text class ang bawkin.
Nullam id dolor id nibh ultricies lirthei ut id elit.
A rilru a buai em em a, a rilru a hah em em bawk a, a rilru a buai em em bawk a, a rilru a hah em em bawk a.
A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a.
A rilru a buai em em a, a rilru a hah em em bawk a. Etiam porta sem malesuada magna mollis euismod.
A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. non metus auctor fringilla.
A châng chuan selector dang specificity vangin contextual background class hi hman theih a ni lo. A then phei chuan workaround tling tak chu i element content <div>
chu class nen a wrap hi a ni.
As with contextual colors , colour hmanga awmzia sawi chhuah apiang pawh chu presentation chauh ni lo format-a sawi chhuah a nih theih nan enfiah rawh.
Modal leh alerts ang chi content dismiss nan generic close icon hmang ang che.
Dropdown functionality leh direction tarlan nan caret hmang ang che. Default caret chu dropup menu ah chuan automatic in a reverse ang tih hre reng ang che .
Class pakhat nen element pakhat chu veilam emaw dinglam emaw-ah float rawh. !important
specificity issue awm lo turin a dah tel bawk. Class te hi mixin atan pawh hman theih a ni.
Element pakhat chu to display: block
leh center hmangin set rawh margin
. Mixin leh class angin a awm bawk.
Parent elementfloat
ah dahin awlsam takin s clear rawh . Nicolas Gallagher-a’n a tihlar angin micro clearfix a hmang. Mixin atan pawh hman theih a ni..clearfix
Element pakhat chu entir emaw thup emaw turin force ( screen reader tan pawh tel ) .show
leh .hidden
class hmangin. Heng class te hian !important
specificity conflicts awm lohna turin an hmang a, quick floats ang bawkin . Block level toggling atan chauh an awm. Mixin atan pawh hman theih a ni.
.hide
a awm a, mahse screen reader te a nghawng ngai lo va, v3.0.1 atang khan deprecated a ni. Use .hidden
emaw .sr-only
a aiah emaw hmang rawh.
Chubakah, .invisible
element pakhat hmuh theihna chauh toggle nan hman theih a ni a, chu display
chu a siam danglam loh tihna a ni a, chu element chuan document kal dan a la nghawng thei tho tihna a ni.
Screen reader tih loh device zawng zawngah element pakhat chu .sr-only
. Combine .sr-only
with .sr-only-focusable
element chu focus a nih hunah a lantir leh theih nan (eg keyboard-only user hmangin). Accessibility best practices zawm tur chuan a tul . Mixin atan pawh hman theih a ni.
.text-hide
Element pakhata text content chu background image hmanga thlak danglam tura pui turin class emaw mixin emaw hmang rawh .
Mobile-friendly development chak zawk neih nan heng utility class te hi media query hmanga device hrang hranga content entir leh thup nan hmang la. Tin, print huna content toggling na tur utility class te pawh a awm bawk.
Hengte hi a tlem berah hman tum la, site khata version hrang hrang siam loh tur a ni. Chu ai chuan, device tinte presentation tihpun nân hmang zâwk ang che.
Viewport breakpoint hrang hranga content toggling nan class awm zawng zawng pakhat emaw, combination emaw hmang ang che.
Extra te te device te pawh a awm bawkPhone hrang hrang (<768px) te. | Device te te te teTablet (≥768px) te a awm bawk. | Medium hmanrua teDesktop (≥992px) te pawh a awm bawk. | Device lian tak tak teDesktop (≥1200px) te pawh a awm bawk. | |
---|---|---|---|---|
.visible-xs-* |
Hmuh theih | Thuhruk | Thuhruk | Thuhruk |
.visible-sm-* |
Thuhruk | Hmuh theih | Thuhruk | Thuhruk |
.visible-md-* |
Thuhruk | Thuhruk | Hmuh theih | Thuhruk |
.visible-lg-* |
Thuhruk | Thuhruk | Thuhruk | Hmuh theih |
.hidden-xs |
Thuhruk | Hmuh theih | Hmuh theih | Hmuh theih |
.hidden-sm |
Hmuh theih | Thuhruk | Hmuh theih | Hmuh theih |
.hidden-md |
Hmuh theih | Hmuh theih | Thuhruk | Hmuh theih |
.hidden-lg |
Hmuh theih | Hmuh theih | Hmuh theih | Thuhruk |
v3.2.0 atang khan breakpoint tin tan class te chu variation pathum a awm a, a hnuaia tarlan CSS property value .visible-*-*
tin atan pakhat .display
Class hrang hrang group hrang hrang | CSS a nidisplay |
---|---|
.visible-*-block |
display: block; |
.visible-*-inline |
display: inline; |
.visible-*-inline-block |
display: inline-block; |
xs
Chuvangin, entirnan extra small ( ) screens tan chuan .visible-*-*
class awm thei te chu: .visible-xs-block
, .visible-xs-inline
, leh .visible-xs-inline-block
.
Class .visible-xs
, .visible-sm
, .visible-md
, leh te .visible-lg
pawh a awm a, mahse v3.2.0 atang khan hman tawh loh a ni. Toggling -related elements .visible-*-block
atana special case dang tih loh chu , nen an inang tlangpui .<table>
Responsive class pangngai ang bawkin, print tur content toggling nan hengte hi hmang ang che.
Class hrang hrang te | Browser hmanga en theih a ni | Print rawh |
---|---|---|
.visible-print-block .visible-print-inline .visible-print-inline-block |
Thuhruk | Hmuh theih |
.hidden-print |
Hmuh theih | Thuhruk |
Class .visible-print
pawh a awm a mahse v3.2.0 atang khan deprecated a ni. -related element-te .visible-print-block
tana special case dang tih loh chu , nen a inang tlangpui .<table>
I browser size thlak la, device hrang hrangah load la, responsive utility class te test rawh.
Green checkmarks hian element chu i viewport hman mek ah a lang tih a tarlang.
Hetah hian green checkmarks hian element chu i viewport hman mekah thup a nih thu a tarlang bawk.
Bootstrap hian CSS hi Less hmanga siam a ni a, preprocessor a ni a, CSS compile na tur variable, mixin leh function ang chi functionality dang a nei bawk. Kan compiled CSS files ai chuan source Less files hmang duhtute chuan framework chhung zawnga kan hman variable leh mixin tam tak te hi an hmang thei a ni.
Grid variable leh mixins te chu Grid system section chhungah hian a huam vek a ni .
Bootstrap hi kawng hnih tal hman theih a ni a, chu chu compiled CSS hmang emaw, source Less files hmang emaw a ni. Less files te compile tur chuan Getting Started section ah khan i development environment setup dan tur chu command mamawh te run theih nan en la.
Third party compilation tools te hian Bootstrap hmangin hna an thawk thei a, mahse kan core team te hian an support lo.
Variables hi project pumpuiah hman tlanglawn value hrang hrang color, spacing, font stack te centralize leh share theihna atan hman a ni. Breakdown kimchang hriat duh chuan Customizer ah hian en la .
A awlsam zawngin color scheme pahnih hmang la: grayscale leh semantic. Grayscale colors hian black shade hman tlanglawn tak takte chu rang taka hmuh theihna a pe a, semantic-ah chuan awmze nei contextual value-a dah color hrang hrangte a tel thung.
Heng color variable te hi a awm ang angin hmang la, i project atan variable awmze nei zawkah reassign leh rawh.
I site-a skeleton-a key element hrang hrangte rang taka siam theihna tur variable kutdawh.
I link te chu awlsam takin value pakhat chauh hmangin color dik takin style rawh.
Hriat tur chu the @link-hover-color
hian function a hmang a, Less atanga tool mak tak dang a ni a, chu chuan automagically in hover color dik tak a siam thei a ni. , darken
, lighten
, saturate
leh desaturate
.
I typeface, text size, leading leh a dangte chu awlsam takin quick variable tlemte hmangin set rawh. Bootstrap hian hengte pawh hi a hmang tangkai a, typographic mixin awlsam tak tak a pe thei bawk.
I icon awmna leh filename siam dan tur quick variable pahnih.
Bootstrap chhung zawnga component hrang hrangte hian common value set nan default variable thenkhat an hmang thin. Hetah hian hman tlanglawn berte chu kan rawn tarlang e.
Vendor mixins hi i compiled CSS-a vendor prefix kaihhnawih zawng zawng dah tel a, browser tam tak support tura puitu mixin a ni.
I components te box model chu mixin pakhat hmangin reset rawh. Context hriat duh chuan Mozilla aṭanga he thuziak ṭangkai tak hi en rawh .
Mixin hi v3.2.0 atang khan hman tawh loh a ni a, Autoprefixer hman a ni tawh bawk. Backwards-compatibility humhim nan Bootstrap hian Bootstrap v4 thlengin mixin chu internal-in a hmang chhunzawm zel dawn a ni.
Tunah chuan tunlai browser zawng zawng hian non-prefixed border-radius
property hi an support vek tawh. Chutiang a nih avang chuan .border-radius()
mixin a awm lo a, mahse Bootstrap hian thil pakhat sir bik a corner pahnih rang taka round theihna tur shortcut a keng tel a ni.
I target audience te hian browser leh device thar ber leh ropui ber ber an hmang a nih chuan box-shadow
property chu a mah chauhin hmang mai rawh. Android (pre-v4) leh iOS device hlui (pre-iOS 5) support i mamawh chuan deprecated mixin hmangin -webkit
prefix mamawh chu la rawh.
Mixin hi v3.1.0 atang khan deprecated a ni a, Bootstrap hian official takin standard property support lo platform hmanlai tawhte chu a support loh avangin. Backwards-compatibility humhim nan Bootstrap hian Bootstrap v4 thlengin mixin chu internal-in a hmang chhunzawm zel dawn a ni.
I box shadow-ah hian color hmang ngei ang che, rgba()
chutiang chuan background nen a inmil thei ang bera an inzawm theih nan.
Flexibility atan mixin tam tak a awm. Transition information zawng zawng pakhat hmangin set la, a nih loh leh a tul angin delay leh duration hranpa ziak rawh.
Mixins te hi v3.2.0 atang khan hman tawh loh a ni a, Autoprefixer hman a ni tawh bawk. Backwards-compatibility humhim nan Bootstrap hian Bootstrap v4 thlengin mixins te chu internal-in a hmang chhunzawm zel dawn a ni.
Thil eng pawh rotate, scale, translate (move), emaw skew emaw.
Mixins te hi v3.2.0 atang khan hman tawh loh a ni a, Autoprefixer hman a ni tawh bawk. Backwards-compatibility humhim nan Bootstrap hian Bootstrap v4 thlengin mixins te chu internal-in a hmang chhunzawm zel dawn a ni.
Declaration pakhata CSS3-a animation property zawng zawng hmanna tur mixin pakhat leh property pakhat zel atan mixin dang.
Mixins te hi v3.2.0 atang khan hman tawh loh a ni a, Autoprefixer hman a ni tawh bawk. Backwards-compatibility humhim nan Bootstrap hian Bootstrap v4 thlengin mixins te chu internal-in a hmang chhunzawm zel dawn a ni.
Browser zawng zawng tan opacity set la, filter
IE8 tan fallback pe rawh.
Field tin chhunga form control awmte tan context pe rawh.
Element pakhat chhungah CSS hmangin column siam thin.
Color pahnih eng pawh awlsam takin background gradient ah chantir rawh. Advanced deuh la, direction set la, color pathum hmang la, radial gradient hmang rawh. Mixin pakhat hmang hian prefixed syntax i mamawh zawng zawng i hmu vek ang.
Standard two-color, linear gradient angle pawh i tarlang thei bawk:
Barber-stripe style gradient i mamawh chuan chu pawh chu a awlsam hle. Color pakhat chauh specify la, translucent white stripe kan overlay ang.
Ante chu up la, a aiah color pathum hmang rawh. Color hmasa ber, color pahnihna, color pahnihna color stop (25% ang percentage value) leh color pathumna chu heng mixins hmang hian set rawh:
Lu a ti sang a! Gradient i paih chhuah a ngai a nih chuan IE-specific filter
i dah belh tawh zawng zawng chu paih chhuak ngei ang che. .reset-filter()
Chu chu a bulah mixin hmangin i ti thei ang background-image: none;
.
Utility mixins chu CSS property dang nena inzawm lote inzawmkhawmin thil tum emaw hna bik emaw tihhlawhtlinna tur mixin a ni.
class="clearfix"
Element eng pawha dah theihnghilh la, .clearfix()
a remchan dan angin mixin chu dah belh rawh. Nicolas Gallagher hnen atanga micro clearfix a hmang .
A nu leh pa chhungah element eng pawh chu rang takin center rawh. A mamawh emaw , set tur width
emaw a ni.max-width
Thil pakhat dimension awlsam zawkin tarlang rawh.
Textarea eng pawh, element dang eng pawh tan awlsam takin resize options configure theih a ni. Browser awm dan pangngai ( both
) ah a default a.
Mixin pakhat hmangin ellipsis hmangin awlsam takin text truncate theih a ni. Element chu a nih block
emaw inline-block
level emaw a ngai.
Image path pahnih leh @1x image dimensions te tarlang la, Bootstrap hian @2x media query a pe ang. Image tam tak rawngbawl tur i neih chuan media query pakhatah i retina image CSS chu manual-a ziah tum ang che.
Bootstrap hi Less hmanga siam a nih laiin official Sass port a nei bawk . GitHub repository hranah kan enkawl a, update te chu conversion script hmangin kan handle thin.
Sass port hian repo hran a neih avangin audience danglam deuh deuh a rawng a bawl avangin, he project chhunga thu awmte hi Bootstrap project lian ber nen a danglam hle. Hei hian Sass port chu Sass-based system tam thei ang ber nen a inmil theih nan a pui a ni.
Kawng | Hrilhfiahna |
---|---|
lib/ |
Ruby gem code (Sass configuration, Rails leh Compass te inzawmkhawmna) te a awm bawk. |
tasks/ |
Converter scripts (upstream Less chu Sass-ah a inthlak) . |
test/ |
Compilation test hrang hrang neih a ni |
templates/ |
Compass package a rawn lang chhuak |
vendor/assets/ |
Sass, JavaScript leh font file te a awm bawk |
Rakefile |
Internal task, rake leh convert ang chi te |
Sass port-a GitHub repository tlawh la, heng file te hi action-a hmuh theih a ni.
Bootstrap for Sass install dan leh hman dan tur hriat duh chuan GitHub repository readme ah hian en theih a ni. Source thar ber a ni a, Rails, Compass, leh standard Sass project-a hman tur information a awm bawk.