際際滷

際際滷Share a Scribd company logo
Bootstrap 4
@AdamKudrna
Frontendisti, Praha 13. 12. 2017
1. Flexbox & Grid
2. Utility classes
3. Roz邸iitelnost
Flexbox & Grid
 Bootstrap podporuje IE 10+
 Grid  vertik叩ln鱈 a horizont叩ln鱈 centrov叩n鱈, stejn vysok辿
sloupce, robustn鱈 m鱈転kov辿 v箪pisy
 V箪choz鱈 breakpointy: xs (0), sm (576 px), md (768px), lg
(992 px), xl (1200 px)
 prava n叩zvoslov鱈 v souladu s utility t鱈dami: col-6
Bootstrap 4
Bootstrap 4
Utility classes
 Mocn辿!
 Bootstrap kombinuje komponenty a utility classes
 Kl鱈ov辿 vlastnosti: odsazov叩n鱈 (margin, padding), display
+ 鍖exbox
 Dal邸鱈 vlastnosti: typogra鍖e (display headings), barevnost,
dekorace
 T鱈dy pro layout maj鱈 responzivn鱈 in鍖xy
{property}{sides}-{size}
{property}{sides}-{breakpoint}-{size}
.m-4 .px-2 .pt-sm-1
.d-none
.d-inline
.d-inline-block
.d-block
.d-table
.d-table-cell
.d-flex
.d-inline-flex
.d-sm-none
.d-sm-inline
.d-sm-inline-block
.d-sm-block
.d-sm-table
.d-sm-table-cell
.d-sm-flex
.d-sm-inline-flex
.d-md-none
.d-md-inline
.d-md-inline-block
.d-md-block
.d-md-table
.d-md-table-cell
.d-md-flex
.d-md-inline-flex
.d-lg-none
.d-lg-inline
.d-lg-inline-block
.d-lg-block
.d-lg-table
.d-lg-table-cell
.d-lg-flex
.d-lg-inline-flex
.d-xl-none
.d-xl-inline
.d-xl-inline-block
.d-xl-block
.d-xl-table
.d-xl-table-cell
.d-xl-flex
.d-xl-inline-flex
Roz邸iitelnost
 SCSS: nov辿 mo転nosti u転iten辿 pro snadnou kon鍖guraci
 Aktivn鱈 vyu転it鱈 map a boolean
 Snadnj邸鱈 cykly a podm鱈nky oproti LESS
 Skuten jednoduch辿 pizp哲soben鱈 layoutu
$card-border-width: 0;
$enable-rounded: false;
$grid-breakpoints: (
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1600px,
xxxl: 1920px
);
$container-max-widths: (
sm: 540px,
md: 720px,
lg: 960px,
xl: 1140px,
xxl: 1500px,
xxxl: 1700px
);
Bootstrap 4
Bootstrap 4
D鱈ky!
@AdamKudrna
@VisionAppsCZ
www.visionapps.cz

More Related Content

Bootstrap 4