@odx/ui 1.0.0-rc.1 → 1.0.0-rc.10
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/323d385340fb9fee6450.svg +6 -0
- package/LICENSE +1 -0
- package/README.md +32 -0
- package/core-icons.css +39 -9
- package/core-icons.woff2 +0 -0
- package/core-theme.css +1 -1
- package/package.json +7 -8
- package/scss/{modules → abstract}/_breakpoints.scss +11 -11
- package/scss/{modules/_vertical-rythm.scss → abstract/_dimensions.scss} +29 -26
- package/scss/abstract/_index.scss +5 -0
- package/scss/abstract/_motion.scss +12 -0
- package/scss/abstract/_typography.scss +25 -0
- package/scss/abstract/_utils.scss +124 -0
- package/scss/cdk/active-indicator.scss +25 -0
- package/scss/cdk/connected-overlay.scss +36 -0
- package/scss/components/accordion-item.component.scss +56 -0
- package/scss/components/accordion.component.scss +3 -0
- package/scss/components/{action-group/action-group.component.scss → action-group.component.scss} +11 -7
- package/scss/components/{area-header/area-header.component.scss → area-header.component.scss} +33 -39
- package/scss/components/{avatar/avatar.component.scss → avatar.component.scss} +18 -13
- package/scss/components/{badge/badge.component.scss → badge.component.scss} +15 -24
- package/scss/components/bar.component.scss +86 -0
- package/scss/components/breadcrumbs.component.scss +26 -0
- package/scss/components/button-group.component.scss +99 -0
- package/scss/components/button.component.scss +129 -0
- package/scss/components/checkbox.component.scss +117 -0
- package/scss/components/chip.component.scss +52 -0
- package/scss/components/circular-progress.component.scss +75 -0
- package/scss/components/content-box.component.scss +54 -0
- package/scss/components/dropdown.component.scss +28 -0
- package/scss/components/form-field.component.scss +208 -0
- package/scss/components/header.component.scss +40 -0
- package/scss/components/icon.component.scss +35 -0
- package/scss/components/inline-message.component.scss +33 -0
- package/scss/components/launch-tile.component.scss +118 -0
- package/scss/components/{link/link.component.scss → link.component.scss} +6 -4
- package/scss/components/list-item.component.scss +107 -0
- package/scss/components/list.component.scss +3 -0
- package/scss/components/loading-spinner.component.scss +54 -0
- package/scss/components/{logo/logo.component.scss → logo.component.scss} +5 -4
- package/scss/components/main-menu-button.component.scss +7 -0
- package/scss/components/{main-menu/components/main-menu-item.component.scss → main-menu-item.component.scss} +14 -12
- package/scss/components/{main-menu/main-menu.component.scss → main-menu.component.scss} +37 -29
- package/scss/components/menu-item.component.scss +8 -0
- package/scss/components/menu.component.scss +16 -0
- package/scss/components/modal.component.scss +144 -0
- package/scss/components/progress.component.scss +41 -0
- package/scss/components/radio-button.component.scss +120 -0
- package/scss/components/radio-group.component.scss +14 -0
- package/scss/components/rail-navigation-item.component.scss +60 -0
- package/scss/components/rail-navigation.component.scss +32 -0
- package/scss/components/select.component.scss +103 -0
- package/scss/components/slider.component.scss +131 -0
- package/scss/components/spinbox.component.scss +124 -0
- package/scss/components/switch.component.scss +163 -0
- package/scss/components/tab-bar-item.component.scss +53 -0
- package/scss/components/tab-bar.component.scss +124 -0
- package/scss/components/toast-item.component.scss +79 -0
- package/scss/components/toast.component.scss +33 -0
- package/scss/components/toggle-button-group.component.scss +63 -0
- package/scss/components/toggle-button.component.scss +69 -0
- package/scss/components/tooltip.component.scss +34 -0
- package/scss/core.scss +66 -30
- package/scss/layout/_base.scss +35 -0
- package/scss/layout/_content.scss +25 -0
- package/scss/layout/_description-list.scss +30 -0
- package/scss/layout/_helpers.scss +85 -0
- package/scss/{modules → layout}/_layout.scss +96 -46
- package/scss/layout/_text-list.scss +18 -0
- package/scss/layout/_typography.scss +114 -0
- package/scss/{base/_reset.scss → reset.scss} +30 -5
- package/scss/variables/_color-palettes.scss +59 -55
- package/scss/variables/_colors.scss +15 -15
- package/scss/variables/_controls.scss +47 -0
- package/scss/variables/_index.scss +6 -0
- package/scss/variables/_typography.scss +18 -0
- package/scss/variables/_vertical-rythm.scss +3 -0
- package/scss/variables/_visuals.scss +15 -8
- package/scss/_helpers.scss +0 -15
- package/scss/base/_mixins.scss +0 -3
- package/scss/base/_utils.scss +0 -19
- package/scss/base/mixins/_container.scss +0 -31
- package/scss/base/mixins/_control.scss +0 -50
- package/scss/base/mixins/_transition.scss +0 -10
- package/scss/components/button/button.component.scss +0 -94
- package/scss/components/checkbox/checkbox.component.scss +0 -130
- package/scss/components/content-box/content-box.component.scss +0 -50
- package/scss/components/header/header.component.scss +0 -39
- package/scss/components/icon/icon.component.scss +0 -38
- package/scss/components/main-menu/components/main-menu-button.component.scss +0 -7
- package/scss/components/radio-group/_radio-group.component.scss +0 -145
- package/scss/modules/_typography.scss +0 -161
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odx/ui",
|
|
3
|
-
"
|
|
4
|
-
"access": "public"
|
|
5
|
-
},
|
|
6
|
-
"description": "TODO: add description",
|
|
7
|
-
"version": "1.0.0-rc.1",
|
|
8
|
-
"bugs": "TODO: add url",
|
|
3
|
+
"version": "1.0.0-rc.10",
|
|
9
4
|
"author": "Drägerwerk AG & Co.KGaA",
|
|
5
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
10
6
|
"files": [
|
|
11
|
-
"README.md",
|
|
12
7
|
"*.css",
|
|
13
8
|
"*.woff2",
|
|
9
|
+
"*.svg",
|
|
14
10
|
"scss"
|
|
15
|
-
]
|
|
11
|
+
],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
}
|
|
16
15
|
}
|
|
@@ -8,7 +8,7 @@ $breakpoints: () !default;
|
|
|
8
8
|
@return map.keys($breakpoints);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
@function
|
|
11
|
+
@function _get-value($breakpoint) {
|
|
12
12
|
@if $breakpoint and not map.has-key($breakpoints, $breakpoint) {
|
|
13
13
|
@error "Invalid breakpoint, `#{$breakpoint}` doesn't exist. Choose one of #{map.keys(breakpoints.$values)}.";
|
|
14
14
|
}
|
|
@@ -16,7 +16,7 @@ $breakpoints: () !default;
|
|
|
16
16
|
@return map.get($breakpoints, $breakpoint);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
@function
|
|
19
|
+
@function _get-next-value($breakpoint) {
|
|
20
20
|
@if $breakpoint and not map.has-key($breakpoints, $breakpoint) {
|
|
21
21
|
@error "Invalid breakpoint, `#{$breakpoint}` doesn't exist. Choose one of #{map.keys(breakpoints.$values)}.";
|
|
22
22
|
}
|
|
@@ -27,20 +27,20 @@ $breakpoints: () !default;
|
|
|
27
27
|
@return if($index < length($keys), list.nth($keys, $index + 1), null);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
@function
|
|
31
|
-
$value:
|
|
30
|
+
@function _get-min-value($breakpoint) {
|
|
31
|
+
$value: _get-value($breakpoint);
|
|
32
32
|
|
|
33
33
|
@return if($value != 0, $value, null);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
@function
|
|
37
|
-
$value:
|
|
36
|
+
@function _get-max-value($breakpoint) {
|
|
37
|
+
$value: _get-value($breakpoint);
|
|
38
38
|
|
|
39
39
|
@return if($value > 0, $value - 1, null);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
@mixin up($breakpoint) {
|
|
43
|
-
$min:
|
|
43
|
+
$min: _get-min-value($breakpoint);
|
|
44
44
|
|
|
45
45
|
@if $min {
|
|
46
46
|
@media (min-width: $min) {
|
|
@@ -52,7 +52,7 @@ $breakpoints: () !default;
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
@mixin down($breakpoint) {
|
|
55
|
-
$max:
|
|
55
|
+
$max: _get-max-value($breakpoint);
|
|
56
56
|
|
|
57
57
|
@if $max {
|
|
58
58
|
@media (max-width: $max) {
|
|
@@ -64,9 +64,9 @@ $breakpoints: () !default;
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
@mixin only($breakpoint) {
|
|
67
|
-
$min:
|
|
68
|
-
$next:
|
|
69
|
-
$max:
|
|
67
|
+
$min: _get-min-value($breakpoint);
|
|
68
|
+
$next: _get-next-value($breakpoint);
|
|
69
|
+
$max: _get-max-value($breakpoint);
|
|
70
70
|
|
|
71
71
|
@if $min != null and $max != null {
|
|
72
72
|
@media (min-width: $min) and (max-width: $max) {
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
|
|
3
|
+
@function _get-line-height-factor($factor, $line-height-factor) {
|
|
4
|
+
@if not $line-height-factor {
|
|
5
|
+
@return $factor;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@return $line-height-factor;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin _vertical-rythm-dimension($factor, $line-height-factor, $properties) {
|
|
12
|
+
$line-height-factor: _get-line-height-factor($factor, $line-height-factor);
|
|
13
|
+
|
|
14
|
+
@include margin-y(calc(($factor - $line-height-factor) / 2));
|
|
15
|
+
|
|
16
|
+
@each $property in $properties {
|
|
17
|
+
#{$property}: get-size($line-height-factor);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
3
21
|
@function get-size($factor) {
|
|
4
22
|
$factor: math.div(math.ceil($factor * 1e4), 1e4);
|
|
5
23
|
|
|
6
|
-
@return calc(var(--odx-
|
|
24
|
+
@return calc(var(--odx-vertical-rythm-base-size) * $factor);
|
|
7
25
|
}
|
|
8
26
|
|
|
9
27
|
@mixin margin($factor, $directions: ('top', 'right', 'bottom', 'left')) {
|
|
@@ -13,13 +31,13 @@
|
|
|
13
31
|
}
|
|
14
32
|
|
|
15
33
|
@mixin margin-x($factor: 1) {
|
|
16
|
-
$spacing: calc(var(--odx-
|
|
34
|
+
$spacing: calc(var(--odx-vertical-rythm-base-size) * $factor);
|
|
17
35
|
|
|
18
36
|
@include margin($factor, ('right', 'left'));
|
|
19
37
|
}
|
|
20
38
|
|
|
21
39
|
@mixin margin-y($factor: 1) {
|
|
22
|
-
$spacing: calc(var(--odx-
|
|
40
|
+
$spacing: calc(var(--odx-vertical-rythm-base-size) * $factor);
|
|
23
41
|
|
|
24
42
|
@include margin($factor, ('top', 'bottom'));
|
|
25
43
|
}
|
|
@@ -31,48 +49,33 @@
|
|
|
31
49
|
}
|
|
32
50
|
|
|
33
51
|
@mixin padding-x($factor: 1) {
|
|
34
|
-
$spacing: calc(var(--odx-
|
|
52
|
+
$spacing: calc(var(--odx-vertical-rythm-base-size) * $factor);
|
|
35
53
|
|
|
36
54
|
@include padding($factor, ('right', 'left'));
|
|
37
55
|
}
|
|
38
56
|
|
|
39
57
|
@mixin padding-y($factor: 1) {
|
|
40
|
-
$spacing: calc(var(--odx-
|
|
58
|
+
$spacing: calc(var(--odx-vertical-rythm-base-size) * $factor);
|
|
41
59
|
|
|
42
60
|
@include padding($factor, ('top', 'bottom'));
|
|
43
61
|
}
|
|
44
62
|
|
|
45
63
|
@mixin container($factor: 1, $line-height-factor: null) {
|
|
46
|
-
@
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@include margin-y(calc(($factor - $line-height-factor) / 2));
|
|
64
|
+
@include _vertical-rythm-dimension($factor, $line-height-factor, (height, width));
|
|
65
|
+
}
|
|
51
66
|
|
|
52
|
-
|
|
53
|
-
|
|
67
|
+
@mixin min-height($factor: 1, $line-height-factor: null) {
|
|
68
|
+
@include _vertical-rythm-dimension($factor, $line-height-factor, min-height);
|
|
54
69
|
}
|
|
55
70
|
|
|
56
71
|
@mixin height($factor: 1, $line-height-factor: null) {
|
|
57
|
-
@
|
|
58
|
-
$line-height-factor: $factor;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@include margin-y(calc(($factor - $line-height-factor) / 2));
|
|
62
|
-
|
|
63
|
-
height: get-size($line-height-factor);
|
|
72
|
+
@include _vertical-rythm-dimension($factor, $line-height-factor, height);
|
|
64
73
|
}
|
|
65
74
|
|
|
66
75
|
@mixin line-height($factor: 1, $line-height-factor: null) {
|
|
67
|
-
|
|
68
|
-
$line-height-factor: $factor;
|
|
69
|
-
}
|
|
76
|
+
$line-height-factor: _get-line-height-factor($factor, $line-height-factor);
|
|
70
77
|
|
|
71
78
|
@include padding-y(calc(($factor - $line-height-factor) / 2));
|
|
72
79
|
|
|
73
80
|
line-height: get-size($line-height-factor);
|
|
74
81
|
}
|
|
75
|
-
|
|
76
|
-
:root {
|
|
77
|
-
--odx-vr-base-size: calc(var(--odx-t-base-line-height) * var(--odx-t-base-size));
|
|
78
|
-
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
|
|
3
|
+
@mixin transition($properties, $duration: var(--odx-v-transition-duration), $delay: 0ms) {
|
|
4
|
+
$props: ();
|
|
5
|
+
|
|
6
|
+
@each $prop in $properties {
|
|
7
|
+
$props: list.append($props, $prop, comma);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
transition: all $duration $delay var(--odx-v-transition-easing-fn);
|
|
11
|
+
transition-property: $props;
|
|
12
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use 'utils';
|
|
3
|
+
|
|
4
|
+
@mixin font-size($size: 1) {
|
|
5
|
+
@if math.round($size) != $size {
|
|
6
|
+
@error '$size must me an integer';
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@if $size < 0 {
|
|
10
|
+
font-size: calc(var(--odx-typography-base-size) * utils.css-pow(var(--odx-typography-negative-font-scaling-factor), $size));
|
|
11
|
+
} @else {
|
|
12
|
+
font-size: calc(var(--odx-typography-base-size) * utils.css-pow(var(--odx-typography-positive-font-scaling-factor), $size));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin font-weight($value: normal) {
|
|
17
|
+
font-weight: var(--odx-typography-font-weight-#{$value});
|
|
18
|
+
letter-spacing: var(--odx-typography-font-weight-#{$value}-letter-spacing);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin prevent-text-overflow() {
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
text-overflow: ellipsis;
|
|
24
|
+
white-space: nowrap;
|
|
25
|
+
}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
3
|
+
@function css-pow($value, $exponent) {
|
|
4
|
+
$css-value: 1;
|
|
5
|
+
|
|
6
|
+
@if $exponent < 0 {
|
|
7
|
+
@for $i from 1 through math.abs($exponent) {
|
|
8
|
+
$css-value: $css-value + '*1/#{$value}';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@if $exponent > 0 {
|
|
13
|
+
@for $i from 1 through $exponent {
|
|
14
|
+
$css-value: $css-value + '*#{$value}';
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@return calc(#{$css-value});
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@mixin center-content($inline: false) {
|
|
22
|
+
@if $inline {
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
} @else {
|
|
25
|
+
display: flex;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin vertical-center-content($inline: false) {
|
|
33
|
+
@if $inline {
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
} @else {
|
|
36
|
+
display: flex;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
align-items: center;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@mixin horizontal-center-content($inline: false) {
|
|
43
|
+
@if $inline {
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
} @else {
|
|
46
|
+
display: flex;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
justify-content: center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@mixin visually-hidden() {
|
|
53
|
+
appearance: none;
|
|
54
|
+
border: 0;
|
|
55
|
+
clip: rect(0 0 0 0);
|
|
56
|
+
height: 1px;
|
|
57
|
+
left: 0;
|
|
58
|
+
margin: -1px;
|
|
59
|
+
outline: 0;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
padding: 0;
|
|
62
|
+
position: absolute;
|
|
63
|
+
white-space: nowrap;
|
|
64
|
+
width: 1px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@mixin _focus-styles($with-background) {
|
|
68
|
+
outline-color: var(--odx-c-focus-outline);
|
|
69
|
+
|
|
70
|
+
@if $with-background {
|
|
71
|
+
&,
|
|
72
|
+
&:hover {
|
|
73
|
+
background-color: var(--odx-c-focus);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@mixin focus-state($with-background: true, $focus-within: false, $focus-within-selector: null) {
|
|
79
|
+
@if $focus-within {
|
|
80
|
+
@if $focus-within-selector {
|
|
81
|
+
$focus-within-selector: '#{$focus-within-selector}:focus-visible';
|
|
82
|
+
} @else {
|
|
83
|
+
$focus-within-selector: ':focus-visible';
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:focus-within:has(#{$focus-within-selector}) {
|
|
87
|
+
@include _focus-styles($with-background);
|
|
88
|
+
@content;
|
|
89
|
+
}
|
|
90
|
+
} @else {
|
|
91
|
+
&:focus-visible {
|
|
92
|
+
@include _focus-styles($with-background);
|
|
93
|
+
@content;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@mixin with-outline {
|
|
99
|
+
outline: var(--odx-v-outline-width) solid transparent;
|
|
100
|
+
outline-offset: calc(-1 * var(--odx-v-outline-width));
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@mixin with-outline-bold {
|
|
104
|
+
outline-offset: calc(-1 * var(--odx-v-outline-width-bold));
|
|
105
|
+
outline-width: var(--odx-v-outline-width-bold);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
@mixin interactive($with-background: true, $focus-within: false) {
|
|
109
|
+
@include with-outline();
|
|
110
|
+
@include focus-state($with-background, $focus-within);
|
|
111
|
+
|
|
112
|
+
cursor: pointer;
|
|
113
|
+
user-select: none;
|
|
114
|
+
|
|
115
|
+
&:disabled,
|
|
116
|
+
&.is-disabled {
|
|
117
|
+
@include non-interactive();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@mixin non-interactive() {
|
|
122
|
+
pointer-events: none;
|
|
123
|
+
user-select: none;
|
|
124
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@use '../abstract/motion';
|
|
2
|
+
|
|
3
|
+
.odx-cdk-active-indicator {
|
|
4
|
+
@include motion.transition(all);
|
|
5
|
+
|
|
6
|
+
opacity: 0;
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
position: absolute;
|
|
9
|
+
transform-origin: 0 0;
|
|
10
|
+
z-index: 0;
|
|
11
|
+
|
|
12
|
+
&--horizontal {
|
|
13
|
+
left: 0;
|
|
14
|
+
width: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&--vertical {
|
|
18
|
+
height: 0;
|
|
19
|
+
top: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&--is-active {
|
|
23
|
+
opacity: 1;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
@use '../abstract/utils';
|
|
6
|
+
|
|
7
|
+
.odx-cdk-connected-overlay {
|
|
8
|
+
@include motion.transition(opacity visibility);
|
|
9
|
+
|
|
10
|
+
display: block;
|
|
11
|
+
position: fixed;
|
|
12
|
+
z-index: 1337;
|
|
13
|
+
|
|
14
|
+
&.is-hidden {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
visibility: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__content {
|
|
20
|
+
left: 0 !important;
|
|
21
|
+
position: relative !important;
|
|
22
|
+
top: 0 !important;
|
|
23
|
+
|
|
24
|
+
> * {
|
|
25
|
+
max-height: inherit;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.odx-cdk-connected-overlay-arrow {
|
|
31
|
+
height: dimensions.get-size(0.5);
|
|
32
|
+
position: fixed;
|
|
33
|
+
transform: rotate(45deg);
|
|
34
|
+
width: dimensions.get-size(0.5);
|
|
35
|
+
z-index: 0;
|
|
36
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/dimensions';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
@use '../abstract/typography';
|
|
5
|
+
@use '../abstract/utils';
|
|
6
|
+
|
|
7
|
+
.odx-accordion-item {
|
|
8
|
+
$root: &;
|
|
9
|
+
|
|
10
|
+
@include motion.transition(color);
|
|
11
|
+
@include dimensions.padding(math.div(6, 24), top);
|
|
12
|
+
@include dimensions.padding(math.div(5, 24), bottom);
|
|
13
|
+
|
|
14
|
+
border-bottom: 1px solid var(--odx-input-control-outline-color);
|
|
15
|
+
display: block;
|
|
16
|
+
|
|
17
|
+
&__panel {
|
|
18
|
+
@include dimensions.padding-x(math.div(8, 24));
|
|
19
|
+
@include dimensions.line-height(1.5, 1);
|
|
20
|
+
@include motion.transition(background-color outline-color);
|
|
21
|
+
@include utils.interactive(true);
|
|
22
|
+
|
|
23
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: 1fr auto;
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
background-color: var(--blue-700-5);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
#{$root}--expanded & {
|
|
32
|
+
@include typography.font-weight(medium);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__icon {
|
|
37
|
+
@include motion.transition(transform);
|
|
38
|
+
|
|
39
|
+
transform: rotate(0deg);
|
|
40
|
+
|
|
41
|
+
#{$root}--expanded & {
|
|
42
|
+
transform: rotateX(180deg);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__slot {
|
|
47
|
+
@include dimensions.padding(math.div(8, 24));
|
|
48
|
+
|
|
49
|
+
overflow: hidden;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.is-disabled {
|
|
53
|
+
color: var(--odx-c-text-disabled);
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
}
|
package/scss/components/{action-group/action-group.component.scss → action-group.component.scss}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@use '
|
|
2
|
-
@use '
|
|
3
|
-
@use '
|
|
1
|
+
@use '../abstract/dimensions';
|
|
2
|
+
@use '../abstract/utils';
|
|
3
|
+
@use 'button.component';
|
|
4
4
|
|
|
5
5
|
.odx-action-group {
|
|
6
|
-
@include
|
|
7
|
-
@include
|
|
6
|
+
@include dimensions.height(2, 1.5);
|
|
7
|
+
@include utils.vertical-center-content(true);
|
|
8
8
|
|
|
9
|
-
gap:
|
|
9
|
+
gap: dimensions.get-size(0.25);
|
|
10
10
|
|
|
11
11
|
&--reverse {
|
|
12
12
|
flex-direction: row-reverse;
|
|
@@ -16,7 +16,11 @@
|
|
|
16
16
|
/* stylelint-disable-next-line scss/at-extend-no-missing-placeholder */
|
|
17
17
|
@extend .odx-button--ghost;
|
|
18
18
|
|
|
19
|
-
color: var(--odx-c-
|
|
19
|
+
color: var(--odx-c-text);
|
|
20
|
+
|
|
21
|
+
&:hover {
|
|
22
|
+
color: var(--odx-c-text);
|
|
23
|
+
}
|
|
20
24
|
|
|
21
25
|
&:focus-visible {
|
|
22
26
|
outline-color: var(--odx-c-focus-outline);
|
package/scss/components/{area-header/area-header.component.scss → area-header.component.scss}
RENAMED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
-
@use '
|
|
3
|
-
@use '
|
|
4
|
-
@use '
|
|
5
|
-
@use '../
|
|
6
|
-
@use '
|
|
2
|
+
@use '../abstract/breakpoints';
|
|
3
|
+
@use '../abstract/dimensions';
|
|
4
|
+
@use '../abstract/utils';
|
|
5
|
+
@use '../abstract/typography';
|
|
6
|
+
@use 'avatar.component';
|
|
7
|
+
@use '../layout/typography' as *;
|
|
7
8
|
|
|
8
9
|
:root {
|
|
9
10
|
--odx-area-header-title-color: var(--odx-c-headline);
|
|
@@ -11,11 +12,11 @@
|
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
.odx-area-header {
|
|
14
|
-
@include
|
|
15
|
+
@include dimensions.padding-x(1);
|
|
15
16
|
|
|
16
17
|
&,
|
|
17
18
|
&__container {
|
|
18
|
-
column-gap:
|
|
19
|
+
column-gap: dimensions.get-size(math.div(20, 24));
|
|
19
20
|
display: flex;
|
|
20
21
|
}
|
|
21
22
|
|
|
@@ -23,13 +24,6 @@
|
|
|
23
24
|
flex: 0 0 auto;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
&__container,
|
|
27
|
-
&__inner,
|
|
28
|
-
&__title,
|
|
29
|
-
&__subtitle {
|
|
30
|
-
@include t.prevent-text-overflow();
|
|
31
|
-
}
|
|
32
|
-
|
|
33
27
|
&__title,
|
|
34
28
|
&__subtitle {
|
|
35
29
|
display: block;
|
|
@@ -47,14 +41,14 @@
|
|
|
47
41
|
|
|
48
42
|
&__title {
|
|
49
43
|
@extend .odx-title;
|
|
50
|
-
@extend .odx-title
|
|
44
|
+
@extend .odx-title-6;
|
|
51
45
|
|
|
52
46
|
color: var(--odx-area-header-title-color);
|
|
53
47
|
}
|
|
54
48
|
|
|
55
49
|
&__subtitle {
|
|
56
50
|
@extend .odx-subtitle;
|
|
57
|
-
@extend .odx-
|
|
51
|
+
@extend .odx-subtitle-6;
|
|
58
52
|
|
|
59
53
|
color: var(--odx-area-header-subtitle-color);
|
|
60
54
|
}
|
|
@@ -65,10 +59,10 @@
|
|
|
65
59
|
}
|
|
66
60
|
|
|
67
61
|
&__content {
|
|
68
|
-
@include
|
|
62
|
+
@include utils.vertical-center-content();
|
|
69
63
|
|
|
70
64
|
flex-wrap: wrap;
|
|
71
|
-
min-height:
|
|
65
|
+
min-height: dimensions.get-size(2);
|
|
72
66
|
}
|
|
73
67
|
|
|
74
68
|
&--small,
|
|
@@ -84,7 +78,7 @@
|
|
|
84
78
|
|
|
85
79
|
&--large,
|
|
86
80
|
&--xlarge {
|
|
87
|
-
@include
|
|
81
|
+
@include breakpoints.down(tablet) {
|
|
88
82
|
flex-wrap: wrap;
|
|
89
83
|
|
|
90
84
|
.odx-area-header__content {
|
|
@@ -95,27 +89,27 @@
|
|
|
95
89
|
}
|
|
96
90
|
|
|
97
91
|
&--medium {
|
|
98
|
-
@include
|
|
99
|
-
@include
|
|
92
|
+
@include breakpoints.up(tablet) {
|
|
93
|
+
@include dimensions.padding-y(0.5);
|
|
100
94
|
}
|
|
101
95
|
|
|
102
96
|
.odx-area-header__title {
|
|
103
|
-
@extend .odx-title
|
|
97
|
+
@extend .odx-title-5;
|
|
104
98
|
}
|
|
105
99
|
}
|
|
106
100
|
|
|
107
101
|
&--large {
|
|
108
|
-
@include
|
|
102
|
+
@include dimensions.padding-y(0.25);
|
|
109
103
|
|
|
110
|
-
@include
|
|
111
|
-
@include
|
|
104
|
+
@include breakpoints.up(tablet) {
|
|
105
|
+
@include dimensions.padding-y(0.5);
|
|
112
106
|
}
|
|
113
107
|
|
|
114
108
|
.odx-area-header__title {
|
|
115
|
-
@extend .odx-title
|
|
109
|
+
@extend .odx-title-4;
|
|
116
110
|
|
|
117
|
-
@include
|
|
118
|
-
@include
|
|
111
|
+
@include breakpoints.down(tablet) {
|
|
112
|
+
@include dimensions.line-height(1);
|
|
119
113
|
}
|
|
120
114
|
}
|
|
121
115
|
|
|
@@ -125,39 +119,39 @@
|
|
|
125
119
|
}
|
|
126
120
|
|
|
127
121
|
&--xlarge {
|
|
128
|
-
@include
|
|
122
|
+
@include dimensions.padding-y(0.5);
|
|
129
123
|
|
|
130
|
-
@include
|
|
131
|
-
@include
|
|
124
|
+
@include breakpoints.up(tablet) {
|
|
125
|
+
@include dimensions.padding-y(1);
|
|
132
126
|
|
|
133
|
-
gap:
|
|
127
|
+
gap: dimensions.get-size(1);
|
|
134
128
|
|
|
135
129
|
.odx-area-header__container {
|
|
136
|
-
@include
|
|
130
|
+
@include dimensions.padding(1, top);
|
|
137
131
|
}
|
|
138
132
|
}
|
|
139
133
|
|
|
140
134
|
.odx-area-header__title {
|
|
141
|
-
@extend .odx-title
|
|
135
|
+
@extend .odx-title-2;
|
|
142
136
|
}
|
|
143
137
|
|
|
144
138
|
.odx-area-header__subtitle {
|
|
145
|
-
@extend .odx-
|
|
139
|
+
@extend .odx-subtitle-5;
|
|
146
140
|
}
|
|
147
141
|
|
|
148
142
|
.odx-avatar {
|
|
149
143
|
@extend .odx-avatar--large;
|
|
150
144
|
|
|
151
|
-
@include
|
|
152
|
-
@include
|
|
145
|
+
@include breakpoints.up(tablet) {
|
|
146
|
+
@include dimensions.margin(-0.5, top);
|
|
153
147
|
}
|
|
154
148
|
}
|
|
155
149
|
|
|
156
150
|
.odx-area-header__content {
|
|
157
151
|
align-self: flex-end;
|
|
158
152
|
|
|
159
|
-
@include
|
|
160
|
-
@include
|
|
153
|
+
@include breakpoints.up(tablet) {
|
|
154
|
+
@include dimensions.margin(-0.5, bottom);
|
|
161
155
|
}
|
|
162
156
|
}
|
|
163
157
|
}
|