@castlabs/ui 4.18.4 → 4.18.6
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 +81 -44
- package/dist/castlabs-ui.common.js.map +1 -1
- package/dist/castlabs-ui.css +1 -1
- package/dist/castlabs-ui.umd.js +81 -44
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/dist/castlabs-ui.umd.min.js +1 -1
- package/dist/castlabs-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ClBadge/style.scss +16 -105
- package/src/components/ClBadge/style.variables.scss +64 -0
- package/src/components/ClList/style.variables.scss +5 -1
- package/src/components/text/ClHashtag/style.scss +21 -16
- package/src/components/text/ClPlan/style.scss +19 -18
- package/src/components/text/ClRole/style.scss +18 -21
package/package.json
CHANGED
|
@@ -5,118 +5,29 @@
|
|
|
5
5
|
|
|
6
6
|
// This file adds & customizes bootstrap's cards.
|
|
7
7
|
|
|
8
|
-
@import '
|
|
8
|
+
@import 'style.variables';
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
@
|
|
15
|
-
@extend %cl-font-condensed;
|
|
16
|
-
|
|
17
|
-
background-color: $badge-color-bg;
|
|
18
|
-
border-radius: 2rem;
|
|
19
|
-
font-size: px(14); // 18->14
|
|
20
|
-
font-weight: 650;
|
|
21
|
-
line-height: 1em;
|
|
22
|
-
padding: $badge-padding;
|
|
23
|
-
|
|
24
|
-
&-primary,
|
|
25
|
-
&-secondary,
|
|
26
|
-
&-success,
|
|
27
|
-
&-danger,
|
|
28
|
-
&-warning,
|
|
29
|
-
&-info,
|
|
30
|
-
&-light,
|
|
31
|
-
&-dark {
|
|
32
|
-
background-color: $badge-color-bg;
|
|
33
|
-
color: $badge-color-fg;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.cl-badge-text {
|
|
37
|
-
background-color: $badge-color-bg;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&.cl-badge-light {
|
|
41
|
-
background-color: $badge-color-fg;
|
|
42
|
-
color: $badge-color-bg;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&.cl-badge-primary {
|
|
46
|
-
background-color: $color-primary;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&.cl-badge-secondary {
|
|
50
|
-
background-color: $color-secondary;
|
|
10
|
+
.badge, // bs badge class is deprecated
|
|
11
|
+
[class^='cl-badge'],
|
|
12
|
+
[class*=' cl-badge'] {
|
|
13
|
+
&:not(.cl-badge-derived) {
|
|
14
|
+
@extend %cl-badge;
|
|
51
15
|
}
|
|
52
16
|
}
|
|
53
17
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
background-color: transparent;
|
|
58
|
-
box-shadow: 0 0 0 2px $badge-color inset;
|
|
59
|
-
color: $badge-color;
|
|
60
|
-
display: inline-block;
|
|
61
|
-
text-align: left;
|
|
62
|
-
width: 3em;
|
|
63
|
-
|
|
64
|
-
&::before {
|
|
65
|
-
@include cl-fontawesome('\f064');
|
|
66
|
-
|
|
67
|
-
color: $badge-color !important;
|
|
68
|
-
position: relative;
|
|
69
|
-
top: 0;
|
|
70
|
-
transform: scale(0.75) scaleY(-1) translate(-0.15em, -0.025em);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.cl-badge-primary {
|
|
74
|
-
box-shadow: 0 0 0 2px $color-primary inset;
|
|
75
|
-
color: $color-primary;
|
|
76
|
-
|
|
77
|
-
&::before {
|
|
78
|
-
color: $color-primary !important;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
&.cl-badge-secondary {
|
|
83
|
-
box-shadow: 0 0 0 2px $color-secondary inset;
|
|
84
|
-
color: $color-secondary;
|
|
85
|
-
|
|
86
|
-
&::before {
|
|
87
|
-
color: $color-secondary !important;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.cl-spacing-box-micro &,
|
|
92
|
-
.cl-spacing-box-tiny &,
|
|
93
|
-
.cl-spacing-box-small &,
|
|
94
|
-
.cl-spacing-box &,
|
|
95
|
-
.cl-spacing-box-medium &,
|
|
96
|
-
.cl-spacing-box-large &,
|
|
97
|
-
.cl-spacing-box-huge & {
|
|
98
|
-
margin-right: 0;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.badge {
|
|
103
|
-
@include cl-badge();
|
|
104
|
-
|
|
105
|
-
&.cl-badge-derived {
|
|
106
|
-
@include badge-derived();
|
|
18
|
+
a[class^='cl-badge'],
|
|
19
|
+
a[class*=' cl-badge'] {
|
|
20
|
+
@include typography-links($badge-color-fg, rgba($badge-color-fg, $color-hover-opacity), 0);
|
|
107
21
|
|
|
108
|
-
|
|
109
|
-
margin-left: -1.5em;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
22
|
+
display: inline-block !important;
|
|
112
23
|
}
|
|
113
24
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
@include typography-links($badge-color-fg, rgba($badge-color-fg, $color-hover-opacity), 0);
|
|
25
|
+
.cl-badge-derived {
|
|
26
|
+
@extend %cl-badge-derived;
|
|
117
27
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
28
|
+
+ .badge, // bs badge class is deprecated
|
|
29
|
+
+ [class^='cl-badge'],
|
|
30
|
+
+ [class*=' cl-badge'] {
|
|
31
|
+
margin-left: -1.66em;
|
|
121
32
|
}
|
|
122
33
|
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
$badge-color-fg: $color-ci-white;
|
|
2
|
+
$badge-color-bg: $color-dark;
|
|
3
|
+
$badge-padding: px(4) px(8);
|
|
4
|
+
$badge-min-height: 1.642857143em; // 23px @ 14pt
|
|
5
|
+
$badge-baseline-shift: .055555em; // 1px @ 14pt
|
|
6
|
+
|
|
7
|
+
%cl-badge {
|
|
8
|
+
@extend %cl-font-condensed;
|
|
9
|
+
|
|
10
|
+
background-color: $badge-color-bg;
|
|
11
|
+
border-radius: 2rem;
|
|
12
|
+
color: $badge-color-fg;
|
|
13
|
+
display: inline-block;
|
|
14
|
+
font-size: 0.77777778em; // 18px->14px
|
|
15
|
+
font-weight: 650;
|
|
16
|
+
line-height: 1em;
|
|
17
|
+
min-height: $badge-min-height;
|
|
18
|
+
padding: (0.2857em + $badge-baseline-shift) 0.5714em (0.2857em - $badge-baseline-shift); // 4px 8px @ 14px
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
|
|
21
|
+
&[class*='-text'],
|
|
22
|
+
&[class*='-dark'] {
|
|
23
|
+
background-color: $badge-color-bg;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&[class*='-light'] {
|
|
27
|
+
background-color: $color-ci-smoke;
|
|
28
|
+
color: $color-ci-dim;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&[class*='-primary'] {
|
|
32
|
+
background-color: $color-primary;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[class*='-secondary'] {
|
|
36
|
+
background-color: $color-secondary;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
%cl-badge-derived {
|
|
41
|
+
$badge-color: $color-ci-silver;
|
|
42
|
+
|
|
43
|
+
background-color: transparent;
|
|
44
|
+
border-radius: 2rem;
|
|
45
|
+
box-shadow: 0 0 0 2px $badge-color inset;
|
|
46
|
+
color: $badge-color;
|
|
47
|
+
display: inline-block;
|
|
48
|
+
font-size: 0.77777778em; // 18px->14px
|
|
49
|
+
line-height: 1em;
|
|
50
|
+
margin-right: 0 !important;
|
|
51
|
+
min-height: $badge-min-height;
|
|
52
|
+
padding: (0.2857em + $badge-baseline-shift) 0.5714em (0.2857em - $badge-baseline-shift); // 4px 8px @ 14px
|
|
53
|
+
white-space: nowrap;
|
|
54
|
+
|
|
55
|
+
&::before {
|
|
56
|
+
@include cl-fontawesome('\f064');
|
|
57
|
+
|
|
58
|
+
color: $badge-color !important;
|
|
59
|
+
position: relative;
|
|
60
|
+
top: 0;
|
|
61
|
+
transform: scale(0.75) scaleY(-1) translate(-0.4em, -0.025em);
|
|
62
|
+
width: 2em;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
$list-indent: $spacing-small * 2.5;
|
|
9
9
|
|
|
10
10
|
%cl-list {
|
|
11
|
+
position: relative;
|
|
12
|
+
|
|
11
13
|
li {
|
|
12
14
|
list-style-type: none;
|
|
13
15
|
|
|
@@ -17,8 +19,10 @@ $list-indent: $spacing-small * 2.5;
|
|
|
17
19
|
& {
|
|
18
20
|
color: $color-ci-silver;
|
|
19
21
|
margin-left: -$list-indent;
|
|
20
|
-
position:
|
|
22
|
+
position: absolute;
|
|
21
23
|
text-align: center;
|
|
24
|
+
top: inherit;
|
|
25
|
+
transform: translateY(0.2em);
|
|
22
26
|
width: $list-indent;
|
|
23
27
|
}
|
|
24
28
|
}
|
|
@@ -5,27 +5,32 @@
|
|
|
5
5
|
|
|
6
6
|
// This file defines custom hashtag styles.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
[class^='cl-hashtag'],
|
|
9
|
+
[class*=' cl-hashtag'] {
|
|
10
|
+
&:not(.cl-hashtag-derived) {
|
|
11
|
+
@extend %cl-badge;
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&::before {
|
|
16
|
-
@include cl-fontawesome('\f292');
|
|
13
|
+
&::before {
|
|
14
|
+
@include cl-fontawesome('\f292');
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
position: static;
|
|
16
|
+
margin-right: 0.2em;
|
|
17
|
+
top: 0.015em;
|
|
21
18
|
}
|
|
22
19
|
}
|
|
20
|
+
}
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
a[class^='cl-hashtag'],
|
|
23
|
+
a[class*=' cl-hashtag'] {
|
|
24
|
+
@include typography-links($badge-color-fg, rgba($badge-color-fg, $color-hover-opacity), 0);
|
|
25
|
+
|
|
26
|
+
display: inline-block !important;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.cl-hashtag-derived {
|
|
30
|
+
@extend %cl-badge-derived;
|
|
27
31
|
|
|
28
|
-
|
|
29
|
-
|
|
32
|
+
+ [class^='cl-hashtag'],
|
|
33
|
+
+ [class*=' cl-hashtag'] {
|
|
34
|
+
margin-left: -1.66em;
|
|
30
35
|
}
|
|
31
36
|
}
|
|
@@ -5,31 +5,32 @@
|
|
|
5
5
|
|
|
6
6
|
// This file defines custom plan styles.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
[class^='cl-plan'],
|
|
9
|
+
[class*=' cl-plan'] {
|
|
10
|
+
&:not(.cl-plan-derived) {
|
|
11
|
+
@extend %cl-badge;
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&::before {
|
|
16
|
-
@include cl-fontawesome('\f005');
|
|
13
|
+
&::before {
|
|
14
|
+
@include cl-fontawesome('\f005');
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
position: static;
|
|
16
|
+
margin-right: 0.2em;
|
|
17
|
+
top: -0.04em;
|
|
21
18
|
}
|
|
22
19
|
}
|
|
20
|
+
}
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
a[class^='cl-plan'],
|
|
23
|
+
a[class*=' cl-plan'] {
|
|
24
|
+
@include typography-links($badge-color-fg, rgba($badge-color-fg, $color-hover-opacity), 0);
|
|
25
|
+
|
|
26
|
+
display: inline-block !important;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
.cl-
|
|
30
|
-
@
|
|
29
|
+
.cl-plan-derived {
|
|
30
|
+
@extend %cl-badge-derived;
|
|
31
31
|
|
|
32
|
-
+
|
|
33
|
-
|
|
32
|
+
+ [class^='cl-plan'],
|
|
33
|
+
+ [class*=' cl-plan'] {
|
|
34
|
+
margin-left: -1.66em;
|
|
34
35
|
}
|
|
35
36
|
}
|
|
@@ -5,35 +5,32 @@
|
|
|
5
5
|
|
|
6
6
|
// This file defines custom role styles.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
[class^='cl-role'],
|
|
9
|
+
[class*=' cl-role'] {
|
|
10
|
+
&:not(.cl-role-derived) {
|
|
11
|
+
@extend %cl-badge;
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
&::before {
|
|
16
|
-
@include cl-fontawesome('\f02b');
|
|
13
|
+
&::before {
|
|
14
|
+
@include cl-fontawesome('\f02b');
|
|
17
15
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
position: static;
|
|
16
|
+
margin-right: 0.2em;
|
|
17
|
+
top: .05em;
|
|
21
18
|
}
|
|
22
19
|
}
|
|
20
|
+
}
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
a[class^='cl-role'],
|
|
23
|
+
a[class*=' cl-role'] {
|
|
24
|
+
@include typography-links($badge-color-fg, rgba($badge-color-fg, $color-hover-opacity), 0);
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
font-weight: 500;
|
|
30
|
-
}
|
|
26
|
+
display: inline-block !important;
|
|
31
27
|
}
|
|
32
28
|
|
|
33
|
-
.cl-
|
|
34
|
-
@
|
|
29
|
+
.cl-role-derived {
|
|
30
|
+
@extend %cl-badge-derived;
|
|
35
31
|
|
|
36
|
-
+
|
|
37
|
-
|
|
32
|
+
+ [class^='cl-role'],
|
|
33
|
+
+ [class*=' cl-role'] {
|
|
34
|
+
margin-left: -1.66em;
|
|
38
35
|
}
|
|
39
36
|
}
|