claritas-web-framework 8.1.1 → 8.2.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.
- package/dist/index.css +1 -1
- package/package.json +9 -9
- package/sass/_root.scss +23 -34
- package/sass/_variables.scss +1 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claritas-web-framework",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
4
4
|
"description": "The CSS framework built for Claritas front end.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,23 +17,23 @@
|
|
|
17
17
|
"author": "David Brooks",
|
|
18
18
|
"license": "UNLICENSED",
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"css-loader": "^7.1.
|
|
20
|
+
"css-loader": "^7.1.2",
|
|
21
21
|
"find-unused-sass-variables": "^6.0.0",
|
|
22
22
|
"html-webpack-plugin": "^5.6.0",
|
|
23
23
|
"mini-css-extract-plugin": "^2.9.0",
|
|
24
|
-
"prettier": "^3.2
|
|
24
|
+
"prettier": "^3.3.2",
|
|
25
25
|
"sass-loader": "^14.2.1",
|
|
26
|
-
"stylelint": "^16.
|
|
27
|
-
"stylelint-config-standard": "^36.0.
|
|
26
|
+
"stylelint": "^16.6.1",
|
|
27
|
+
"stylelint-config-standard": "^36.0.1",
|
|
28
28
|
"stylelint-config-standard-scss": "^13.1.0",
|
|
29
|
-
"stylelint-scss": "^6.
|
|
30
|
-
"webpack": "^5.
|
|
29
|
+
"stylelint-scss": "^6.4.0",
|
|
30
|
+
"webpack": "^5.92.1",
|
|
31
31
|
"webpack-cli": "^5.1.4",
|
|
32
32
|
"webpack-dev-server": "^5.0.4"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"modern-normalize": "^2.0.0",
|
|
36
36
|
"rfs": "^10.0.0",
|
|
37
|
-
"sass": "^1.
|
|
37
|
+
"sass": "^1.77.7"
|
|
38
38
|
}
|
|
39
|
-
}
|
|
39
|
+
}
|
package/sass/_root.scss
CHANGED
|
@@ -3,22 +3,30 @@
|
|
|
3
3
|
@use "./mixins/colors" as *;
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
+
@include define-color-variables($title: "body-color", $color: $body-color);
|
|
6
7
|
|
|
7
|
-
@
|
|
8
|
-
|
|
9
|
-
@include font-size(var(--root-font-size));
|
|
10
|
-
}
|
|
8
|
+
@include define-color-variables($title: "border-color-main", $color: $border-color-main);
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
--spacer: #{$spacer};
|
|
11
|
+
--body-color: #{$body-color};
|
|
12
|
+
--body-background: #{$body-background};
|
|
13
|
+
--font-family-body: #{$font-family-base};
|
|
14
|
+
--font-size-body: #{$font-size-base};
|
|
15
|
+
--font-size-base: #{$font-size-base};
|
|
16
|
+
--font-weight-body: #{$font-weight-base};
|
|
17
|
+
--line-height-body: #{$line-height-base};
|
|
18
|
+
--body-text-align: #{$body-text-align};
|
|
19
|
+
--headings-color: #{$headings-color};
|
|
20
|
+
--box-shadow-small: #{$box-shadow-small};
|
|
21
|
+
--box-shadow-medium: #{$box-shadow-medium};
|
|
22
|
+
--box-shadow-large: #{$box-shadow-large};
|
|
23
|
+
--border-color-main: #{$border-color-main};
|
|
24
|
+
--border-color-hover-main: #{$border-color-hover-main};
|
|
13
25
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
26
|
+
@if $font-size-root {
|
|
27
|
+
@include font-size(var(--root-font-size));
|
|
17
28
|
}
|
|
18
29
|
|
|
19
|
-
// Colors
|
|
20
|
-
// Generate palettes for full colors, grays, and theme colors.
|
|
21
|
-
|
|
22
30
|
@each $key, $value in $grays {
|
|
23
31
|
--#{$key}: #{$value};
|
|
24
32
|
}
|
|
@@ -27,23 +35,14 @@
|
|
|
27
35
|
--#{$key}: #{$value};
|
|
28
36
|
}
|
|
29
37
|
|
|
30
|
-
--border-color-main: #{$border-color-main};
|
|
31
|
-
--border-color-hover-main: #{$border-color-hover-main};
|
|
32
|
-
|
|
33
38
|
@each $key, $value in $grays {
|
|
34
|
-
|
|
35
39
|
@include define-color-variables($key, $value);
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
@each $key, $value in $all-colors {
|
|
39
|
-
|
|
40
43
|
@include define-color-variables($key, $value);
|
|
41
44
|
}
|
|
42
45
|
|
|
43
|
-
@include define-color-variables($title: "body-color", $color: $body-color);
|
|
44
|
-
|
|
45
|
-
@include define-color-variables($title: "border-color-main", $color: $border-color-main);
|
|
46
|
-
|
|
47
46
|
@each $key, $value in $zindexes {
|
|
48
47
|
--zindex-#{$key}: #{$value};
|
|
49
48
|
}
|
|
@@ -52,20 +51,6 @@
|
|
|
52
51
|
--font-size-#{$key}: #{$value};
|
|
53
52
|
}
|
|
54
53
|
|
|
55
|
-
--spacer: #{$spacer};
|
|
56
|
-
--body-color: #{$body-color};
|
|
57
|
-
--body-background: #{$body-background};
|
|
58
|
-
--font-family-body: #{$font-family-base};
|
|
59
|
-
--font-size-body: #{$font-size-base};
|
|
60
|
-
--font-size-base: #{$font-size-base};
|
|
61
|
-
--font-weight-body: #{$font-weight-base};
|
|
62
|
-
--line-height-body: #{$line-height-base};
|
|
63
|
-
--body-text-align: #{$body-text-align};
|
|
64
|
-
--headings-color: #{$headings-color};
|
|
65
|
-
--box-shadow-small: #{$box-shadow-small};
|
|
66
|
-
--box-shadow-medium: #{$box-shadow-medium};
|
|
67
|
-
--box-shadow-large: #{$box-shadow-large};
|
|
68
|
-
|
|
69
54
|
@each $key, $value in $border-radii {
|
|
70
55
|
--border-radius-#{$key}: #{$value};
|
|
71
56
|
}
|
|
@@ -73,4 +58,8 @@
|
|
|
73
58
|
@each $name, $value in $breakpoints {
|
|
74
59
|
--breakpoint-#{$name}: #{$value};
|
|
75
60
|
}
|
|
61
|
+
|
|
62
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
63
|
+
scroll-behavior: smooth;
|
|
64
|
+
}
|
|
76
65
|
}
|
package/sass/_variables.scss
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
@use "sass:math";
|
|
6
6
|
|
|
7
7
|
/* --------------------------------- options -------------------------------- */
|
|
8
|
-
$enable-smooth-scroll: true !default;
|
|
9
8
|
$enable-margins: true !default;
|
|
10
9
|
$enable-cssgrid: true !default;
|
|
11
10
|
|
|
@@ -95,7 +94,7 @@ $spacers: (
|
|
|
95
94
|
5: $spacer * 3
|
|
96
95
|
) !default;
|
|
97
96
|
$gutters: $spacers !default;
|
|
98
|
-
$sizes: (0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100) !default;
|
|
97
|
+
$sizes: (0, 1, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100) !default;
|
|
99
98
|
|
|
100
99
|
/* ---------------------------------- links --------------------------------- */
|
|
101
100
|
$link-shade-percentage: 20% !default;
|