@castlabs/ui 5.0.0 → 5.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@castlabs/ui",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "repository": "https://github.com/castlabs/ui-styleguide",
5
5
  "private": false,
6
6
  "description": "A vanilla HTML/CS/JS & Vue.js component library for castLabs.",
@@ -38,7 +38,6 @@ $dropdown-line-height: 1.25em;
38
38
  padding: $spacing-small - $dropdown-border $spacing-small - $dropdown-border;
39
39
  padding-right: $spacing-small * 3; // for chevron
40
40
  position: relative;
41
- white-space: preserve;
42
41
  }
43
42
 
44
43
  &::after {
@@ -59,6 +58,11 @@ $dropdown-line-height: 1.25em;
59
58
  }
60
59
  }
61
60
 
61
+ > span,
62
+ > div {
63
+ white-space: preserve-breaks;
64
+ }
65
+
62
66
  > [class^='cl-badge'] {
63
67
  position: absolute;
64
68
  right: $spacing-small;
@@ -188,7 +192,6 @@ div.cl-dropdown summary {
188
192
  margin-right: 0;
189
193
  padding: $spacing-tiny + $spacing-micro $spacing-small;
190
194
  position: relative;
191
- white-space: preserve;
192
195
  width: 100%;
193
196
  }
194
197
 
@@ -204,6 +207,11 @@ div.cl-dropdown summary {
204
207
  opacity: $color-hover-opacity;
205
208
  }
206
209
 
210
+ > span,
211
+ > div {
212
+ white-space: preserve-breaks;
213
+ }
214
+
207
215
  > [class^='cl-badge'] {
208
216
  position: absolute;
209
217
  right: $spacing-small;
@@ -0,0 +1,21 @@
1
+ ////
2
+ /// @group components
3
+ /// @access public
4
+ ////
5
+
6
+ // This file defines .cl-highlight modifiers for various components
7
+
8
+ $highlight-background: $color-ci-sand;
9
+
10
+ .cl-highlight {
11
+ background-color: $highlight-background;
12
+ }
13
+
14
+ .card-body,
15
+ .card-footer,
16
+ td,
17
+ tr {
18
+ &.cl-highlight {
19
+ background-color: $highlight-background !important; // sass-lint:disable-line no-important
20
+ }
21
+ }
@@ -1,5 +1,5 @@
1
1
  ////
2
- /// @group layout
2
+ /// @group components
3
3
  /// @access public
4
4
  ////
5
5
 
@@ -1,5 +1,5 @@
1
1
  ////
2
- /// @group layout
2
+ /// @group components
3
3
  /// @access public
4
4
  ////
5
5
 
@@ -29,6 +29,7 @@ $castlabs-ui-asset-prefix: '..' !default;
29
29
  @import '../components/ClDropdown/style';
30
30
  @import '../components/ClDropzone/style';
31
31
  @import '../components/ClFooter/style';
32
+ @import '../components/ClHighlight/style';
32
33
  @import '../components/ClIcon/style';
33
34
  @import '../components/ClIconotron/style';
34
35
  @import '../components/ClList/style';