claritas-web-framework 6.4.1 → 6.4.3

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.html CHANGED
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Claritas Web Framework</title><script defer="defer" src="index.js"></script><link href="./index.css" rel="stylesheet"></head><body><div class="container padding-y--5"><div class="alert alert--danger">Hello <a href="/">Click</a></div><hr/><div class="grid--tight"><div class="col--desktop-fit"><div class="card margin--0"><div class="card--body">Column</div></div></div><div class="col--desktop-fit"><div class="card margin--0"><div class="card--body">Column</div></div></div><div class="col--desktop-fit"><div class="card margin--0"><div class="card--body">Column</div></div></div></div></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Claritas Web Framework</title><script defer="defer" src="index.js"></script><link href="./index.css" rel="stylesheet"></head><body><div class="container padding-y--5"><button type="button" class="button button--unstyled">A button</button><div class="alert alert--danger">Some text<br/><button type="button" class="button button--unstyled">A button</button><br/><a href="/" class="display--inline-block">A link</a></div></div></body></html>
package/index.html CHANGED
@@ -9,25 +9,11 @@
9
9
 
10
10
  <body>
11
11
  <div class="container padding-y--5">
12
- <div class="alert alert--danger">Hello <a href="/">Click</a></div>
13
- <hr />
14
-
15
- <div class="grid--tight">
16
- <div class="col--desktop-fit">
17
- <div class="card margin--0">
18
- <div class="card--body">Column</div>
19
- </div>
20
- </div>
21
- <div class="col--desktop-fit">
22
- <div class="card margin--0">
23
- <div class="card--body">Column</div>
24
- </div>
25
- </div>
26
- <div class="col--desktop-fit">
27
- <div class="card margin--0">
28
- <div class="card--body">Column</div>
29
- </div>
30
- </div>
12
+ <button type="button" class="button button--unstyled">A button</button>
13
+ <div class="alert alert--danger">
14
+ Some text<br />
15
+ <button type="button" class="button button--unstyled">A button</button><br />
16
+ <a href="/" class="display--inline-block">A link</a>
31
17
  </div>
32
18
  </div>
33
19
  </body>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "claritas-web-framework",
3
- "version": "6.4.1",
4
- "updated": "23/05/2023",
3
+ "version": "6.4.3",
4
+ "updated": "05/07/2023",
5
5
  "description": "The CSS framework built for Claritas front end.",
6
6
  "main": "index.js",
7
7
  "scripts": {
@@ -19,30 +19,30 @@
19
19
  "license": "UNLICENSED",
20
20
  "devDependencies": {
21
21
  "@alexlafroscia/postcss-color-mod-function": "^4.0.0",
22
- "css-loader": "^6.7.4",
22
+ "css-loader": "^6.8.1",
23
23
  "cssnano": "^6.0.1",
24
24
  "find-unused-sass-variables": "^5.0.0",
25
- "html-webpack-plugin": "^5.5.1",
25
+ "html-webpack-plugin": "^5.5.3",
26
26
  "mini-css-extract-plugin": "^2.7.6",
27
- "postcss": "^8.4.23",
27
+ "postcss": "^8.4.24",
28
28
  "postcss-advanced-variables": "^3.0.1",
29
29
  "postcss-import": "^15.1.0",
30
30
  "postcss-inline-svg": "^6.0.0",
31
- "postcss-loader": "^7.3.0",
32
- "postcss-preset-env": "^8.4.1",
31
+ "postcss-loader": "^7.3.3",
32
+ "postcss-preset-env": "^9.0.0",
33
33
  "postcss-scss": "^4.0.6",
34
34
  "prettier": "^2.8.8",
35
- "sass": "^1.62.1",
36
- "sass-loader": "^13.3.0",
37
- "stylelint": "^15.6.2",
38
- "stylelint-config-standard": "^33.0.0",
39
- "stylelint-config-standard-scss": "^9.0.0",
40
- "stylelint-scss": "^5.0.0",
41
- "webpack": "^5.83.1",
42
- "webpack-cli": "^5.1.1",
43
- "webpack-dev-server": "^4.15.0"
35
+ "sass": "^1.63.6",
36
+ "sass-loader": "^13.3.2",
37
+ "stylelint": "^15.10.0",
38
+ "stylelint-config-standard": "^34.0.0",
39
+ "stylelint-config-standard-scss": "^10.0.0",
40
+ "stylelint-scss": "^5.0.1",
41
+ "webpack": "^5.88.1",
42
+ "webpack-cli": "^5.1.4",
43
+ "webpack-dev-server": "^4.15.1"
44
44
  },
45
45
  "dependencies": {
46
46
  "rfs": "^10.0.0"
47
47
  }
48
- }
48
+ }
@@ -189,6 +189,7 @@
189
189
 
190
190
  &:hover,
191
191
  .button--switch + &:hover {
192
+ --button-text-decoration: underline;
192
193
  --button-color: hsl(
193
194
  var(--#{$color-title}-h) var(--#{$color-title}-s) calc(var(--#{$color-title}-l) - #{$shade}) /
194
195
  var(--#{$color-title}-a)
@@ -12,7 +12,8 @@
12
12
 
13
13
  display: flex;
14
14
  flex-wrap: wrap;
15
- margin-top: calc(-1 * var(--gutter-y)); // stylelint-disable-line function-disallowed-list
15
+ // margin-top: calc(-1 * var(--gutter-y)); // stylelint-disable-line function-disallowed-list
16
+ margin-top: var(--gutter-y);
16
17
  margin-right: calc(-0.5 * var(--gutter-x)); // stylelint-disable-line function-disallowed-list
17
18
  margin-left: calc(-0.5 * var(--gutter-x)); // stylelint-disable-line function-disallowed-list
18
19
  }
@@ -13,13 +13,7 @@
13
13
  }
14
14
  }
15
15
 
16
- @mixin make-list-inline() {
17
- @include make-group-row;
16
+ @mixin make-list-inline($gap: calc($spacer * 0.5)) {
17
+ @include make-group-row($gap);
18
18
  @include make-list-unsyled;
19
-
20
- & > * {
21
- &:not(:last-child) {
22
- margin-right: $spacer;
23
- }
24
- }
25
19
  }
@@ -41,7 +41,8 @@
41
41
  }
42
42
  }
43
43
 
44
- & a:not(.button) {
44
+ & a:not(.button),
45
+ & .button--unstyled {
45
46
  color: var(--alert-link-color);
46
47
  font-weight: $font-weight-semibold;
47
48
 
@@ -22,6 +22,7 @@
22
22
  --button-font-weight: #{$button-font-weight};
23
23
  --button-line-height: #{$button-line-height};
24
24
  --button-text-decoration: none;
25
+ --button-hover-text-decoration: none;
25
26
  --button-white-space: #{$button-white-space};
26
27
 
27
28
  @include rfs($button-font-size, --button-font-size);
@@ -17,10 +17,13 @@
17
17
  }
18
18
 
19
19
  & .modal--content {
20
+ overflow-y: scroll;
20
21
  padding: $grid-gutter;
21
22
  display: flex;
22
23
  flex-direction: column;
23
24
  max-width: 100%;
25
+ position: fixed;
26
+ inset: 0;
24
27
  animation: open-modal 0.25s ease normal;
25
28
  }
26
29
  }
@@ -1,3 +1,13 @@
1
+ @svg-load upload url("upload.svg") {
2
+ fill: color-mod(var(--black-transparent-25) tint(0%));
3
+ stroke: none;
4
+ }
5
+
6
+ @svg-load uploadHover url("upload.svg") {
7
+ fill: color-mod(var(--black-transparent-50) tint(0%));
8
+ stroke: none;
9
+ }
10
+
1
11
  .form--control-file {
2
12
  --display: flex;
3
13
 
@@ -71,11 +81,7 @@ input[type="file"] {
71
81
  transform: translateX(-50%);
72
82
  margin: 0;
73
83
  background-size: calc(var(--spacer) * 2) auto;
74
- background-image: svg-load(
75
- "upload.svg",
76
- stroke: none,
77
- fill: color-mod(var(--black-transparent-25) tint(0%))
78
- );
84
+ background-image: svg-inline(upload);
79
85
  }
80
86
  }
81
87
 
@@ -84,11 +90,7 @@ input[type="file"] {
84
90
  border-color: var(--border-color-hover);
85
91
 
86
92
  &::after {
87
- background-image: svg-load(
88
- "upload.svg",
89
- stroke: none,
90
- fill: color-mod(var(--black-transparent-50) tint(0%))
91
- );
93
+ background-image: svg-inline(uploadHover);
92
94
  }
93
95
  }
94
96
 
@@ -1,15 +1,15 @@
1
+ @svg-load chevronDown url("chevron-down.svg") {
2
+ fill: none;
3
+ stroke: color-mod(var(--body-color) a(100%));
4
+ }
5
+
1
6
  select {
2
- --padding: var(--padding-y) calc(var(--spacer) * 1.75) var(--padding-y)
3
- var(--padding-x);
7
+ --padding: var(--padding-y) calc(var(--spacer) * 1.75) var(--padding-y) var(--padding-x);
4
8
  padding-start: calc(var(--spacer) - 3px);
5
9
  appearance: none;
6
10
 
7
11
  &:not([multiple]) {
8
- background-image: svg-load(
9
- "chevron-down.svg",
10
- stroke: color-mod(var(--body-color) a(100%)),
11
- fill: none
12
- );
12
+ background-image: svg-inline(chevronDown);
13
13
  background-repeat: no-repeat;
14
14
  background-position: right calc(var(--spacer) * 0.5) center;
15
15
  background-size: var(--spacer) auto;
@@ -2,6 +2,11 @@
2
2
  @import "../mixins/group.css";
3
3
  @import "../mixins/helpers/grid.css";
4
4
 
5
+ @svg-load subdirectory url("subdirectory.svg") {
6
+ fill: color-mod(var(--black) a(25%));
7
+ stroke: none;
8
+ }
9
+
5
10
  .list--unstyled {
6
11
  @include make-list-unsyled();
7
12
  }
@@ -82,11 +87,7 @@ dl {
82
87
  border-radius: 0;
83
88
  border: 0 none;
84
89
  margin-bottom: 0;
85
- background-image: svg-load(
86
- "subdirectory.svg",
87
- stroke: none,
88
- fill: color-mod(var(--black) a(25%))
89
- );
90
+ background-image: svg-inline(subdirectory);
90
91
  background-size: var(--spacer) auto;
91
92
  background-repeat: no-repeat;
92
93
  background-position: left calc(var(--spacer) * 0.5) top var(--spacer);