@carbon/styles 1.8.0-rc.0 → 1.9.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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/styles",
|
|
3
3
|
"description": "Styles for the Carbon Design System",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.9.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"sass": "^1.33.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@carbon/colors": "^11.
|
|
35
|
+
"@carbon/colors": "^11.4.0",
|
|
36
36
|
"@carbon/feature-flags": "^0.8.0",
|
|
37
|
-
"@carbon/grid": "^11.
|
|
38
|
-
"@carbon/layout": "^11.
|
|
39
|
-
"@carbon/motion": "^11.
|
|
40
|
-
"@carbon/themes": "^11.
|
|
41
|
-
"@carbon/type": "^11.
|
|
37
|
+
"@carbon/grid": "^11.5.0",
|
|
38
|
+
"@carbon/layout": "^11.5.0",
|
|
39
|
+
"@carbon/motion": "^11.3.0",
|
|
40
|
+
"@carbon/themes": "^11.6.0",
|
|
41
|
+
"@carbon/type": "^11.6.0",
|
|
42
42
|
"@ibm/plex": "6.0.0-next.6"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"scss/**/*.css",
|
|
60
60
|
"css/**/*.css"
|
|
61
61
|
],
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "182eaa898977e15b0cbedf4b8b62502693d43b4c"
|
|
63
63
|
}
|
package/scss/_zone.scss
CHANGED
|
@@ -36,6 +36,9 @@ $-components: (
|
|
|
36
36
|
|
|
37
37
|
@each $name, $theme in $zones {
|
|
38
38
|
.#{config.$prefix}--#{'' + $name} {
|
|
39
|
+
background: var(--cds-background);
|
|
40
|
+
color: var(--cds-text-primary);
|
|
41
|
+
|
|
39
42
|
@each $key, $value in $theme {
|
|
40
43
|
@if type-of($value) == color {
|
|
41
44
|
@include custom-property.declaration($key, $value);
|
|
@@ -146,6 +146,8 @@ $list-box-menu-width: rem(300px);
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
.#{$prefix}--list-box[data-invalid].#{$prefix}--list-box--inline
|
|
149
|
+
.#{$prefix}--list-box__field,
|
|
150
|
+
.#{$prefix}--list-box.#{$prefix}--list-box--warning.#{$prefix}--list-box--inline
|
|
149
151
|
.#{$prefix}--list-box__field {
|
|
150
152
|
padding-right: rem(56px);
|
|
151
153
|
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use '../breakpoint' as *;
|
|
2
|
+
@use '../config';
|
|
3
|
+
|
|
4
|
+
// Mixins that can be used to hide elements only at specific breakpoints.
|
|
5
|
+
// Helpful for when you would like to hide elements outside of a Grid context
|
|
6
|
+
@mixin hide-at-sm {
|
|
7
|
+
padding: 2rem 1rem;
|
|
8
|
+
background: #8a3ffc;
|
|
9
|
+
@include breakpoint-between('sm', 'md') {
|
|
10
|
+
display: none;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin hide-at-md {
|
|
15
|
+
padding: 2rem 1rem;
|
|
16
|
+
background: #4589ff;
|
|
17
|
+
@include breakpoint-between('md', 'lg') {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@mixin hide-at-lg {
|
|
23
|
+
padding: 2rem 1rem;
|
|
24
|
+
background: #42be65;
|
|
25
|
+
@include breakpoint-between('lg', 'xlg') {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin hide-at-xlg {
|
|
31
|
+
padding: 2rem 1rem;
|
|
32
|
+
background: #f1c21b;
|
|
33
|
+
@include breakpoint-between('xlg', 'max') {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@mixin hide-at-max {
|
|
39
|
+
padding: 2rem 1rem;
|
|
40
|
+
background: #da1e28;
|
|
41
|
+
@include breakpoint-up('max') {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
}
|