1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-17 19:06:40 +02:00

Stricter stylelint rules

This commit is contained in:
Martijn Cuppens
2018-06-01 17:00:36 +02:00
committed by XhmikosR
parent f20d0f43fd
commit ffd31f9b8c

View File

@@ -8,7 +8,6 @@
// Color system // Color system
// //
// stylelint-disable
$white: #fff !default; $white: #fff !default;
$gray-100: #f8f9fa !default; $gray-100: #f8f9fa !default;
$gray-200: #e9ecef !default; $gray-200: #e9ecef !default;
@@ -22,17 +21,22 @@ $gray-900: #212529 !default;
$black: #000 !default; $black: #000 !default;
$grays: () !default; $grays: () !default;
$grays: map-merge(( // stylelint-disable-next-line scss/dollar-variable-default
"100": $gray-100, $grays: map-merge(
"200": $gray-200, (
"300": $gray-300, "100": $gray-100,
"400": $gray-400, "200": $gray-200,
"500": $gray-500, "300": $gray-300,
"600": $gray-600, "400": $gray-400,
"700": $gray-700, "500": $gray-500,
"800": $gray-800, "600": $gray-600,
"900": $gray-900 "700": $gray-700,
), $grays); "800": $gray-800,
"900": $gray-900
),
$grays
);
$blue: #007bff !default; $blue: #007bff !default;
$indigo: #6610f2 !default; $indigo: #6610f2 !default;
@@ -46,21 +50,25 @@ $teal: #20c997 !default;
$cyan: #17a2b8 !default; $cyan: #17a2b8 !default;
$colors: () !default; $colors: () !default;
$colors: map-merge(( // stylelint-disable-next-line scss/dollar-variable-default
"blue": $blue, $colors: map-merge(
"indigo": $indigo, (
"purple": $purple, "blue": $blue,
"pink": $pink, "indigo": $indigo,
"red": $red, "purple": $purple,
"orange": $orange, "pink": $pink,
"yellow": $yellow, "red": $red,
"green": $green, "orange": $orange,
"teal": $teal, "yellow": $yellow,
"cyan": $cyan, "green": $green,
"white": $white, "teal": $teal,
"gray": $gray-600, "cyan": $cyan,
"gray-dark": $gray-800 "white": $white,
), $colors); "gray": $gray-600,
"gray-dark": $gray-800
),
$colors
);
$primary: $blue !default; $primary: $blue !default;
$secondary: $gray-600 !default; $secondary: $gray-600 !default;
@@ -72,17 +80,20 @@ $light: $gray-100 !default;
$dark: $gray-800 !default; $dark: $gray-800 !default;
$theme-colors: () !default; $theme-colors: () !default;
$theme-colors: map-merge(( // stylelint-disable-next-line scss/dollar-variable-default
"primary": $primary, $theme-colors: map-merge(
"secondary": $secondary, (
"success": $success, "primary": $primary,
"info": $info, "secondary": $secondary,
"warning": $warning, "success": $success,
"danger": $danger, "info": $info,
"light": $light, "warning": $warning,
"dark": $dark "danger": $danger,
), $theme-colors); "light": $light,
// stylelint-enable "dark": $dark
),
$theme-colors
);
// Set a specific jump point for requesting color jumps // Set a specific jump point for requesting color jumps
$theme-color-interval: 8% !default; $theme-color-interval: 8% !default;
@@ -114,28 +125,34 @@ $enable-print-styles: true !default;
// variables. Mostly focused on spacing. // variables. Mostly focused on spacing.
// You can add more entries to the $spacers map, should you need more variation. // You can add more entries to the $spacers map, should you need more variation.
// stylelint-disable
$spacer: 1rem !default; $spacer: 1rem !default;
$spacers: () !default; $spacers: () !default;
$spacers: map-merge(( // stylelint-disable-next-line scss/dollar-variable-default
0: 0, $spacers: map-merge(
1: ($spacer * .25), (
2: ($spacer * .5), 0: 0,
3: $spacer, 1: ($spacer * .25),
4: ($spacer * 1.5), 2: ($spacer * .5),
5: ($spacer * 3) 3: $spacer,
), $spacers); 4: ($spacer * 1.5),
5: ($spacer * 3)
),
$spacers
);
// This variable affects the `.h-*` and `.w-*` classes. // This variable affects the `.h-*` and `.w-*` classes.
$sizes: () !default; $sizes: () !default;
$sizes: map-merge(( // stylelint-disable-next-line scss/dollar-variable-default
25: 25%, $sizes: map-merge(
50: 50%, (
75: 75%, 25: 25%,
100: 100%, 50: 50%,
auto: auto 75: 75%,
), $sizes); 100: 100%,
// stylelint-enable auto: auto
),
$sizes
);
// Body // Body
// //