<div class="container">
<div class="row">
<div class="col-md-12">
<h1>Bootstrap starter template</h1>
</div><!-- end of .col-md-12 -->
</div>
<div class="row">
<div class="col-md-6 col-sm-12">
<h2>First column</h2>
<div class="row">
<div class="col-md-6 col-sm-12">Sub-column 1</div>
<div class="col-md-6 col-sm-12">Sub-column 2</div>
</div>
</div><!-- end of .col-md-6.col-sm-12-->
<div class="col-md-6 col-sm-12">
<h2>Second column</h2>
</div><!-- end of .col-md-6.col-sm-12-->
</div>
</div><!-- end of .container-->
Correct:
#name-of-the-selector
Incorrect:
#name_of_the_selector, #nameOfTheSelector
Correct:
01-homepage.php
Incorrect:
homepage.php
Correct : css/libs/bootstrap.css
Incorrect : css/bootstrap.css
Correct : scripts/libs/bootstrap.min.js
Incorrect : scripts/bootstrap.min.js
Correct : css/style.css
Incorrect : css/libs/style.css
Correct : js/scripts.js
Incorrect : js/libs/scripts.js
Correct:
#selector-1,
#selector-2,
#selector-3 {
background: #fff;
color: #000;
}
Incorrect:
#selector-1, #selector-2, #selector-3 {
background: #fff;
color: #000;
}
#selector-1 { background: #fff; color: #000; }
Correct:
.block {
background: #FFFFFF;
}
Incorrect:
.block {
background: rgba(255,255,255,0);
}
.block {
background: #FFF;
}
Recommended:
.block {
margin: 10px 20px;
}
Instead of
.block {
margin: 10px 20px 10px 20px;
}
Or
.block {
margin-top: 10px;
margin-right: 20px;
margin-bottom: 10px;
margin-left: 20px;
}
Correct
.box {
-webkit-box-shadow: inset 0 0 1px 1px #eee;
-moz-box-shadow: inset 0 0 1px 1px #eee;
box-shadow: inset 0 0 1px 1px #eee;
}
Correct:
.block {
margin: 0;
font-family: ’CustomGoogleFont’, Arial, sans-serif;
}
Incorrect
.block {
margin: 0px;
font-family: ’CustomGoogleFont’;
}
Correct:
div {
color: #000000;
}
Incorrect:
div p, div h1 {
color: #000000;
}
.weather {
.cities {
li {
// no more!
}
}
}
@mixin rounded-corner($arc) {
-moz-border-radius: $arc;
-webkit-border-radius: $arc;
border-radius: $arc;
}
.cta-button {
@include rounded-corner(8px);
}
/* VENDOR - Default fall-backs and external files.
========================================================================== */
@import 'vendor/_normalize.scss';
/* BASE - Base Variable file along with starting point Mixins and Variables.
========================================================================== */
@import 'base/_variables.scss';
@import 'base/_mixins.scss';
/* MODULES - Re-usable site elements.
========================================================================== */
@import 'modules/_buttons.scss';
@import 'modules/_lists.scss';
@import 'modules/_tabs.scss';
Correct:
$black: #000000;
$white: #ffffff;
$body-color: $black;
$text-color : $white;
Incorrect:
$black-body-color: #000000;
$white-text-color : #ffffff;
Top Margin classes
@for $i from 0 through 10 {
.#{margin-top}-#{$i*5} {
margin-top: $i*5px !important;
}
}