@daffodil/design 0.42.3 → 0.43.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/esm2020/molecules/callout/callout/callout.component.mjs +2 -2
- package/esm2020/molecules/card/card/card.component.mjs +2 -2
- package/esm2020/molecules/hero/hero/hero.component.mjs +2 -2
- package/esm2020/molecules/image-list/image-list.component.mjs +2 -2
- package/esm2020/molecules/list/list/list.component.mjs +2 -2
- package/esm2020/molecules/paginator/paginator.component.mjs +2 -2
- package/fesm2015/daffodil-design.mjs +12 -12
- package/fesm2015/daffodil-design.mjs.map +1 -1
- package/fesm2020/daffodil-design.mjs +12 -12
- package/fesm2020/daffodil-design.mjs.map +1 -1
- package/package.json +1 -1
- package/{src/scss → scss}/README.md +0 -0
- package/scss/accessibility/_errors.scss +12 -0
- package/scss/accessibility/_index.scss +1 -0
- package/scss/core/_index.scss +4 -0
- package/scss/core/map/map-deep-check/map-deep-check.scss +26 -0
- package/scss/core/map/map-deep-check/map-deep-check.spec.scss +43 -0
- package/scss/core/map/map-deep-get/map-deep-get.scss +27 -0
- package/scss/core/map/map-deep-get/map-deep-get.spec.scss +25 -0
- package/scss/core/string/split/string-split.scss +33 -0
- package/scss/core/string/split/string-split.spec.scss +35 -0
- package/scss/daff-global.scss +49 -0
- package/scss/daff-typography.scss +55 -0
- package/scss/daff-util.scss +21 -0
- package/scss/interactions/_index.scss +1 -0
- package/scss/interactions/mouse/_clickable.scss +22 -0
- package/scss/layout/_breakpoint.scss +21 -0
- package/scss/layout/_index.scss +2 -0
- package/scss/layout/_variables.scss +13 -0
- package/scss/theme.scss +77 -0
- package/scss/theming/README.md +59 -0
- package/scss/theming/_color-palettes.scss +116 -0
- package/scss/theming/_configure-palette.scss +20 -0
- package/scss/theming/_configure-theme.scss +68 -0
- package/scss/theming/_get-color.scss +18 -0
- package/scss/theming/_index.scss +6 -0
- package/scss/theming/_theme-css-variables.scss +43 -0
- package/scss/theming/contrast/_index.scss +5 -0
- package/scss/theming/contrast/contrast-ratio/contrast-ratio.scss +11 -0
- package/scss/theming/contrast/contrast-ratio/contrast-ratio.spec.scss +0 -0
- package/scss/theming/contrast/luminance/_variables.scss +268 -0
- package/scss/theming/contrast/luminance/luminance.scss +19 -0
- package/scss/theming/contrast/luminance/luminance.spec.scss +24 -0
- package/scss/theming/contrast/text-contrast/text-contrast.scss +34 -0
- package/scss/theming/contrast/text-contrast/text-contrast.spec.scss +0 -0
- package/scss/theming/illuminate/illuminate.scss +145 -0
- package/scss/theming/illuminate/illuminate.spec.scss +15 -0
- package/scss/theming/prebuilt/internal-theme.scss +13 -0
- package/scss/typography/README.md +88 -0
- package/scss/typography/_classes.scss +20 -0
- package/scss/typography/_index.scss +5 -0
- package/scss/typography/mixins/_font-weight.scss +18 -0
- package/scss/typography/mixins/_sizes.scss +84 -0
- package/scss/typography/mixins/_text-transform.scss +4 -0
- package/scss/typography/mixins/_text-truncate.scss +23 -0
- package/scss/typography/utilities/_index.scss +1 -0
- package/scss/typography/utilities/_variables.scss +12 -0
- package/src/atoms/button/button-theme-variants/button.scss +35 -0
- package/src/atoms/button/button-theme-variants/focus.scss +6 -0
- package/src/atoms/button/button-theme-variants/icon.scss +21 -0
- package/src/atoms/button/button-theme-variants/raised.scss +56 -0
- package/src/atoms/button/button-theme-variants/stroked.scss +36 -0
- package/src/atoms/button/button-theme-variants/underline.scss +9 -0
- package/src/atoms/button/button-theme.scss +570 -0
- package/src/atoms/form/error-message/error-message-theme.scss +7 -0
- package/src/atoms/form/form-field/form-field/form-field-theme.scss +38 -0
- package/src/atoms/form/input/input-theme.scss +16 -0
- package/src/atoms/form/radio/radio.scss +0 -0
- package/src/atoms/form/select/select/select-theme.scss +19 -0
- package/src/atoms/loading-icon/loading-icon-theme.scss +57 -0
- package/src/atoms/progress-indicator/progress-indicator-theme.scss +60 -0
- package/src/molecules/accordion/accordion-item/accordion-item-theme.scss +12 -0
- package/src/molecules/article/article/_stops-article-cascade.scss +7 -0
- package/src/molecules/article/article/article-theme.scss +78 -0
- package/src/molecules/callout/callout-theme.scss +59 -0
- package/src/molecules/card/card/card-theme-variants/basic-card.scss +6 -0
- package/src/molecules/card/card/card-theme-variants/linkable-card.scss +23 -0
- package/src/molecules/card/card/card-theme-variants/stroked-card.scss +3 -0
- package/src/molecules/card/card/card-theme.scss +186 -0
- package/src/molecules/hero/hero-theme.scss +59 -0
- package/src/molecules/list/list/list-theme.scss +68 -0
- package/src/molecules/media-gallery/media-gallery-theme.scss +20 -0
- package/src/molecules/modal/modal-theme.scss +9 -0
- package/src/molecules/navbar/navbar-theme.scss +57 -0
- package/src/molecules/paginator/paginator-theme.scss +72 -0
- package/src/molecules/sidebar/sidebar/sidebar-theme.scss +13 -0
- package/src/molecules/sidebar/sidebar-viewport/sidebar-viewport-theme.scss +11 -0
- package/daff-global.scss +0 -2
- package/daff-theme.scss +0 -3634
- package/daff-typography.scss +0 -505
- package/daff-util.scss +0 -377
@@ -0,0 +1,60 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../scss/core';
|
3
|
+
@use '../../../scss/theming';
|
4
|
+
|
5
|
+
@mixin daff-progress-indicator-theme($theme) {
|
6
|
+
$primary: map.get($theme, primary);
|
7
|
+
$secondary: map.get($theme, secondary);
|
8
|
+
$tertiary: map.get($theme, tertiary);
|
9
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
10
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
11
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
12
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
13
|
+
|
14
|
+
.daff-progress-indicator {
|
15
|
+
$root: &;
|
16
|
+
background: rgba($base-contrast, 0.1);
|
17
|
+
|
18
|
+
&.daff-primary {
|
19
|
+
#{$root}__fill {
|
20
|
+
background: theming.daff-color($primary);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
&.daff-secondary {
|
25
|
+
#{$root}__fill {
|
26
|
+
background: theming.daff-color($secondary);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
&.daff-tertiary {
|
31
|
+
#{$root}__fill {
|
32
|
+
background: theming.daff-color($tertiary);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
&.daff-theme {
|
37
|
+
#{$root}__fill {
|
38
|
+
background: $base;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
&.daff-theme-contrast {
|
43
|
+
#{$root}__fill {
|
44
|
+
background: $base-contrast;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
&.daff-black {
|
49
|
+
#{$root}__fill {
|
50
|
+
background: $black;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
&.daff-white {
|
55
|
+
#{$root}__fill {
|
56
|
+
background: $white;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../../scss/core';
|
3
|
+
@use '../../../../scss/theming';
|
4
|
+
|
5
|
+
@mixin daff-accordion-item-theme($theme) {
|
6
|
+
$gray: core.daff-map-deep-get($theme, 'core.gray');
|
7
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
8
|
+
|
9
|
+
.daff-accordion-item {
|
10
|
+
border-bottom: 1px solid theming.daff-illuminate($base, $gray, 2);
|
11
|
+
}
|
12
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use 'stops-article-cascade' as *;
|
3
|
+
@use '../../../../scss/core';
|
4
|
+
@use '../../../../scss/theming';
|
5
|
+
|
6
|
+
@mixin daff-article-theme($theme) {
|
7
|
+
$primary: map.get($theme, primary);
|
8
|
+
$secondary: map.get($theme, secondary);
|
9
|
+
$tertiary: map.get($theme, tertiary);
|
10
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
11
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
12
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
13
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
14
|
+
$gray: core.daff-map-deep-get($theme, 'core.gray');
|
15
|
+
|
16
|
+
$text-color: theming.daff-illuminate($base-contrast, $gray, 2);
|
17
|
+
$table-border-color: theming.daff-illuminate($base, $gray, 2);
|
18
|
+
|
19
|
+
.daff-article {
|
20
|
+
&__meta {
|
21
|
+
color: theming.daff-illuminate($base-contrast, $gray, 3);
|
22
|
+
}
|
23
|
+
|
24
|
+
@include stopsArticleCascade(a) {
|
25
|
+
color: theming.daff-color($primary);
|
26
|
+
}
|
27
|
+
|
28
|
+
@include stopsArticleCascade(h1, h2, h3, h4, h5, h6) {
|
29
|
+
color: $text-color;
|
30
|
+
}
|
31
|
+
|
32
|
+
@include stopsArticleCascade(p) {
|
33
|
+
color: $text-color;
|
34
|
+
}
|
35
|
+
|
36
|
+
pre {
|
37
|
+
background: rgba(theming.daff-illuminate($base, $gray, 2), 0.3);
|
38
|
+
border: 1px solid rgba(theming.daff-illuminate($base, $gray, 2), 0.6);
|
39
|
+
color: $base-contrast;
|
40
|
+
|
41
|
+
code {
|
42
|
+
background: none;
|
43
|
+
border: none;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
code {
|
48
|
+
background: rgba(theming.daff-illuminate($base, $gray, 2), 0.5);
|
49
|
+
color: $base-contrast;
|
50
|
+
}
|
51
|
+
|
52
|
+
hr {
|
53
|
+
background: theming.daff-illuminate($base, $gray, 2);
|
54
|
+
}
|
55
|
+
|
56
|
+
blockquote {
|
57
|
+
background: rgba(theming.daff-color($primary), 0.1);
|
58
|
+
border-left: 4px solid theming.daff-illuminate($base, $primary, 5);
|
59
|
+
color: $base-contrast;
|
60
|
+
|
61
|
+
code {
|
62
|
+
background: rgba(theming.daff-color($primary), 0.15);
|
63
|
+
color: $base-contrast;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
table {
|
68
|
+
th {
|
69
|
+
background: theming.daff-illuminate($base, $gray, 1);
|
70
|
+
border: 1px solid $table-border-color;
|
71
|
+
}
|
72
|
+
|
73
|
+
td {
|
74
|
+
border: 1px solid $table-border-color;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../scss/core';
|
3
|
+
@use '../../../scss/theming';
|
4
|
+
|
5
|
+
@mixin daff-callout-theme-variant($color) {
|
6
|
+
background: $color;
|
7
|
+
color: theming.daff-text-contrast($color);
|
8
|
+
}
|
9
|
+
|
10
|
+
@mixin daff-callout-theme($theme) {
|
11
|
+
$primary: map.get($theme, primary);
|
12
|
+
$secondary: map.get($theme, secondary);
|
13
|
+
$tertiary: map.get($theme, tertiary);
|
14
|
+
$gray: core.daff-map-deep-get($theme, 'core.gray');
|
15
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
16
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
17
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
18
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
19
|
+
|
20
|
+
.daff-callout {
|
21
|
+
@include daff-callout-theme-variant(
|
22
|
+
theming.daff-illuminate($base, $gray, 1)
|
23
|
+
);
|
24
|
+
|
25
|
+
&.daff-primary {
|
26
|
+
@include daff-callout-theme-variant(
|
27
|
+
theming.daff-color($primary)
|
28
|
+
);
|
29
|
+
}
|
30
|
+
|
31
|
+
&.daff-secondary {
|
32
|
+
@include daff-callout-theme-variant(
|
33
|
+
theming.daff-color($secondary)
|
34
|
+
);
|
35
|
+
}
|
36
|
+
|
37
|
+
&.daff-tertiary {
|
38
|
+
@include daff-callout-theme-variant(
|
39
|
+
theming.daff-color($tertiary)
|
40
|
+
);
|
41
|
+
}
|
42
|
+
|
43
|
+
&.daff-theme {
|
44
|
+
@include daff-callout-theme-variant($base);
|
45
|
+
}
|
46
|
+
|
47
|
+
&.daff-theme-contrast {
|
48
|
+
@include daff-callout-theme-variant($base-contrast);
|
49
|
+
}
|
50
|
+
|
51
|
+
&.daff-black {
|
52
|
+
@include daff-callout-theme-variant($black);
|
53
|
+
}
|
54
|
+
|
55
|
+
&.daff-white {
|
56
|
+
@include daff-callout-theme-variant($white);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
@use '../../../../../scss/theming';
|
2
|
+
|
3
|
+
@mixin daff-linkable-card-theme-variant(
|
4
|
+
$hover-color,
|
5
|
+
$active-color,
|
6
|
+
$shadow-color
|
7
|
+
) {
|
8
|
+
&:hover,
|
9
|
+
&:focus {
|
10
|
+
background: $hover-color;
|
11
|
+
color: theming.daff-text-contrast($hover-color);
|
12
|
+
}
|
13
|
+
|
14
|
+
&:focus {
|
15
|
+
outline: none;
|
16
|
+
box-shadow: 0 0 0 4px rgba($shadow-color, 0.3);
|
17
|
+
}
|
18
|
+
|
19
|
+
&:active {
|
20
|
+
background: $active-color;
|
21
|
+
color: theming.daff-text-contrast($active-color);
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,186 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../../scss/core';
|
3
|
+
@use '../../../../scss/theming';
|
4
|
+
@use './card-theme-variants/basic-card' as basic;
|
5
|
+
@use './card-theme-variants/stroked-card' as stroked;
|
6
|
+
@use './card-theme-variants//linkable-card' as linkable;
|
7
|
+
|
8
|
+
@mixin daff-card-theme($theme) {
|
9
|
+
$primary: map.get($theme, primary);
|
10
|
+
$secondary: map.get($theme, secondary);
|
11
|
+
$tertiary: map.get($theme, tertiary);
|
12
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
13
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
14
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
15
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
16
|
+
$gray: core.daff-map-deep-get($theme, 'core.gray');
|
17
|
+
|
18
|
+
.daff-card {
|
19
|
+
$root: &;
|
20
|
+
@include basic.daff-basic-card-theme-variant(
|
21
|
+
theming.daff-illuminate($base, $gray, 1)
|
22
|
+
);
|
23
|
+
|
24
|
+
&.daff-primary {
|
25
|
+
@include basic.daff-basic-card-theme-variant(
|
26
|
+
theming.daff-color($primary)
|
27
|
+
);
|
28
|
+
}
|
29
|
+
|
30
|
+
&.daff-secondary {
|
31
|
+
@include basic.daff-basic-card-theme-variant(
|
32
|
+
theming.daff-color($secondary)
|
33
|
+
);
|
34
|
+
}
|
35
|
+
|
36
|
+
&.daff-tertiary {
|
37
|
+
@include basic.daff-basic-card-theme-variant(
|
38
|
+
theming.daff-color($tertiary)
|
39
|
+
);
|
40
|
+
}
|
41
|
+
|
42
|
+
&.daff-theme {
|
43
|
+
@include basic.daff-basic-card-theme-variant($base);
|
44
|
+
}
|
45
|
+
|
46
|
+
&.daff-theme-contrast {
|
47
|
+
@include basic.daff-basic-card-theme-variant($base-contrast);
|
48
|
+
}
|
49
|
+
|
50
|
+
&.daff-black {
|
51
|
+
@include basic.daff-basic-card-theme-variant($black);
|
52
|
+
}
|
53
|
+
|
54
|
+
&.daff-white {
|
55
|
+
@include basic.daff-basic-card-theme-variant($white);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.daff-raised-card {
|
60
|
+
box-shadow: 0 6px 12px -4px rgba($black, 0.12),
|
61
|
+
0 4px 8px -2px rgba($black, 0.06);
|
62
|
+
}
|
63
|
+
|
64
|
+
.daff-stroked-card {
|
65
|
+
@include stroked.daff-stroked-card-theme-variant(
|
66
|
+
theming.daff-illuminate($base, $gray, 2)
|
67
|
+
);
|
68
|
+
|
69
|
+
&.daff-primary {
|
70
|
+
@include stroked.daff-stroked-card-theme-variant(
|
71
|
+
theming.daff-illuminate($base-contrast, $primary, 3)
|
72
|
+
);
|
73
|
+
}
|
74
|
+
|
75
|
+
&.daff-secondary {
|
76
|
+
@include stroked.daff-stroked-card-theme-variant(
|
77
|
+
theming.daff-illuminate($base-contrast, $secondary, 3)
|
78
|
+
);
|
79
|
+
}
|
80
|
+
|
81
|
+
&.daff-tertiary {
|
82
|
+
@include stroked.daff-stroked-card-theme-variant(
|
83
|
+
theming.daff-illuminate($base-contrast, $tertiary, 3)
|
84
|
+
);
|
85
|
+
}
|
86
|
+
|
87
|
+
&.daff-theme {
|
88
|
+
@include stroked.daff-stroked-card-theme-variant(
|
89
|
+
theming.daff-illuminate($base, $gray, 2)
|
90
|
+
);
|
91
|
+
}
|
92
|
+
|
93
|
+
&.daff-theme-contrast {
|
94
|
+
@include stroked.daff-stroked-card-theme-variant(
|
95
|
+
theming.daff-illuminate($base-contrast, $gray, 2)
|
96
|
+
);
|
97
|
+
}
|
98
|
+
|
99
|
+
&.daff-black {
|
100
|
+
@include stroked.daff-stroked-card-theme-variant(
|
101
|
+
theming.daff-color($gray, 90)
|
102
|
+
);
|
103
|
+
}
|
104
|
+
|
105
|
+
&.daff-white {
|
106
|
+
@include stroked.daff-stroked-card-theme-variant(
|
107
|
+
theming.daff-color($gray, 20)
|
108
|
+
);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
a {
|
113
|
+
&.daff-card {
|
114
|
+
@include linkable.daff-linkable-card-theme-variant(
|
115
|
+
theming.daff-illuminate($base, $gray, 2),
|
116
|
+
theming.daff-illuminate($base, $gray, 3),
|
117
|
+
theming.daff-color($gray)
|
118
|
+
);
|
119
|
+
|
120
|
+
&.daff-primary {
|
121
|
+
@include linkable.daff-linkable-card-theme-variant(
|
122
|
+
theming.daff-color($primary, 70),
|
123
|
+
theming.daff-color($primary, 80),
|
124
|
+
theming.daff-color($primary)
|
125
|
+
);
|
126
|
+
}
|
127
|
+
|
128
|
+
&.daff-secondary {
|
129
|
+
@include linkable.daff-linkable-card-theme-variant(
|
130
|
+
theming.daff-color($secondary, 70),
|
131
|
+
theming.daff-color($secondary, 80),
|
132
|
+
theming.daff-color($secondary)
|
133
|
+
);
|
134
|
+
}
|
135
|
+
|
136
|
+
&.daff-tertiary {
|
137
|
+
@include linkable.daff-linkable-card-theme-variant(
|
138
|
+
theming.daff-color($tertiary, 70),
|
139
|
+
theming.daff-color($tertiary, 80),
|
140
|
+
theming.daff-color($tertiary)
|
141
|
+
);
|
142
|
+
}
|
143
|
+
|
144
|
+
&.daff-theme {
|
145
|
+
@include linkable.daff-linkable-card-theme-variant(
|
146
|
+
theming.daff-illuminate($base, $gray, 1),
|
147
|
+
theming.daff-illuminate($base, $gray, 2),
|
148
|
+
theming.daff-color($gray)
|
149
|
+
);
|
150
|
+
}
|
151
|
+
|
152
|
+
&.daff-theme-contrast {
|
153
|
+
@include linkable.daff-linkable-card-theme-variant(
|
154
|
+
theming.daff-illuminate($base-contrast, $gray, 1),
|
155
|
+
theming.daff-illuminate($base-contrast, $gray, 2),
|
156
|
+
theming.daff-color($gray)
|
157
|
+
);
|
158
|
+
}
|
159
|
+
|
160
|
+
&.daff-black {
|
161
|
+
@include linkable.daff-linkable-card-theme-variant(
|
162
|
+
theming.daff-color($gray, 100),
|
163
|
+
theming.daff-color($gray, 90),
|
164
|
+
theming.daff-color($gray)
|
165
|
+
);
|
166
|
+
}
|
167
|
+
|
168
|
+
&.daff-white {
|
169
|
+
@include linkable.daff-linkable-card-theme-variant(
|
170
|
+
theming.daff-color($gray, 10),
|
171
|
+
theming.daff-color($gray, 20),
|
172
|
+
theming.daff-color($gray)
|
173
|
+
);
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
&.daff-raised-card {
|
178
|
+
&:hover,
|
179
|
+
&:focus,
|
180
|
+
&:active {
|
181
|
+
box-shadow: 0 16px 32px -4px rgba($black, 0.12),
|
182
|
+
0 8px 12px -2px rgba($black, 0.06);
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../scss/core';
|
3
|
+
@use '../../../scss/theming';
|
4
|
+
|
5
|
+
@mixin daff-hero-theme-variant($color) {
|
6
|
+
background: $color;
|
7
|
+
color: theming.daff-text-contrast($color);
|
8
|
+
}
|
9
|
+
|
10
|
+
@mixin daff-hero-theme($theme) {
|
11
|
+
$primary: map.get($theme, primary);
|
12
|
+
$secondary: map.get($theme, secondary);
|
13
|
+
$tertiary: map.get($theme, tertiary);
|
14
|
+
$gray: core.daff-map-deep-get($theme, 'core.gray');
|
15
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
16
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
17
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
18
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
19
|
+
|
20
|
+
.daff-hero {
|
21
|
+
@include daff-hero-theme-variant(
|
22
|
+
theming.daff-illuminate($base, $gray, 1)
|
23
|
+
);
|
24
|
+
|
25
|
+
&.daff-primary {
|
26
|
+
@include daff-hero-theme-variant(
|
27
|
+
theming.daff-color($primary)
|
28
|
+
);
|
29
|
+
}
|
30
|
+
|
31
|
+
&.daff-secondary {
|
32
|
+
@include daff-hero-theme-variant(
|
33
|
+
theming.daff-color($secondary)
|
34
|
+
);
|
35
|
+
}
|
36
|
+
|
37
|
+
&.daff-tertiary {
|
38
|
+
@include daff-hero-theme-variant(
|
39
|
+
theming.daff-color($tertiary)
|
40
|
+
);
|
41
|
+
}
|
42
|
+
|
43
|
+
&.daff-theme {
|
44
|
+
@include daff-hero-theme-variant($base);
|
45
|
+
}
|
46
|
+
|
47
|
+
&.daff-theme-contrast {
|
48
|
+
@include daff-hero-theme-variant($base-contrast);
|
49
|
+
}
|
50
|
+
|
51
|
+
&.daff-black {
|
52
|
+
@include daff-hero-theme-variant($black);
|
53
|
+
}
|
54
|
+
|
55
|
+
&.daff-white {
|
56
|
+
@include daff-hero-theme-variant($white);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,68 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../../scss/core';
|
3
|
+
@use '../../../../scss/theming';
|
4
|
+
|
5
|
+
@mixin daff-list-theme($theme) {
|
6
|
+
$gray: core.daff-map-deep-get($theme, 'core.gray');
|
7
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
8
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
9
|
+
|
10
|
+
.daff-list {
|
11
|
+
.daff-list-item {
|
12
|
+
&__content {
|
13
|
+
*:nth-child(1) { /* stylelint-disable-line scss/selector-nest-combinators */
|
14
|
+
color: $base-contrast;
|
15
|
+
}
|
16
|
+
|
17
|
+
*:nth-child(n + 2) { /* stylelint-disable-line scss/selector-nest-combinators */
|
18
|
+
color: theming.daff-illuminate($base-contrast, $gray, 3);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
// link and navigation deprecated in v1.0.0
|
24
|
+
&--link,
|
25
|
+
&--navigation {
|
26
|
+
a {
|
27
|
+
&:hover {
|
28
|
+
color: theming.daff-color($gray, 80);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
// deprecated in v1.0.0
|
34
|
+
&--navigation {
|
35
|
+
.daff-list-item {
|
36
|
+
&:hover {
|
37
|
+
background-color: theming.daff-illuminate($base, $gray, 1);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
// deprecated in v1.0.0
|
43
|
+
&--multi-line {
|
44
|
+
.daff-list-item {
|
45
|
+
&__content {
|
46
|
+
*:nth-child(1) { /* stylelint-disable-line scss/selector-nest-combinators */
|
47
|
+
color: $base-contrast;
|
48
|
+
}
|
49
|
+
|
50
|
+
*:nth-child(n + 2) { /* stylelint-disable-line scss/selector-nest-combinators */
|
51
|
+
color: theming.daff-illuminate($base-contrast, $gray, 3);
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.daff-nav-list {
|
59
|
+
.daff-list-item {
|
60
|
+
background-color: $base;
|
61
|
+
transition: background-color 150ms;
|
62
|
+
|
63
|
+
&:hover {
|
64
|
+
background-color: theming.daff-illuminate($base, $gray, 1);
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../scss/theming';
|
3
|
+
@use '../../../scss/core';
|
4
|
+
|
5
|
+
@mixin daff-media-gallery-theme($theme) {
|
6
|
+
$gray: core.daff-map-deep-get($theme, 'core.gray');
|
7
|
+
|
8
|
+
.daff-media-gallery {
|
9
|
+
$root: &;
|
10
|
+
|
11
|
+
.daff-thumbnail {
|
12
|
+
border: 1px solid transparent;
|
13
|
+
transition: border 150ms;
|
14
|
+
|
15
|
+
&--selected {
|
16
|
+
border: 1px solid theming.daff-color($gray);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
@use 'sass:map';
|
2
|
+
@use '../../../scss/core';
|
3
|
+
@use '../../../scss/theming';
|
4
|
+
|
5
|
+
@mixin daff-navbar-theme-variant($color) {
|
6
|
+
background: $color;
|
7
|
+
color: theming.daff-text-contrast($color);
|
8
|
+
}
|
9
|
+
|
10
|
+
@mixin daff-navbar-theme($theme) {
|
11
|
+
$primary: map.get($theme, primary);
|
12
|
+
$secondary: map.get($theme, secondary);
|
13
|
+
$tertiary: map.get($theme, tertiary);
|
14
|
+
$gray: core.daff-map-deep-get($theme, 'core.gray');
|
15
|
+
$base: core.daff-map-deep-get($theme, 'core.base');
|
16
|
+
$base-contrast: core.daff-map-deep-get($theme, 'core.base-contrast');
|
17
|
+
$white: core.daff-map-deep-get($theme, 'core.white');
|
18
|
+
$black: core.daff-map-deep-get($theme, 'core.black');
|
19
|
+
|
20
|
+
.daff-navbar {
|
21
|
+
@include daff-navbar-theme-variant(
|
22
|
+
theming.daff-illuminate($base, $gray, 1)
|
23
|
+
);
|
24
|
+
|
25
|
+
&--raised {
|
26
|
+
box-shadow: 0 4px 10px rgba($black, 0.08);
|
27
|
+
}
|
28
|
+
|
29
|
+
&.daff-primary {
|
30
|
+
@include daff-navbar-theme-variant(theming.daff-color($primary));
|
31
|
+
}
|
32
|
+
|
33
|
+
&.daff-secondary {
|
34
|
+
@include daff-navbar-theme-variant(theming.daff-color($secondary));
|
35
|
+
}
|
36
|
+
|
37
|
+
&.daff-tertiary {
|
38
|
+
@include daff-navbar-theme-variant(theming.daff-color($tertiary));
|
39
|
+
}
|
40
|
+
|
41
|
+
&.daff-black {
|
42
|
+
@include daff-navbar-theme-variant($black);
|
43
|
+
}
|
44
|
+
|
45
|
+
&.daff-white {
|
46
|
+
@include daff-navbar-theme-variant($white);
|
47
|
+
}
|
48
|
+
|
49
|
+
&.daff-theme {
|
50
|
+
@include daff-navbar-theme-variant($base);
|
51
|
+
}
|
52
|
+
|
53
|
+
&.daff-theme-contrast {
|
54
|
+
@include daff-navbar-theme-variant($base-contrast);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|