Add the " !default" keyword to variable

This allows variables to be overriden.
This commit is contained in:
Yoann Pigné 2020-09-04 14:31:10 +02:00 committed by GitHub
parent 390384e6ef
commit a5d930a47c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,20 +1,20 @@
// Colors // Colors
$default-color: #555; $default-color: #555 !default;
$default-shade: #353535; $default-shade: #353535 !default;
$default-tint: #aaa; $default-tint: #aaa !default;
$grey-1: #979797; $grey-1: #979797 !default;
$grey-2: #e5e5e5; $grey-2: #e5e5e5 !default;
$grey-3: #f9f9f9; $grey-3: #f9f9f9 !default;
$white: #fff; $white: #fff !default;
$blue: #4a9ae1; $blue: #4a9ae1 !default;
$shadow-color: rgba(0, 0, 0, .2); $shadow-color: rgba(0, 0, 0, .2) !default;
$code-color: #bf616a; $code-color: #bf616a !default;
// Fonts // Fonts
$serif-primary: 'Libre Baskerville', 'Times New Roman', Times, serif; $serif-primary: 'Libre Baskerville', 'Times New Roman', Times, serif !default;
$serif-secondary: Palatino, 'Palatino LT STD', 'Palatino Linotype', 'Book Antiqua', 'Georgia', serif; $serif-secondary: Palatino, 'Palatino LT STD', 'Palatino Linotype', 'Book Antiqua', 'Georgia', serif !default;
$sans-serif: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif; $sans-serif: 'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif !default;
$monospaced: Menlo, Monaco, monospace; $monospaced: Menlo, Monaco, monospace !default;
@mixin box-sizing($type: border-box) { @mixin box-sizing($type: border-box) {
-webkit-box-sizing: $type; -webkit-box-sizing: $type;