@castlabs/ui 7.21.2 → 7.22.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": "7.21.2",
3
+ "version": "7.22.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.",
@@ -85,7 +85,7 @@ a.btn {
85
85
  font-weight: 500;
86
86
  line-height: 1;
87
87
  margin-left: $spacing-tiny;
88
- min-width: 0;
88
+ min-width: $spacing-small;
89
89
  padding: 0;
90
90
 
91
91
  &:not(:hover, [class*='cl-color-']) {
@@ -13,6 +13,24 @@
13
13
  margin-left: $spacing-tiny;
14
14
  }
15
15
 
16
+ > [type='range'] {
17
+ border-radius: $brand-border-radius !important;
18
+ margin-bottom: $spacing-tiny;
19
+ margin-top: $spacing-tiny;
20
+
21
+ + [type='range'] {
22
+ margin-left: $spacing-tiny;
23
+ }
24
+
25
+ &:has(+ [type='range']) {
26
+ margin-right: $spacing-tiny;
27
+ }
28
+ }
29
+
30
+ > :not(.cl-btn-quickaction) + .cl-btn-quickaction {
31
+ margin-left: $spacing-small;
32
+ }
33
+
16
34
  > .btn {
17
35
  flex-shrink: 0;
18
36
  }
@@ -70,60 +88,62 @@
70
88
  }
71
89
  }
72
90
 
73
- @include media-breakpoint-down(sm) {
74
- flex-direction: column;
75
-
76
- > * {
77
- width: 100% !important;
78
-
79
- &:not(:first-child) {
80
- margin-top: $spacing-tiny;
81
- }
82
-
83
- &.btn {
84
- font-size: 0.75em;
85
- margin-left: 0 !important;
91
+ &:not(.cl-no-wrap) {
92
+ @include media-breakpoint-up(sm) {
93
+ > .form-control,
94
+ > .input-group-text {
95
+ &:has(+ .form-control),
96
+ &:has(+ p + .form-control),
97
+ &:has(+ p + p + .form-control),
98
+ &:has(+ .input-group-text) {
99
+ border-bottom-right-radius: 0;
100
+ border-right-color: $color-ci-clay;
101
+ border-top-right-radius: 0;
102
+ }
103
+
104
+ + .input-group-text,
105
+ + p + .form-control,
106
+ + p + p + .form-control,
107
+ + .form-control {
108
+ border-bottom-left-radius: 0;
109
+ border-left-width: 0; // trick to share one ][ border between 2 inputs
110
+ border-top-left-radius: 0;
111
+ }
112
+
113
+ &:has(+ .form-control.invalid),
114
+ &:has(+ .form-control[invalid]),
115
+ &:has(+ p + .form-control.invalid),
116
+ &:has(+ p + .form-control[invalid]),
117
+ &:has(+ p + p + .form-control.invalid),
118
+ &:has(+ p + p + .form-control[invalid]) {
119
+ border-right-color: $color-error;
120
+ }
121
+
122
+ &:has(+ .form-control:focus),
123
+ &:has(+ .form-control:focus-visible),
124
+ &:has(+ p + .form-control:focus),
125
+ &:has(+ p + .form-control:focus-visible),
126
+ &:has(+ p + p + .form-control:focus),
127
+ &:has(+ p + p + .form-control:focus-visible) {
128
+ border-right-color: $color-focus !important;
129
+ }
86
130
  }
87
131
  }
88
- }
89
132
 
90
- @include media-breakpoint-up(sm) {
91
- > .form-control,
92
- > .input-group-text {
93
- &:has(+ .form-control),
94
- &:has(+ p + .form-control),
95
- &:has(+ p + p + .form-control),
96
- &:has(+ .input-group-text) {
97
- border-bottom-right-radius: 0;
98
- border-right-color: $color-ci-clay;
99
- border-top-right-radius: 0;
100
- }
133
+ @include media-breakpoint-down(sm) {
134
+ flex-direction: column;
101
135
 
102
- + .input-group-text,
103
- + p + .form-control,
104
- + p + p + .form-control,
105
- + .form-control {
106
- border-bottom-left-radius: 0;
107
- border-left-width: 0; // trick to share one ][ border between 2 inputs
108
- border-top-left-radius: 0;
109
- }
136
+ > * {
137
+ width: 100% !important;
110
138
 
111
- &:has(+ .form-control.invalid),
112
- &:has(+ .form-control[invalid]),
113
- &:has(+ p + .form-control.invalid),
114
- &:has(+ p + .form-control[invalid]),
115
- &:has(+ p + p + .form-control.invalid),
116
- &:has(+ p + p + .form-control[invalid]) {
117
- border-right-color: $color-error;
118
- }
139
+ &:not(:first-child) {
140
+ margin-top: $spacing-tiny;
141
+ }
119
142
 
120
- &:has(+ .form-control:focus),
121
- &:has(+ .form-control:focus-visible),
122
- &:has(+ p + .form-control:focus),
123
- &:has(+ p + .form-control:focus-visible),
124
- &:has(+ p + p + .form-control:focus),
125
- &:has(+ p + p + .form-control:focus-visible) {
126
- border-right-color: $color-focus !important;
143
+ &.btn {
144
+ font-size: 0.75em;
145
+ margin-left: 0 !important;
146
+ }
127
147
  }
128
148
  }
129
149
  }
@@ -39,6 +39,7 @@
39
39
 
40
40
  .cl-section-fullscreen {
41
41
  height: 100%;
42
+ padding-bottom: 0;
42
43
 
43
44
  .cl-table-scroll,
44
45
  > .container,
@@ -52,6 +53,10 @@
52
53
  padding-top: 0 !important;
53
54
  }
54
55
 
56
+ .cl-table-scroll {
57
+ margin-bottom: $spacing-small !important;
58
+ }
59
+
55
60
  table {
56
61
  display: block;
57
62
  max-height: 100%;
@@ -66,3 +71,25 @@
66
71
  z-index: 1;
67
72
  }
68
73
  }
74
+
75
+ .cl-fullscreen-scroller {
76
+ max-height: 100%;
77
+ overflow: scroll;
78
+
79
+ .cl-table-scroll {
80
+ overflow: unset;
81
+ }
82
+
83
+ table {
84
+ display: table !important;
85
+ }
86
+
87
+ .cl-table-data .cl-td-links {
88
+ padding-left: $spacing-small;
89
+ }
90
+
91
+ .cl-resizer {
92
+ background-color: var(--cl-color-background) !important;
93
+ margin-left: calc(-0.5rem - 2px) !important;
94
+ }
95
+ }
@@ -1,3 +1,3 @@
1
1
  :root {
2
- #{'--cl-version'}: 'v7.21.2';
2
+ #{'--cl-version'}: 'v7.22.0';
3
3
  }
@@ -9,12 +9,14 @@ $cl-url-postfix: '' !default;
9
9
  .cl-color-haze,
10
10
  .cl-section-alternate,
11
11
  .card.cl-color-haze {
12
- #{'--cl-color-icon'}: $color-ci-steel;
13
12
  #{'--cl-color-code'}: $color-ci-sky;
13
+ #{'--cl-color-focus'}: $color-ci-steel;
14
+ #{'--cl-color-icon'}: $color-ci-steel;
14
15
  #{'--cl-color-input-background'}: $color-ci-night;
15
16
  #{'--cl-color-input-border'}: $color-ci-clay;
16
- #{'--cl-color-text'}: $color-ci-eggshell;
17
+ #{'--cl-color-line'}: $color-ci-steel;
17
18
  #{'--cl-color-link'}: $color-ci-eggshell;
19
+ #{'--cl-color-text'}: $color-ci-eggshell;
18
20
  #{'--cl-color-text-inverted'}: $color-ci-night;
19
21
 
20
22
  textarea[disabled],