Skip to content

Commit

Permalink
style(*): replace CSS style comments with Sass style comments
Browse files Browse the repository at this point in the history
This reduces the amount of produced CSS by quite a few lines.
  • Loading branch information
simeonoff committed Nov 20, 2024
1 parent 496a0d7 commit 53dea5f
Show file tree
Hide file tree
Showing 53 changed files with 63 additions and 61 deletions.
2 changes: 1 addition & 1 deletion sass/animations/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable keyframes-name-pattern */
// stylelint-disable keyframes-name-pattern
@use 'sass:list';
@use 'sass:map';
@use 'sass:string';
Expand Down
2 changes: 1 addition & 1 deletion sass/bem/_index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use 'sass:string';
@use 'sass:meta';
@use 'sass:list';
Expand Down
2 changes: 1 addition & 1 deletion sass/color/_functions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ $_enhanced-accessibility: false;
/// @param {Number} $value - The sRGB color
/// @returns {Number} - The calculated linear channel value
@function _lcv($value) {
/* stylelint-disable number-max-precision */
// stylelint-disable number-max-precision
@return if($value < 0.03928, math.div($value, 12.92), math.pow(math.div($value + 0.055, 1.055), 2.4));
}

Expand Down
2 changes: 1 addition & 1 deletion sass/themes/charts/_category-chart-theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use 'sass:map';
@use '../mixins' as *;
@use '../functions' as *;
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/charts/_data-chart-theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use 'sass:map';
@use '../mixins' as *;
@use '../functions' as *;
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/charts/_financial-chart-theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use 'sass:map';
@use '../mixins' as *;
@use '../functions' as *;
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/charts/_funnel-chart-theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use 'sass:map';
@use '../mixins' as *;
@use '../functions' as *;
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/charts/_gauge-theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use 'sass:map';
@use '../mixins' as *;
@use '../functions' as *;
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/charts/_geo-map-theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use 'sass:map';
@use '../mixins' as *;
@use '../functions' as *;
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/charts/_graph-theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use 'sass:map';
@use '../mixins' as *;
@use '../functions' as *;
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/charts/_pie-chart-theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use 'sass:map';
@use '../mixins' as *;
@use '../functions' as *;
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/charts/_shape-chart-theme.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use 'sass:map';
@use '../mixins' as *;
@use '../functions' as *;
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/charts/dark/_category-chart.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use '../light/category-chart' as *;

////
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/charts/light/_category-chart.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
////
/// @package theming
/// @group schemas
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/charts/light/_data-chart.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
////
/// @package theming
/// @group schemas
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/charts/light/_doughnut-chart.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
////
/// @package theming
/// @group schemas
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/charts/light/_financial-chart.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
////
/// @package theming
/// @group schemas
Expand Down
3 changes: 2 additions & 1 deletion sass/themes/schemas/charts/light/_funnel-chart.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

////
/// @package theming
/// @group schemas
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/charts/light/_gauge.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use '../../../../utils/map' as *;

////
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/charts/light/_geo-map.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

////
/// @package theming
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/charts/light/_graph.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

////
/// @package theming
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/charts/light/_pie-chart.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
////
/// @package theming
/// @group schemas
Expand Down
3 changes: 2 additions & 1 deletion sass/themes/schemas/charts/light/_shape-chart.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

////
/// @package theming
/// @group schemas
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/dark/_button.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use '../../../../utils/map' as *;
@use '../light/button' as *;

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

////
/// @package theming
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/dark/_combo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a dark material combo schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/dark/_drop-down.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a base dark drop-down schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/dark/_icon-button.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use '../../../../utils/map' as *;
@use '../light/icon-button' as *;

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

////
/// @package theming
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/dark/_input-group.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use '../../../../utils/map' as *;
@use '../light/input-group' as *;

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

////
/// @package theming
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/dark/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a dark material select schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/dark/_slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a dark material slider schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/dark/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
/// Generates a dark material switch schema.
/// @type {Map}
/// @prop {Map} thumb-off-color [color: ('gray', 100)] - The color of the thumb when the switch is off.
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/dark/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a base dark tabs schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/dark/_tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a base dark tree schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/elevation/_input-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// @type Map
/// @prop {Number} search-resting-elevation [1] - The elevation level, between 0-24, to be used for the resting state of the search input.
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/light/_button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
@use '../../../../typography/functions' as *;
@use '../elevation/button' as *;

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

////
/// @package theming
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/light/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a light checkbox schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/light/_combo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a light combo schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/light/_drop-down.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a light drop-down schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/light/_input-group.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a base light input-group schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/light/_rating.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a base light rating schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/light/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a base light select schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/light/_slider.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a base light slider schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/light/_switch.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a base light switch schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/light/_tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a base light tabs schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/themes/schemas/components/light/_tree.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// @access public
////

/* stylelint-disable max-line-length */
// stylelint-disable max-line-length

/// Generates a base light tree schema.
/// @type {Map}
Expand Down
2 changes: 1 addition & 1 deletion sass/typography/presets/_bootstrap.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-line-length */
// stylelint-disable max-line-length
@use '../../config' as *;
@use '../functions' as *;
@use '../../utils/map' as *;
Expand Down
2 changes: 1 addition & 1 deletion test/_animations.spec.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable max-nesting-depth */
// stylelint-disable max-nesting-depth
@use '../node_modules/sass-true/' as *;
@use '../sass/animations/mixins' as *;
@use 'sass:map';
Expand Down
4 changes: 2 additions & 2 deletions test/_bem.spec.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* stylelint-disable selector-class-pattern */
/* stylelint-disable max-nesting-depth */
// stylelint-disable selector-class-pattern
// stylelint-disable max-nesting-depth
@use '../node_modules/sass-true/' as *;
@use '../sass/bem' as *;

Expand Down
4 changes: 2 additions & 2 deletions test/_color.spec.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* stylelint-disable custom-property-no-missing-var-function */
/* stylelint-disable max-nesting-depth */
// stylelint-disable custom-property-no-missing-var-function
// stylelint-disable max-nesting-depth
@use 'sass:map';
@use 'sass:list';
@use 'sass:math';
Expand Down
2 changes: 1 addition & 1 deletion test/_elevations.spec.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* stylelint-disable scss/operator-no-unspaced */
// stylelint-disable scss/operator-no-unspaced
@use 'sass:meta';
@use 'sass:list';
@use '../node_modules/sass-true/' as *;
Expand Down
8 changes: 4 additions & 4 deletions test/_themes.spec.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* stylelint-disable max-line-length */
/* stylelint-disable value-no-vendor-prefix */
/* stylelint-disable color-function-notation */
/* stylelint-disable max-nesting-depth */
// stylelint-disable max-line-length
// stylelint-disable value-no-vendor-prefix
// stylelint-disable color-function-notation
// stylelint-disable max-nesting-depth
@use 'sass:list';
@use 'sass:map';
@use 'sass:meta';
Expand Down
6 changes: 3 additions & 3 deletions test/_typography.spec.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* stylelint-disable value-keyword-case */
/* stylelint-disable custom-property-no-missing-var-function */
/* stylelint-disable max-nesting-depth */
// stylelint-disable value-keyword-case
// stylelint-disable custom-property-no-missing-var-function
// stylelint-disable max-nesting-depth
@use 'sass:map';
@use 'sass:math';
@use 'sass:meta';
Expand Down
Loading

0 comments on commit 53dea5f

Please sign in to comment.