@enigmatry/scss-foundation 17.0.0-preview.5.1 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +18 -18
  2. package/coverage/clover.xml +2 -2
  3. package/coverage/lcov-report/index.html +1 -1
  4. package/docs/modules/README.md +19 -19
  5. package/docs/modules/absolute-positioning.md +28 -28
  6. package/docs/modules/alignment.md +45 -45
  7. package/docs/modules/background-hover.md +18 -18
  8. package/docs/modules/border-radius.md +19 -19
  9. package/docs/modules/breakpoints.md +27 -27
  10. package/docs/modules/fixed-positioning.md +28 -28
  11. package/docs/modules/grid.md +46 -46
  12. package/docs/modules/row-coloring.md +23 -23
  13. package/docs/modules/text-hover.md +18 -18
  14. package/docs/modules/text-modification.md +27 -27
  15. package/docs/modules/visibility.md +27 -27
  16. package/docs/partials/README.md +14 -14
  17. package/docs/partials/alignment.md +15 -15
  18. package/docs/partials/cursor.md +13 -13
  19. package/docs/partials/resize.md +9 -9
  20. package/docs/partials/text-control.md +11 -11
  21. package/docs/partials/visibility.md +9 -9
  22. package/jest.config.js +21 -21
  23. package/package.json +24 -24
  24. package/src/modules/_index.scss +7 -7
  25. package/src/modules/_map.scss +53 -53
  26. package/src/modules/_variables.scss +11 -11
  27. package/src/modules/borders/_border-radius.scss +10 -10
  28. package/src/modules/display/_items.scss +21 -21
  29. package/src/modules/layout/_grid-core.scss +53 -53
  30. package/src/modules/layout/_grid.scss +98 -98
  31. package/src/modules/layout/_index.scss +1 -1
  32. package/src/modules/lists/_row-coloring.scss +12 -12
  33. package/src/modules/position/_absolute.scss +8 -8
  34. package/src/modules/position/_fixed.scss +8 -8
  35. package/src/modules/position/_index.scss +2 -2
  36. package/src/modules/position/_set-position.scss +24 -24
  37. package/src/modules/responsiveness/_breakpoints.scss +55 -55
  38. package/src/modules/states/_hover.scss +6 -6
  39. package/src/modules/states/_index.scss +1 -1
  40. package/src/modules/states/_visibility.scss +15 -15
  41. package/src/modules/text/_hover.scss +6 -6
  42. package/src/modules/text/_index.scss +1 -1
  43. package/src/modules/text/_modification.scss +29 -29
  44. package/src/partials/core/_index.scss +2 -2
  45. package/src/partials/core/fonts/_text-control.scss +10 -10
  46. package/src/partials/core/layouts/_alignment.scss +21 -21
  47. package/src/partials/core/states/_cursors.scss +10 -10
  48. package/src/partials/core/states/_index.scss +2 -2
  49. package/src/partials/core/states/_resize.scss +2 -2
  50. package/src/partials/core/states/_visibility.scss +2 -2
  51. package/tests/display/items.tests.scss +99 -99
  52. package/tests/layout/grid-core.tests.scss +115 -115
  53. package/tests/layout/grid.tests.scss +1154 -1154
  54. package/tests/lists/row-coloring.tests.scss +51 -51
  55. package/tests/position/absolute.tests.scss +67 -67
  56. package/tests/position/fixed.tests.scss +67 -67
  57. package/tests/position/set-position.tests.scss +64 -64
  58. package/tests/shim.test.js +13 -13
  59. package/tests/text/modification.tests.scss +20 -20
package/README.md CHANGED
@@ -1,18 +1,18 @@
1
-
2
- # SCSS Foundation
3
-
4
- ## Installation
5
-
6
- ```
7
- $ npm install --save-dev @enigmatry/scss-foundation
8
- ```
9
-
10
- ## What's included
11
-
12
- - [Utilities](../scss-foundation/docs/modules/README.md)
13
-
14
- - [Helper Classes](../scss-foundation/docs/partials/README.md)
15
-
16
- ## License
17
-
18
- Apache-2 © Enigmatry
1
+
2
+ # SCSS Foundation
3
+
4
+ ## Installation
5
+
6
+ ```
7
+ $ npm install --save-dev @enigmatry/scss-foundation
8
+ ```
9
+
10
+ ## What's included
11
+
12
+ - [Utilities](../scss-foundation/docs/modules/README.md)
13
+
14
+ - [Helper Classes](../scss-foundation/docs/partials/README.md)
15
+
16
+ ## License
17
+
18
+ Apache-2 © Enigmatry
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1715686128220" clover="3.2.0">
3
- <project timestamp="1715686128220" name="All files">
2
+ <coverage generated="1715779891203" clover="3.2.0">
3
+ <project timestamp="1715779891204" name="All files">
4
4
  <metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0"/>
5
5
  </project>
6
6
  </coverage>
@@ -86,7 +86,7 @@
86
86
  <div class='footer quiet pad2 space-top1 center small'>
87
87
  Code coverage generated by
88
88
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
89
- at 2024-05-14T11:28:48.212Z
89
+ at 2024-05-15T13:31:31.200Z
90
90
  </div>
91
91
  <script src="prettify.js"></script>
92
92
  <script>
@@ -1,19 +1,19 @@
1
- # Utilities
2
-
3
- ## How to use it
4
-
5
- Utilities are nothing more than just sass mixins that won't be included in your code base unless you @use individual files of this library and @include them.
6
-
7
- ## What's included
8
-
9
- - [Flexible Grid System](./grid.md)
10
- - [Encapsulated logic regarding Breakpoints / Media queries](./breakpoints.md)
11
- - [(Flex) Alignment utilities](./alignment.md)
12
- - [Background Hover utilities](./background-hover.md)
13
- - [Absolute Positioning utilities](./absolute-positioning.md)
14
- - [Fixed Positioning utilities](./fixed-positioning.md)
15
- - [Text Modification utilities](./text-modification.md)
16
- - [Text Hover utilities](./text-hover.md)
17
- - [Border Radius utilities](./border-radius.md)
18
- - [Row Coloring utilities](./row-coloring.md)
19
- - [Visibility utilities](./visibility.md)
1
+ # Utilities
2
+
3
+ ## How to use it
4
+
5
+ Utilities are nothing more than just sass mixins that won't be included in your code base unless you @use individual files of this library and @include them.
6
+
7
+ ## What's included
8
+
9
+ - [Flexible Grid System](./grid.md)
10
+ - [Encapsulated logic regarding Breakpoints / Media queries](./breakpoints.md)
11
+ - [(Flex) Alignment utilities](./alignment.md)
12
+ - [Background Hover utilities](./background-hover.md)
13
+ - [Absolute Positioning utilities](./absolute-positioning.md)
14
+ - [Fixed Positioning utilities](./fixed-positioning.md)
15
+ - [Text Modification utilities](./text-modification.md)
16
+ - [Text Hover utilities](./text-hover.md)
17
+ - [Border Radius utilities](./border-radius.md)
18
+ - [Row Coloring utilities](./row-coloring.md)
19
+ - [Visibility utilities](./visibility.md)
@@ -1,28 +1,28 @@
1
- # Absolute positioning methods
2
-
3
- Alignment utilities for absolute positioning of content.
4
-
5
- ## Absolute
6
-
7
- @use scss-foundation/src/modules/position/absolute;
8
-
9
- - Replaces the several most common lines in absolute positioning with just one liner.
10
-
11
- ```
12
- @include absolute.position($top, $right, $bottom, $left);
13
- ```
14
- All arguments are optional and default to 0. Sets the following properties:
15
- ```
16
- position: absolute;
17
- top: $top;
18
- right: $right;
19
- bottom: $bottom;
20
- left: $left;
21
- ```
22
-
23
- - Replaces the several most common lines in absolute positioning for unset values with just one liner.
24
-
25
- ```
26
- @include absolute.position-unset($top, $right, $bottom, $left);
27
- ```
28
- All arguments are optional and default to unset. Sets the same properties as in the previous method.
1
+ # Absolute positioning methods
2
+
3
+ Alignment utilities for absolute positioning of content.
4
+
5
+ ## Absolute
6
+
7
+ @use scss-foundation/src/modules/position/absolute;
8
+
9
+ - Replaces the several most common lines in absolute positioning with just one liner.
10
+
11
+ ```
12
+ @include absolute.position($top, $right, $bottom, $left);
13
+ ```
14
+ All arguments are optional and default to 0. Sets the following properties:
15
+ ```
16
+ position: absolute;
17
+ top: $top;
18
+ right: $right;
19
+ bottom: $bottom;
20
+ left: $left;
21
+ ```
22
+
23
+ - Replaces the several most common lines in absolute positioning for unset values with just one liner.
24
+
25
+ ```
26
+ @include absolute.position-unset($top, $right, $bottom, $left);
27
+ ```
28
+ All arguments are optional and default to unset. Sets the same properties as in the previous method.
@@ -1,45 +1,45 @@
1
- # Alignment methods
2
-
3
- Alignment utilities for positioning items using flex.
4
-
5
- ## Items
6
-
7
- @use scss-foundation/src/modules/display/items;
8
-
9
- - Center alignment. Wrapper method for following flex settings: flex direction row, justify content on flex start and
10
- align items centrally.
11
-
12
- ```
13
- @include items.align-center();
14
- ```
15
-
16
- - Configurable alignment. Everything is same as for the previous method, but align items property is configurable.
17
-
18
- ```
19
- @include items.align($align);
20
- ```
21
-
22
- - Horizontal and vertical central alignment. Wrapper method for following flex settings: flex direction row, justify content centrally and align items centrally.
23
-
24
- ```
25
- @include items.align-absolute-center();
26
- ```
27
-
28
- - Alignment utility. Replaces several line of CSS with just one liner.
29
-
30
- ```
31
- @include items.fully-align($align, $justify, $direction, $wrap);
32
- ```
33
-
34
- Optional arguments and their default values:
35
- $justify: flex-start, $direction: row, $wrap: wrap
36
- Sets the following properties:
37
- ```
38
- display: flex;
39
- flex: {
40
- direction: $direction;
41
- wrap: $wrap;
42
- };
43
- align-items: $align;
44
- justify-content: $justify;
45
- ```
1
+ # Alignment methods
2
+
3
+ Alignment utilities for positioning items using flex.
4
+
5
+ ## Items
6
+
7
+ @use scss-foundation/src/modules/display/items;
8
+
9
+ - Center alignment. Wrapper method for following flex settings: flex direction row, justify content on flex start and
10
+ align items centrally.
11
+
12
+ ```
13
+ @include items.align-center();
14
+ ```
15
+
16
+ - Configurable alignment. Everything is same as for the previous method, but align items property is configurable.
17
+
18
+ ```
19
+ @include items.align($align);
20
+ ```
21
+
22
+ - Horizontal and vertical central alignment. Wrapper method for following flex settings: flex direction row, justify content centrally and align items centrally.
23
+
24
+ ```
25
+ @include items.align-absolute-center();
26
+ ```
27
+
28
+ - Alignment utility. Replaces several line of CSS with just one liner.
29
+
30
+ ```
31
+ @include items.fully-align($align, $justify, $direction, $wrap);
32
+ ```
33
+
34
+ Optional arguments and their default values:
35
+ $justify: flex-start, $direction: row, $wrap: wrap
36
+ Sets the following properties:
37
+ ```
38
+ display: flex;
39
+ flex: {
40
+ direction: $direction;
41
+ wrap: $wrap;
42
+ };
43
+ align-items: $align;
44
+ justify-content: $justify;
45
+ ```
@@ -1,18 +1,18 @@
1
- # Background hover method
2
-
3
- Hover utilities for easy definition of regular and hover background states.
4
-
5
- ## Background hover
6
-
7
- @use scss-foundation/src/modules/states/hover;
8
-
9
- - Background hover. Method for setting the background color of any element for the regular state, and when the element is hovered over, it changes the color to the specified hover state.
10
-
11
- ```
12
- @include hover.background-hover($regular-state, $hover-state);
13
- ```
14
- Sets the properties for both regular and hover states:
15
- ```
16
- background-color: $regular-state;
17
- background-color: $hover-state;
18
- ```
1
+ # Background hover method
2
+
3
+ Hover utilities for easy definition of regular and hover background states.
4
+
5
+ ## Background hover
6
+
7
+ @use scss-foundation/src/modules/states/hover;
8
+
9
+ - Background hover. Method for setting the background color of any element for the regular state, and when the element is hovered over, it changes the color to the specified hover state.
10
+
11
+ ```
12
+ @include hover.background-hover($regular-state, $hover-state);
13
+ ```
14
+ Sets the properties for both regular and hover states:
15
+ ```
16
+ background-color: $regular-state;
17
+ background-color: $hover-state;
18
+ ```
@@ -1,20 +1,20 @@
1
- # Border-radius method
2
-
3
- Border radius utility for setting different border radius values for each corner of an element.
4
-
5
- ## Border Radius
6
-
7
- @use scss-foundation/src/modules/borders/border-radius;
8
-
9
- - Replaces the several most common lines in border radius with just one liner.
10
-
11
- ```
12
- @include border-radius.partial-border-radius($top-left, $top-right, $bottom-right, $bottom-left);
13
- ```
14
- All arguments are optional and default to 0. Sets the following properties:
15
- ```
16
- top-left-radius: $top-left;
17
- top-right-radius: $top-right;
18
- bottom-right-radius: $bottom-right;
19
- bottom-left-radius: $bottom-left;
1
+ # Border-radius method
2
+
3
+ Border radius utility for setting different border radius values for each corner of an element.
4
+
5
+ ## Border Radius
6
+
7
+ @use scss-foundation/src/modules/borders/border-radius;
8
+
9
+ - Replaces the several most common lines in border radius with just one liner.
10
+
11
+ ```
12
+ @include border-radius.partial-border-radius($top-left, $top-right, $bottom-right, $bottom-left);
13
+ ```
14
+ All arguments are optional and default to 0. Sets the following properties:
15
+ ```
16
+ top-left-radius: $top-left;
17
+ top-right-radius: $top-right;
18
+ bottom-right-radius: $bottom-right;
19
+ bottom-left-radius: $bottom-left;
20
20
  ```
@@ -1,27 +1,27 @@
1
- # Breakpoints methods
2
-
3
- Utilities related to the application's breakpoints.
4
-
5
- ## Breakpoints
6
-
7
- This module has an overridable breakpoints variable. Due to Sass limitations, there should be only one (wrapper) @use/@forward of this utility in your application in order to prevent side effects and to have easier work.
8
- Breakpoints must be in the same format as variables inside the src root folder.
9
-
10
- Usage:
11
- @use scss-foundation/src/modules/responsiveness/breakpoints;
12
-
13
- - Applies desired styles and properties starting from a certain breakpoint given by its key. The key must be a valid key from
14
- the given (or default) breakpoint collection.
15
-
16
- ```
17
- @include breakpoints.apply-on($given-size);
18
- ```
19
-
20
- - Sets up breakpoints in a way so you can pass them to the JS from HTML. This is needed so you could have them defined
21
- only in SCSS after which you can apply some logic in JS based on that, but with only one spot for future maintenance.
22
-
23
- ```
24
- @include breakpoints.set-up($with-capitalization);
25
- ```
26
- Mixin defines the set of properties that must be added to a certain HTML container, ideally the root one. Whatever the width of the display device is, the content property of it is gonna hold a descriptive name for it and you can process that kind of enum insided JS and apply some logic.
27
- $with-capitalization argument is optional (default = true), since we're mostly using TypeScript + Angular Material which enforces capitalization.
1
+ # Breakpoints methods
2
+
3
+ Utilities related to the application's breakpoints.
4
+
5
+ ## Breakpoints
6
+
7
+ This module has an overridable breakpoints variable. Due to Sass limitations, there should be only one (wrapper) @use/@forward of this utility in your application in order to prevent side effects and to have easier work.
8
+ Breakpoints must be in the same format as variables inside the src root folder.
9
+
10
+ Usage:
11
+ @use scss-foundation/src/modules/responsiveness/breakpoints;
12
+
13
+ - Applies desired styles and properties starting from a certain breakpoint given by its key. The key must be a valid key from
14
+ the given (or default) breakpoint collection.
15
+
16
+ ```
17
+ @include breakpoints.apply-on($given-size);
18
+ ```
19
+
20
+ - Sets up breakpoints in a way so you can pass them to the JS from HTML. This is needed so you could have them defined
21
+ only in SCSS after which you can apply some logic in JS based on that, but with only one spot for future maintenance.
22
+
23
+ ```
24
+ @include breakpoints.set-up($with-capitalization);
25
+ ```
26
+ Mixin defines the set of properties that must be added to a certain HTML container, ideally the root one. Whatever the width of the display device is, the content property of it is gonna hold a descriptive name for it and you can process that kind of enum insided JS and apply some logic.
27
+ $with-capitalization argument is optional (default = true), since we're mostly using TypeScript + Angular Material which enforces capitalization.
@@ -1,28 +1,28 @@
1
- # Fixed positioning methods
2
-
3
- Alignment utilities for fixed positioning of content.
4
-
5
- ## Fixed
6
-
7
- @use scss-foundation/src/modules/position/fixed;
8
-
9
- - Replaces the several most common lines in fixed positioning with just one liner.
10
-
11
- ```
12
- @include fixed.position($top, $right, $bottom, $left);
13
- ```
14
- All arguments are optional and default to 0. Sets the following properties:
15
- ```
16
- position: fixed;
17
- top: $top;
18
- right: $right;
19
- bottom: $bottom;
20
- left: $left;
21
- ```
22
-
23
- - Replaces the several most common lines in fixed positioning for unset values with just one liner.
24
-
25
- ```
26
- @include fixed.position-unset($top, $right, $bottom, $left);
27
- ```
28
- All arguments are optional and default to unset. Sets the same properties as in the previous method.
1
+ # Fixed positioning methods
2
+
3
+ Alignment utilities for fixed positioning of content.
4
+
5
+ ## Fixed
6
+
7
+ @use scss-foundation/src/modules/position/fixed;
8
+
9
+ - Replaces the several most common lines in fixed positioning with just one liner.
10
+
11
+ ```
12
+ @include fixed.position($top, $right, $bottom, $left);
13
+ ```
14
+ All arguments are optional and default to 0. Sets the following properties:
15
+ ```
16
+ position: fixed;
17
+ top: $top;
18
+ right: $right;
19
+ bottom: $bottom;
20
+ left: $left;
21
+ ```
22
+
23
+ - Replaces the several most common lines in fixed positioning for unset values with just one liner.
24
+
25
+ ```
26
+ @include fixed.position-unset($top, $right, $bottom, $left);
27
+ ```
28
+ All arguments are optional and default to unset. Sets the same properties as in the previous method.
@@ -1,46 +1,46 @@
1
-
2
- # Grid methods
3
-
4
- Grid heavily depends on breakpoints utilities since there's not much sense in making a grid without them. On the other hand, on rare occasions, if you just need row styles with auto width, independent core grid utilities might be just enough. In the majority of cases, this utility is already the part of full grid so there's no need to use it manually.
5
-
6
- ## Grid
7
-
8
- This module has an overridable breakpoints variable. Due to Sass limitations, there should be only one (wrapper) @use/@forward of this utility in your application in order to prevent side effects and to have easier work.
9
- Breakpoints must be in the same format as variables inside the src root folder.
10
-
11
- @use scss-foundation/src/layout/grid;
12
-
13
- - Full grid generation. It generates everything from the core grid plus all column/offset classes using syntax from Bootstrap
14
- 5, classes like col-sm-4, offset-md-10.
15
-
16
- ```
17
- @include grid.generate(); // or @include grid.generate($divisions);
18
- ```
19
- The default grid (as in Bootstrap) has 12 columns, but you can change that by passing a positive number parameter (between 2 and 1000).
20
-
21
- ## Grid core
22
-
23
- @use scss-foundation/src/layout/grid-core as grid;
24
-
25
- - Core generation creates styles for rows and auto width of the content. You must pass prefixes for column and offset class
26
- names.
27
-
28
- ```
29
- @include grid.generate($column-prefix, $offset-prefix);
30
- ```
31
-
32
- - Reverse row generation. Integrated into the full grid, but this can be also added independently if needed in your application.
33
-
34
- ```
35
- @include grid.generate-reverse-row($breakpoints);
36
- ```
37
- Breakpoints are required parameter. Expected format of breakpoints is a map/dictionary with keys being unique and something descriptive to you (i.e. mobile) and value being an object defined with size (in pixels) and string description that will be seen in CSS output (i.e. sm).
38
- In other words:
39
- **mobile: ( size: 576px, description: 'sm' )**
40
- For more details, please check the format of the breakpoint variable inside the src root folder.
41
-
42
- This method generates classes which helps you reverse order in row; i.e. if row had divs A, B, C and you apply reverse row class, the order will be C, B, A. There are two options:
43
-
44
- 1) .reverse-row-DESIRED_BREAKPOINT_DESCRIPTION
45
- 2) .reverse-dow-under-DESIRED_BREAKPOINT_DESCRIPTION
46
- The first one helps you to reverse order starting from a given breakpoint (DESIRED_BREAKPOINT_DESCRIPTION might be sm, md, xxl, depending on what you pass as a breakpoint description). The second one helps you to reverse order on all widths under certain breakpoint.
1
+
2
+ # Grid methods
3
+
4
+ Grid heavily depends on breakpoints utilities since there's not much sense in making a grid without them. On the other hand, on rare occasions, if you just need row styles with auto width, independent core grid utilities might be just enough. In the majority of cases, this utility is already the part of full grid so there's no need to use it manually.
5
+
6
+ ## Grid
7
+
8
+ This module has an overridable breakpoints variable. Due to Sass limitations, there should be only one (wrapper) @use/@forward of this utility in your application in order to prevent side effects and to have easier work.
9
+ Breakpoints must be in the same format as variables inside the src root folder.
10
+
11
+ @use scss-foundation/src/layout/grid;
12
+
13
+ - Full grid generation. It generates everything from the core grid plus all column/offset classes using syntax from Bootstrap
14
+ 5, classes like col-sm-4, offset-md-10.
15
+
16
+ ```
17
+ @include grid.generate(); // or @include grid.generate($divisions);
18
+ ```
19
+ The default grid (as in Bootstrap) has 12 columns, but you can change that by passing a positive number parameter (between 2 and 1000).
20
+
21
+ ## Grid core
22
+
23
+ @use scss-foundation/src/layout/grid-core as grid;
24
+
25
+ - Core generation creates styles for rows and auto width of the content. You must pass prefixes for column and offset class
26
+ names.
27
+
28
+ ```
29
+ @include grid.generate($column-prefix, $offset-prefix);
30
+ ```
31
+
32
+ - Reverse row generation. Integrated into the full grid, but this can be also added independently if needed in your application.
33
+
34
+ ```
35
+ @include grid.generate-reverse-row($breakpoints);
36
+ ```
37
+ Breakpoints are required parameter. Expected format of breakpoints is a map/dictionary with keys being unique and something descriptive to you (i.e. mobile) and value being an object defined with size (in pixels) and string description that will be seen in CSS output (i.e. sm).
38
+ In other words:
39
+ **mobile: ( size: 576px, description: 'sm' )**
40
+ For more details, please check the format of the breakpoint variable inside the src root folder.
41
+
42
+ This method generates classes which helps you reverse order in row; i.e. if row had divs A, B, C and you apply reverse row class, the order will be C, B, A. There are two options:
43
+
44
+ 1) .reverse-row-DESIRED_BREAKPOINT_DESCRIPTION
45
+ 2) .reverse-dow-under-DESIRED_BREAKPOINT_DESCRIPTION
46
+ The first one helps you to reverse order starting from a given breakpoint (DESIRED_BREAKPOINT_DESCRIPTION might be sm, md, xxl, depending on what you pass as a breakpoint description). The second one helps you to reverse order on all widths under certain breakpoint.
@@ -1,24 +1,24 @@
1
- # Row coloring methods
2
-
3
- Row coloring utilities for the background color to rows based on their position.
4
-
5
- ## Row coloring
6
-
7
- @use scss-foundation/src/modules/lists/row-coloring as list;
8
-
9
- - Odd row coloring. Method for easily applying specified background color to odd-numbered rows.
10
-
11
- ```
12
- @include list.odd-row-coloring($color);
13
- ```
14
- Sets the following property:
15
- ```
16
- background-color: $color;
17
- ```
18
-
19
- - Even row coloring. Method for easily applying specified background color to even-numbered rows.
20
-
21
- ```
22
- @include list.even-row-coloring($color);
23
- ```
1
+ # Row coloring methods
2
+
3
+ Row coloring utilities for the background color to rows based on their position.
4
+
5
+ ## Row coloring
6
+
7
+ @use scss-foundation/src/modules/lists/row-coloring as list;
8
+
9
+ - Odd row coloring. Method for easily applying specified background color to odd-numbered rows.
10
+
11
+ ```
12
+ @include list.odd-row-coloring($color);
13
+ ```
14
+ Sets the following property:
15
+ ```
16
+ background-color: $color;
17
+ ```
18
+
19
+ - Even row coloring. Method for easily applying specified background color to even-numbered rows.
20
+
21
+ ```
22
+ @include list.even-row-coloring($color);
23
+ ```
24
24
  Sets the same property as in the previous method.
@@ -1,18 +1,18 @@
1
- # Text hover method
2
-
3
- Hover utilities for easy definition of regular and hover font states.
4
-
5
- ## Text Hover
6
-
7
- @use scss-foundation/src/modules/text/hover;
8
-
9
- - Font hover. Method for setting the color of the font for the regular state, and when the element is hovered over, it changes the color to the specified hover state.
10
-
11
- ```
12
- @include hover.font-hover($regular-state, $hover-state);
13
- ```
14
- Sets the properties for both regular and hover states:
15
- ```
16
- color: $regular-state;
17
- color: $hover-state;
18
- ```
1
+ # Text hover method
2
+
3
+ Hover utilities for easy definition of regular and hover font states.
4
+
5
+ ## Text Hover
6
+
7
+ @use scss-foundation/src/modules/text/hover;
8
+
9
+ - Font hover. Method for setting the color of the font for the regular state, and when the element is hovered over, it changes the color to the specified hover state.
10
+
11
+ ```
12
+ @include hover.font-hover($regular-state, $hover-state);
13
+ ```
14
+ Sets the properties for both regular and hover states:
15
+ ```
16
+ color: $regular-state;
17
+ color: $hover-state;
18
+ ```