@castlabs/ui 7.0.0 → 7.0.1
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/castlabs-ui.common.js +1 -1
- package/dist/castlabs-ui.css +1 -1
- package/dist/castlabs-ui.umd.js +2 -2
- package/package.json +1 -1
- package/src/components/ClCard/style.scss +9 -3
- package/src/components/ClCard/style.variables.scss +15 -5
- package/src/styles/abstracts/color.scss +3 -2
- package/src/styles/layout/helper.scss +11 -0
- package/src/styles/layout/spacing.scss +1 -0
package/package.json
CHANGED
|
@@ -30,17 +30,23 @@ details.card {
|
|
|
30
30
|
align-items: center;
|
|
31
31
|
background-color: var(--cl-color-background);
|
|
32
32
|
box-shadow: -8px 0 4px var(--cl-color-background);
|
|
33
|
-
color: $color-ci-
|
|
33
|
+
color: $color-ci-clay;
|
|
34
34
|
display: flex;
|
|
35
|
-
height:
|
|
35
|
+
height: 80%;
|
|
36
36
|
justify-content: flex-start;
|
|
37
37
|
position: absolute;
|
|
38
38
|
right: $card-spacing;
|
|
39
|
-
top:
|
|
39
|
+
top: 10%;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:hover,
|
|
43
|
+
&:hover::after {
|
|
44
|
+
color: $color-ci-red !important;
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
&:focus {
|
|
43
48
|
@include cl-color-focus-outline;
|
|
49
|
+
border-radius: $brand-border-radius;
|
|
44
50
|
}
|
|
45
51
|
}
|
|
46
52
|
|
|
@@ -11,7 +11,6 @@ $card-spacing-tight: $spacing-small;
|
|
|
11
11
|
%cl-card {
|
|
12
12
|
@extend %cl-color-night-outline;
|
|
13
13
|
|
|
14
|
-
#{'--cl-color-accent'}: $color-ci-petrol;
|
|
15
14
|
background-color: transparent;
|
|
16
15
|
background-position: center;
|
|
17
16
|
background-size: cover;
|
|
@@ -42,6 +41,15 @@ $card-spacing-tight: $spacing-small;
|
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
|
|
44
|
+
&:not([class*='cl-color-']) {
|
|
45
|
+
#{'--cl-color-accent'}: $color-accent;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.cl-color-red-outline:not([class*='cl-color-text-']) {
|
|
49
|
+
#{'--cl-color-text'}: $color-ci-night;
|
|
50
|
+
#{'--cl-color-accent'}: $color-accent;
|
|
51
|
+
}
|
|
52
|
+
|
|
45
53
|
a:not(.btn) {
|
|
46
54
|
@include typography-link(var(--cl-color-link), var(--cl-color-hover));
|
|
47
55
|
|
|
@@ -52,10 +60,6 @@ $card-spacing-tight: $spacing-small;
|
|
|
52
60
|
color: var(--cl-color-text) !important;
|
|
53
61
|
}
|
|
54
62
|
|
|
55
|
-
.btn {
|
|
56
|
-
width: 100%;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
63
|
&.cl-card-oversized {
|
|
60
64
|
@include media-breakpoint-up(sm) {
|
|
61
65
|
margin-left: -$card-spacing;
|
|
@@ -71,6 +75,12 @@ $card-spacing-tight: $spacing-small;
|
|
|
71
75
|
padding: calc($card-spacing - $brand-line-width);
|
|
72
76
|
}
|
|
73
77
|
|
|
78
|
+
.card-footer {
|
|
79
|
+
.btn {
|
|
80
|
+
width: 100%;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
74
84
|
form.card-body {
|
|
75
85
|
margin-top: 0;
|
|
76
86
|
}
|
|
@@ -50,6 +50,7 @@ $color-disabled: $color-ci-clay;
|
|
|
50
50
|
|
|
51
51
|
$color-text: $color-ci-night;
|
|
52
52
|
$color-selected: $color-ci-red;
|
|
53
|
+
$color-accent: $color-ci-petrol;
|
|
53
54
|
$color-focus: $color-ci-night;
|
|
54
55
|
$color-background: $color-ci-white;
|
|
55
56
|
$color-code-background: rgb(16 0 0 / 5%); // transparent to work on different colors
|
|
@@ -103,7 +104,7 @@ $bar-ui-width: px(4);
|
|
|
103
104
|
|
|
104
105
|
&.cl-accent-petrol,
|
|
105
106
|
.cl-accent-petrol {
|
|
106
|
-
#{'--cl-color-accent'}: $color-
|
|
107
|
+
#{'--cl-color-accent'}: $color-accent;
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
&.cl-accent-berry,
|
|
@@ -125,7 +126,7 @@ $bar-ui-width: px(4);
|
|
|
125
126
|
#{'--cl-color-border'}: $color-ci-night;
|
|
126
127
|
#{'--cl-color-text'}: $color-ci-night;
|
|
127
128
|
#{'--cl-color-line'}: $color-ci-clay;
|
|
128
|
-
#{'--cl-color-accent'}: $color-
|
|
129
|
+
#{'--cl-color-accent'}: $color-accent;
|
|
129
130
|
#{'--cl-color-highlight'}: rgba(#fff, 0.85);
|
|
130
131
|
#{'--cl-color-link'}: $color-ci-berry;
|
|
131
132
|
#{'--cl-color-active'}: $color-ci-berry;
|