@internetstiftelsen/styleguide 4.1.13-beta.0.2 → 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 +29 -29
- 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 +40 -34
- 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
|
@@ -5,6 +5,185 @@ module.exports = {
|
|
|
5
5
|
hidden: 'true',
|
|
6
6
|
id: true,
|
|
7
7
|
addidional_classes: false,
|
|
8
|
-
label: 'sök en .se- eller .nu-domän'
|
|
8
|
+
label: 'sök en .se- eller .nu-domän',
|
|
9
|
+
columns: [
|
|
10
|
+
{
|
|
11
|
+
headline: 'Domäner',
|
|
12
|
+
list_id: 'domains',
|
|
13
|
+
topics: [
|
|
14
|
+
{
|
|
15
|
+
topic: '',
|
|
16
|
+
items: [
|
|
17
|
+
{
|
|
18
|
+
item: 'Är domänen ledig?'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
item: 'Regler och beskrivning av whois'
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
item: 'Registrera en domän'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
item: 'Villkor och regler'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
item: '.se-/.nu-domäner som snart kan bli lediga'
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
item: 'Tips innan du registrerar en domän/Inspiration och tips'
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
item: 'Återförsäljare'
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
item: 'Kontakta din kundtjänst'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
item: 'Så fungerar ett domännamn'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
item: 'Oseriösa metoder'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
item: 'Tvistlösning'
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
item: 'Domännamnsbranschen'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
item: 'Tjänster'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
item: 'Domänstatistik'
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
headline: 'Kunskap',
|
|
66
|
+
list_id: 'kunskap',
|
|
67
|
+
topics: [
|
|
68
|
+
{
|
|
69
|
+
topic: 'För skolan',
|
|
70
|
+
items: [
|
|
71
|
+
{
|
|
72
|
+
item: 'Digitala lektioner',
|
|
73
|
+
is_sub_level: true,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
item: 'Lärarfortbildning',
|
|
77
|
+
is_sub_level: true,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
item: 'Fördjupning',
|
|
81
|
+
is_sub_level: true,
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
topic: 'För samhället',
|
|
88
|
+
items: [
|
|
89
|
+
{
|
|
90
|
+
item: 'Svenskarna och internet',
|
|
91
|
+
is_sub_level: true,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
item: 'Projekt internetaccess',
|
|
95
|
+
is_sub_level: true,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
item: 'Federationers',
|
|
99
|
+
is_sub_level: true,
|
|
100
|
+
},
|
|
101
|
+
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
headline: 'Mötesplatser',
|
|
108
|
+
list_id: 'motesplatser',
|
|
109
|
+
topics: [
|
|
110
|
+
{
|
|
111
|
+
topic: '',
|
|
112
|
+
items: [
|
|
113
|
+
{
|
|
114
|
+
item: 'Internetdagarna',
|
|
115
|
+
external: true
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
item: 'Goto 10',
|
|
119
|
+
external: true
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
item: 'Forskningssamarbeten',
|
|
123
|
+
external: true
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
item: 'Internetstiftelsen stöttar'
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
item: 'Investeringar',
|
|
130
|
+
external: true,
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
headline: 'Om oss',
|
|
139
|
+
list_id: 'om-oss',
|
|
140
|
+
topics: [
|
|
141
|
+
{
|
|
142
|
+
topic: 'Presentation',
|
|
143
|
+
items: [
|
|
144
|
+
{
|
|
145
|
+
item: 'Jobba hos oss',
|
|
146
|
+
is_sub_level: true,
|
|
147
|
+
external: true
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
item: 'Press',
|
|
151
|
+
is_sub_level: true,
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
item: 'Pressbilder och fotografier',
|
|
155
|
+
is_sub_level: true,
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
item: 'Kontakt',
|
|
159
|
+
is_sub_level: true,
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
headline: 'English',
|
|
168
|
+
list_id: 'english',
|
|
169
|
+
topics: [
|
|
170
|
+
{
|
|
171
|
+
topic: '',
|
|
172
|
+
items: [
|
|
173
|
+
{
|
|
174
|
+
item: 'Lorem ipsum'
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
item: 'Dolor sit amet'
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
item: 'Aenean sodales vestibulum'
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
}
|
|
187
|
+
]
|
|
9
188
|
}
|
|
10
189
|
}
|
package/src/print.scss
CHANGED
|
@@ -1,34 +1,45 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
1
2
|
@use "sass:math";
|
|
2
|
-
|
|
3
|
-
@
|
|
3
|
+
@use '../configurations/mixins' as mixin;
|
|
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 '../vendor/baseline/plumber' as plumber;
|
|
13
|
+
|
|
14
|
+
@mixin indent($text-indent: var.$indent) {
|
|
4
15
|
|
|
5
16
|
}
|
|
6
17
|
|
|
7
|
-
@include b(article) {
|
|
8
|
-
@include e(meta) {
|
|
9
|
-
margin: rhythm(4) 0 rhythm(4.5);
|
|
18
|
+
@include bem.b(article) {
|
|
19
|
+
@include bem.e(meta) {
|
|
20
|
+
margin: func.rhythm(4) 0 func.rhythm(4.5);
|
|
10
21
|
}
|
|
11
22
|
|
|
12
|
-
@include e(content) {
|
|
23
|
+
@include bem.e(content) {
|
|
13
24
|
> div:not(.wp-block-iis-grid):not(.wp-block-iis-hero),
|
|
14
25
|
> figure {
|
|
15
|
-
margin-bottom: rhythm(3);
|
|
26
|
+
margin-bottom: func.rhythm(3);
|
|
16
27
|
}
|
|
17
28
|
|
|
18
29
|
> figure:not(.wp-block-iis-hero) img {
|
|
19
|
-
border-radius:
|
|
30
|
+
border-radius: var.$border-radius;
|
|
20
31
|
}
|
|
21
32
|
}
|
|
22
33
|
|
|
23
|
-
@include bp-up(lg) {
|
|
24
|
-
@include m(indent-basic) {
|
|
34
|
+
@include breakpoint.bp-up(lg) {
|
|
35
|
+
@include bem.m(indent-basic) {
|
|
25
36
|
> h1,
|
|
26
37
|
> p {
|
|
27
|
-
margin-left: rhythm(3);
|
|
38
|
+
margin-left: func.rhythm(3);
|
|
28
39
|
}
|
|
29
40
|
}
|
|
30
41
|
|
|
31
|
-
@include e(content) {
|
|
42
|
+
@include bem.e(content) {
|
|
32
43
|
> p:not(.preamble),
|
|
33
44
|
> h2,
|
|
34
45
|
> h3,
|
|
@@ -43,29 +54,29 @@
|
|
|
43
54
|
> figure,
|
|
44
55
|
> blockquote {
|
|
45
56
|
&:not(.alignfull):not(.alignleft):not(.alignright):not(.alignwide):not(.wp-block-iis-hero) {
|
|
46
|
-
max-width: calc(#{
|
|
47
|
-
margin-right: math.div(
|
|
48
|
-
margin-left:
|
|
57
|
+
max-width: calc(#{func.to_rem(612px)} + #{(var.$indent * 2)});
|
|
58
|
+
margin-right: math.div(var.$grid-gutter-width, 2);
|
|
59
|
+
margin-left: var.$indent * 2;
|
|
49
60
|
}
|
|
50
61
|
}
|
|
51
62
|
|
|
52
63
|
> [class*='meta'] {
|
|
53
|
-
margin-left:
|
|
64
|
+
margin-left: var.$indent;
|
|
54
65
|
}
|
|
55
66
|
|
|
56
67
|
> p.preamble {
|
|
57
|
-
max-width:
|
|
58
|
-
margin-left:
|
|
68
|
+
max-width: func.to_rem(612px);
|
|
69
|
+
margin-left: var.$indent;
|
|
59
70
|
}
|
|
60
71
|
|
|
61
72
|
> [class*='accordion'] {
|
|
62
|
-
@include bp-up(lg) {
|
|
73
|
+
@include breakpoint.bp-up(lg) {
|
|
63
74
|
max-width: none;
|
|
64
75
|
margin-left: 0;
|
|
65
76
|
}
|
|
66
77
|
}
|
|
67
78
|
|
|
68
|
-
@include m(full-width) {
|
|
79
|
+
@include bem.m(full-width) {
|
|
69
80
|
> p:not(.preamble),
|
|
70
81
|
> h2,
|
|
71
82
|
> h3,
|
|
@@ -84,13 +95,13 @@
|
|
|
84
95
|
}
|
|
85
96
|
|
|
86
97
|
> .wp-block-iis-info {
|
|
87
|
-
max-width: calc(46.364% + #{(
|
|
88
|
-
margin-left:
|
|
98
|
+
max-width: calc(46.364% + #{(var.$indent * 2)});
|
|
99
|
+
margin-left: var.$indent;
|
|
89
100
|
}
|
|
90
101
|
}
|
|
91
102
|
}
|
|
92
103
|
|
|
93
|
-
@include e(indent) {
|
|
104
|
+
@include bem.e(indent) {
|
|
94
105
|
$grid-indent: 5.6703%;
|
|
95
106
|
$grid-margin-right: 20.335%;
|
|
96
107
|
|
|
@@ -127,14 +138,14 @@
|
|
|
127
138
|
}
|
|
128
139
|
}
|
|
129
140
|
|
|
130
|
-
@include m(no-title) {
|
|
131
|
-
@include e(content) {
|
|
141
|
+
@include bem.m(no-title) {
|
|
142
|
+
@include bem.e(content) {
|
|
132
143
|
margin-left: 0;
|
|
133
144
|
}
|
|
134
145
|
}
|
|
135
146
|
}
|
|
136
147
|
|
|
137
|
-
@include molecule(card) {
|
|
138
|
-
margin-bottom: rhythm(4);
|
|
148
|
+
@include mixin.molecule(card) {
|
|
149
|
+
margin-bottom: func.rhythm(4);
|
|
139
150
|
}
|
|
140
|
-
}
|
|
151
|
+
}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
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
|
+
@use '../vendor/baseline/plumber' as plumber;
|
|
12
|
+
|
|
13
|
+
@include bem.b(core-values) {
|
|
14
|
+
margin-top: func.rhythm(8);
|
|
3
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
3
|
-
@
|
|
4
|
-
@
|
|
1
|
+
@use 'site';
|
|
2
|
+
@use 'section';
|
|
3
|
+
@use 'article';
|
|
4
|
+
@use 'core-values';
|
|
@@ -1,53 +1,65 @@
|
|
|
1
|
-
@
|
|
2
|
-
|
|
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
|
+
@use '../vendor/baseline/plumber' as plumber;
|
|
3
12
|
|
|
4
|
-
|
|
5
|
-
|
|
13
|
+
@include bem.b(section) {
|
|
14
|
+
margin-top: func.rhythm(8);
|
|
6
15
|
|
|
7
|
-
|
|
8
|
-
|
|
16
|
+
@include bem.m(tight) {
|
|
17
|
+
margin-top: func.rhythm(2);
|
|
18
|
+
|
|
19
|
+
@include breakpoint.bp-up(md) {
|
|
20
|
+
margin-top: func.rhythm(4);
|
|
9
21
|
}
|
|
10
22
|
}
|
|
11
23
|
|
|
12
|
-
@include m(no-margin) {
|
|
24
|
+
@include bem.m(no-margin) {
|
|
13
25
|
margin-top: 0;
|
|
14
26
|
}
|
|
15
27
|
|
|
16
|
-
@include m(peacock) {
|
|
28
|
+
@include bem.m(peacock) {
|
|
17
29
|
p > a {
|
|
18
|
-
background-color:
|
|
30
|
+
background-color: colors.$color-peacock-light;
|
|
19
31
|
}
|
|
20
32
|
|
|
21
33
|
::selection {
|
|
22
|
-
background-color:
|
|
34
|
+
background-color: colors.$color-peacock-light;
|
|
23
35
|
}
|
|
24
36
|
|
|
25
37
|
::-moz-selection {
|
|
26
|
-
background-color:
|
|
38
|
+
background-color: colors.$color-peacock-light;
|
|
27
39
|
}
|
|
28
40
|
}
|
|
29
41
|
|
|
30
|
-
@include m(jade) {
|
|
42
|
+
@include bem.m(jade) {
|
|
31
43
|
p > a {
|
|
32
|
-
background-color:
|
|
44
|
+
background-color: colors.$color-jade-light;
|
|
33
45
|
}
|
|
34
46
|
|
|
35
47
|
::selection {
|
|
36
|
-
background-color:
|
|
48
|
+
background-color: colors.$color-jade-light;
|
|
37
49
|
}
|
|
38
50
|
|
|
39
51
|
::-moz-selection {
|
|
40
|
-
background-color:
|
|
52
|
+
background-color: colors.$color-jade-light;
|
|
41
53
|
}
|
|
42
54
|
}
|
|
43
55
|
|
|
44
|
-
@include e(title) {
|
|
45
|
-
margin-bottom: rhythm(3);
|
|
46
|
-
padding-right:
|
|
47
|
-
padding-left:
|
|
56
|
+
@include bem.e(title) {
|
|
57
|
+
margin-bottom: func.rhythm(3);
|
|
58
|
+
padding-right: func.to_rem(15px);
|
|
59
|
+
padding-left: func.to_rem(15px);
|
|
48
60
|
}
|
|
49
61
|
|
|
50
|
-
@include e(label) {
|
|
62
|
+
@include bem.e(label) {
|
|
51
63
|
text-transform: uppercase;
|
|
52
64
|
}
|
|
53
65
|
}
|
|
@@ -1,28 +1,40 @@
|
|
|
1
|
-
@
|
|
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
|
+
@use '../vendor/baseline/plumber' as plumber;
|
|
12
|
+
|
|
13
|
+
@include bem.b(site) {
|
|
2
14
|
display: flex;
|
|
3
15
|
flex-direction: column;
|
|
4
16
|
min-height: 100vh;
|
|
5
17
|
overflow: hidden;
|
|
6
18
|
|
|
7
|
-
@include e(header) {
|
|
19
|
+
@include bem.e(header) {
|
|
8
20
|
display: flex;
|
|
9
21
|
position: relative;
|
|
10
22
|
flex-direction: column;
|
|
11
23
|
|
|
12
24
|
&[style] {
|
|
13
|
-
z-index: z_index(foreground);
|
|
25
|
+
z-index: func.z_index(foreground);
|
|
14
26
|
|
|
15
27
|
[class*="o-header"] {
|
|
16
|
-
z-index: z_index(foreground);
|
|
28
|
+
z-index: func.z_index(foreground);
|
|
17
29
|
}
|
|
18
30
|
}
|
|
19
31
|
}
|
|
20
32
|
|
|
21
|
-
@include e(main) {
|
|
33
|
+
@include bem.e(main) {
|
|
22
34
|
flex: 1 0 auto;
|
|
23
35
|
|
|
24
|
-
@include e(content) {
|
|
25
|
-
padding-bottom: rhythm(4);
|
|
36
|
+
@include bem.e(content) {
|
|
37
|
+
padding-bottom: func.rhythm(4);
|
|
26
38
|
}
|
|
27
39
|
}
|
|
28
40
|
}
|
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../configurations/colors/colors' as colors;
|
|
2
3
|
|
|
3
4
|
@mixin dark-mode {
|
|
4
5
|
& {
|
|
5
|
-
--cyberspace-color: #{
|
|
6
|
-
--snow-color: #{
|
|
7
|
-
--ash-color: #{
|
|
6
|
+
--cyberspace-color: #{colors.$color-snow};
|
|
7
|
+
--snow-color: #{colors.$color-cyberspace};
|
|
8
|
+
--ash-color: #{colors.$color-black};
|
|
8
9
|
|
|
9
|
-
--concrete-color: #{
|
|
10
|
-
--granit-color: #{
|
|
11
|
-
--ocean-dark-color: #{
|
|
10
|
+
--concrete-color: #{colors.$color-granit};
|
|
11
|
+
--granit-color: #{colors.$color-concrete};
|
|
12
|
+
--ocean-dark-color: #{colors.$color-ocean};
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
.background-snow {
|
|
15
|
-
background-color:
|
|
16
|
+
background-color: colors.$color-cyberspace !important;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.background-ash {
|
|
19
|
-
background-color:
|
|
20
|
+
background-color: colors.$color-black !important;
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.u-border-top {
|
|
23
|
-
border-top: 1px solid
|
|
24
|
+
border-top: 1px solid colors.$color-black;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
.color-granit {
|
|
27
|
-
color:
|
|
28
|
+
color: colors.$color-concrete;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
.color-ocean-dark {
|
|
31
|
-
color:
|
|
32
|
+
color: colors.$color-ocean !important;
|
|
32
33
|
}
|
|
33
34
|
|
|
34
35
|
svg {
|
|
35
|
-
fill:
|
|
36
|
+
fill: colors.$color-snow;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
|
package/src/theme/_theme.scss
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@charset "UTF-8";
|
|
2
3
|
|
|
3
|
-
@
|
|
4
|
+
@use '../configurations/colors/colors' as colors;
|
|
5
|
+
@use '../configurations/mixins' as mixin;
|
|
6
|
+
@use '../configurations/bem' as bem;
|
|
4
7
|
|
|
5
8
|
:root {
|
|
6
|
-
--snow-color: #{
|
|
7
|
-
--cyberspace-color: #{
|
|
8
|
-
--black-color: #{
|
|
9
|
-
--ash-color: #{
|
|
10
|
-
--dark-color: #{
|
|
11
|
-
--white-color: #{
|
|
12
|
-
--ocean-dark-color: #{
|
|
9
|
+
--snow-color: #{colors.$color-snow};
|
|
10
|
+
--cyberspace-color: #{colors.$color-cyberspace};
|
|
11
|
+
--black-color: #{colors.$color-black};
|
|
12
|
+
--ash-color: #{colors.$color-ash};
|
|
13
|
+
--dark-color: #{colors.$color-cyberspace};
|
|
14
|
+
--white-color: #{colors.$color-snow};
|
|
15
|
+
--ocean-dark-color: #{colors.$color-ocean-dark};
|
|
13
16
|
}
|
|
14
17
|
|
|
15
18
|
$namespace: '';
|
|
@@ -20,21 +23,21 @@ $theme-palette: (
|
|
|
20
23
|
) !default;
|
|
21
24
|
|
|
22
25
|
@function theme_palette($key: 'background') {
|
|
23
|
-
@return map
|
|
26
|
+
@return map.get($theme-palette, $key);
|
|
24
27
|
}
|
|
25
28
|
|
|
26
|
-
@include b(site) {
|
|
29
|
+
@include mixin.b(site) {
|
|
27
30
|
display: flex;
|
|
28
31
|
flex-direction: column;
|
|
29
32
|
min-height: 100vh;
|
|
30
33
|
|
|
31
|
-
@include e(header) {
|
|
34
|
+
@include bem.e(header) {
|
|
32
35
|
display: flex;
|
|
33
36
|
position: relative;
|
|
34
37
|
flex-direction: column;
|
|
35
38
|
}
|
|
36
39
|
|
|
37
|
-
@include e(main) {
|
|
40
|
+
@include bem.e(main) {
|
|
38
41
|
flex: 1 0 auto;
|
|
39
42
|
transition: opacity 0.2s ease-out, height 0.2s ease-out;
|
|
40
43
|
opacity: 1;
|
|
@@ -47,16 +50,16 @@ $theme-palette: (
|
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
:root {
|
|
50
|
-
--m-submenu-background-color: #{
|
|
51
|
-
--m-submenu-icon-fill-color: #{
|
|
52
|
-
--m-submenu-icon-background-hover-color: #{
|
|
53
|
-
--m-info-box-border-color: #{
|
|
54
|
-
--m-modal-button-primary-color: #{
|
|
55
|
-
--m-modal-button-primary-hover-color: #{
|
|
56
|
-
--m-modal-button-primary-border-color: #{
|
|
57
|
-
--m-modal-button-primary-text-color: #{
|
|
58
|
-
--m-modal-button-secondary-color: #{
|
|
59
|
-
--m-modal-button-secondary-hover-color: #{
|
|
60
|
-
--m-modal-button-secondary-border-color: #{
|
|
61
|
-
--m-modal-button-secondary-text-color: #{
|
|
53
|
+
--m-submenu-background-color: #{colors.$color-ocean-light};
|
|
54
|
+
--m-submenu-icon-fill-color: #{colors.$color-cyberspace};
|
|
55
|
+
--m-submenu-icon-background-hover-color: #{colors.$color-ocean-light};
|
|
56
|
+
--m-info-box-border-color: #{colors.$color-peacock};
|
|
57
|
+
--m-modal-button-primary-color: #{colors.$color-peacock-light};
|
|
58
|
+
--m-modal-button-primary-hover-color: #{colors.$color-peacock};
|
|
59
|
+
--m-modal-button-primary-border-color: #{colors.$color-peacock};
|
|
60
|
+
--m-modal-button-primary-text-color: #{colors.$color-cyberspace};
|
|
61
|
+
--m-modal-button-secondary-color: #{colors.$color-ruby-light};
|
|
62
|
+
--m-modal-button-secondary-hover-color: #{colors.$color-ruby};
|
|
63
|
+
--m-modal-button-secondary-border-color: #{colors.$color-ruby};
|
|
64
|
+
--m-modal-button-secondary-text-color: #{colors.$color-cyberspace};
|
|
62
65
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../configurations/variables' as var;
|
|
3
|
+
@use '../configurations/functions' as func;@use '../configurations/colors/colors-functions' as colorFunc;
|
|
2
4
|
|
|
3
5
|
.u-border-radius {
|
|
4
|
-
border-radius:
|
|
6
|
+
border-radius: var.$border-radius !important;
|
|
5
7
|
}
|
|
6
8
|
|
|
7
9
|
.u-border-radius-50 {
|
|
@@ -43,7 +45,7 @@ $class-b-y: u-b-y !default;
|
|
|
43
45
|
// Generate border color classes e.g. .border-color-ruby
|
|
44
46
|
/// @group Colors
|
|
45
47
|
.u-b {
|
|
46
|
-
@include color_values(
|
|
48
|
+
@include colorFunc.color_values(colorFunc.$colors, 'border-color', $separator: '-');
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
// Generate classes for border widths e.g. .u-b-0 and .u-b-l-4.
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../configurations/mixins' as mixin;
|
|
3
|
+
@use '../configurations/extends';
|
|
4
|
+
@use '../configurations/colors/colors' as colors;
|
|
2
5
|
|
|
3
6
|
.u-box-shadow {
|
|
4
7
|
@extend %box-shadow;
|
|
5
8
|
}
|
|
6
9
|
|
|
7
10
|
.u-box-shadow-card {
|
|
8
|
-
@include card-shadow(
|
|
11
|
+
@include mixin.card-shadow(colors.$color-cyberspace, 0.2);
|
|
9
12
|
}
|