@carbon/styles 1.7.0 → 1.9.0-rc.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.7.0",
4
+ "version": "1.9.0-rc.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.3.0",
35
+ "@carbon/colors": "^11.4.0-rc.0",
36
36
  "@carbon/feature-flags": "^0.8.0",
37
- "@carbon/grid": "^11.3.0",
38
- "@carbon/layout": "^11.3.0",
39
- "@carbon/motion": "^11.2.0",
40
- "@carbon/themes": "^11.4.0",
41
- "@carbon/type": "^11.4.0",
37
+ "@carbon/grid": "^11.5.0-rc.0",
38
+ "@carbon/layout": "^11.5.0-rc.0",
39
+ "@carbon/motion": "^11.3.0-rc.0",
40
+ "@carbon/themes": "^11.6.0-rc.0",
41
+ "@carbon/type": "^11.6.0-rc.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": "65f0882c8fbf9f52f9acf8cf899b124f9cbab720"
62
+ "gitHead": "5a23e3960d9bf5b652b96b6a051ae2b04cfa9a08"
63
63
  }
@@ -63,11 +63,7 @@ $aspect-ratios: (
63
63
  $height: list.nth($aspect-ratio, 2);
64
64
 
65
65
  .#{$prefix}--aspect-ratio--#{$width}x#{$height}::before {
66
- @if meta.function-exists('div', 'math') {
67
- padding-top: math.percentage(math.div($height, $width));
68
- } @else {
69
- padding-top: math.percentage(($height / $width));
70
- }
66
+ padding-top: math.percentage(math.div($height, $width));
71
67
  }
72
68
  }
73
69
  }
@@ -348,7 +348,7 @@
348
348
 
349
349
  .#{$prefix}--data-table thead th.#{$prefix}--table-column-checkbox,
350
350
  .#{$prefix}--data-table tbody td.#{$prefix}--table-column-checkbox {
351
- width: 2.5rem;
351
+ min-width: 2.5rem;
352
352
  // spacing between checkbox / chevron and next cell should be 8px / 0.5rem
353
353
  padding-right: rem(4px);
354
354
  padding-left: 1rem;
@@ -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
  }
@@ -367,6 +367,10 @@
367
367
  fill: $icon-secondary;
368
368
  }
369
369
 
370
+ .#{$prefix}--search--expandable.#{$prefix}--search--disabled svg {
371
+ fill: $icon-disabled;
372
+ }
373
+
370
374
  // Windows HCM fix
371
375
  .#{$prefix}--search-close svg,
372
376
  .#{$prefix}--search-magnifier-icon {
@@ -23,11 +23,7 @@ $base-font-size: 16px !default;
23
23
  @error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
24
24
  }
25
25
 
26
- @if meta.function-exists('div', 'math') {
27
- @return math.div($px, $base-font-size) * 1rem;
28
- } @else {
29
- @return ($px / $base-font-size) * 1rem;
30
- }
26
+ @return math.div($px, $base-font-size) * 1rem;
31
27
  }
32
28
 
33
29
  /// Convert a given px unit to a em unit
@@ -40,9 +36,5 @@ $base-font-size: 16px !default;
40
36
  @error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
41
37
  }
42
38
 
43
- @if meta.function-exists('div', 'math') {
44
- @return math.div($px, $base-font-size) * 1em;
45
- } @else {
46
- @return ($px / $base-font-size) * 1em;
47
- }
39
+ @return math.div($px, $base-font-size) * 1em;
48
40
  }
@@ -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
+ }
@@ -10,6 +10,7 @@
10
10
  @forward 'component-reset' as component-*;
11
11
  @forward 'convert' show em, rem;
12
12
  @forward 'focus-outline';
13
+ @forward 'hide-at-breakpoint';
13
14
  @forward 'high-contrast-mode';
14
15
  @forward 'keyframes';
15
16
  @forward 'placeholder-colors';