p.s 請自備好計算機
80.83*12 = 970
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-4 col-xs-6">...</div>
<div class="col-md-3 col-sm-4 col-xs-6">...</div>
<div class="col-md-3 col-sm-4 col-xs-6">...</div>
</div><!-- row -->
</div><!-- container -->172*4+16*3 = 736 / 736+16*2 = 768
Not suggest 768px, because scrollbar have 12px, so bootstrap is 750px
Column
Container
Gutter
Total W
Total:
736+16*2 = 768
col-sm-3: 172
Total:
62.5*3*4 = 750
col-md-3: 187.5
736+16*2= 768
(Need to modify)
// -------------------------------------
// Bootstrap
// -------------------------------------
$grid-gutter-width: 16px;
$container-tablet: 736px + $grid-gutter-width*2;752
768
736
sketch total width
bootstrap origin container
what we need
(container padding: 0 8px)
終於來到練習時間了
30
30
150
30
690
(690 - 30*3)/4
750 - 30*2
// -------------------------------------
// Color
// -------------------------------------
$white: #fff;
$gray: #D9D9D9;
$gray-dark: #515151;
$black: #000;
$violet: #976EFF;
$purple: #5C3CAF;
$orange: #F5A623;
$cyan: #50E3C2;// -------------------------------------
// Font
// -------------------------------------
@font-face {
font-family: Roboto;
src: url('fonts/Roboto-Medium.ttf');
font-weight: normal;
};
@font-face {
font-family: Roboto;
src: url('fonts/Roboto-Bold.ttf');
font-weight: bold;
};
@font-face {
font-family: Roboto;
src: url('fonts/Roboto-Black.ttf');
font-weight: 700;
};992px
>1200px
// -------------------------------------
// Typography
// -------------------------------------
$b-fontSize-h1: em(50);
$b-fontSize-h2: em(40);
$b-fontSize-h3: em(25);
$b-fontSize-h4: em(22);
$b-fontSize-h5: em(20);
$b-fontSize-h6: em(18);
$b-fontSize-m: em(16);
$b-fontSize: em(14);text length(especially multi language),
hover effect, box shadow, in ie8...
其實是一樣大的,除非特別設定