@odx/ui 2.12.0 → 2.13.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/CHANGELOG.md +12 -0
- package/core-theme.css +62 -13
- package/package.json +1 -1
- package/scss/components/button.component.scss +1 -1
- package/scss/components/chip.component.scss +2 -2
- package/scss/components/error-page.component.scss +46 -0
- package/scss/core.scss +1 -0
- package/scss/layout/_application.scss +0 -21
package/CHANGELOG.md
CHANGED
package/core-theme.css
CHANGED
|
@@ -563,7 +563,7 @@ html body {
|
|
|
563
563
|
font-family: var(--odx-typography-font-family);
|
|
564
564
|
}
|
|
565
565
|
|
|
566
|
-
.odx-title, .odx-header__title, .odx-area-header__title, .odx-
|
|
566
|
+
.odx-title, .odx-header__title, .odx-area-header__title, .odx-content h1, .odx-content h2, .odx-content h3, .odx-content h4, .odx-content h5, .odx-content h6, .odx-subtitle, .odx-area-header__subtitle,
|
|
567
567
|
[class*=odx-subtitle-],
|
|
568
568
|
[class*=odx-title-] {
|
|
569
569
|
font-weight: var(--odx-typography-font-weight-bold);
|
|
@@ -571,7 +571,7 @@ html body {
|
|
|
571
571
|
color: var(--odx-c-headline);
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
-
.odx-subtitle, .odx-area-header__subtitle,
|
|
574
|
+
.odx-subtitle, .odx-area-header__subtitle,
|
|
575
575
|
[class*=odx-subtitle-] {
|
|
576
576
|
font-weight: var(--odx-typography-font-weight-normal);
|
|
577
577
|
letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
|
|
@@ -609,7 +609,7 @@ html body {
|
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
|
|
612
|
-
.odx-title-3, .odx-
|
|
612
|
+
.odx-title-3, .odx-content h3,
|
|
613
613
|
.odx-subtitle-3 {
|
|
614
614
|
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
615
615
|
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
|
|
@@ -617,7 +617,7 @@ html body {
|
|
|
617
617
|
font-size: calc(var(--odx-typography-base-size) * (1*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)*var(--odx-typography-positive-font-scaling-factor)));
|
|
618
618
|
}
|
|
619
619
|
@media (min-width: 768px) {
|
|
620
|
-
.odx-title-3, .odx-
|
|
620
|
+
.odx-title-3, .odx-content h3,
|
|
621
621
|
.odx-subtitle-3 {
|
|
622
622
|
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.125);
|
|
623
623
|
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.125);
|
|
@@ -625,7 +625,7 @@ html body {
|
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
627
|
|
|
628
|
-
.odx-title-4, .odx-area-header--large .odx-area-header__title, .odx-content h4,
|
|
628
|
+
.odx-title-4, .odx-error-page__title, .odx-area-header--large .odx-area-header__title, .odx-content h4,
|
|
629
629
|
.odx-subtitle-4 {
|
|
630
630
|
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0.375);
|
|
631
631
|
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.375);
|
|
@@ -635,8 +635,7 @@ html body {
|
|
|
635
635
|
|
|
636
636
|
.odx-title-5, .odx-area-header--medium .odx-area-header__title, .odx-content h5,
|
|
637
637
|
.odx-subtitle-5,
|
|
638
|
-
.odx-area-header--xlarge .odx-area-header__subtitle
|
|
639
|
-
.odx-error-page__description {
|
|
638
|
+
.odx-area-header--xlarge .odx-area-header__subtitle {
|
|
640
639
|
padding-top: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
641
640
|
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 0);
|
|
642
641
|
line-height: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
@@ -1957,7 +1956,7 @@ html body .odx-fs-italic {
|
|
|
1957
1956
|
.odx-icon--large {
|
|
1958
1957
|
font-size: calc(var(--odx-vertical-rythm-base-size) * 1.3334);
|
|
1959
1958
|
}
|
|
1960
|
-
.odx-icon--xlarge
|
|
1959
|
+
.odx-icon--xlarge {
|
|
1961
1960
|
font-size: calc(var(--odx-vertical-rythm-base-size) * 2);
|
|
1962
1961
|
}
|
|
1963
1962
|
.odx-icon--inline {
|
|
@@ -2022,11 +2021,6 @@ html body .odx-fs-italic {
|
|
|
2022
2021
|
margin-left: 0;
|
|
2023
2022
|
}
|
|
2024
2023
|
|
|
2025
|
-
.odx-error-page {
|
|
2026
|
-
align-self: center;
|
|
2027
|
-
text-align: center;
|
|
2028
|
-
padding-top: calc(var(--odx-vertical-rythm-base-size) * 2);
|
|
2029
|
-
}
|
|
2030
2024
|
/*
|
|
2031
2025
|
CDK
|
|
2032
2026
|
*/
|
|
@@ -2568,6 +2562,22 @@ html body .odx-fs-italic {
|
|
|
2568
2562
|
background-color: var(--odx-c-confirmation-disabled);
|
|
2569
2563
|
color: var(--odx-c-confirmation-text-disabled);
|
|
2570
2564
|
}
|
|
2565
|
+
.odx-button--warning {
|
|
2566
|
+
background-color: var(--odx-c-warning);
|
|
2567
|
+
color: var(--odx-c-warning-text);
|
|
2568
|
+
}
|
|
2569
|
+
@media (hover: hover){
|
|
2570
|
+
.odx-button--warning:hover {
|
|
2571
|
+
background-color: var(--odx-c-warning-hover);
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
.odx-button--warning.odx-dropdown-host[aria-expanded=true], .odx-button--warning.is-active, .odx-button--warning:active {
|
|
2575
|
+
background-color: var(--odx-c-warning-active);
|
|
2576
|
+
}
|
|
2577
|
+
.odx-button--warning:disabled, .odx-button--warning.is-disabled {
|
|
2578
|
+
background-color: var(--odx-c-warning-disabled);
|
|
2579
|
+
color: var(--odx-c-warning-text-disabled);
|
|
2580
|
+
}
|
|
2571
2581
|
.odx-button--ghost, .odx-main-menu__close, .odx-main-menu-button, .odx-action-group > .odx-button:not(.odx-button--primary, .odx-button--success, .odx-button--danger, .odx-button--confirmation, .odx-auth-sign-in) {
|
|
2572
2582
|
outline: var(--odx-v-outline-width) solid transparent;
|
|
2573
2583
|
outline-offset: calc(-1 * var(--odx-v-outline-width));
|
|
@@ -3544,6 +3554,14 @@ body {
|
|
|
3544
3554
|
background-color: var(--odx-c-danger);
|
|
3545
3555
|
color: var(--odx-c-danger-text);
|
|
3546
3556
|
}
|
|
3557
|
+
.odx-chip--warning {
|
|
3558
|
+
background-color: var(--odx-c-warning);
|
|
3559
|
+
color: var(--odx-c-warning-text);
|
|
3560
|
+
}
|
|
3561
|
+
.odx-chip--confirmation {
|
|
3562
|
+
background-color: var(--odx-c-confirmation);
|
|
3563
|
+
color: var(--odx-c-confirmation-text);
|
|
3564
|
+
}
|
|
3547
3565
|
|
|
3548
3566
|
.odx-chip-list {
|
|
3549
3567
|
display: flex;
|
|
@@ -3698,6 +3716,37 @@ body {
|
|
|
3698
3716
|
max-height: 359px;
|
|
3699
3717
|
}
|
|
3700
3718
|
|
|
3719
|
+
.odx-error-page {
|
|
3720
|
+
margin-right: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
3721
|
+
margin-left: calc(var(--odx-vertical-rythm-base-size) * 1);
|
|
3722
|
+
display: flex;
|
|
3723
|
+
flex: 1;
|
|
3724
|
+
flex-direction: column;
|
|
3725
|
+
}
|
|
3726
|
+
.odx-error-page__container {
|
|
3727
|
+
align-items: center;
|
|
3728
|
+
display: flex;
|
|
3729
|
+
flex: 1;
|
|
3730
|
+
flex-direction: column;
|
|
3731
|
+
justify-content: center;
|
|
3732
|
+
text-align: center;
|
|
3733
|
+
}
|
|
3734
|
+
.odx-error-page__icon-container {
|
|
3735
|
+
margin-bottom: calc(var(--odx-vertical-rythm-base-size) * 2);
|
|
3736
|
+
}
|
|
3737
|
+
.odx-error-page__actions {
|
|
3738
|
+
margin-top: calc(var(--odx-vertical-rythm-base-size) * 2);
|
|
3739
|
+
display: flex;
|
|
3740
|
+
flex-wrap: wrap;
|
|
3741
|
+
gap: var(--odx-grid-gutter);
|
|
3742
|
+
justify-content: center;
|
|
3743
|
+
width: 100%;
|
|
3744
|
+
}
|
|
3745
|
+
.odx-error-page__footer {
|
|
3746
|
+
padding-bottom: calc(var(--odx-vertical-rythm-base-size) * 2);
|
|
3747
|
+
text-align: center;
|
|
3748
|
+
}
|
|
3749
|
+
|
|
3701
3750
|
.odx-expandable-list-item__header {
|
|
3702
3751
|
display: block;
|
|
3703
3752
|
position: relative;
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
@use 'icon.component';
|
|
11
11
|
|
|
12
12
|
.odx-button {
|
|
13
|
-
$variants: secondary, primary, highlight, success, danger, confirmation;
|
|
13
|
+
$variants: secondary, primary, highlight, success, danger, confirmation, warning;
|
|
14
14
|
$icon-margin: 0.25;
|
|
15
15
|
|
|
16
16
|
@extend .odx-button--secondary;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
@use '../abstract/motion';
|
|
5
5
|
@use '../abstract/typography';
|
|
6
6
|
|
|
7
|
-
$sizes:
|
|
8
|
-
$variants:
|
|
7
|
+
$sizes: small 1 -1, medium 1.5 0;
|
|
8
|
+
$variants: secondary, highlight, success, danger, warning, confirmation;
|
|
9
9
|
|
|
10
10
|
.odx-chip {
|
|
11
11
|
$root: &;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../abstract/utils';
|
|
3
|
+
@use '../abstract/motion';
|
|
4
|
+
@use '../abstract/dimensions';
|
|
5
|
+
@use '../layout/typography';
|
|
6
|
+
|
|
7
|
+
.odx-error-page {
|
|
8
|
+
@include dimensions.margin-x(1);
|
|
9
|
+
|
|
10
|
+
display: flex;
|
|
11
|
+
flex: 1;
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
|
|
14
|
+
&__title {
|
|
15
|
+
@extend .odx-title-4;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__container {
|
|
19
|
+
align-items: center;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex: 1;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
text-align: center;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&__icon-container {
|
|
28
|
+
@include dimensions.margin(2, bottom);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__actions {
|
|
32
|
+
@include dimensions.margin(2, top);
|
|
33
|
+
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
gap: var(--odx-grid-gutter);
|
|
37
|
+
justify-content: center;
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&__footer {
|
|
42
|
+
@include dimensions.padding(2, bottom);
|
|
43
|
+
|
|
44
|
+
text-align: center;
|
|
45
|
+
}
|
|
46
|
+
}
|
package/scss/core.scss
CHANGED
|
@@ -49,6 +49,7 @@ Layout
|
|
|
49
49
|
@use 'components/content-box.component';
|
|
50
50
|
@use 'components/datepicker.component';
|
|
51
51
|
@use 'components/dropdown.component';
|
|
52
|
+
@use 'components/error-page.component';
|
|
52
53
|
@use 'components/expandable-list-item.component';
|
|
53
54
|
@use 'components/form-field.component';
|
|
54
55
|
@use 'components/header.component';
|
|
@@ -57,24 +57,3 @@
|
|
|
57
57
|
margin-left: 0;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
.odx-error-page {
|
|
62
|
-
align-self: center;
|
|
63
|
-
text-align: center;
|
|
64
|
-
|
|
65
|
-
@include dimensions.padding(2, top);
|
|
66
|
-
|
|
67
|
-
&__icon {
|
|
68
|
-
@extend .odx-icon--xlarge;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&__title {
|
|
72
|
-
@extend .odx-title;
|
|
73
|
-
@extend .odx-title-3;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&__description {
|
|
77
|
-
@extend .odx-subtitle;
|
|
78
|
-
@extend .odx-subtitle-5;
|
|
79
|
-
}
|
|
80
|
-
}
|