@castlabs/ui 5.4.4 → 5.5.0
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 +4 -4
- package/dist/castlabs-ui.common.js.map +1 -1
- package/dist/castlabs-ui.core.js +43 -11
- package/dist/castlabs-ui.css +2 -2
- package/dist/castlabs-ui.module.js +43 -11
- package/dist/castlabs-ui.umd.js +7 -7
- package/dist/castlabs-ui.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ClFooter/style.scss +2 -1
- package/src/components/form/ClForm/style.scss +4 -2
- package/src/components/navigation/ClNavTop/style.scss +6 -3
- package/src/components/section/ClSectionHeadline/style.scss +2 -0
- package/src/components/table/ClTable/style.scss +11 -0
- package/src/components/table/ClTable/style.variables.scss +38 -10
- package/src/components/table/ClTableCel/Links/style.scss +14 -0
- package/src/components/table/ClTableHead/style.scss +4 -0
- package/src/styles/layout/grid.scss +6 -3
package/package.json
CHANGED
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
// --- basic form layout -----------------------------------------------------
|
|
10
10
|
|
|
11
11
|
// &.container,
|
|
12
|
-
.container
|
|
12
|
+
.container,
|
|
13
|
+
.container-fluid {
|
|
13
14
|
@extend %container-spacing-small;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
|
-
.container +
|
|
17
|
+
.container + *,
|
|
18
|
+
.container-fluid + * {
|
|
17
19
|
margin-top: 0; // container already add bottom spacing
|
|
18
20
|
}
|
|
19
21
|
|
|
@@ -19,11 +19,13 @@
|
|
|
19
19
|
@include typography-links-invisible;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
> .container
|
|
22
|
+
> .container,
|
|
23
|
+
> .container-fluid {
|
|
23
24
|
padding: 0;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
> .container > .row > .col-12
|
|
27
|
+
> .container > .row > .col-12,
|
|
28
|
+
> .container-fluid > .row > .col-12 {
|
|
27
29
|
align-items: center;
|
|
28
30
|
display: flex;
|
|
29
31
|
flex-direction: row;
|
|
@@ -82,7 +84,8 @@
|
|
|
82
84
|
|
|
83
85
|
.cl-nav-top-large {
|
|
84
86
|
// cl-nav-top variant that as slightly bigger
|
|
85
|
-
> .container > .row > .col-12
|
|
87
|
+
> .container > .row > .col-12,
|
|
88
|
+
> .container-fluid > .row > .col-12 {
|
|
86
89
|
height: 4rem;
|
|
87
90
|
}
|
|
88
91
|
|
|
@@ -129,16 +129,6 @@ $table-lineheight: 1.2em;
|
|
|
129
129
|
top: -1px;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
// --- wrapping long columns -------------------------------------------------
|
|
133
|
-
|
|
134
|
-
@for $col from 1 through 16 {
|
|
135
|
-
&.cl-table-wrap-col#{$col} {
|
|
136
|
-
td:nth-child(#{$col}) {
|
|
137
|
-
word-wrap: anywhere;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
|
|
142
132
|
// --- responsive phone tables -----------------------------------------------
|
|
143
133
|
|
|
144
134
|
@include media-breakpoint-down($table-responsive) {
|
|
@@ -166,6 +156,36 @@ $table-lineheight: 1.2em;
|
|
|
166
156
|
}
|
|
167
157
|
}
|
|
168
158
|
|
|
159
|
+
// --- column modifiers --------------------------------------------------------
|
|
160
|
+
|
|
161
|
+
@for $col from 1 through 32 {
|
|
162
|
+
.cl-table-wrap-col-#{$col} { // deprecated
|
|
163
|
+
td:nth-child(#{$col}) {
|
|
164
|
+
word-wrap: anywhere;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.cl-table-col-#{$col}-wrap {
|
|
169
|
+
td:nth-child(#{$col}) {
|
|
170
|
+
word-wrap: anywhere;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.cl-table-col-#{$col}-nowrap {
|
|
175
|
+
td:nth-child(#{$col}) {
|
|
176
|
+
word-wrap: nowrap;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.cl-table-col-#{$col}-hide {
|
|
181
|
+
th:nth-child(#{$col}),
|
|
182
|
+
td:nth-child(#{$col}) {
|
|
183
|
+
display: none;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
|
|
169
189
|
%cl-table-data-light {
|
|
170
190
|
tbody {
|
|
171
191
|
tr {
|
|
@@ -174,4 +194,12 @@ $table-lineheight: 1.2em;
|
|
|
174
194
|
}
|
|
175
195
|
}
|
|
176
196
|
}
|
|
197
|
+
|
|
198
|
+
tr:nth-child(odd) .cl-td-links {
|
|
199
|
+
background-color: $color-ci-white;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
tr:nth-child(even) .cl-td-links {
|
|
203
|
+
background-color: $color-ci-haze;
|
|
204
|
+
}
|
|
177
205
|
}
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
.cl-th-links {
|
|
3
3
|
@extend %p-tiny;
|
|
4
4
|
|
|
5
|
+
background-color: $color-ci-white;
|
|
5
6
|
font-weight: 700;
|
|
7
|
+
position: sticky;
|
|
8
|
+
text-align: end;
|
|
9
|
+
right: 0;
|
|
6
10
|
|
|
7
11
|
@include media-breakpoint-down($table-responsive) {
|
|
8
12
|
table:not(.cl-table-nonresponsive) & {
|
|
@@ -14,6 +18,8 @@
|
|
|
14
18
|
.cl-td-links {
|
|
15
19
|
@extend %cl-font-condensed;
|
|
16
20
|
|
|
21
|
+
position: sticky;
|
|
22
|
+
right: 0;
|
|
17
23
|
white-space: nowrap;
|
|
18
24
|
word-wrap: unset;
|
|
19
25
|
|
|
@@ -41,4 +47,12 @@
|
|
|
41
47
|
}
|
|
42
48
|
}
|
|
43
49
|
}
|
|
50
|
+
|
|
51
|
+
tr:nth-child(even) .cl-td-links {
|
|
52
|
+
background-color: $color-ci-white;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
tr:nth-child(odd) .cl-td-links {
|
|
56
|
+
background-color: $color-ci-haze;
|
|
57
|
+
}
|
|
44
58
|
}
|
|
@@ -10,12 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
// bootstrap uses a narrow container for sm, but we prefer full-width instead
|
|
12
12
|
@include media-breakpoint-only(sm) {
|
|
13
|
-
.container
|
|
13
|
+
.container,
|
|
14
|
+
.container-fluid {
|
|
14
15
|
max-width: inherit;
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
|
|
18
|
-
.container .
|
|
19
|
+
.container .containe,
|
|
20
|
+
.container-fluid .container {
|
|
19
21
|
// nested containers should not limit themselves
|
|
20
22
|
margin-left: 0;
|
|
21
23
|
margin-right: 0;
|
|
@@ -57,7 +59,8 @@
|
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
// do pull out nested containers or their cel padding will indent them
|
|
60
|
-
.container .container > .row
|
|
62
|
+
.container .container > .row,
|
|
63
|
+
.container-fluid .container > .row {
|
|
61
64
|
margin-left: -$spacing-tiny;
|
|
62
65
|
margin-right: -$spacing-tiny;
|
|
63
66
|
}
|