@odx/ui 1.0.0-rc.1
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/24031beb1b96a58f519c.woff2 +0 -0
- package/5eabf29514e9649c8c73.woff2 +0 -0
- package/README.md +0 -0
- package/core-icons.css +13 -0
- package/core-theme.css +1 -0
- package/eb2051d1f9da906e0b3e.woff2 +0 -0
- package/package.json +16 -0
- package/scss/_helpers.scss +15 -0
- package/scss/base/_mixins.scss +3 -0
- package/scss/base/_reset.scss +136 -0
- package/scss/base/_utils.scss +19 -0
- package/scss/base/mixins/_container.scss +31 -0
- package/scss/base/mixins/_control.scss +50 -0
- package/scss/base/mixins/_transition.scss +10 -0
- package/scss/components/action-group/action-group.component.scss +25 -0
- package/scss/components/area-header/area-header.component.scss +164 -0
- package/scss/components/avatar/avatar.component.scss +59 -0
- package/scss/components/badge/badge.component.scss +59 -0
- package/scss/components/button/button.component.scss +94 -0
- package/scss/components/checkbox/checkbox.component.scss +130 -0
- package/scss/components/content-box/content-box.component.scss +50 -0
- package/scss/components/header/header.component.scss +39 -0
- package/scss/components/icon/icon.component.scss +38 -0
- package/scss/components/link/link.component.scss +50 -0
- package/scss/components/logo/logo.component.scss +27 -0
- package/scss/components/main-menu/components/main-menu-button.component.scss +7 -0
- package/scss/components/main-menu/components/main-menu-item.component.scss +45 -0
- package/scss/components/main-menu/main-menu.component.scss +117 -0
- package/scss/components/radio-group/_radio-group.component.scss +145 -0
- package/scss/core.scss +43 -0
- package/scss/modules/_breakpoints.scss +80 -0
- package/scss/modules/_layout.scss +108 -0
- package/scss/modules/_typography.scss +161 -0
- package/scss/modules/_vertical-rythm.scss +78 -0
- package/scss/variables/_color-palettes.scss +90 -0
- package/scss/variables/_colors.scss +85 -0
- package/scss/variables/_visuals.scss +11 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../../modules/breakpoints' as br;
|
|
3
|
+
@use '../../modules/vertical-rythm' as vr;
|
|
4
|
+
@use '../../modules/typography' as t;
|
|
5
|
+
@use '../../base/mixins' as mx;
|
|
6
|
+
|
|
7
|
+
@mixin avatar-size($size-factor, $line-height-factor, $font-size, $icon-factor) {
|
|
8
|
+
@include vr.container($size-factor, $line-height-factor);
|
|
9
|
+
@include t.font-size($font-size);
|
|
10
|
+
|
|
11
|
+
> .odx-icon,
|
|
12
|
+
> .odx-icon[class*='odx-icon--'] {
|
|
13
|
+
@include vr.container($icon-factor);
|
|
14
|
+
|
|
15
|
+
font-size: vr.get-size($icon-factor);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.odx-avatar {
|
|
20
|
+
@include mx.center-content(true);
|
|
21
|
+
@include t.prevent-text-overflow();
|
|
22
|
+
|
|
23
|
+
background-color: var(--blue-700-10);
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
color: var(--odx-c-text);
|
|
26
|
+
font-weight: var(--odx-t-font-weight-medium);
|
|
27
|
+
position: relative;
|
|
28
|
+
vertical-align: middle;
|
|
29
|
+
|
|
30
|
+
&--small {
|
|
31
|
+
@include avatar-size(2, 1.5, 0, 1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&--medium {
|
|
35
|
+
@include avatar-size(2, 1.5, 0, 1);
|
|
36
|
+
|
|
37
|
+
@include br.up(tablet) {
|
|
38
|
+
@include avatar-size(3, math.div(64, 24), 2, 1.5);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&--large {
|
|
43
|
+
@include avatar-size(3, math.div(64, 24), 2, 1.5);
|
|
44
|
+
|
|
45
|
+
@include br.up(tablet) {
|
|
46
|
+
@include avatar-size(4, 4, 4, 2.25);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
img {
|
|
51
|
+
height: 100%;
|
|
52
|
+
left: 0;
|
|
53
|
+
object-fit: cover;
|
|
54
|
+
position: absolute;
|
|
55
|
+
top: 0;
|
|
56
|
+
width: 100%;
|
|
57
|
+
z-index: 2;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../../base/mixins' as mx;
|
|
3
|
+
@use '../../modules/typography' as t;
|
|
4
|
+
@use '../../modules/vertical-rythm' as vr;
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--odx-badge-contrast-color: var(--odx-c-background-content);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.odx-badge {
|
|
11
|
+
$badge-size: vr.get-size(math.div(2, 3));
|
|
12
|
+
|
|
13
|
+
@include mx.center-content(true);
|
|
14
|
+
@include mx.non-interactive();
|
|
15
|
+
@include t.font-size(-2);
|
|
16
|
+
@include vr.padding-x(math.div(1, 8));
|
|
17
|
+
|
|
18
|
+
border-radius: $badge-size;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
font-weight: var(--odx-t-font-weight-medium);
|
|
21
|
+
height: $badge-size;
|
|
22
|
+
left: 0;
|
|
23
|
+
min-width: $badge-size;
|
|
24
|
+
outline: 1px solid transparent;
|
|
25
|
+
top: 0;
|
|
26
|
+
z-index: 9999;
|
|
27
|
+
|
|
28
|
+
&::before {
|
|
29
|
+
content: attr(data-value);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[data-value='0'] {
|
|
33
|
+
display: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&[data-value^='-']::before {
|
|
37
|
+
content: '';
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&,
|
|
41
|
+
&--highlight {
|
|
42
|
+
background-color: var(--odx-c-highlight);
|
|
43
|
+
color: var(--odx-c-highlight-text);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&--danger {
|
|
47
|
+
background-color: var(--odx-c-danger);
|
|
48
|
+
color: var(--odx-c-danger-text);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&--confirmation {
|
|
52
|
+
background-color: var(--odx-c-confirmation);
|
|
53
|
+
color: var(--odx-c-confirmation-text);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&--contrast {
|
|
57
|
+
outline-color: var(--odx-badge-contrast-color);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../../modules/vertical-rythm' as vr;
|
|
3
|
+
@use '../../modules/typography' as t;
|
|
4
|
+
@use '../../base/mixins' as mx;
|
|
5
|
+
@use '../avatar/avatar.component' as ac;
|
|
6
|
+
|
|
7
|
+
.odx-button {
|
|
8
|
+
$variants: secondary, primary, highlight, success, danger, confirmation;
|
|
9
|
+
|
|
10
|
+
@extend .odx-button--secondary;
|
|
11
|
+
@include t.prevent-text-overflow();
|
|
12
|
+
@include mx.transition(background-color color outline);
|
|
13
|
+
@include mx.center-content(true);
|
|
14
|
+
@include mx.interactive($with-background: false);
|
|
15
|
+
@include vr.height(2, 1.5);
|
|
16
|
+
@include vr.padding-x(0.5);
|
|
17
|
+
|
|
18
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
19
|
+
font-weight: var(--odx-t-font-weight-medium);
|
|
20
|
+
min-width: vr.get-size(1.5);
|
|
21
|
+
outline-width: 2px;
|
|
22
|
+
|
|
23
|
+
&:not(:has(> .odx-icon, > .odx-avatar)) {
|
|
24
|
+
min-width: vr.get-size(3);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
> .odx-icon {
|
|
28
|
+
@include vr.margin-x(-0.25);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
> .odx-icon[alignLeft] {
|
|
32
|
+
@include vr.margin(0.25, right);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
> .odx-icon[alignRight] {
|
|
36
|
+
@include vr.margin(0.25, left);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
> .odx-avatar {
|
|
40
|
+
@include vr.margin-x(-0.5);
|
|
41
|
+
@include ac.avatar-size(2, math.div(32, 24), 0, 1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&--highlight:focus-visible {
|
|
45
|
+
outline-color: var(--blue-400);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@each $variant in $variants {
|
|
49
|
+
&--#{$variant} {
|
|
50
|
+
background-color: var(--odx-c-#{$variant});
|
|
51
|
+
color: var(--odx-c-#{$variant}-text);
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
background-color: var(--odx-c-#{$variant}-hover);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:active {
|
|
58
|
+
background-color: var(--odx-c-#{$variant}-active);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&:disabled,
|
|
62
|
+
&.is-disabled {
|
|
63
|
+
background-color: var(--odx-c-#{$variant}-disabled);
|
|
64
|
+
color: var(--odx-c-#{$variant}-text-disabled);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&--ghost {
|
|
70
|
+
background-color: transparent;
|
|
71
|
+
color: var(--odx-c-link);
|
|
72
|
+
outline-width: 1px;
|
|
73
|
+
|
|
74
|
+
&:hover {
|
|
75
|
+
background-color: var(--blue-700-5);
|
|
76
|
+
color: var(--odx-c-link-hover);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:active {
|
|
80
|
+
color: var(--odx-c-link-active);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:focus-visible,
|
|
84
|
+
&:active {
|
|
85
|
+
background-color: var(--odx-c-focus);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:disabled,
|
|
89
|
+
&.is-disabled {
|
|
90
|
+
background-color: transparent;
|
|
91
|
+
color: var(--odx-c-link-disabled);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../../modules/vertical-rythm' as vr;
|
|
3
|
+
@use '../../modules/typography' as t;
|
|
4
|
+
@use '../../base/mixins' as mx;
|
|
5
|
+
@use '../../helpers';
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
--odx-checkbox-color: var(--odx-c-highlight-text);
|
|
9
|
+
--odx-checkbox-color-disabled: var(--odx-c-control-text-disabled);
|
|
10
|
+
|
|
11
|
+
--odx-checkbox-background-color: var(--odx-c-control);
|
|
12
|
+
--odx-checkbox-background-color-active: var(--odx-c-highlight);
|
|
13
|
+
--odx-checkbox-background-color-disabled: var(--odx-c-control-disabled);
|
|
14
|
+
--odx-checkbox-background-color-readonly: var(--white);
|
|
15
|
+
|
|
16
|
+
--odx-checkbox-border-color: var(--odx-c-control-disabled);
|
|
17
|
+
--odx-checkbox-border-color-active: var(--odx-c-highlight);
|
|
18
|
+
--odx-checkbox-border-color-hover: var(--odx-c-control-hover);
|
|
19
|
+
--odx-checkbox-border-color-readonly: var(--odx-c-control-disabled);
|
|
20
|
+
|
|
21
|
+
--odx-checkbox-label-color: var(--odx-c-text);
|
|
22
|
+
--odx-checkbox-label-color-disabled: var(--odx-c-text-disabled);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.odx-checkbox {
|
|
26
|
+
$root: &;
|
|
27
|
+
|
|
28
|
+
color: var(--odx-checkbox-label-color);
|
|
29
|
+
display: block;
|
|
30
|
+
|
|
31
|
+
&.is-disabled,
|
|
32
|
+
&.is-readonly {
|
|
33
|
+
@include mx.non-interactive();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.is-disabled {
|
|
37
|
+
color: var(--odx-checkbox-label-color-disabled);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__label {
|
|
41
|
+
@include mx.interactive($focus-within: true);
|
|
42
|
+
@include vr.line-height(1);
|
|
43
|
+
@include mx.transition(background-color color outline);
|
|
44
|
+
@include t.font-size(0);
|
|
45
|
+
|
|
46
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
47
|
+
color: inherit;
|
|
48
|
+
cursor: pointer;
|
|
49
|
+
display: inline-flex;
|
|
50
|
+
min-height: vr.get-size(1);
|
|
51
|
+
padding: 0 2px;
|
|
52
|
+
vertical-align: top;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__input {
|
|
56
|
+
@extend .visually-hidden;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&__indicator {
|
|
60
|
+
@include vr.container(1, math.div(20, 24));
|
|
61
|
+
@include mx.transition(background-color border-color);
|
|
62
|
+
|
|
63
|
+
background-color: var(--odx-checkbox-background-color);
|
|
64
|
+
border: 1px solid var(--odx-checkbox-border-color);
|
|
65
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
color: var(--odx-checkbox-color);
|
|
68
|
+
flex: 0 0 auto;
|
|
69
|
+
|
|
70
|
+
> .odx-icon {
|
|
71
|
+
$checkmark-size: math.div(18, 24);
|
|
72
|
+
@include vr.container($checkmark-size);
|
|
73
|
+
|
|
74
|
+
display: none;
|
|
75
|
+
font-size: vr.get-size($checkmark-size);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
#{$root}:hover & {
|
|
79
|
+
border-color: var(--odx-checkbox-border-color-hover);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
#{$root}.is-active &,
|
|
83
|
+
#{$root}__input:indeterminate ~ &,
|
|
84
|
+
#{$root}__input:checked ~ & {
|
|
85
|
+
background-color: var(--odx-checkbox-background-color-active);
|
|
86
|
+
border-color: var(--odx-checkbox-border-color-active);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
#{$root}.has-error & {
|
|
90
|
+
background-color: var(--odx-c-error);
|
|
91
|
+
border-color: var(--odx-c-error-outline);
|
|
92
|
+
color: var(--odx-c-error-text);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
#{$root}.has-error:hover & {
|
|
96
|
+
border-color: var(--odx-c-error-outline-hover);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
#{$root}.is-disabled & {
|
|
100
|
+
background-color: var(--odx-checkbox-background-color-disabled);
|
|
101
|
+
border-color: transparent;
|
|
102
|
+
color: var(--odx-checkbox-color-disabled);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
#{$root}.is-readonly & {
|
|
106
|
+
background-color: var(--odx-checkbox-background-color-readonly);
|
|
107
|
+
border-color: var(--odx-checkbox-border-color-readonly);
|
|
108
|
+
color: inherit;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&__content {
|
|
113
|
+
@include vr.margin(0.5, left);
|
|
114
|
+
|
|
115
|
+
padding-left: 2px;
|
|
116
|
+
|
|
117
|
+
&:empty {
|
|
118
|
+
margin: 0;
|
|
119
|
+
padding: 0;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.is-active,
|
|
124
|
+
&__input:indeterminate,
|
|
125
|
+
&__input:checked {
|
|
126
|
+
~ .odx-checkbox__indicator > .odx-icon {
|
|
127
|
+
display: block;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use '../../modules/breakpoints' as br;
|
|
2
|
+
@use '../../modules/vertical-rythm' as vr;
|
|
3
|
+
|
|
4
|
+
.odx-content-box {
|
|
5
|
+
background-color: var(--odx-c-background-content);
|
|
6
|
+
display: block;
|
|
7
|
+
|
|
8
|
+
&__header,
|
|
9
|
+
&__footer {
|
|
10
|
+
align-items: center;
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
|
|
14
|
+
> * {
|
|
15
|
+
flex: 1 1 auto;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__header {
|
|
20
|
+
@include vr.padding(1, ('top', 'right', 'left'));
|
|
21
|
+
@include br.down(phone) {
|
|
22
|
+
@include vr.padding(0.5, ('top', 'right', 'left'));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__footer {
|
|
27
|
+
@include vr.padding(1, ('right', 'bottom', 'left'));
|
|
28
|
+
@include br.down(phone) {
|
|
29
|
+
@include vr.padding(0.5, ('right', 'bottom', 'left'));
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__content {
|
|
34
|
+
@include vr.padding(1);
|
|
35
|
+
@include br.down(phone) {
|
|
36
|
+
@include vr.padding(0.5);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.odx-area-header ~ &__content {
|
|
41
|
+
padding-top: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.odx-area-header {
|
|
45
|
+
@include vr.padding(1, ('top', 'bottom'));
|
|
46
|
+
@include br.down(phone) {
|
|
47
|
+
@include vr.padding(0.5, ('top', 'bottom'));
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../../base/mixins' as mx;
|
|
3
|
+
@use '../../modules/vertical-rythm' as vr;
|
|
4
|
+
@use '../../modules/typography' as t;
|
|
5
|
+
|
|
6
|
+
.odx-header {
|
|
7
|
+
@include vr.padding(math.div(20, 24), 'left');
|
|
8
|
+
@include vr.padding(0.5, 'right');
|
|
9
|
+
@include vr.height(2);
|
|
10
|
+
@include mx.vertical-center-content();
|
|
11
|
+
|
|
12
|
+
background-color: var(--odx-c-background-content);
|
|
13
|
+
|
|
14
|
+
.odx-main-menu-button {
|
|
15
|
+
margin-left: vr.get-size(-1 * math.div(1, 3));
|
|
16
|
+
margin-right: vr.get-size(0.5);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&__title,
|
|
20
|
+
.odx-logo {
|
|
21
|
+
margin-right: auto;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__title {
|
|
25
|
+
@extend .odx-title;
|
|
26
|
+
@extend .odx-title--6;
|
|
27
|
+
@include t.prevent-text-overflow();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.odx-action-group:not(:last-child) {
|
|
31
|
+
border-right: 1px solid var(--odx-c-seperator);
|
|
32
|
+
margin-right: vr.get-size(0.5);
|
|
33
|
+
padding-right: vr.get-size(0.5);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__title ~ .odx-logo {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../../modules/vertical-rythm' as vr;
|
|
3
|
+
|
|
4
|
+
$icon-sizes: (small math.div(2, 3) 1, large math.div(4, 3) 2);
|
|
5
|
+
|
|
6
|
+
.odx-icon {
|
|
7
|
+
@include vr.container(1);
|
|
8
|
+
|
|
9
|
+
direction: ltr;
|
|
10
|
+
display: inline-block;
|
|
11
|
+
font-feature-settings: 'liga';
|
|
12
|
+
font-size: vr.get-size(1);
|
|
13
|
+
-moz-osx-font-smoothing: grayscale;
|
|
14
|
+
-webkit-font-smoothing: antialiased;
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: normal;
|
|
17
|
+
letter-spacing: normal;
|
|
18
|
+
line-height: 1;
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
position: relative;
|
|
21
|
+
text-rendering: auto;
|
|
22
|
+
text-transform: none;
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
|
|
25
|
+
@each $size, $size_factor, $factor in $icon-sizes {
|
|
26
|
+
&.odx-icon--#{$size} {
|
|
27
|
+
@include vr.container($factor, $size_factor);
|
|
28
|
+
|
|
29
|
+
font-size: vr.get-size($size_factor);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.odx-icon--inline {
|
|
34
|
+
font-size: inherit;
|
|
35
|
+
height: auto;
|
|
36
|
+
width: auto;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@use '../../base/mixins' as mx;
|
|
2
|
+
|
|
3
|
+
.odx-link {
|
|
4
|
+
@include mx.interactive();
|
|
5
|
+
@include mx.transition(color background-color outline);
|
|
6
|
+
|
|
7
|
+
border-radius: var(--odx-v-border-radius-controls);
|
|
8
|
+
color: var(--odx-c-link);
|
|
9
|
+
padding: 0 2px;
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
&::before {
|
|
13
|
+
@include mx.transition(width);
|
|
14
|
+
|
|
15
|
+
background-color: currentcolor;
|
|
16
|
+
bottom: 1px;
|
|
17
|
+
content: '';
|
|
18
|
+
height: 1px;
|
|
19
|
+
left: 50%;
|
|
20
|
+
position: absolute;
|
|
21
|
+
transform: translateX(-50%);
|
|
22
|
+
width: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&:visited {
|
|
26
|
+
color: var(--odx-c-link-visited);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:hover {
|
|
30
|
+
color: var(--odx-c-link-hover);
|
|
31
|
+
|
|
32
|
+
&::before {
|
|
33
|
+
width: 98%;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:active {
|
|
38
|
+
color: var(--odx-c-link-active);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.is-disabled {
|
|
42
|
+
color: var(--odx-c-link-disabled);
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
|
|
46
|
+
&::before {
|
|
47
|
+
content: none;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
@use '../../modules/vertical-rythm' as vr;
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--odx-logo-color: var(--odx-c-primary);
|
|
5
|
+
--odx-logo-color-inverse: var(--odx-c-text-inverse);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.odx-logo {
|
|
9
|
+
@include vr.height(1);
|
|
10
|
+
|
|
11
|
+
aspect-ratio: 2.5 / 1;
|
|
12
|
+
background-color: var(--odx-logo-color);
|
|
13
|
+
display: inline-block;
|
|
14
|
+
mask-image: url('../assets/images/logo.svg');
|
|
15
|
+
|
|
16
|
+
&--inverse {
|
|
17
|
+
background-color: var(--odx-logo-color-inverse);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&--medium {
|
|
21
|
+
@include vr.height(2, 1.5);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&--large {
|
|
25
|
+
@include vr.height(3, 2.5);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
@use '../../../modules/vertical-rythm' as vr;
|
|
3
|
+
@use '../../../modules/typography' as t;
|
|
4
|
+
@use '../../../base/mixins' as mx;
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--odx-main-menu-item-background-color: transparent;
|
|
8
|
+
--odx-main-menu-item-background-color-hover: var(--white-5);
|
|
9
|
+
--odx-main-menu-item-background-color-active: var(--odx-c-focus);
|
|
10
|
+
--odx-main-menu-item-text-color: inherit;
|
|
11
|
+
--odx-main-menu-item-text-color-disabled: var(--odx-c-primary-text-disabled);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.odx-main-menu-item {
|
|
15
|
+
@include mx.interactive();
|
|
16
|
+
@include mx.transition(color background-color outline);
|
|
17
|
+
@include mx.vertical-center-content();
|
|
18
|
+
@include t.prevent-text-overflow();
|
|
19
|
+
@include vr.height(3, math.div(7, 3));
|
|
20
|
+
@include vr.padding-x(math.div(2, 3));
|
|
21
|
+
|
|
22
|
+
background-color: transparent;
|
|
23
|
+
border-radius: var(--odx-v-border-radius);
|
|
24
|
+
color: var(--odx-main-menu-item-text-color);
|
|
25
|
+
font-weight: var(--odx-t-font-weight-medium);
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
background-color: var(--odx-main-menu-item-background-color-hover);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:active {
|
|
32
|
+
background-color: var(--odx-main-menu-item-background-color-active);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.is-disabled,
|
|
36
|
+
&:disabled {
|
|
37
|
+
background-color: transparent;
|
|
38
|
+
color: var(--odx-main-menu-item-text-color-disabled);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
> .odx-icon {
|
|
42
|
+
@include vr.margin(math.div(1, 3), right);
|
|
43
|
+
@include vr.margin(math.div(-1, 3), left);
|
|
44
|
+
}
|
|
45
|
+
}
|