claritas-web-framework 8.0.20 → 8.0.22

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"><p class="color--danger">Hello</p></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><nav id="navbar">Currencies (€) <button id="app-update" class="app-update"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="white"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"/></svg></button></nav><main id="main"><div class="card"><div class="card--header">Header</div><div class="card--body">Body</div><div class="card--footer">Footer</div></div></main></body></html>
package/index.html CHANGED
@@ -8,8 +8,23 @@
8
8
  </head>
9
9
 
10
10
  <body>
11
- <div class="container">
12
- <p class="color--danger">Hello</p>
13
- </div>
11
+ <!-- app shell HTML -->
12
+ <nav id="navbar">
13
+ Currencies (€)
14
+ <button id="app-update" class="app-update">
15
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="white">
16
+ <path fill="none" d="M0 0h24v24H0V0z" />
17
+ <path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" />
18
+ </svg>
19
+ </button>
20
+ </nav>
21
+
22
+ <main id="main">
23
+ <div class="card">
24
+ <div class="card--header">Header</div>
25
+ <div class="card--body">Body</div>
26
+ <div class="card--footer">Footer</div>
27
+ </div>
28
+ </main>
14
29
  </body>
15
30
  </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claritas-web-framework",
3
- "version": "8.0.20",
3
+ "version": "8.0.22",
4
4
  "description": "The CSS framework built for Claritas front end.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -22,12 +22,12 @@
22
22
  "html-webpack-plugin": "^5.5.3",
23
23
  "mini-css-extract-plugin": "^2.7.6",
24
24
  "prettier": "^3.0.1",
25
- "sass": "^1.64.2",
25
+ "sass": "^1.65.1",
26
26
  "sass-loader": "^13.3.2",
27
27
  "stylelint": "^15.10.2",
28
28
  "stylelint-config-standard": "^34.0.0",
29
29
  "stylelint-config-standard-scss": "^10.0.0",
30
- "stylelint-scss": "^5.0.1",
30
+ "stylelint-scss": "^5.1.0",
31
31
  "webpack": "^5.88.2",
32
32
  "webpack-cli": "^5.1.4",
33
33
  "webpack-dev-server": "^4.15.1"
@@ -1,7 +1,7 @@
1
1
  @use "./../variables" as *;
2
2
  @use "./../mixins/group" as *;
3
3
 
4
- @mixin make-list-unsyled() {
4
+ @mixin make-list-unstyled() {
5
5
  list-style: none;
6
6
  margin: 0;
7
7
  padding: 0;
@@ -15,5 +15,5 @@
15
15
 
16
16
  @mixin make-list-inline($gap: calc(var(--spacer) * 0.5)) {
17
17
  @include make-group-row($gap);
18
- @include make-list-unsyled;
18
+ @include make-list-unstyled;
19
19
  }
@@ -8,7 +8,7 @@
8
8
  var(--medium-h) var(--medium-s) calc(var(--medium-l) - #{$link-shade-percentage}) / 100%
9
9
  );
10
10
 
11
- @include make-list-unsyled;
11
+ @include make-list-unstyled;
12
12
 
13
13
  display: flex;
14
14
  flex-wrap: wrap;
@@ -17,7 +17,7 @@
17
17
  flex-direction: column;
18
18
  min-width: 0;
19
19
  word-wrap: break-word;
20
- width: 100%;
20
+ flex: 1 1 auto;
21
21
  position: relative;
22
22
 
23
23
  @if $enable-margins {
@@ -51,18 +51,16 @@
51
51
  }
52
52
 
53
53
  & .card--header {
54
- flex: 0 1 auto;
55
54
  border-bottom: var(--card-border-width) var(--card-border-style) var(--card-border-color);
56
55
  }
57
56
 
58
57
  & .card--footer {
59
58
  margin-top: auto;
60
- flex: 0 0 auto;
61
59
  border-top: var(--card-border-width) var(--card-border-style) var(--card-border-color);
62
60
  }
63
61
 
64
62
  & .card--body {
65
- flex: 0 0 auto;
63
+ flex: 1 1 auto;
66
64
  width: 100%;
67
65
  padding: var(--spacer);
68
66
 
@@ -4,7 +4,7 @@
4
4
  @use "./../mixins/list" as *;
5
5
 
6
6
  .list--unstyled {
7
- @include make-list-unsyled;
7
+ @include make-list-unstyled;
8
8
  }
9
9
 
10
10
  .list--inline {
@@ -24,7 +24,7 @@ dl {
24
24
  }
25
25
 
26
26
  .list--group {
27
- @include make-list-unsyled;
27
+ @include make-list-unstyled;
28
28
 
29
29
  & > li {
30
30
  border: 1px solid hsl(var(--border-color-h) var(--border-color-s) var(--border-color-l) / #{$border-opacity});
@@ -47,7 +47,7 @@ dl {
47
47
  }
48
48
 
49
49
  .list--nested {
50
- @include make-list-unsyled;
50
+ @include make-list-unstyled;
51
51
 
52
52
  & > li {
53
53
  background-color: var(--white);
@@ -39,10 +39,10 @@
39
39
  align-items: center;
40
40
  position: relative;
41
41
 
42
- @include make-list-unsyled;
42
+ @include make-list-unstyled;
43
43
 
44
44
  & ul {
45
- @include make-list-unsyled;
45
+ @include make-list-unstyled;
46
46
 
47
47
  margin: 0;
48
48
  }