@internetstiftelsen/styleguide 4.1.13 → 5.0.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/dist/assets/js/iconToggle.js +1 -2
- package/dist/assets/js/parallax.js +0 -2
- package/dist/assets/js/textToggle.js +0 -1
- package/dist/assets/js/track.js +2 -2
- package/dist/assets/js/youtube.js +2 -1
- package/dist/components.js +0 -4
- package/dist/molecules/glider/glider-hero.js +1 -2
- package/dist/molecules/modal/modal.js +2 -2
- package/dist/molecules/overview-navigation/overview-navigation.js +1 -2
- package/dist/organisms/mailchimp/mailchimp.js +2 -1
- package/dist/organisms/tabs/tabs.js +3 -2
- package/dist/organisms/timeline/timeline.js +2 -4
- package/package.json +23 -18
- package/src/app.js +1 -15
- package/src/app.scss +85 -88
- package/src/assets/js/iconToggle.js +2 -2
- package/src/assets/js/parallax.js +0 -2
- package/src/assets/js/textToggle.js +1 -1
- package/src/assets/js/track.js +2 -2
- package/src/assets/js/youtube.js +2 -1
- package/src/atoms/archive-link/archive-link.config.js +1 -1
- package/src/atoms/archive-link/archive-link.scss +24 -17
- package/src/atoms/button/_button.scss +216 -210
- package/src/atoms/checkbox/_checkbox.scss +33 -26
- package/src/atoms/checkbox/checkbox.config.js +1 -1
- package/src/atoms/file/_file.scss +23 -13
- package/src/atoms/file/file.config.js +1 -1
- package/src/atoms/grid-toggle/_grid-toggle.scss +11 -6
- package/src/atoms/grid-toggle/grid-toggle.config.js +1 -1
- package/src/atoms/height-limiter/_height-limiter.scss +21 -14
- package/src/atoms/height-limiter/height-limiter.config.js +1 -1
- package/src/atoms/hr/hr.config.js +1 -1
- package/src/atoms/icon/icon.config.js +2 -2
- package/src/atoms/input/_input.scss +23 -16
- package/src/atoms/input/input.config.js +1 -1
- package/src/atoms/label/label.config.js +1 -1
- package/src/atoms/label/label.scss +11 -5
- package/src/atoms/logotype/_logotype.scss +3 -2
- package/src/atoms/logotype/logotype.config.js +3 -3
- package/src/atoms/main-menu/_main-menu.scss +67 -60
- package/src/atoms/main-menu/main-menu.config.js +1 -1
- package/src/atoms/meta/_meta.scss +44 -33
- package/src/atoms/meta/meta.config.js +2 -2
- package/src/atoms/paging/_paging.scss +27 -21
- package/src/atoms/paging/paging.config.js +1 -1
- package/src/atoms/password-toggle/_password-toggle.scss +9 -6
- package/src/atoms/password-toggle/password-toggle.config.js +1 -1
- package/src/atoms/progress/_progress.scss +19 -11
- package/src/atoms/progress/progress.config.js +1 -1
- package/src/atoms/quote/_quote.scss +17 -10
- package/src/atoms/quote/quote.config.js +1 -1
- package/src/atoms/radiobutton/_radiobutton.scss +33 -26
- package/src/atoms/radiobutton/radiobutton.config.js +1 -1
- package/src/atoms/range/_range.scss +46 -39
- package/src/atoms/range/range.config.js +1 -1
- package/src/atoms/rating/_rating.scss +11 -4
- package/src/atoms/rating/rating.config.js +1 -1
- package/src/atoms/ribbon/_ribbon.scss +17 -10
- package/src/atoms/ribbon/ribbon.config.js +1 -1
- package/src/atoms/select/_select.scss +18 -10
- package/src/atoms/select/select.config.js +1 -1
- package/src/atoms/skip/_skip.scss +9 -6
- package/src/atoms/skip/skip.config.js +1 -1
- package/src/atoms/spinner/_spinner.scss +4 -3
- package/src/atoms/spinner/spinner.config.js +1 -1
- package/src/atoms/tag/_tag.scss +26 -19
- package/src/atoms/tag/tag.config.js +1 -1
- package/src/atoms/textarea/_textarea.scss +22 -13
- package/src/atoms/textarea/textarea.config.js +1 -1
- package/src/atoms/toggle-button/toggle-button.config.js +1 -1
- package/src/atoms/tooltip/_tooltip.scss +28 -21
- package/src/atoms/tooltip/tooltip.config.js +1 -1
- package/src/base/_grid.scss +4 -4
- package/src/base/_normalize.scss +122 -120
- package/src/base/fonts/_fonts.scss +1 -1
- package/src/brandbook/goto10/goto10.config.js +1 -1
- package/src/brandbook/internetstiftelsen/bildman/303/251r/bildman/303/251r.config.js +1 -1
- package/src/brandbook/internetstiftelsen/identitet/identitet.config.js +1 -1
- package/src/brandbook/internetstiftelsen/tonalitet och spr/303/245kbruk/tonalitet och spr/303/245kbruk.config.js" +1 -1
- package/src/components.js +0 -2
- package/src/configurations/_bem.scss +30 -27
- package/src/configurations/_config.scss +24 -23
- package/src/configurations/_extends.scss +38 -34
- package/src/configurations/_functions.scss +25 -9
- package/src/configurations/_mixins.scss +23 -19
- package/src/configurations/_recaptcha.scss +2 -2
- package/src/configurations/_variables.scss +40 -46
- package/src/configurations/_wordpress.scss +69 -62
- package/src/configurations/colors/_background-colors.scss +3 -2
- package/src/configurations/colors/_colors-functions.scss +41 -39
- package/src/configurations/colors/_colors.scss +4 -4
- package/src/configurations/colors/_text-colors.scss +3 -2
- package/src/configurations/colors/_wordpress-colors.scss +3 -2
- package/src/configurations/colors/colors.config.js +1 -1
- package/src/configurations/favicon/favicon.config.js +1 -1
- package/src/configurations/forms/_fields.scss +28 -23
- package/src/configurations/grid/_grid.scss +33 -28
- package/src/configurations/grid/grid.config.js +1 -1
- package/src/configurations/icons.json +1 -1
- package/src/configurations/typography/_typography.scss +113 -105
- package/src/configurations/typography/readme.md +1 -1
- package/src/configurations/typography/typography.config.js +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/alert/alert.config.js +1 -1
- package/src/molecules/breadcrumb/_breadcrumb.scss +43 -35
- package/src/molecules/breadcrumb/breadcrumb.config.js +1 -1
- package/src/molecules/byline/_byline.scss +30 -21
- package/src/molecules/byline/byline.config.js +1 -1
- package/src/molecules/card/_card.scss +87 -77
- package/src/molecules/context-menu/_context-menu.scss +32 -15
- package/src/molecules/context-menu/context-menu.config.js +11 -11
- package/src/molecules/continue-video-guide/continue-video-guide.config.js +1 -1
- package/src/molecules/continue-video-guide/continue-video-guide.scss +37 -28
- package/src/molecules/cookie-disclaimer/cookie-disclaimer.config.js +1 -1
- package/src/molecules/cookie-disclaimer/cookie-disclaimer.scss +32 -23
- package/src/molecules/download/_download.scss +38 -30
- package/src/molecules/download/download.config.js +1 -1
- package/src/molecules/form/form.config.js +1 -1
- package/src/molecules/form-control/_form-control.scss +66 -58
- package/src/molecules/form-control/form-control.config.js +1 -1
- 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/glider/glider-hero.js +1 -3
- package/src/molecules/glider/glider.config.js +1 -1
- package/src/molecules/icon-overlay/_icon-overlay.scss +29 -20
- package/src/molecules/icon-overlay/icon-overlay.config.js +1 -1
- package/src/molecules/info-box/_info-box.scss +31 -22
- package/src/molecules/info-box/info-box.config.js +1 -1
- package/src/molecules/input-group/_input-group.scss +23 -13
- package/src/molecules/input-group/input-group.config.js +1 -1
- package/src/molecules/modal/_modal.scss +77 -65
- package/src/molecules/modal/modal.js +2 -2
- package/src/molecules/multi-select/_multi-select.scss +44 -33
- package/src/molecules/multi-select/multi-select.js +3 -3
- package/src/molecules/natural-language-form/_natural-language-form.scss +33 -23
- package/src/molecules/natural-language-form/natural-language-form.config.js +4 -4
- package/src/molecules/overview-navigation/_overview-navigation.scss +54 -45
- package/src/molecules/overview-navigation/overview-navigation.js +2 -2
- package/src/molecules/readspeaker/_readspeaker.scss +1 -1
- package/src/molecules/share/_share.scss +23 -15
- package/src/molecules/share/share.config.js +1 -1
- package/src/molecules/submenu/_submenu.scss +77 -69
- package/src/molecules/submenu/submenu.config.js +1 -1
- package/src/molecules/system-error/_system-error.scss +26 -17
- package/src/molecules/system-error/system-error.config.js +1 -1
- package/src/molecules/table/_table.scss +50 -42
- package/src/molecules/table/table.config.js +1 -1
- package/src/molecules/teaser-news-list/_teaser-news-list.scss +21 -12
- package/src/molecules/teaser-news-list/teaser-news-list.config.js +1 -1
- package/src/organisms/accordion/_accordion.scss +64 -54
- package/src/organisms/accordion/accordion.config.js +1 -1
- package/src/organisms/domain-search/_domain-search.scss +54 -45
- package/src/organisms/domain-search/domain-search.config.js +1 -1
- 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/filter/filter.config.js +1 -1
- package/src/organisms/footer/_footer.scss +121 -111
- package/src/organisms/footer/footer.config.js +1 -1
- package/src/organisms/header/_header.scss +24 -14
- package/src/organisms/header/header.config.js +1 -1
- 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 +37 -38
- package/src/organisms/mailchimp/_mailchimp.scss +53 -43
- package/src/organisms/mailchimp/mailchimp.config.js +1 -1
- package/src/organisms/mailchimp/mailchimp.js +2 -1
- package/src/organisms/mega-menu/_mega-menu.scss +55 -45
- package/src/organisms/mega-menu/mega-menu.config.js +1 -1
- package/src/organisms/members-service-product/_members-service-product.scss +29 -18
- package/src/organisms/members-service-product/members-service-product.config.js +6 -8
- package/src/organisms/podcast/_podcast-episodes.scss +85 -75
- package/src/organisms/podcast/_podcast-player.scss +73 -64
- package/src/organisms/podcast/podcast.config.js +1 -1
- 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/search-result/search-result.config.js +1 -1
- package/src/organisms/sections/_sections.scss +41 -31
- package/src/organisms/sections/sections.config.js +1 -1
- package/src/organisms/tabs/_tabs.scss +58 -46
- package/src/organisms/tabs/tabs.config.js +1 -1
- package/src/organisms/tabs/tabs.js +3 -2
- package/src/organisms/timeline/_timeline.scss +92 -81
- package/src/organisms/timeline/timeline.config.js +1 -1
- package/src/organisms/timeline/timeline.js +3 -2
- package/src/organisms/video-guide/VideoGuidePlayback.js +1 -1
- package/src/organisms/video-guide/_video-guide.scss +148 -138
- package/src/organisms/video-guide/video-guide.config.js +1 -1
- package/src/organisms/video-guide/video-guide.js +2 -2
- package/src/pages/animate-footer/animate-footer.config.js +181 -2
- package/src/pages/bredbandskollen/bredbandskollen.config.js +1 -1
- package/src/pages/conditional/conditional.config.js +1 -1
- package/src/pages/dark-mode/dark-mode.config.js +1 -1
- package/src/pages/internetguider/internetguider.config.js +1 -1
- package/src/pages/magazine/magazine.config.js +1 -1
- package/src/pages/mailchimp-newsletter/mailchimp-newsletter.config.js +1 -1
- package/src/pages/responsive-position/responsive-position.config.js +1 -1
- package/src/pages/search/search.config.js +1 -1
- package/src/pages/wordpress-blocks/wordpress-blocks.config.js +1 -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 +29 -26
- 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 +41 -37
- 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 +28 -25
- package/src/utilities/_misc.scss +3 -2
- package/src/utilities/_padding.scss +26 -23
- 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,32 +1,39 @@
|
|
|
1
|
-
@charset
|
|
2
|
-
|
|
3
|
-
//
|
|
4
|
-
// Modifies Wordpress Core classes
|
|
5
|
-
//
|
|
1
|
+
@charset "UTF-8";
|
|
6
2
|
@use "sass:math";
|
|
3
|
+
@use '../vendor/grid/breakpoints' as breakpoint;
|
|
4
|
+
@use '../vendor/baseline/plumber' as plumber;
|
|
5
|
+
@use 'colors/colors' as colors;
|
|
6
|
+
@use 'variables' as var;
|
|
7
|
+
@use 'functions' as func;
|
|
8
|
+
@use 'mixins' as mixin;
|
|
9
|
+
@use 'extends';
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
// Modifies Wordpress Core classes
|
|
13
|
+
*/
|
|
7
14
|
|
|
8
15
|
.wp-caption {
|
|
9
|
-
margin-bottom: rhythm(3);
|
|
16
|
+
margin-bottom: func.rhythm(3);
|
|
10
17
|
}
|
|
11
18
|
|
|
12
|
-
|
|
19
|
+
/* Customize */
|
|
13
20
|
.aligncenter,
|
|
14
21
|
div.aligncenter {
|
|
15
22
|
display: block;
|
|
16
|
-
margin: 0 auto rhythm(3);
|
|
23
|
+
margin: 0 auto func.rhythm(3);
|
|
17
24
|
}
|
|
18
25
|
|
|
19
|
-
@include bp-up(lg) {
|
|
26
|
+
@include breakpoint.bp-up(lg) {
|
|
20
27
|
.alignright {
|
|
21
|
-
width: calc(#{make_col(6)} - 13px);
|
|
22
|
-
margin: 0 0 rhythm(3) 0;
|
|
28
|
+
width: calc(#{func.make_col(6)} - 13px); /* <== You ugly magic number you, we hates it! */
|
|
29
|
+
margin: 0 0 func.rhythm(3) 0;
|
|
23
30
|
float: right;
|
|
24
31
|
clear: right;
|
|
25
32
|
}
|
|
26
33
|
|
|
27
34
|
.alignleft {
|
|
28
|
-
width: calc(#{make_col(6)} - 13px);
|
|
29
|
-
margin: 0 rhythm(2) rhythm(3) 0;
|
|
35
|
+
width: calc(#{func.make_col(6)} - 13px); /* <== You ugly magic number you, we hates it! */
|
|
36
|
+
margin: 0 func.rhythm(2) func.rhythm(3) 0;
|
|
30
37
|
float: left;
|
|
31
38
|
clear: left;
|
|
32
39
|
}
|
|
@@ -47,11 +54,11 @@ div.aligncenter {
|
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
.wp-block-image {
|
|
50
|
-
margin-bottom: rhythm(3);
|
|
57
|
+
margin-bottom: func.rhythm(3);
|
|
51
58
|
|
|
52
59
|
figcaption {
|
|
53
|
-
@include plumber(
|
|
54
|
-
|
|
60
|
+
@include plumber.plumber(
|
|
61
|
+
var.$font-size: 1.7,
|
|
55
62
|
$line-height: 2,
|
|
56
63
|
$leading-bottom: 0
|
|
57
64
|
);
|
|
@@ -121,13 +128,13 @@ div.aligncenter {
|
|
|
121
128
|
display: flex;
|
|
122
129
|
flex-wrap: wrap;
|
|
123
130
|
justify-content: space-between;
|
|
124
|
-
margin: rhythm(2) 0;
|
|
131
|
+
margin: func.rhythm(2) 0;
|
|
125
132
|
padding: 0;
|
|
126
133
|
list-style: none;
|
|
127
134
|
|
|
128
135
|
.blocks-gallery-item {
|
|
129
136
|
width: 48%;
|
|
130
|
-
margin-bottom: rhythm(2);
|
|
137
|
+
margin-bottom: func.rhythm(2);
|
|
131
138
|
|
|
132
139
|
img {
|
|
133
140
|
display: block;
|
|
@@ -135,17 +142,17 @@ div.aligncenter {
|
|
|
135
142
|
}
|
|
136
143
|
|
|
137
144
|
figcaption {
|
|
138
|
-
padding: rhythm(1);
|
|
139
|
-
font-size:
|
|
145
|
+
padding: func.rhythm(1);
|
|
146
|
+
font-size: var.$size-small;
|
|
140
147
|
line-height: 1.4;
|
|
141
148
|
|
|
142
|
-
@include bp-up(sm) {
|
|
143
|
-
padding-bottom: rhythm(2);
|
|
144
|
-
font-size:
|
|
149
|
+
@include breakpoint.bp-up(sm) {
|
|
150
|
+
padding-bottom: func.rhythm(2);
|
|
151
|
+
font-size: var.$size-medium;
|
|
145
152
|
}
|
|
146
153
|
|
|
147
|
-
@include bp-up(lg) {
|
|
148
|
-
font-size:
|
|
154
|
+
@include breakpoint.bp-up(lg) {
|
|
155
|
+
font-size: var.$size-base;
|
|
149
156
|
}
|
|
150
157
|
}
|
|
151
158
|
}
|
|
@@ -153,8 +160,8 @@ div.aligncenter {
|
|
|
153
160
|
|
|
154
161
|
.wp-block-embed {
|
|
155
162
|
figcaption {
|
|
156
|
-
@include plumber(
|
|
157
|
-
|
|
163
|
+
@include plumber.plumber(
|
|
164
|
+
var.$font-size: 1.5,
|
|
158
165
|
$line-height: 2,
|
|
159
166
|
$leading-bottom: 0
|
|
160
167
|
);
|
|
@@ -170,13 +177,13 @@ div.aligncenter {
|
|
|
170
177
|
|
|
171
178
|
> .row {
|
|
172
179
|
> [class*='grid'] {
|
|
173
|
-
margin-bottom: rhythm(2);
|
|
180
|
+
margin-bottom: func.rhythm(2);
|
|
174
181
|
|
|
175
182
|
> *:only-child {
|
|
176
183
|
margin-bottom: 0;
|
|
177
184
|
}
|
|
178
185
|
|
|
179
|
-
@include molecule(card) {
|
|
186
|
+
@include mixin.molecule(card) {
|
|
180
187
|
&:not(:only-child) {
|
|
181
188
|
height: auto;
|
|
182
189
|
}
|
|
@@ -190,14 +197,14 @@ div.aligncenter {
|
|
|
190
197
|
}
|
|
191
198
|
}
|
|
192
199
|
|
|
193
|
-
|
|
200
|
+
/* WP Core Column Block/Group Styles */
|
|
194
201
|
|
|
195
202
|
.wp-block-group {
|
|
196
203
|
display: flex;
|
|
197
204
|
flex-wrap: wrap;
|
|
198
|
-
margin-right: math.div(
|
|
199
|
-
margin-bottom: rhythm(2);
|
|
200
|
-
margin-left: math.div(
|
|
205
|
+
margin-right: math.div(var.$grid-gutter-width, -2);
|
|
206
|
+
margin-bottom: func.rhythm(2);
|
|
207
|
+
margin-left: math.div(var.$grid-gutter-width, -2);
|
|
201
208
|
|
|
202
209
|
&.alignfull {
|
|
203
210
|
right: auto;
|
|
@@ -214,9 +221,9 @@ div.aligncenter {
|
|
|
214
221
|
.wp-block-columns {
|
|
215
222
|
display: flex;
|
|
216
223
|
flex-wrap: wrap;
|
|
217
|
-
margin-right: math.div(
|
|
218
|
-
margin-bottom: rhythm(2);
|
|
219
|
-
margin-left: math.div(
|
|
224
|
+
margin-right: math.div(var.$grid-gutter-width, -2);
|
|
225
|
+
margin-bottom: func.rhythm(2);
|
|
226
|
+
margin-left: math.div(var.$grid-gutter-width, -2);
|
|
220
227
|
|
|
221
228
|
&.alignfull {
|
|
222
229
|
right: auto;
|
|
@@ -224,7 +231,7 @@ div.aligncenter {
|
|
|
224
231
|
width: auto;
|
|
225
232
|
}
|
|
226
233
|
}
|
|
227
|
-
@include bp-up(md) {
|
|
234
|
+
@include breakpoint.bp-up(md) {
|
|
228
235
|
.wp-block-columns {
|
|
229
236
|
flex-wrap: nowrap;
|
|
230
237
|
}
|
|
@@ -233,18 +240,18 @@ div.aligncenter {
|
|
|
233
240
|
.wp-block-column {
|
|
234
241
|
flex-grow: 1;
|
|
235
242
|
min-width: 0;
|
|
236
|
-
margin-right: math.div(
|
|
237
|
-
margin-left: math.div(
|
|
243
|
+
margin-right: math.div(var.$grid-gutter-width, 2);
|
|
244
|
+
margin-left: math.div(var.$grid-gutter-width, 2);
|
|
238
245
|
word-break: break-word;
|
|
239
246
|
overflow-wrap: break-word;
|
|
240
247
|
}
|
|
241
|
-
@include bp-down(sm) {
|
|
248
|
+
@include breakpoint.bp-down(sm) {
|
|
242
249
|
.wp-block-column {
|
|
243
250
|
flex-basis: 100% !important;
|
|
244
251
|
}
|
|
245
252
|
}
|
|
246
253
|
|
|
247
|
-
@include bp-up(md) {
|
|
254
|
+
@include breakpoint.bp-up(md) {
|
|
248
255
|
.wp-block-column {
|
|
249
256
|
flex-basis: 0;
|
|
250
257
|
flex-grow: 1;
|
|
@@ -255,18 +262,18 @@ div.aligncenter {
|
|
|
255
262
|
}
|
|
256
263
|
|
|
257
264
|
.wp-block-column:not(:first-child) {
|
|
258
|
-
margin-left: math.div(
|
|
265
|
+
margin-left: math.div(var.$grid-gutter-width, 2);
|
|
259
266
|
}
|
|
260
267
|
}
|
|
261
268
|
|
|
262
|
-
@include bp-between(sm, md) {
|
|
269
|
+
@include breakpoint.bp-between(sm, md) {
|
|
263
270
|
.wp-block-column:nth-child(even) {
|
|
264
|
-
margin-left: math.div(
|
|
271
|
+
margin-left: math.div(var.$grid-gutter-width, 2);
|
|
265
272
|
}
|
|
266
273
|
}
|
|
267
274
|
|
|
268
275
|
.wp-block-column:nth-child(even) {
|
|
269
|
-
margin-left: math.div(
|
|
276
|
+
margin-left: math.div(var.$grid-gutter-width, 2);
|
|
270
277
|
}
|
|
271
278
|
|
|
272
279
|
.wp-block-columns.are-vertically-aligned-top {
|
|
@@ -302,8 +309,8 @@ div.aligncenter {
|
|
|
302
309
|
|
|
303
310
|
.wp-block-table {
|
|
304
311
|
td {
|
|
305
|
-
padding-top: rhythm(2) !important;
|
|
306
|
-
padding-bottom: rhythm(2) !important;
|
|
312
|
+
padding-top: func.rhythm(2) !important;
|
|
313
|
+
padding-bottom: func.rhythm(2) !important;
|
|
307
314
|
}
|
|
308
315
|
|
|
309
316
|
[class*='lines'],
|
|
@@ -316,8 +323,8 @@ div.aligncenter {
|
|
|
316
323
|
background-image:
|
|
317
324
|
linear-gradient(
|
|
318
325
|
to right,
|
|
319
|
-
|
|
320
|
-
|
|
326
|
+
colors.$color-cyberspace,
|
|
327
|
+
colors.$color-cyberspace 2px,
|
|
321
328
|
transparent 2px,
|
|
322
329
|
transparent 6px
|
|
323
330
|
);
|
|
@@ -331,27 +338,27 @@ div.aligncenter {
|
|
|
331
338
|
.wp-block-image,
|
|
332
339
|
.wp-block-image:not(.is-style-rounded) {
|
|
333
340
|
img {
|
|
334
|
-
border-radius:
|
|
341
|
+
border-radius: var.$border-radius;
|
|
335
342
|
}
|
|
336
343
|
}
|
|
337
344
|
|
|
338
345
|
.wp-block-embed-youtube {
|
|
339
|
-
border-radius:
|
|
346
|
+
border-radius: var.$border-radius;
|
|
340
347
|
overflow: hidden;
|
|
341
348
|
}
|
|
342
349
|
|
|
343
350
|
.wp-block-graph {
|
|
344
|
-
margin-top: rhythm(4);
|
|
351
|
+
margin-top: func.rhythm(4);
|
|
345
352
|
|
|
346
353
|
& + & {
|
|
347
|
-
margin-top: -#{rhythm(3)};
|
|
354
|
+
margin-top: -#{func.rhythm(3)};
|
|
348
355
|
}
|
|
349
356
|
}
|
|
350
357
|
|
|
351
358
|
hr.wp-block-separator {
|
|
352
359
|
display: flex;
|
|
353
360
|
border-top: 0;
|
|
354
|
-
border-color:
|
|
361
|
+
border-color: colors.$color-concrete;
|
|
355
362
|
|
|
356
363
|
&[class*=align] {
|
|
357
364
|
height: 22px;
|
|
@@ -365,20 +372,20 @@ hr.wp-block-separator {
|
|
|
365
372
|
|
|
366
373
|
&.aligncenter {
|
|
367
374
|
width: 50vw;
|
|
368
|
-
max-width:
|
|
369
|
-
margin-top: rhythm(2);
|
|
370
|
-
margin-bottom: rhythm(2);
|
|
375
|
+
max-width: func.to_rem(469px);
|
|
376
|
+
margin-top: func.rhythm(2);
|
|
377
|
+
margin-bottom: func.rhythm(2);
|
|
371
378
|
}
|
|
372
379
|
|
|
373
380
|
&.alignleft {
|
|
374
381
|
float: none;
|
|
375
382
|
margin-left: 0;
|
|
376
|
-
max-width:
|
|
377
|
-
margin-top: rhythm(2);
|
|
378
|
-
margin-bottom: rhythm(2);
|
|
383
|
+
max-width: func.to_rem(90px);
|
|
384
|
+
margin-top: func.rhythm(2);
|
|
385
|
+
margin-bottom: func.rhythm(2);
|
|
379
386
|
|
|
380
|
-
@include bp-up(lg) {
|
|
381
|
-
margin-left:
|
|
387
|
+
@include breakpoint.bp-up(lg) {
|
|
388
|
+
margin-left: var.$indent * 2;
|
|
382
389
|
}
|
|
383
390
|
}
|
|
384
391
|
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use 'colors-functions' as colorFunc;
|
|
2
3
|
|
|
3
4
|
// Generate background color classes e.g. .background-ruby
|
|
4
5
|
/// @group Colors
|
|
5
6
|
.background {
|
|
6
|
-
@include color_values(
|
|
7
|
+
@include colorFunc.color_values(colorFunc.$colors, 'background-color', $separator: '-');
|
|
7
8
|
}
|
|
@@ -1,71 +1,73 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use 'sass:meta';
|
|
3
|
+
@use 'colors' as colors;
|
|
2
4
|
|
|
3
5
|
/// Get a shaded version of a color
|
|
4
6
|
/// @group Colors
|
|
5
7
|
@function shade($color, $percentage) {
|
|
6
|
-
@return mix(black,
|
|
8
|
+
@return mix(black, colors.$color, $percentage);
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
/// Get a tinted version of a color
|
|
10
12
|
/// @group Colors
|
|
11
13
|
@function tint($color, $percentage) {
|
|
12
|
-
@return mix(white,
|
|
14
|
+
@return mix(white, colors.$color, $percentage);
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
/// @group Colors
|
|
16
18
|
$colors: (
|
|
17
|
-
black:
|
|
18
|
-
snow:
|
|
19
|
-
cyberspace:
|
|
20
|
-
dark:
|
|
21
|
-
granit:
|
|
22
|
-
concrete:
|
|
23
|
-
ash:
|
|
19
|
+
black: colors.$color-black,
|
|
20
|
+
snow: colors.$color-snow,
|
|
21
|
+
cyberspace: colors.$color-cyberspace,
|
|
22
|
+
dark: colors.$color-dark,
|
|
23
|
+
granit: colors.$color-granit,
|
|
24
|
+
concrete: colors.$color-concrete,
|
|
25
|
+
ash: colors.$color-ash,
|
|
24
26
|
ruby: (
|
|
25
|
-
base:
|
|
26
|
-
light:
|
|
27
|
-
dark:
|
|
28
|
-
medium-dark:
|
|
27
|
+
base: colors.$color-ruby,
|
|
28
|
+
light: colors.$color-ruby-light,
|
|
29
|
+
dark: colors.$color-ruby-dark,
|
|
30
|
+
medium-dark: colors.$color-ruby-medium-dark
|
|
29
31
|
),
|
|
30
32
|
peacock: (
|
|
31
|
-
base:
|
|
32
|
-
light:
|
|
33
|
-
dark:
|
|
34
|
-
medium-dark:
|
|
33
|
+
base: colors.$color-peacock,
|
|
34
|
+
light: colors.$color-peacock-light,
|
|
35
|
+
dark: colors.$color-peacock-dark,
|
|
36
|
+
medium-dark: colors.$color-peacock-medium-dark
|
|
35
37
|
),
|
|
36
38
|
jade: (
|
|
37
|
-
base:
|
|
38
|
-
light:
|
|
39
|
-
dark:
|
|
40
|
-
medium-dark:
|
|
39
|
+
base: colors.$color-jade,
|
|
40
|
+
light: colors.$color-jade-light,
|
|
41
|
+
dark: colors.$color-jade-dark,
|
|
42
|
+
medium-dark: colors.$color-jade-medium-dark
|
|
41
43
|
),
|
|
42
44
|
sandstone: (
|
|
43
|
-
base:
|
|
44
|
-
light:
|
|
45
|
-
dark:
|
|
46
|
-
medium-dark:
|
|
45
|
+
base: colors.$color-sandstone,
|
|
46
|
+
light: colors.$color-sandstone-light,
|
|
47
|
+
dark: colors.$color-sandstone-dark,
|
|
48
|
+
medium-dark: colors.$color-sandstone-medium-dark
|
|
47
49
|
),
|
|
48
50
|
lemon: (
|
|
49
|
-
base:
|
|
50
|
-
light:
|
|
51
|
-
dark:
|
|
52
|
-
medium-dark:
|
|
51
|
+
base: colors.$color-lemon,
|
|
52
|
+
light: colors.$color-lemon-light,
|
|
53
|
+
dark: colors.$color-lemon-dark,
|
|
54
|
+
medium-dark: colors.$color-lemon-medium-dark
|
|
53
55
|
),
|
|
54
56
|
ocean: (
|
|
55
|
-
base:
|
|
56
|
-
light:
|
|
57
|
-
dark :
|
|
58
|
-
medium-dark:
|
|
57
|
+
base: colors.$color-ocean,
|
|
58
|
+
light: colors.$color-ocean-light,
|
|
59
|
+
dark : colors.$color-ocean-dark,
|
|
60
|
+
medium-dark: colors.$color-ocean-medium-dark
|
|
59
61
|
)
|
|
60
62
|
);
|
|
61
63
|
|
|
62
|
-
/// Generate color values on attributes e.g @include color_values(
|
|
64
|
+
/// Generate color values on attributes e.g @include color_values(colors.$colors, 'color', $separator: '-');
|
|
63
65
|
/// Generates this: color: color-name;
|
|
64
66
|
/// @group Colors
|
|
65
67
|
@mixin color_values($map, $attribute, $prefix: '-', $separator: '-', $base: 'base') {
|
|
66
68
|
@each $key, $value in $map {
|
|
67
69
|
&#{if($key != $base, #{$prefix}#{$key}, '')} {
|
|
68
|
-
@if type-of($value) == 'map' {
|
|
70
|
+
@if meta.type-of($value) == 'map' {
|
|
69
71
|
@include color_values($value, $attribute, $separator);
|
|
70
72
|
}
|
|
71
73
|
@else {
|
|
@@ -75,13 +77,13 @@ $colors: (
|
|
|
75
77
|
}
|
|
76
78
|
}
|
|
77
79
|
|
|
78
|
-
/// Generate color classes with attribute and value and pass optional nested element e.g @include color_classes ($map:
|
|
80
|
+
/// Generate color classes with attribute and value and pass optional nested element e.g @include color_classes ($map: colors.$colors,$prefix: '-',$attribute: 'fill',$element: 'svg');
|
|
79
81
|
/// Generates this: element.color-name element {fill: color-name}
|
|
80
82
|
/// @group Colors
|
|
81
83
|
@mixin color_classes($map, $attribute, $prefix: '', $separator: '.', $base: 'base', $element: '') {
|
|
82
84
|
@each $key, $value in $map {
|
|
83
85
|
&#{if($key != $base, #{$separator}#{$key}, '')} {
|
|
84
|
-
@if type-of($value) == 'map' {
|
|
86
|
+
@if meta.type-of($value) == 'map' {
|
|
85
87
|
@include color_classes($value, $attribute, $prefix: '.', $separator: '-', $element: $element);
|
|
86
88
|
}
|
|
87
89
|
@else {
|
|
@@ -104,7 +106,7 @@ $colors: (
|
|
|
104
106
|
/// @group Colors
|
|
105
107
|
@mixin wordpress_color_classes($map, $attribute, $separator: '-', $suffix: '', $base: 'base') {
|
|
106
108
|
@each $key, $value in $map {
|
|
107
|
-
@if type-of($value) == 'map' {
|
|
109
|
+
@if meta.type-of($value) == 'map' {
|
|
108
110
|
&#{if($key != $base, #{$separator}#{$key}, '')} {
|
|
109
111
|
@include wordpress_color_classes($value, $attribute, $separator, '-color');
|
|
110
112
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
2
|
@use "sass:color";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
/* @group Colors */
|
|
5
5
|
$color-black: #000 !default;
|
|
6
6
|
$color-snow: #fff !default;
|
|
7
7
|
$color-granit: #8e9297 !default;
|
|
@@ -25,7 +25,7 @@ $color-facebook: #0866ff !default;
|
|
|
25
25
|
$color-twitter: #00aced !default;
|
|
26
26
|
$color-linkedin: #0a66c2 !default;
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
/* Dark colors only for accessibility */
|
|
29
29
|
$color-ruby-dark: color.adjust($color-ruby, $lightness: -20%);
|
|
30
30
|
$color-peacock-dark: color.adjust($color-peacock, $lightness: -20%);
|
|
31
31
|
$color-jade-dark: color.adjust($color-jade, $lightness: -20%);
|
|
@@ -33,7 +33,7 @@ $color-sandstone-dark: color.adjust($color-sandstone, $lightness: -20%);
|
|
|
33
33
|
$color-lemon-dark: color.adjust($color-lemon, $lightness: -15%);
|
|
34
34
|
$color-ocean-dark:color.adjust($color-ocean, $lightness: -24%);
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
/* Medium dark colors, for decoration purposes like borders */
|
|
37
37
|
$color-ruby-medium-dark: color.adjust($color-ruby, $lightness: -10%);
|
|
38
38
|
$color-peacock-medium-dark: color.adjust($color-peacock, $lightness: -10%);
|
|
39
39
|
$color-jade-medium-dark: color.adjust($color-jade, $lightness: -10%);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use 'colors-functions' as colorFunc;
|
|
2
3
|
|
|
3
4
|
// Generate text color classes e.g. .color-ruby
|
|
4
5
|
/// @group Colors
|
|
5
6
|
.color {
|
|
6
|
-
@include color_values(
|
|
7
|
+
@include colorFunc.color_values(colorFunc.$colors, 'color', $separator: '-');
|
|
7
8
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
+
@use 'colors-functions' as colorFunc;
|
|
2
3
|
|
|
3
4
|
// Generate wordpress color classes e.g. .has-ruby-color
|
|
4
5
|
/// @group Colors
|
|
5
6
|
.has {
|
|
6
|
-
@include wordpress_color_classes (
|
|
7
|
-
|
|
7
|
+
@include colorFunc.wordpress_color_classes (
|
|
8
|
+
colorFunc.$colors,
|
|
8
9
|
$attribute: 'color',
|
|
9
10
|
$separator: '-',
|
|
10
11
|
$suffix: '-color'
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
2
|
@use "sass:color";
|
|
3
|
+
@use '../bem' as bem;
|
|
4
|
+
@use '../variables' as var;
|
|
5
|
+
@use '../functions' as func;
|
|
6
|
+
@use '../extends';
|
|
7
|
+
@use '../colors/colors' as colors;
|
|
3
8
|
|
|
4
|
-
@include b(field-group) {
|
|
9
|
+
@include bem.b(field-group) {
|
|
5
10
|
position: relative;
|
|
6
|
-
margin-bottom: rhythm(4);
|
|
11
|
+
margin-bottom: func.rhythm(4);
|
|
7
12
|
|
|
8
13
|
&:last-child {
|
|
9
14
|
margin-bottom: 0;
|
|
@@ -13,7 +18,7 @@
|
|
|
13
18
|
textarea,
|
|
14
19
|
select {
|
|
15
20
|
+ .button {
|
|
16
|
-
margin-top: rhythm(1);
|
|
21
|
+
margin-top: func.rhythm(1);
|
|
17
22
|
}
|
|
18
23
|
}
|
|
19
24
|
|
|
@@ -25,28 +30,28 @@
|
|
|
25
30
|
@extend %invalid;
|
|
26
31
|
}
|
|
27
32
|
|
|
28
|
-
@include b(input-help) {
|
|
29
|
-
background-color:
|
|
33
|
+
@include bem.b(input-help) {
|
|
34
|
+
background-color: colors.$color-ruby-light;
|
|
30
35
|
|
|
31
36
|
&::selection {
|
|
32
|
-
background-color:
|
|
37
|
+
background-color: colors.$color-ruby;
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
&::-moz-selection {
|
|
36
|
-
background-color:
|
|
41
|
+
background-color: colors.$color-ruby;
|
|
37
42
|
}
|
|
38
43
|
}
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
|
|
42
|
-
@include b(input-help) {
|
|
47
|
+
@include bem.b(input-help) {
|
|
43
48
|
width: 100%;
|
|
44
|
-
padding: rhythm(0.5) rhythm(1);
|
|
45
|
-
transform: translateY(
|
|
46
|
-
border-bottom-right-radius:
|
|
47
|
-
border-bottom-left-radius:
|
|
48
|
-
background-color:
|
|
49
|
-
font-size:
|
|
49
|
+
padding: func.rhythm(0.5) func.rhythm(1);
|
|
50
|
+
transform: translateY(func.to_rem(-3px));
|
|
51
|
+
border-bottom-right-radius: var.$border-radius;
|
|
52
|
+
border-bottom-left-radius: var.$border-radius;
|
|
53
|
+
background-color: colors.$color-concrete;
|
|
54
|
+
font-size: func.to_rem(16px);
|
|
50
55
|
|
|
51
56
|
&:empty {
|
|
52
57
|
display: none;
|
|
@@ -66,7 +71,7 @@ fieldset[disabled] {
|
|
|
66
71
|
&:hover,
|
|
67
72
|
&:focus {
|
|
68
73
|
svg {
|
|
69
|
-
fill:
|
|
74
|
+
fill: colors.$color-cyberspace;
|
|
70
75
|
}
|
|
71
76
|
}
|
|
72
77
|
}
|
|
@@ -79,9 +84,9 @@ fieldset[disabled] {
|
|
|
79
84
|
+ label {
|
|
80
85
|
@extend %disabled;
|
|
81
86
|
|
|
82
|
-
background-color:
|
|
83
|
-
box-shadow: 0 0 0 1px inset
|
|
84
|
-
color:
|
|
87
|
+
background-color: colors.$color-granit;
|
|
88
|
+
box-shadow: 0 0 0 1px inset colors.$color-granit;
|
|
89
|
+
color: colors.$color-granit;
|
|
85
90
|
|
|
86
91
|
&:hover,
|
|
87
92
|
&:focus {
|
|
@@ -95,7 +100,7 @@ fieldset[disabled] {
|
|
|
95
100
|
@extend %disabled;
|
|
96
101
|
|
|
97
102
|
&::before {
|
|
98
|
-
background-color: color.adjust(
|
|
103
|
+
background-color: color.adjust(colors.$color-concrete, $lightness: -5%) !important;
|
|
99
104
|
}
|
|
100
105
|
}
|
|
101
106
|
}
|
|
@@ -105,14 +110,14 @@ fieldset[disabled] {
|
|
|
105
110
|
@extend %disabled;
|
|
106
111
|
|
|
107
112
|
&::before {
|
|
108
|
-
background-color: color.adjust(
|
|
113
|
+
background-color: color.adjust(colors.$color-concrete, $lightness: -5%);
|
|
109
114
|
}
|
|
110
115
|
|
|
111
116
|
&:hover,
|
|
112
117
|
&:focus {
|
|
113
118
|
/* stylelint-disable */
|
|
114
119
|
&::before {
|
|
115
|
-
background-color: color.adjust(
|
|
120
|
+
background-color: color.adjust(colors.$color-concrete, $lightness: -5%);
|
|
116
121
|
}
|
|
117
122
|
/* stylelint-enable */
|
|
118
123
|
}
|
|
@@ -124,7 +129,7 @@ fieldset[disabled] {
|
|
|
124
129
|
|
|
125
130
|
/* stylelint-disable */
|
|
126
131
|
&::before {
|
|
127
|
-
background-color:
|
|
132
|
+
background-color: colors.$color-cyberspace;
|
|
128
133
|
}
|
|
129
134
|
/* stylelint-enable */
|
|
130
135
|
}
|