@carbon/styles 0.16.2 → 1.0.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 +15 -10
- package/scss/__tests__/__snapshots__/config-test.js.snap +30 -1
- package/scss/__tests__/type-test.js +0 -1
- package/scss/_breakpoint.scss +2 -1
- package/scss/_config.scss +9 -2
- package/scss/_spacing.scss +1 -1
- package/scss/_theme.scss +4 -4
- package/scss/_themes.scss +2 -1
- package/scss/components/accordion/_accordion.scss +1 -1
- package/scss/components/aspect-ratio/_aspect-ratio.scss +2 -2
- package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
- package/scss/components/button/_button.scss +1 -5
- package/scss/components/button/_tokens.scss +1 -0
- package/scss/components/code-snippet/_code-snippet.scss +32 -47
- package/scss/components/content-switcher/_content-switcher.scss +0 -2
- package/scss/components/copy-button/_copy-button.scss +0 -59
- package/scss/components/data-table/_data-table.scss +2 -164
- package/scss/components/data-table/action/_data-table-action.scss +2 -19
- package/scss/components/data-table/expandable/_data-table-expandable.scss +0 -2
- package/scss/components/data-table/sort/_data-table-sort.scss +1 -28
- package/scss/components/dropdown/_dropdown.scss +0 -1
- package/scss/components/file-uploader/_file-uploader.scss +3 -3
- package/scss/components/modal/_modal.scss +1 -1
- package/scss/components/notification/_actionable-notification.scss +58 -19
- package/scss/components/notification/_inline-notification.scss +9 -21
- package/scss/components/notification/_toast-notification.scss +29 -58
- package/scss/components/notification/_tokens.scss +2 -1
- package/scss/components/overflow-menu/_overflow-menu.scss +5 -5
- package/scss/components/pagination/_unstable_pagination.scss +1 -1
- package/scss/components/popover/_popover.scss +0 -8
- package/scss/components/progress-bar/_progress-bar.scss +21 -0
- package/scss/components/progress-indicator/_progress-indicator.scss +5 -5
- package/scss/components/radio-button/_radio-button.scss +2 -10
- package/scss/components/search/_search.scss +6 -0
- package/scss/components/tabs/_tabs.scss +1 -1
- package/scss/components/tag/_tokens.scss +1 -0
- package/scss/components/text-input/_text-input.scss +7 -22
- package/scss/components/tile/_tile.scss +60 -29
- package/scss/components/time-picker/_time-picker.scss +0 -3
- package/scss/components/toggletip/_toggletip.scss +1 -2
- package/scss/components/treeview/_treeview.scss +1 -1
- package/scss/components/ui-shell/content/_content.scss +0 -1
- package/scss/fonts/__tests__/__snapshots__/fonts-test.js.snap +269 -0
- package/scss/fonts/__tests__/fonts-test.js +55 -0
- package/scss/fonts/_src.scss +42 -31
- package/scss/grid/_css-grid.scss +11 -0
- package/scss/grid/_flexbox.scss +1 -1
- package/scss/grid/_index.scss +7 -2
- package/scss/grid/_mixins.scss +9 -0
- package/scss/type/_reset.scss +1 -1
- package/scss/utilities/_component-tokens.scss +2 -1
- package/scss/utilities/_convert.scss +2 -4
- package/scss/utilities/_high-contrast-mode.scss +2 -4
- package/scss/grid/_config.scss +0 -18
|
@@ -20,8 +20,7 @@ $base-font-size: 16px !default;
|
|
|
20
20
|
/// @group utilities
|
|
21
21
|
@function rem($px) {
|
|
22
22
|
@if unit($px) != 'px' {
|
|
23
|
-
|
|
24
|
-
@warn "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
23
|
+
@error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
@if meta.function-exists('div', 'math') {
|
|
@@ -38,8 +37,7 @@ $base-font-size: 16px !default;
|
|
|
38
37
|
/// @group utilities
|
|
39
38
|
@function em($px) {
|
|
40
39
|
@if unit($px) != 'px' {
|
|
41
|
-
|
|
42
|
-
@warn "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
40
|
+
@error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
@if meta.function-exists('div', 'math') {
|
|
@@ -5,15 +5,13 @@
|
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
|
6
6
|
//
|
|
7
7
|
|
|
8
|
-
/// Windows
|
|
8
|
+
/// High Contrast Mode mixin for Windows and macOS
|
|
9
9
|
/// @access public
|
|
10
10
|
/// @example @include high-contrast-mode;
|
|
11
11
|
/// @group utilities
|
|
12
12
|
/// Set HCM styles at the end of each file to ensure they are not overwritten
|
|
13
13
|
@mixin high-contrast-mode($type: '') {
|
|
14
|
-
@media screen and (-ms-high-contrast: active),
|
|
15
|
-
(forced-colors: active),
|
|
16
|
-
(prefers-contrast) {
|
|
14
|
+
@media screen and (-ms-high-contrast: active), (forced-colors: active) {
|
|
17
15
|
@if ($type == 'icon-fill') {
|
|
18
16
|
fill: ButtonText;
|
|
19
17
|
}
|
package/scss/grid/_config.scss
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright IBM Corp. 2018, 2018
|
|
3
|
-
//
|
|
4
|
-
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
-
// LICENSE file in the root directory of this source tree.
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
@use '../config';
|
|
9
|
-
@forward '@carbon/grid'
|
|
10
|
-
show css-grid,
|
|
11
|
-
flex-grid,
|
|
12
|
-
$grid-gutter,
|
|
13
|
-
$grid-gutter-condensed,
|
|
14
|
-
$grid-breakpoints
|
|
15
|
-
with (
|
|
16
|
-
$prefix: config.$prefix !default,
|
|
17
|
-
$flex-grid-columns: config.$flex-grid-columns !default
|
|
18
|
-
);
|