claritas-web-framework 8.5.5 → 8.5.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claritas-web-framework",
3
- "version": "8.5.5",
3
+ "version": "8.5.7",
4
4
  "description": "The CSS framework built for Claritas front end.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,11 +8,9 @@
8
8
  justify-content: flex-start;
9
9
  position: relative;
10
10
 
11
- @if $enable-margins {
12
- margin-bottom: var(--spacer);
13
- } @else {
14
- margin-bottom: 0;
15
- }
11
+ $group-margin-fallback: if($enable-margins, var(--spacer), 0);
12
+
13
+ margin-bottom: var(--group-margin-bottom, #{$group-margin-fallback});
16
14
  }
17
15
 
18
16
  @mixin make-group-column($gap: calc(var(--spacer) * 0.5)) {
@@ -6,11 +6,9 @@
6
6
  margin: 0;
7
7
  padding: 0;
8
8
 
9
- @if $enable-margins {
10
- margin-bottom: var(--spacer);
11
- } @else {
12
- margin-bottom: 0;
13
- }
9
+ $list-margin-fallback: if($enable-margins, var(--spacer), 0);
10
+
11
+ margin-bottom: var(--list-margin-bottom, #{$list-margin-fallback});
14
12
  }
15
13
 
16
14
  @mixin make-list-inline($gap: calc(var(--spacer) * 0.5)) {
@@ -20,11 +20,9 @@
20
20
  background: var(--alert-background);
21
21
  position: relative;
22
22
 
23
- @if $enable-margins {
24
- margin-bottom: var(--spacer);
25
- } @else {
26
- margin-bottom: 0;
27
- }
23
+ $alert-margin-fallback: if($enable-margins, var(--spacer), 0);
24
+
25
+ margin-bottom: var(--alert-margin-bottom, #{$alert-margin-fallback});
28
26
 
29
27
  @each $key in (1, 2, 3, 4, 5, 6) {
30
28
  h#{$key},
@@ -24,11 +24,9 @@
24
24
  flex: 1 1 auto;
25
25
  position: relative;
26
26
 
27
- @if $enable-margins {
28
- margin-bottom: var(--spacer);
29
- } @else {
30
- margin-bottom: 0;
31
- }
27
+ $card-margin-fallback: if($enable-margins, var(--spacer), 0);
28
+
29
+ margin-bottom: var(--card-margin-bottom, #{$card-margin-fallback});
32
30
 
33
31
  & > * {
34
32
  &:first-child {
@@ -4,11 +4,9 @@
4
4
  details {
5
5
  transition: $details-transition;
6
6
 
7
- @if $enable-margins {
8
- margin-bottom: var(--spacer);
9
- } @else {
10
- margin-bottom: 0;
11
- }
7
+ $details-margin-fallback: if($enable-margins, var(--spacer), 0);
8
+
9
+ margin-bottom: var(--details-margin-bottom, #{$details-margin-fallback});
12
10
 
13
11
  & summary {
14
12
  position: relative;
@@ -36,7 +36,7 @@
36
36
  --input-active-background: var(--white);
37
37
  --input-disabled-background: hsl(from var(--body-color) h s l / 5%);
38
38
  --input-detail-background: var(--primary);
39
- --input-disabled-detail-background: hsl(from var(--primary) / #{$color-disabled-alpha});
39
+ --input-disabled-detail-background: hsl(from var(--primary) h s l / #{$color-disabled-alpha});
40
40
  --input-box-shadow: 0 0 0 0.125em transparent;
41
41
  --input-hover-box-shadow: 0 0 0 0.125em transparent;
42
42
  --input-focus-box-shadow: 0 0 0 0.125em hsl(from var(--body-color) h s l / 20%);
@@ -122,7 +122,6 @@
122
122
  border-color: var(--input-disabled-border-color);
123
123
  background: var(--input-disabled-background);
124
124
  box-shadow: var(--input-disabled-box-shadow);
125
- pointer-events: none;
126
125
  opacity: 1;
127
126
  }
128
127
 
@@ -12,11 +12,9 @@
12
12
  }
13
13
 
14
14
  dl {
15
- @if $enable-margins {
16
- margin-bottom: var(--spacer);
17
- } @else {
18
- margin-bottom: 0;
19
- }
15
+ $dl-margin-fallback: if($enable-margins, var(--spacer), 0);
16
+
17
+ margin-bottom: var(--dl-margin-bottom, #{$dl-margin-fallback});
20
18
 
21
19
  & > *:last-child {
22
20
  margin-bottom: 0;
@@ -53,11 +51,9 @@ dl {
53
51
  border-radius: var(--border-radius-medium);
54
52
  border: 1px solid var(--border-color-main);
55
53
 
56
- @if $enable-margins {
57
- margin-bottom: var(--spacer);
58
- } @else {
59
- margin-bottom: 0;
60
- }
54
+ $li-margin-fallback: if($enable-margins, var(--spacer), 0);
55
+
56
+ margin-bottom: var(--li-margin-bottom, #{$li-margin-fallback});
61
57
 
62
58
  & .list__item {
63
59
  padding: calc(calc(var(--spacer) * 0.625) - 1px) var(--spacer);
@@ -7,11 +7,9 @@
7
7
  --tabs-border-color: var(--border-color-main);
8
8
  --tabs-background: var(--white);
9
9
 
10
- @if $enable-margins {
11
- margin-bottom: var(--spacer);
12
- } @else {
13
- margin-bottom: 0;
14
- }
10
+ $tabs-margin-fallback: if($enable-margins, var(--spacer), 0);
11
+
12
+ margin-bottom: var(--tabs-margin-bottom, #{$tabs-margin-fallback});
15
13
 
16
14
  & .nav--tabs {
17
15
  margin-bottom: 0;
@@ -28,11 +28,9 @@
28
28
  flex: 1 1 auto;
29
29
  position: relative;
30
30
 
31
- @if $enable-margins {
32
- margin-bottom: var(--spacer);
33
- } @else {
34
- margin-bottom: 0;
35
- }
31
+ $tile-margin-fallback: if($enable-margins, var(--spacer), 0);
32
+
33
+ margin-bottom: var(--tile-margin-bottom, #{$tile-margin-fallback});
36
34
 
37
35
  & > * {
38
36
  &:first-child {
@@ -3,6 +3,4 @@
3
3
 
4
4
  output {
5
5
  --input-background: color-mix(in oklab, var(--body-color), #fff 95%);
6
-
7
- pointer-events: none;
8
6
  }