// Core variables and mixins
@import "bootstrap/variables";
@import "bootstrap/mixins";
// Reset and dependencies
@import "bootstrap/normalize";
// Core CSS
@import "bootstrap/type";
// Components
@import "bootstrap/dropdowns";
// Components w/ JavaScript
@import "bootstrap/modals";
// Utility classes
@import "bootstrap/utilities";
$brand-primary: darken(#428bca, 6.5%) !default;
$brand-success: #5cb85c !default;
$brand-info: #5bc0de !default;
$brand-warning: #f0ad4e !default;
$brand-danger: #d9534f !default;
$btn-default-color: #333 !default;
$btn-default-bg: #fff !default;
$btn-default-border: #ccc !default;
$font-size-base: 14px !default;
$font-size-h1: floor(($font-size-base * 2.6)) !default;
$font-size-h2: floor(($font-size-base * 2.15)) !default;
$font-size-h3: ceil(($font-size-base * 1.7)) !default;
$font-size-h4: ceil(($font-size-base * 1.25)) !default;
$font-size-h5: $font-size-base !default;
$font-size-h6: ceil(($font-size-base * 0.85)) !default;
h1 {
font-size: 2em;
color: red;
}
.module h1 {
color: blue
}
h1 {
font-size: 2em;
}
.page-title {
color: blue
}
/* Exception for editors, ...: Use a child selector */
.editor > h1 {
color: blue;
}
/* Blocks */
.module {
padding: 10px;
}
.button {
border-radius: 3px;
}
/* Elements */
.module__title {
color: blue;
}
/* Modifiers */
.button--alpha {
background-color: grey;
}
.button--beta {
background-color: grey;
}
This is a title
Link
/* o- Objects: reusable design patterns with no styling */
.o-grid { }
/* c- Components: designed components, custom UI design */
.c-navigation { }
/* p- Plugins: seperate your code from the plugin */
.p-flexslider { }
/* u- Utilities: single-purpose helper classes */
.u-margin-reset { }
/* is-/has- States: temporary states */
.is-hidden { }
.has-mobile-nav { }
/* js- Javascript hooks: only functionality, no styling */
.js-modal { }
Modal
Modal paragraph text.
/* Design tweak: remove the margin on a module in some cases */
/* Never touch the original module! */
.c-module {
margin: 1em;
}
/* Option 1: use a modifier to extend the existing module */
.c-module--margin-reset {
margin: 0;
}
/* Option 2: use a utility class for exceptions or quick fixes */
.u-margin-reset {
margin: 0 !important;
}