@carbon/element-styles 0.2.5-rc.0 → 0.3.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/element-styles",
|
|
3
3
|
"description": "An experimental styling system for native HTML elements, relying on semantic, attribute-focused selectors instead of class names.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0-rc.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sass": "index.scss",
|
|
@@ -20,8 +20,8 @@ $-default-config: ();
|
|
|
20
20
|
@mixin styles($config: $config) {
|
|
21
21
|
$props: map.deep-merge($-default-config, $config);
|
|
22
22
|
|
|
23
|
-
margin-block-end:
|
|
24
|
-
margin-block-start:
|
|
23
|
+
margin-block-end: layout.$mode--margin-block;
|
|
24
|
+
margin-block-start: calc(layout.$mode--margin-block + 0.75lh);
|
|
25
25
|
max-inline-size: min(layout.$mode--max-inline-size, 75%);
|
|
26
26
|
text-wrap: balance;
|
|
27
27
|
}
|
package/scss/layout/_mode.scss
CHANGED
|
@@ -113,7 +113,7 @@ $-modes: (
|
|
|
113
113
|
'expressive': (
|
|
114
114
|
constants: (
|
|
115
115
|
max-inline-size: 60ch,
|
|
116
|
-
margin-block: spacing.$spacing-
|
|
116
|
+
margin-block: spacing.$spacing-06,
|
|
117
117
|
transition-duration: motion.$duration-moderate-01,
|
|
118
118
|
transition-timing-function: motion.motion('standard', 'expressive'),
|
|
119
119
|
),
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
@use '@carbon/styles/scss/theme';
|
|
13
13
|
@use '@carbon/styles/scss/themes' as carbon-themes;
|
|
14
14
|
@use '@carbon/styles/scss/type';
|
|
15
|
-
@use '@carbon/styles/scss/
|
|
15
|
+
@use '@carbon/styles/scss/config' as carbon-config;
|
|
16
16
|
@use '@carbon/styles/scss/breakpoint';
|
|
17
17
|
@use '@carbon/styles/scss/components/button/tokens' as carbon-button;
|
|
18
18
|
@use '@carbon/styles/scss/components/tag/tokens' as carbon-tag;
|
|
@@ -68,7 +68,7 @@ $-component-token-groups: (
|
|
|
68
68
|
|
|
69
69
|
@include layer-tokens.emit-layer-tokens(1);
|
|
70
70
|
|
|
71
|
-
@each $breakpoint in map.keys(
|
|
71
|
+
@each $breakpoint in map.keys(carbon-config.$grid-breakpoints) {
|
|
72
72
|
@include breakpoint.breakpoint-up($breakpoint) {
|
|
73
73
|
@each $type-name, $type-styles in type.$tokens {
|
|
74
74
|
@if map.has-key($type-styles, 'breakpoints') {
|