/*
| _________________________________________________
|
| Big title
| _________________________________________________
|
*/
/*
| _________________________________________________
|
| Big title
| _________________________________________________
|
| Description goes here
|
*/
/* Small title
=============== */
Don't put framework class names in the HTML; extends them in CSS.
<div class="layout--module">
<a class="layout--module-links">Trigger</a>
</div>
.layout--module {
@extend .col-md-6;
@extend .col-md-offset-1;
}
.layout--module-links {
@extend .btn;
@extend .btn-default;
@extend .btn-xs;
}
Extend vendor class in the stylesheet (not in HTML)
.container {
@extend .columns;
@extend .large-6;
}
Declare colors in var file but do not use them directly in your CSS. Instead, and a second level in var with elements color relied with basic colors.
$softWhite: rgb(245,245,245);
$softBlack: rgb(40,40,40);
$backgroundColor: $softBlack;
$buttonColor: $softWhite;
Declare base font-size for html element and use REM.
html {
font-size: 14px;
}
h1 {
@include fontSize(20px);
}
@function calculateRem($size) {
$remSize: $size / $rootFontSize;
@return #{$remSize}rem;
}
@mixin fontSize($size) {
font-size: $size;
font-size: calculateRem($size);
}
/* Typographie Colors */
$baseTypeColor: $softBlack;
$warningTypeColor: $red;
/* Typographie */
$baseLineHeight: 1.5em !default;
$baseFontSize: 14px !default;
$baseFontFamily: OpenSans, sans-serif;
$baseTextColor: $softBlack;
Don't use CSS class name to select object in JS, use data-js attribute instead.
<button class="signup--submit-button" data-js="signup">Sign Up</button>
$('button[data-js=signup]').click(signUp);
Written with StackEdit.