|
, , . bootstrap, html- div-
col-xs-6 col-sm-4 col-md-3
. , . , .
, , , . , css- bootstrap, . , , "5 ". , bootstrap , 12-, 5 . , , , , , less- ( , , sass).
- ? , , @media(min-width:){}
, , , col15-xs-offset-3
, css-.
, , (, , ).
, . . xs, sm, md, lg 1200px. ? - xl 1600px . , , . 320, 360, 640, 768, 992, 1200, 1600, 1900..
. , , - :
? pull/push visible/hidden . css, css 60- !
, inline- . , ? col-xs-6
, visible-sm
text-right
, , , , backend- col-sm-6 col-sm-4.
css- , css. , bootstrap.min.css, .btn, .form-control
, :hover, :focus, :first-child
. , , . , .glyphicon
. , bootstrap , , .
, . bootstrap , . (btn-block disabled component__btn component__btn_disabled
), - bootstrap.
, bootstrap 3 float-. , , "". float- , , flexbox!
, Susy!, . , . . susy! :
.col {
@media (min-width: 768px) {
@include gallery(4 of 12);
}
@media (min-width: 1200px) {
@include gallery(3 of 12);
}
}
susy! , . , susy! display: flex
, , . ( ). , flex, float
:nth-child()
. , susy! , , bootstrap.
susy!, breakpoints, bootstrap, html.
, - , fast-grid. , susy, sass. , , susy!? , bootstrap :
1
2
fast-grid :
@import "~fast-grid/fast-grid";
.row {
@include grid-row();
}
.col {
@include grid-col(6 4 3 2);
}
https://codepen.io/PaulZi/pen/EvPbWK
, fast-grid .
:
@import "~fast-grid/fast-grid";
.cols {
$grid: (
gap: 5px
);
@include grid-row($grid);
&__item {
@include grid-col(12 6 null (1 of 5), $grid);
}
}
https://codepen.io/PaulZi/pen/gxPXJq
@import "~fast-grid/fast-grid";
.cols {
$grid: (
breakpoints: (
xxs: 0px,
xs: 360px,
sm: 640px,
md: 960px,
lg: 1200px,
xl: 1600px
),
columns: 60
);
@include grid-row($grid);
&__item {
@include grid-col((xxs: 60, xs: 30, sm: 20, md: 15, lg: 12), $grid);
}
}
https://codepen.io/PaulZi/pen/XaXVmg
fast-grid css, html . , . (.col-xs-push-4
. .), .
fast-grid mixin-, css. , . , , .
fast-grid mixin-, , , . ? !
flexbox, float. , .
, , :
https://codepen.io/PaulZi/pen/yoepbg
pull/push float, .
, , . fast-grid :
GitHub: https://github.com/paulzi/fast-grid
: https://paulzi.github.io/fast-grid/
bootstrap? !