@internetstiftelsen/styleguide 4.1.13 → 5.0.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 +18 -18
- package/src/app.scss +85 -88
- package/src/atoms/archive-link/archive-link.scss +24 -17
- package/src/atoms/button/_button.scss +209 -203
- package/src/atoms/checkbox/_checkbox.scss +33 -26
- package/src/atoms/file/_file.scss +23 -13
- package/src/atoms/grid-toggle/_grid-toggle.scss +11 -6
- package/src/atoms/height-limiter/_height-limiter.scss +21 -14
- package/src/atoms/input/_input.scss +23 -16
- package/src/atoms/label/label.scss +11 -5
- package/src/atoms/logotype/_logotype.scss +3 -2
- package/src/atoms/main-menu/_main-menu.scss +67 -60
- package/src/atoms/meta/_meta.scss +44 -33
- package/src/atoms/meta/meta.config.js +1 -1
- package/src/atoms/paging/_paging.scss +27 -21
- package/src/atoms/password-toggle/_password-toggle.scss +9 -6
- package/src/atoms/progress/_progress.scss +19 -11
- package/src/atoms/quote/_quote.scss +17 -10
- package/src/atoms/radiobutton/_radiobutton.scss +33 -26
- package/src/atoms/range/_range.scss +46 -39
- package/src/atoms/rating/_rating.scss +11 -4
- package/src/atoms/ribbon/_ribbon.scss +16 -9
- package/src/atoms/select/_select.scss +18 -10
- package/src/atoms/skip/_skip.scss +9 -6
- package/src/atoms/spinner/_spinner.scss +4 -3
- package/src/atoms/tag/_tag.scss +26 -19
- package/src/atoms/textarea/_textarea.scss +22 -13
- package/src/atoms/tooltip/_tooltip.scss +28 -21
- package/src/base/_grid.scss +4 -4
- package/src/base/_normalize.scss +29 -27
- package/src/base/fonts/_fonts.scss +1 -1
- package/src/components.js +0 -2
- package/src/configurations/_bem.scss +10 -7
- package/src/configurations/_config.scss +11 -10
- package/src/configurations/_extends.scss +38 -34
- package/src/configurations/_functions.scss +23 -7
- package/src/configurations/_mixins.scss +23 -19
- package/src/configurations/_recaptcha.scss +2 -2
- package/src/configurations/_variables.scss +19 -25
- package/src/configurations/_wordpress.scss +64 -57
- package/src/configurations/colors/_background-colors.scss +3 -2
- package/src/configurations/colors/_colors-functions.scss +41 -39
- package/src/configurations/colors/_colors.scss +1 -1
- package/src/configurations/colors/_text-colors.scss +3 -2
- package/src/configurations/colors/_wordpress-colors.scss +3 -2
- package/src/configurations/forms/_fields.scss +28 -23
- package/src/configurations/grid/_grid.scss +33 -28
- package/src/configurations/typography/_typography.scss +113 -105
- package/src/configurations/typography/readme.md +1 -1
- package/src/globals.scss +16 -18
- package/src/isolated-footer.scss +25 -25
- package/src/molecules/alert/_alert.scss +44 -35
- package/src/molecules/breadcrumb/_breadcrumb.scss +43 -35
- package/src/molecules/byline/_byline.scss +30 -21
- package/src/molecules/card/_card.scss +87 -77
- package/src/molecules/context-menu/_context-menu.scss +32 -15
- package/src/molecules/continue-video-guide/continue-video-guide.scss +37 -28
- package/src/molecules/cookie-disclaimer/cookie-disclaimer.scss +32 -23
- package/src/molecules/download/_download.scss +38 -30
- package/src/molecules/form-control/_form-control.scss +66 -58
- package/src/molecules/glider/_glider-course.scss +29 -23
- package/src/molecules/glider/_glider-hero.scss +112 -104
- package/src/molecules/glider/_glider.scss +36 -30
- package/src/molecules/icon-overlay/_icon-overlay.scss +29 -20
- package/src/molecules/info-box/_info-box.scss +31 -22
- package/src/molecules/input-group/_input-group.scss +23 -13
- package/src/molecules/modal/_modal.scss +77 -65
- package/src/molecules/multi-select/_multi-select.scss +44 -33
- package/src/molecules/natural-language-form/_natural-language-form.scss +33 -23
- package/src/molecules/overview-navigation/_overview-navigation.scss +54 -45
- package/src/molecules/readspeaker/_readspeaker.scss +1 -1
- package/src/molecules/share/_share.scss +23 -15
- package/src/molecules/submenu/_submenu.scss +77 -69
- package/src/molecules/system-error/_system-error.scss +26 -17
- package/src/molecules/table/_table.scss +50 -42
- package/src/molecules/teaser-news-list/_teaser-news-list.scss +21 -12
- package/src/organisms/accordion/_accordion.scss +59 -49
- package/src/organisms/domain-search/_domain-search.scss +54 -45
- package/src/organisms/event-listing-item/_event-listing-item.scss +36 -26
- package/src/organisms/features-box/_features-box.scss +30 -19
- package/src/organisms/filter/_filter.scss +15 -10
- package/src/organisms/footer/_footer.scss +119 -109
- package/src/organisms/header/_header.scss +24 -14
- package/src/organisms/hero/_hero--bbk.scss +50 -38
- package/src/organisms/hero/_hero--dynamic-headline.scss +49 -39
- package/src/organisms/hero/_hero.scss +222 -207
- package/src/organisms/hero/hero.config.js +2 -2
- package/src/organisms/mailchimp/_mailchimp.scss +52 -42
- package/src/organisms/mega-menu/_mega-menu.scss +55 -45
- package/src/organisms/members-service-product/_members-service-product.scss +29 -18
- package/src/organisms/members-service-product/members-service-product.config.js +5 -5
- package/src/organisms/podcast/_podcast-episodes.scss +85 -75
- package/src/organisms/podcast/_podcast-player.scss +73 -64
- package/src/organisms/schedule/_schedule.scss +92 -82
- package/src/organisms/search/_search.scss +68 -58
- package/src/organisms/search-result/_search-result.scss +50 -40
- package/src/organisms/sections/_sections.scss +41 -31
- package/src/organisms/tabs/_tabs.scss +58 -46
- package/src/organisms/timeline/_timeline.scss +92 -81
- package/src/organisms/video-guide/_video-guide.scss +148 -138
- package/src/pages/animate-footer/animate-footer.config.js +180 -1
- package/src/print.scss +1 -1
- package/src/structures/_article.scss +39 -28
- package/src/structures/_core-values.scss +14 -2
- package/src/structures/_manifest.scss +4 -4
- package/src/structures/_section.scss +32 -20
- package/src/structures/_site.scss +19 -7
- package/src/theme/_dark-mode.scss +14 -13
- package/src/theme/_theme.scss +28 -25
- package/src/utilities/_align.scss +1 -1
- package/src/utilities/_border.scss +5 -3
- package/src/utilities/_box-shadow.scss +5 -2
- package/src/utilities/_display.scss +1 -1
- package/src/utilities/_fill.scss +5 -4
- package/src/utilities/_flex.scss +1 -1
- package/src/utilities/_font-size.scss +6 -5
- package/src/utilities/_fonts.scss +6 -5
- package/src/utilities/_gutter.scss +3 -2
- package/src/utilities/_hide.scss +17 -15
- package/src/utilities/_icons.scss +37 -33
- package/src/utilities/_indent.scss +8 -6
- package/src/utilities/_links.scss +22 -18
- package/src/utilities/_lists.scss +19 -14
- package/src/utilities/_manifest.scss +27 -27
- package/src/utilities/_margin.scss +20 -17
- package/src/utilities/_misc.scss +3 -2
- package/src/utilities/_padding.scss +18 -15
- package/src/utilities/_position.scss +3 -2
- package/src/utilities/_show.scss +7 -6
- package/src/utilities/_text.scss +1 -1
- package/src/utilities/_vertical-align.scss +1 -1
- package/src/utilities/_wrap.scss +1 -1
- package/src/utilities/_z-index.scss +7 -6
- package/src/utilities/tab-highlighting/_tab-highlighting.scss +6 -5
- package/src/vendor/baseline/_plumber.scss +14 -13
- package/src/vendor/grid/_breakpoints.scss +17 -13
- package/src/vendor/grid/_flex.scss +8 -4
- package/src/vendor/grid/_functions.scss +9 -6
- package/src/vendor/grid/_grid-framework.scss +14 -9
- package/src/vendor/grid/_grid.scss +19 -16
- package/src/vendor/grid/_spacing.scss +8 -3
- package/src/atoms/toggle-high-contrast/readme.md +0 -6
- package/src/atoms/toggle-high-contrast/toggle-high-contrast.config.js +0 -8
- package/src/atoms/toggle-high-contrast/toggle-high-contrast.js +0 -10
- package/src/molecules/modal/modal-graph.js +0 -40
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
@charset
|
|
2
|
-
|
|
3
|
-
@
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/typography/typography';
|
|
4
|
+
@use '../../configurations/bem' as bem;
|
|
5
|
+
@use '../../configurations/config' as config;
|
|
6
|
+
@use '../../configurations/variables' as var;
|
|
7
|
+
@use '../../configurations/functions' as func;
|
|
8
|
+
@use '../../configurations/colors/colors' as colors;
|
|
9
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
10
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
11
|
+
|
|
12
|
+
@include mixin.molecule(info-box) {
|
|
13
|
+
margin: func.rhythm(4) 0;
|
|
14
|
+
padding: func.rhythm(4);
|
|
15
|
+
border-top: func.to_rem(4px) solid colors.$color-lemon;
|
|
16
|
+
border-radius: var.$border-radius;
|
|
8
17
|
background-color: var(--snow-color);
|
|
9
18
|
|
|
10
19
|
> p,
|
|
@@ -15,38 +24,38 @@
|
|
|
15
24
|
}
|
|
16
25
|
}
|
|
17
26
|
|
|
18
|
-
@include bp-up(md) {
|
|
19
|
-
padding-right: rhythm(5.5);
|
|
20
|
-
padding-left: rhythm(5.5);
|
|
27
|
+
@include breakpoint.bp-up(md) {
|
|
28
|
+
padding-right: func.rhythm(5.5);
|
|
29
|
+
padding-left: func.rhythm(5.5);
|
|
21
30
|
}
|
|
22
31
|
|
|
23
|
-
@include m(big) {
|
|
24
|
-
border-color:
|
|
32
|
+
@include bem.m(big) {
|
|
33
|
+
border-color: colors.$color-jade;
|
|
25
34
|
|
|
26
35
|
p {
|
|
27
36
|
@extend %preamble;
|
|
28
37
|
}
|
|
29
38
|
}
|
|
30
39
|
|
|
31
|
-
@include m(basic) {
|
|
40
|
+
@include bem.m(basic) {
|
|
32
41
|
margin-top: 0;
|
|
33
|
-
padding: rhythm(2);
|
|
42
|
+
padding: func.rhythm(2);
|
|
34
43
|
border-top: 0;
|
|
35
44
|
border-color: none;
|
|
36
45
|
|
|
37
|
-
@include bp-up(md) {
|
|
38
|
-
padding: rhythm(4);
|
|
46
|
+
@include breakpoint.bp-up(md) {
|
|
47
|
+
padding: func.rhythm(4);
|
|
39
48
|
}
|
|
40
49
|
|
|
41
|
-
@include bp-up(lg) {
|
|
42
|
-
padding-top: rhythm(6);
|
|
43
|
-
padding-right: rhythm(8);
|
|
44
|
-
padding-bottom: rhythm(6);
|
|
45
|
-
padding-left: rhythm(8);
|
|
50
|
+
@include breakpoint.bp-up(lg) {
|
|
51
|
+
padding-top: func.rhythm(6);
|
|
52
|
+
padding-right: func.rhythm(8);
|
|
53
|
+
padding-bottom: func.rhythm(6);
|
|
54
|
+
padding-left: func.rhythm(8);
|
|
46
55
|
}
|
|
47
56
|
}
|
|
48
57
|
|
|
49
|
-
@include m(custom-border) {
|
|
58
|
+
@include bem.m(custom-border) {
|
|
50
59
|
border-color: var(--m-info-box-border-color);
|
|
51
60
|
}
|
|
52
61
|
}
|
|
@@ -1,24 +1,34 @@
|
|
|
1
|
-
@charset
|
|
2
|
-
|
|
3
|
-
@
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/bem' as bem;
|
|
4
|
+
@use '../../configurations/config' as config;
|
|
5
|
+
@use '../../configurations/variables' as var;
|
|
6
|
+
@use '../../configurations/functions' as func;
|
|
7
|
+
@use '../../configurations/colors/colors' as colors;
|
|
8
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
9
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
10
|
+
@use '../../vendor/grid/grid' as grid;
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@include mixin.molecule(input-group) {
|
|
4
14
|
display: flex;
|
|
5
15
|
align-items: stretch;
|
|
6
16
|
|
|
7
|
-
@include e(label) {
|
|
17
|
+
@include bem.e(label) {
|
|
8
18
|
display: flex;
|
|
9
19
|
align-items: center;
|
|
10
|
-
padding: 0 rhythm(1);
|
|
11
|
-
background:
|
|
12
|
-
border: 1px solid
|
|
13
|
-
font-size:
|
|
20
|
+
padding: 0 func.rhythm(1);
|
|
21
|
+
background: colors.$color-concrete;
|
|
22
|
+
border: 1px solid colors.$color-granit;
|
|
23
|
+
font-size: func.to_rem(16px);
|
|
14
24
|
|
|
15
25
|
&:first-child {
|
|
16
|
-
border-radius:
|
|
26
|
+
border-radius: var.$border-radius 0 0 var.$border-radius;
|
|
17
27
|
border-right: none;
|
|
18
28
|
}
|
|
19
29
|
|
|
20
30
|
&:last-child {
|
|
21
|
-
border-radius: 0
|
|
31
|
+
border-radius: 0 var.$border-radius var.$border-radius 0;
|
|
22
32
|
border-left: none;
|
|
23
33
|
}
|
|
24
34
|
|
|
@@ -28,13 +38,13 @@
|
|
|
28
38
|
}
|
|
29
39
|
}
|
|
30
40
|
|
|
31
|
-
@include atom(input) {
|
|
41
|
+
@include mixin.atom(input) {
|
|
32
42
|
&:first-child {
|
|
33
|
-
border-radius:
|
|
43
|
+
border-radius: var.$border-radius 0 0 var.$border-radius;
|
|
34
44
|
}
|
|
35
45
|
|
|
36
46
|
&:last-child {
|
|
37
|
-
border-radius: 0
|
|
47
|
+
border-radius: 0 var.$border-radius var.$border-radius 0;
|
|
38
48
|
}
|
|
39
49
|
|
|
40
50
|
&:not(:first-child):not(:last-child) {
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
@
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/extends';
|
|
4
|
+
@use '../../configurations/bem' as bem;
|
|
5
|
+
@use '../../configurations/config' as config;
|
|
6
|
+
@use '../../configurations/variables' as var;
|
|
7
|
+
@use '../../configurations/functions' as func;
|
|
8
|
+
@use '../../configurations/colors/colors' as colors;
|
|
9
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
10
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
11
|
+
@use '../../vendor/grid/grid' as grid;
|
|
12
|
+
|
|
13
|
+
@include mixin.molecule(modal) {
|
|
2
14
|
display: flex;
|
|
3
15
|
position: fixed;
|
|
4
|
-
z-index: z_index(foreground);
|
|
16
|
+
z-index: func.z_index(foreground);
|
|
5
17
|
top: 0;
|
|
6
18
|
right: 0;
|
|
7
19
|
bottom: 0;
|
|
@@ -14,11 +26,11 @@
|
|
|
14
26
|
}
|
|
15
27
|
|
|
16
28
|
// Adjust close button position
|
|
17
|
-
@include m(has-overlay) {
|
|
29
|
+
@include bem.m(has-overlay) {
|
|
18
30
|
&::after {
|
|
19
31
|
content: '';
|
|
20
32
|
position: absolute;
|
|
21
|
-
z-index: z_index(foregroundMinus);
|
|
33
|
+
z-index: func.z_index(foregroundMinus);
|
|
22
34
|
top: 0;
|
|
23
35
|
right: 0;
|
|
24
36
|
bottom: 0;
|
|
@@ -27,49 +39,49 @@
|
|
|
27
39
|
}
|
|
28
40
|
}
|
|
29
41
|
|
|
30
|
-
@include e(container) {
|
|
42
|
+
@include bem.e(container) {
|
|
31
43
|
display: flex;
|
|
32
44
|
position: relative;
|
|
33
|
-
z-index: z_index(foreground);
|
|
45
|
+
z-index: func.z_index(foreground);
|
|
34
46
|
flex-direction: column;
|
|
35
47
|
width: 100%;
|
|
36
|
-
max-height: calc(100vh - #{rhythm(2)});
|
|
37
|
-
margin: rhythm(1);
|
|
38
|
-
padding: rhythm(4) rhythm(2) rhythm(4) rhythm(2);
|
|
48
|
+
max-height: calc(100vh - #{func.rhythm(2)});
|
|
49
|
+
margin: func.rhythm(1);
|
|
50
|
+
padding: func.rhythm(4) func.rhythm(2) func.rhythm(4) func.rhythm(2);
|
|
39
51
|
overflow-y: auto;
|
|
40
|
-
border-radius:
|
|
52
|
+
border-radius: var.$border-radius;
|
|
41
53
|
background: var(--snow-color);
|
|
42
54
|
|
|
43
55
|
> button {
|
|
44
56
|
position: absolute;
|
|
45
|
-
z-index: z_index(background);
|
|
46
|
-
top: rhythm(1);
|
|
47
|
-
right: rhythm(1);
|
|
57
|
+
z-index: func.z_index(background);
|
|
58
|
+
top: func.rhythm(1);
|
|
59
|
+
right: func.rhythm(1);
|
|
48
60
|
}
|
|
49
61
|
|
|
50
|
-
@include bp-up(sm) {
|
|
51
|
-
padding: rhythm(4) rhythm(4) rhythm(6) rhythm(4);
|
|
62
|
+
@include breakpoint.bp-up(sm) {
|
|
63
|
+
padding: func.rhythm(4) func.rhythm(4) func.rhythm(6) func.rhythm(4);
|
|
52
64
|
width: auto;
|
|
53
|
-
min-width:
|
|
65
|
+
min-width: func.to_rem(576px);
|
|
54
66
|
}
|
|
55
67
|
|
|
56
|
-
@include bp-up(md) {
|
|
57
|
-
padding: rhythm(8) rhythm(8) rhythm(6) rhythm(8);
|
|
68
|
+
@include breakpoint.bp-up(md) {
|
|
69
|
+
padding: func.rhythm(8) func.rhythm(8) func.rhythm(6) func.rhythm(8);
|
|
58
70
|
}
|
|
59
71
|
|
|
60
|
-
@include bp-up(lg) {
|
|
61
|
-
max-width:
|
|
72
|
+
@include breakpoint.bp-up(lg) {
|
|
73
|
+
max-width: func.to_rem(961px);
|
|
62
74
|
}
|
|
63
75
|
|
|
64
|
-
@include m(no-max-width) {
|
|
76
|
+
@include bem.m(no-max-width) {
|
|
65
77
|
max-width: none;
|
|
66
78
|
}
|
|
67
79
|
|
|
68
|
-
@include m(dynamic-width) {
|
|
80
|
+
@include bem.m(dynamic-width) {
|
|
69
81
|
width: 100%;
|
|
70
82
|
max-width: calc(100vw);
|
|
71
83
|
min-width: 0;
|
|
72
|
-
max-height: calc(100% - #{rhythm(2)});
|
|
84
|
+
max-height: calc(100% - #{func.rhythm(2)});
|
|
73
85
|
padding: 0;
|
|
74
86
|
overflow: auto;
|
|
75
87
|
|
|
@@ -79,64 +91,64 @@
|
|
|
79
91
|
}
|
|
80
92
|
}
|
|
81
93
|
|
|
82
|
-
@include bp-up(md) {
|
|
83
|
-
@include e(input-wrapper) {
|
|
94
|
+
@include breakpoint.bp-up(md) {
|
|
95
|
+
@include bem.e(input-wrapper) {
|
|
84
96
|
display: flex;
|
|
85
97
|
justify-content: space-between;
|
|
86
|
-
margin-bottom: rhythm(2);
|
|
98
|
+
margin-bottom: func.rhythm(2);
|
|
87
99
|
}
|
|
88
100
|
}
|
|
89
101
|
|
|
90
|
-
@include e(content) {
|
|
102
|
+
@include bem.e(content) {
|
|
91
103
|
position: relative;
|
|
92
|
-
margin-right: rhythm(2);
|
|
104
|
+
margin-right: func.rhythm(2);
|
|
93
105
|
|
|
94
|
-
@include bp-up(sm) {
|
|
106
|
+
@include breakpoint.bp-up(sm) {
|
|
95
107
|
margin-right: 0;
|
|
96
108
|
}
|
|
97
109
|
|
|
98
|
-
@include m(form-name) {
|
|
110
|
+
@include bem.m(form-name) {
|
|
99
111
|
flex: 0 0 45%;
|
|
100
112
|
}
|
|
101
113
|
|
|
102
|
-
@include m(form-lname) {
|
|
114
|
+
@include bem.m(form-lname) {
|
|
103
115
|
flex: 0 0 45%;
|
|
104
116
|
}
|
|
105
117
|
|
|
106
|
-
@include e(input-wrapper) {
|
|
118
|
+
@include bem.e(input-wrapper) {
|
|
107
119
|
display: flex;
|
|
108
120
|
justify-content: space-between;
|
|
109
|
-
margin-bottom: rhythm(2);
|
|
121
|
+
margin-bottom: func.rhythm(2);
|
|
110
122
|
}
|
|
111
123
|
|
|
112
|
-
@include bp-up(md) {
|
|
124
|
+
@include breakpoint.bp-up(md) {
|
|
113
125
|
|
|
114
|
-
@include m(form-email) {
|
|
115
|
-
margin-bottom: rhythm(2);
|
|
126
|
+
@include bem.m(form-email) {
|
|
127
|
+
margin-bottom: func.rhythm(2);
|
|
116
128
|
}
|
|
117
129
|
|
|
118
|
-
@include m(form-username) {
|
|
119
|
-
margin-bottom: rhythm(2);
|
|
130
|
+
@include bem.m(form-username) {
|
|
131
|
+
margin-bottom: func.rhythm(2);
|
|
120
132
|
}
|
|
121
133
|
}
|
|
122
|
-
@include m(form-check) {
|
|
134
|
+
@include bem.m(form-check) {
|
|
123
135
|
display: flex;
|
|
124
136
|
}
|
|
125
137
|
|
|
126
|
-
@include m(form-text) {
|
|
138
|
+
@include bem.m(form-text) {
|
|
127
139
|
display: flex;
|
|
128
140
|
justify-content: center;
|
|
129
|
-
margin-top: rhythm(2);
|
|
141
|
+
margin-top: func.rhythm(2);
|
|
130
142
|
}
|
|
131
143
|
}
|
|
132
144
|
|
|
133
|
-
@include e(buttons) {
|
|
145
|
+
@include bem.e(buttons) {
|
|
134
146
|
display: flex;
|
|
135
147
|
flex-shrink: 0;
|
|
136
148
|
justify-content: flex-end;
|
|
137
149
|
}
|
|
138
150
|
|
|
139
|
-
@include e(button-primary) {
|
|
151
|
+
@include bem.e(button-primary) {
|
|
140
152
|
color: var(--m-modal-button-primary-color) !important;
|
|
141
153
|
box-shadow: 0 0 0 1px inset var(--m-modal-button-primary-border-color) !important;
|
|
142
154
|
|
|
@@ -150,7 +162,7 @@
|
|
|
150
162
|
}
|
|
151
163
|
}
|
|
152
164
|
|
|
153
|
-
@include e(button-secondary) {
|
|
165
|
+
@include bem.e(button-secondary) {
|
|
154
166
|
color: var(--m-modal-button-secondary-color) !important;
|
|
155
167
|
box-shadow: 0 0 0 1px inset var(--m-modal-button-secondary-border-color) !important;
|
|
156
168
|
|
|
@@ -164,7 +176,7 @@
|
|
|
164
176
|
}
|
|
165
177
|
}
|
|
166
178
|
|
|
167
|
-
@include e(graph-button) {
|
|
179
|
+
@include bem.e(graph-button) {
|
|
168
180
|
padding: 0;
|
|
169
181
|
position: relative;
|
|
170
182
|
|
|
@@ -175,49 +187,49 @@
|
|
|
175
187
|
|
|
176
188
|
&::after {
|
|
177
189
|
content: attr(data-zoom);
|
|
178
|
-
color:
|
|
179
|
-
padding: rhythm(1) rhythm(2) rhythm(1) rhythm(4);
|
|
190
|
+
color: colors.$color-snow;
|
|
191
|
+
padding: func.rhythm(1) func.rhythm(2) func.rhythm(1) func.rhythm(4);
|
|
180
192
|
display: block;
|
|
181
193
|
position: absolute;
|
|
182
194
|
top: 0;
|
|
183
195
|
left: 0;
|
|
184
|
-
border-top-left-radius:
|
|
185
|
-
border-bottom-right-radius:
|
|
196
|
+
border-top-left-radius: var.$border-radius;
|
|
197
|
+
border-bottom-right-radius: var.$border-radius;
|
|
186
198
|
width: auto;
|
|
187
199
|
line-height: 1;
|
|
188
|
-
height:
|
|
189
|
-
background-color: rgba(
|
|
200
|
+
height: var.$icon-size-large * 1.4;
|
|
201
|
+
background-color: rgba(colors.$color-cyberspace, 0.7);
|
|
190
202
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' id='icon-search' viewbox='0 0 32 32' width='32' height='32' fill='%23ffffff'%3E%3Cpath d='M24,21.8l8,8L29.9,32l-8-8c-5.9,4.6-14.3,3.6-19-2.2S-0.7,7.6,5.1,2.9S19.3-0.7,24,5.1C27.9,10,27.9,16.9,24,21.8L24,21.8z M13.4,23.9c5.8,0,10.5-4.7,10.5-10.5S19.2,3,13.4,3S3,7.7,3,13.4S7.7,23.9,13.4,23.9z'/%3E%3C/svg%3E");
|
|
191
|
-
background-position: rhythm(1) center;
|
|
192
|
-
background-size:
|
|
203
|
+
background-position: func.rhythm(1) center;
|
|
204
|
+
background-size: var.$icon-size-medium var.$icon-size-medium;
|
|
193
205
|
background-repeat: no-repeat;
|
|
194
206
|
|
|
195
207
|
}
|
|
196
208
|
}
|
|
197
209
|
|
|
198
|
-
@include e(button-fixed) {
|
|
210
|
+
@include bem.e(button-fixed) {
|
|
199
211
|
position: fixed !important;
|
|
200
|
-
top: rhythm(2) !important;
|
|
201
|
-
right: rhythm(3) !important;
|
|
202
|
-
z-index: z_index(foreground) !important;
|
|
212
|
+
top: func.rhythm(2) !important;
|
|
213
|
+
right: func.rhythm(3) !important;
|
|
214
|
+
z-index: func.z_index(foreground) !important;
|
|
203
215
|
}
|
|
204
216
|
|
|
205
|
-
@include e(overlay-button) {
|
|
217
|
+
@include bem.e(overlay-button) {
|
|
206
218
|
position: fixed !important;
|
|
207
|
-
color:
|
|
219
|
+
color: colors.$color-snow;
|
|
208
220
|
display: flex;
|
|
209
221
|
align-items: center;
|
|
210
222
|
text-align: center;
|
|
211
223
|
justify-content: center;
|
|
212
224
|
padding: 0;
|
|
213
|
-
z-index: z_index(foregroundMinus) !important;
|
|
225
|
+
z-index: func.z_index(foregroundMinus) !important;
|
|
214
226
|
top: 0 !important;
|
|
215
227
|
right: 0 !important;
|
|
216
228
|
bottom: 0 !important;
|
|
217
229
|
left: 0 !important;
|
|
218
230
|
background: rgba(0, 0, 0, 0.5);
|
|
219
|
-
text-shadow: 0 0 rhythm(0.5)
|
|
220
|
-
font-family:
|
|
231
|
+
text-shadow: 0 0 func.rhythm(0.5) colors.$color-cyberspace;
|
|
232
|
+
font-family: var.$font-family-headings;
|
|
221
233
|
border: 0;
|
|
222
234
|
width: 100vw;
|
|
223
235
|
|
|
@@ -225,12 +237,12 @@
|
|
|
225
237
|
display: none;
|
|
226
238
|
}
|
|
227
239
|
|
|
228
|
-
@include bp-up(xxl) {
|
|
240
|
+
@include breakpoint.bp-up(xxl) {
|
|
229
241
|
display: none;
|
|
230
242
|
}
|
|
231
243
|
}
|
|
232
244
|
|
|
233
|
-
@include b(field-group) {
|
|
234
|
-
margin-bottom: rhythm(1);
|
|
245
|
+
@include bem.b(field-group) {
|
|
246
|
+
margin-bottom: func.rhythm(1);
|
|
235
247
|
}
|
|
236
248
|
}
|
|
@@ -1,78 +1,89 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/extends';
|
|
4
|
+
@use '../../configurations/bem' as bem;
|
|
5
|
+
@use '../../configurations/config' as config;
|
|
6
|
+
@use '../../configurations/variables' as var;
|
|
7
|
+
@use '../../configurations/functions' as func;
|
|
8
|
+
@use '../../configurations/colors/colors' as colors;
|
|
9
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
10
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
11
|
+
@use '../../vendor/grid/grid' as grid;
|
|
12
|
+
@use '../../utilities/hide';
|
|
2
13
|
|
|
3
|
-
@include molecule(multi-select) {
|
|
14
|
+
@include mixin.molecule(multi-select) {
|
|
4
15
|
position: relative;
|
|
5
16
|
|
|
6
17
|
&::before {
|
|
7
18
|
@extend %u-visuallyhidden;
|
|
8
19
|
|
|
9
|
-
content:
|
|
20
|
+
content: var.$namespace;
|
|
10
21
|
}
|
|
11
22
|
|
|
12
|
-
@include e(search) {
|
|
23
|
+
@include bem.e(search) {
|
|
13
24
|
position: relative;
|
|
14
25
|
}
|
|
15
26
|
|
|
16
|
-
@include e(suggestions-box) {
|
|
27
|
+
@include bem.e(suggestions-box) {
|
|
17
28
|
position: absolute;
|
|
18
29
|
border-top: none;
|
|
19
|
-
z-index: z_index(foreground);
|
|
30
|
+
z-index: func.z_index(foreground);
|
|
20
31
|
top: 100%;
|
|
21
32
|
left: 0;
|
|
22
33
|
right: 0;
|
|
23
|
-
background-color:
|
|
34
|
+
background-color: colors.$color-snow;
|
|
24
35
|
overflow-y: auto;
|
|
25
|
-
max-height: rhythm(15);
|
|
26
|
-
border-bottom-left-radius:
|
|
27
|
-
border-bottom-right-radius:
|
|
36
|
+
max-height: func.rhythm(15);
|
|
37
|
+
border-bottom-left-radius: var.$border-radius;
|
|
38
|
+
border-bottom-right-radius: var.$border-radius;
|
|
28
39
|
|
|
29
40
|
@extend %box-shadow;
|
|
30
41
|
}
|
|
31
42
|
|
|
32
|
-
@include e(suggestion-btn) {
|
|
33
|
-
padding: rhythm(1);
|
|
43
|
+
@include bem.e(suggestion-btn) {
|
|
44
|
+
padding: func.rhythm(1);
|
|
34
45
|
cursor: pointer;
|
|
35
|
-
background-color:
|
|
46
|
+
background-color: colors.$color-snow;
|
|
36
47
|
border: none;
|
|
37
|
-
border-bottom: 1px solid
|
|
48
|
+
border-bottom: 1px solid colors.$color-concrete;
|
|
38
49
|
width: 100%;
|
|
39
50
|
text-align: left;
|
|
40
51
|
|
|
41
52
|
&:hover,
|
|
42
53
|
&.autocomplete-active {
|
|
43
|
-
background-color:
|
|
44
|
-
color:
|
|
54
|
+
background-color: colors.$color-ocean-dark;
|
|
55
|
+
color: colors.$color-snow;
|
|
45
56
|
}
|
|
46
57
|
}
|
|
47
58
|
|
|
48
|
-
@include e(tag){
|
|
49
|
-
margin-bottom: rhythm(1);
|
|
50
|
-
background-color:
|
|
59
|
+
@include bem.e(tag){
|
|
60
|
+
margin-bottom: func.rhythm(1);
|
|
61
|
+
background-color: colors.$color-ash;
|
|
51
62
|
text-transform: none;
|
|
52
|
-
font-size:
|
|
63
|
+
font-size: var.$size-medium;
|
|
53
64
|
|
|
54
65
|
&:hover,
|
|
55
66
|
&:focus {
|
|
56
|
-
background-color:
|
|
57
|
-
color:
|
|
67
|
+
background-color: colors.$color-ash;
|
|
68
|
+
color: colors.$color-cyberspace;
|
|
58
69
|
}
|
|
59
70
|
}
|
|
60
71
|
}
|
|
61
72
|
|
|
62
73
|
/* Selected items container */
|
|
63
|
-
@include molecule(multi-select-selected-items) {
|
|
64
|
-
margin-top: -#{rhythm(1)};
|
|
65
|
-
padding: rhythm(2) rhythm(1) 0 rhythm(1);
|
|
74
|
+
@include mixin.molecule(multi-select-selected-items) {
|
|
75
|
+
margin-top: -#{func.rhythm(1)};
|
|
76
|
+
padding: func.rhythm(2) func.rhythm(1) 0 func.rhythm(1);
|
|
66
77
|
border: 1px solid #d4d4d4;
|
|
67
|
-
background-color:
|
|
68
|
-
border-bottom-left-radius:
|
|
69
|
-
border-bottom-right-radius:
|
|
78
|
+
background-color: colors.$color-concrete;
|
|
79
|
+
border-bottom-left-radius: var.$border-radius;
|
|
80
|
+
border-bottom-right-radius: var.$border-radius;
|
|
70
81
|
|
|
71
82
|
&:empty {
|
|
72
83
|
display: none;
|
|
73
84
|
}
|
|
74
85
|
|
|
75
|
-
@include e(remove-btn) {
|
|
86
|
+
@include bem.e(remove-btn) {
|
|
76
87
|
margin-left: 5px;
|
|
77
88
|
border: none;
|
|
78
89
|
background-color: #d80000;
|
|
@@ -83,10 +94,10 @@
|
|
|
83
94
|
align-items: center;
|
|
84
95
|
justify-content: center;
|
|
85
96
|
line-height: 1;
|
|
86
|
-
width:
|
|
87
|
-
height:
|
|
97
|
+
width: var.$icon-size-small;
|
|
98
|
+
height: var.$icon-size-small;
|
|
88
99
|
position: relative;
|
|
89
|
-
transform: translateX(rhythm(0.5));
|
|
100
|
+
transform: translateX(func.rhythm(0.5));
|
|
90
101
|
|
|
91
102
|
&::after {
|
|
92
103
|
content: '';
|
|
@@ -101,12 +112,12 @@
|
|
|
101
112
|
background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI4LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7ZmlsbDojRkZGRkZGO30KPC9zdHlsZT4KPHBvbHlnb24gY2xhc3M9InN0MCIgcG9pbnRzPSI4LDEwIDIsMTYgMCwxNCA2LDggMCwyIDIsMCA4LDYgMTQsMCAxNiwyIDEwLDggMTYsMTQgMTQsMTYgIi8+Cjwvc3ZnPgo=);
|
|
102
113
|
background-repeat: no-repeat;
|
|
103
114
|
background-position: center center;
|
|
104
|
-
background-size: calc(
|
|
115
|
+
background-size: calc(var.$icon-size-small / 2) calc(var.$icon-size-small / 2);
|
|
105
116
|
}
|
|
106
117
|
|
|
107
118
|
&:hover,
|
|
108
119
|
&:focus {
|
|
109
|
-
background-color:
|
|
120
|
+
background-color: colors.$color-cyberspace;
|
|
110
121
|
}
|
|
111
122
|
}
|
|
112
123
|
}
|