claritas-web-framework 5.0.502 → 5.0.503

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": "5.0.502",
3
+ "version": "5.0.503",
4
4
  "updated": "19/04/2022",
5
5
  "description": "The CSS framework built for Claritas front end.",
6
6
  "main": "index.js",
@@ -519,4 +519,8 @@ $button-box-shadow-focus: 0 0 0 0.125em rgba($black, 0.1) !default;
519
519
  $button-box-shadow-active: 0 0 0 0.125em rgba($black, 0.2) !default;
520
520
 
521
521
  // Card
522
- $card-border-radius: $border-radius-medium !default;
522
+ $card-border-width: $input-border-width !default;
523
+ $card-border-style: $input-border-style !default;
524
+ $card-border-color: $input-border-color !default;
525
+ $card-border-radius: $border-radius-medium !default;
526
+ $card-background-color: $white !default;
@@ -1,15 +1,10 @@
1
1
  @mixin make-card() {
2
- --#{$variable-prefix}background-color: #{$white};
3
- --#{$variable-prefix}border-color: #{rgba($black, .12)};
4
- --#{$variable-prefix}border-radius: #{$card-border-radius};
5
-
6
- border-width: 1px;
7
- border-style: solid;
8
- border-color: var(--#{$variable-prefix}border-color);
9
-
2
+ border-width: $card-border-width;
3
+ border-style: $card-border-style;
4
+ border-color: $card-border-color;
10
5
  margin-bottom: $spacer;
11
- background-color: var(--#{$variable-prefix}background-color);
12
- border-radius: var(--#{$variable-prefix}border-radius);
6
+ background-color: $card-background-color;
7
+ border-radius: $card-border-radius;
13
8
  display: flex;
14
9
  flex-direction: column;
15
10
  min-width: 0;
@@ -19,13 +14,13 @@
19
14
 
20
15
  & > * {
21
16
  &:first-child {
22
- border-top-left-radius: calc(var(--#{$variable-prefix}border-radius) - 1px);
23
- border-top-right-radius: calc(var(--#{$variable-prefix}border-radius) - 1px);
17
+ border-top-left-radius: calc($card-border-radius - 1px);
18
+ border-top-right-radius: calc($card-border-radius - 1px);
24
19
  }
25
20
 
26
21
  &:last-child {
27
- border-bottom-left-radius: calc(var(--#{$variable-prefix}border-radius) - 1px);
28
- border-bottom-right-radius: calc(var(--#{$variable-prefix}border-radius) - 1px);
22
+ border-bottom-left-radius: calc($card-border-radius - 1px);
23
+ border-bottom-right-radius: calc($card-border-radius - 1px);
29
24
  }
30
25
  }
31
- }
26
+ }
@@ -16,13 +16,13 @@
16
16
 
17
17
  & .card--header {
18
18
  flex: 0 1 auto;
19
- border-bottom: 1px solid var(--#{$variable-prefix}border-color);
19
+ border-bottom: 1px solid $card-border-color;
20
20
  }
21
21
 
22
22
  & .card--footer {
23
23
  margin-top: auto;
24
24
  flex: 0 0 auto;
25
- border-top: 1px solid var(--#{$variable-prefix}border-color);
25
+ border-top: 1px solid $card-border-color;
26
26
  }
27
27
 
28
28
  & .card--body {
@@ -57,7 +57,7 @@ details.card {
57
57
 
58
58
  &[open] {
59
59
  & .card--header {
60
- border-bottom-color: var(--#{$variable-prefix}border-color);
60
+ border-bottom-color: $card-border-color;
61
61
  }
62
62
  }
63
63
  }
@@ -35,8 +35,7 @@
35
35
  & .tab--content {
36
36
  @include make-card();
37
37
 
38
- --#{$variable-prefix}border-radius: 0 0 #{$border-radius-medium} #{$border-radius-medium};
39
-
38
+ border-radius: 0 0 $card-border-radius $card-border-radius;
40
39
  border-top-color: rgba($black, 0);
41
40
  display: none !important;
42
41
  padding: $spacer;
@@ -61,11 +60,11 @@
61
60
  margin-bottom: 0;
62
61
 
63
62
  &:first-child {
64
- border-top-left-radius: calc($border-radius-medium - 1px);
63
+ border-top-left-radius: calc($card-border-radius - 1px);
65
64
  }
66
65
 
67
66
  &:last-child {
68
- border-top-right-radius: calc($border-radius-medium - 1px);
67
+ border-top-right-radius: calc($card-border-radius - 1px);
69
68
  }
70
69
 
71
70
  &::after {