@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,5 +1,9 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
2
|
@use "sass:color";
|
|
3
|
+
@use 'colors/colors' as colors;
|
|
4
|
+
@use 'variables' as var;
|
|
5
|
+
@use 'functions' as func;
|
|
6
|
+
@use 'mixins' as mixin;
|
|
3
7
|
|
|
4
8
|
%normalize-links {
|
|
5
9
|
padding: 0;
|
|
@@ -16,16 +20,16 @@
|
|
|
16
20
|
}
|
|
17
21
|
|
|
18
22
|
%link-styles {
|
|
19
|
-
padding: rhythm(0) rhythm(0.5);
|
|
20
|
-
border-bottom:
|
|
23
|
+
padding: func.rhythm(0) func.rhythm(0.5);
|
|
24
|
+
border-bottom: func.to_rem(2px) solid colors.$color-peacock;
|
|
21
25
|
color: var(---cyberspace-color);
|
|
22
26
|
text-decoration: none;
|
|
23
27
|
|
|
24
28
|
&:hover,
|
|
25
29
|
&:focus {
|
|
26
|
-
border-bottom:
|
|
27
|
-
border-radius:
|
|
28
|
-
background-color:
|
|
30
|
+
border-bottom: func.to_rem(2px) solid colors.$color-ocean-light;
|
|
31
|
+
border-radius: var.$border-radius;
|
|
32
|
+
background-color: colors.$color-ocean-light;
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
&[href^='mailto'] {
|
|
@@ -55,25 +59,25 @@
|
|
|
55
59
|
%input {
|
|
56
60
|
display: block;
|
|
57
61
|
position: relative;
|
|
58
|
-
z-index: z_index(middleground);
|
|
62
|
+
z-index: func.z_index(middleground);
|
|
59
63
|
width: 100%;
|
|
60
64
|
min-width: 0;
|
|
61
|
-
padding: rhythm(1);
|
|
62
|
-
border: 1px solid
|
|
63
|
-
border-radius:
|
|
64
|
-
background-color: color.adjust(
|
|
65
|
+
padding: func.rhythm(1);
|
|
66
|
+
border: 1px solid colors.$color-granit;
|
|
67
|
+
border-radius: var.$border-radius;
|
|
68
|
+
background-color: color.adjust(colors.$color-ash, $lightness: 4%);
|
|
65
69
|
-webkit-appearance: none;
|
|
66
|
-
font-size:
|
|
70
|
+
font-size: func.to_rem(16px);
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
%input-focus {
|
|
70
|
-
border-color:
|
|
71
|
-
box-shadow: 0 0 0 inset rgba(
|
|
74
|
+
border-color: colors.$color-ocean;
|
|
75
|
+
box-shadow: 0 0 0 inset rgba(colors.$color-cyberspace, 0.2), 0 1px 2px rgba(colors.$color-cyberspace, 0.2), 0 0 0 3px colors.$color-ocean-light;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
%invalid {
|
|
75
|
-
border-color:
|
|
76
|
-
background-color: color.adjust(
|
|
79
|
+
border-color: colors.$color-ruby;
|
|
80
|
+
background-color: color.adjust(colors.$color-ruby-light, $lightness: 16%);
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
%disabled {
|
|
@@ -89,12 +93,12 @@
|
|
|
89
93
|
|
|
90
94
|
%discreet {
|
|
91
95
|
border-style: dashed;
|
|
92
|
-
border-color: color.adjust(
|
|
96
|
+
border-color: color.adjust(colors.$color-granit, $lightness: 20%);
|
|
93
97
|
background-color: transparent;
|
|
94
98
|
|
|
95
99
|
&:focus {
|
|
96
100
|
border-style: solid;
|
|
97
|
-
background-color: color.adjust(
|
|
101
|
+
background-color: color.adjust(colors.$color-ash, $lightness: 4%);
|
|
98
102
|
}
|
|
99
103
|
}
|
|
100
104
|
|
|
@@ -107,15 +111,15 @@
|
|
|
107
111
|
}
|
|
108
112
|
|
|
109
113
|
%tag {
|
|
110
|
-
@include tag;
|
|
114
|
+
@include mixin.tag;
|
|
111
115
|
}
|
|
112
116
|
|
|
113
117
|
%tag-light {
|
|
114
|
-
@include tag-light;
|
|
118
|
+
@include mixin.tag-light;
|
|
115
119
|
}
|
|
116
120
|
|
|
117
121
|
%box-shadow {
|
|
118
|
-
box-shadow: 0 rhythm(0.5) rhythm(0.5) rgba(
|
|
122
|
+
box-shadow: 0 func.rhythm(0.5) func.rhythm(0.5) rgba(colors.$color-cyberspace, 0.1) !important;
|
|
119
123
|
}
|
|
120
124
|
|
|
121
125
|
%button-toolbar {
|
|
@@ -124,46 +128,46 @@
|
|
|
124
128
|
flex-wrap: nowrap;
|
|
125
129
|
align-items: center;
|
|
126
130
|
justify-content: center;
|
|
127
|
-
width: rhythm(4);
|
|
128
|
-
height: rhythm(4);
|
|
131
|
+
width: func.rhythm(4);
|
|
132
|
+
height: func.rhythm(4);
|
|
129
133
|
margin: 0;
|
|
130
|
-
padding: rhythm(1);
|
|
134
|
+
padding: func.rhythm(1);
|
|
131
135
|
overflow: hidden;
|
|
132
136
|
border: 0;
|
|
133
137
|
border-radius: 0;
|
|
134
|
-
border-radius:
|
|
135
|
-
background-color:
|
|
138
|
+
border-radius: var.$border-radius;
|
|
139
|
+
background-color: colors.$color-snow;
|
|
136
140
|
cursor: pointer;
|
|
137
141
|
|
|
138
142
|
&:hover,
|
|
139
143
|
&:focus,
|
|
140
144
|
&:active,
|
|
141
145
|
&.is-active {
|
|
142
|
-
background-color:
|
|
146
|
+
background-color: colors.$color-cyberspace;
|
|
143
147
|
|
|
144
148
|
svg {
|
|
145
|
-
fill:
|
|
149
|
+
fill: colors.$color-snow;
|
|
146
150
|
}
|
|
147
151
|
}
|
|
148
152
|
|
|
149
153
|
&:disabled {
|
|
150
|
-
background-color:
|
|
154
|
+
background-color: colors.$color-concrete !important;
|
|
151
155
|
box-shadow: none;
|
|
152
156
|
cursor: not-allowed;
|
|
153
157
|
|
|
154
158
|
[class*='text'] {
|
|
155
|
-
color:
|
|
159
|
+
color: colors.$color-snow !important;
|
|
156
160
|
}
|
|
157
161
|
|
|
158
162
|
svg {
|
|
159
|
-
fill:
|
|
163
|
+
fill: colors.$color-granit;
|
|
160
164
|
}
|
|
161
165
|
}
|
|
162
166
|
|
|
163
167
|
svg {
|
|
164
|
-
width: rhythm(2);
|
|
165
|
-
height: rhythm(2);
|
|
166
|
-
fill:
|
|
168
|
+
width: func.rhythm(2);
|
|
169
|
+
height: func.rhythm(2);
|
|
170
|
+
fill: colors.$color-cyberspace;
|
|
167
171
|
}
|
|
168
172
|
}
|
|
169
173
|
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
@charset
|
|
2
|
-
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use "sass:map";
|
|
3
3
|
@use "sass:math";
|
|
4
4
|
|
|
5
|
+
// Size base
|
|
6
|
+
$size-base: 18px;
|
|
7
|
+
// Base unit
|
|
8
|
+
$base-unit: math.div($size-base, 2);
|
|
9
|
+
// Grid columns
|
|
10
|
+
$grid-columns: 18;
|
|
11
|
+
|
|
5
12
|
@function rhythm($lines) {
|
|
6
|
-
@return
|
|
13
|
+
@return to_rem($lines * $base-unit);
|
|
7
14
|
}
|
|
8
15
|
|
|
9
16
|
// Converts px value to rem
|
|
10
|
-
@function
|
|
17
|
+
@function to_rem($size) {
|
|
11
18
|
@return math.div($size, $size-base) * 1rem;
|
|
12
19
|
}
|
|
13
20
|
|
|
@@ -18,13 +25,22 @@
|
|
|
18
25
|
// Convert rem back to px
|
|
19
26
|
@function rem_to_px($size) {
|
|
20
27
|
$value: parse_int($size) * 10px;
|
|
21
|
-
@return round($value);
|
|
28
|
+
@return math.round($value);
|
|
22
29
|
}
|
|
23
30
|
|
|
31
|
+
// Z-indexes
|
|
32
|
+
$z-index: (
|
|
33
|
+
'foreground': 1000,
|
|
34
|
+
'foregroundMinus': 999,
|
|
35
|
+
'middleground': 500,
|
|
36
|
+
'middlegroundImportant': 750,
|
|
37
|
+
'background': 1
|
|
38
|
+
);
|
|
39
|
+
|
|
24
40
|
@function z_index($layer) {
|
|
25
|
-
@return
|
|
41
|
+
@return map.get($z-index, $layer);
|
|
26
42
|
}
|
|
27
43
|
|
|
28
44
|
@function make_col($size, $columns: $grid-columns) {
|
|
29
|
-
@return percentage(math.div($size, $columns));
|
|
45
|
+
@return math.percentage(math.div($size, $columns));
|
|
30
46
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
2
|
|
|
3
3
|
/// Create an atom with the given name. Alias for the block mixin that autoprefixes the class with a-.
|
|
4
4
|
///@group General
|
|
5
5
|
@use "sass:math";
|
|
6
|
+
@use 'variables' as var;
|
|
7
|
+
@use 'functions' as func;
|
|
8
|
+
@use 'bem' as bem;
|
|
9
|
+
@use 'colors/colors' as colors;
|
|
6
10
|
|
|
7
11
|
@mixin atom($name) {
|
|
8
|
-
@include b(a-#{$name}) {
|
|
12
|
+
@include bem.b(a-#{$name}) {
|
|
9
13
|
@content;
|
|
10
14
|
}
|
|
11
15
|
}
|
|
@@ -13,7 +17,7 @@
|
|
|
13
17
|
/// Create a molecule with the given name. Alias for the block mixin that autoprefixes the class with m-.
|
|
14
18
|
/// @group General
|
|
15
19
|
@mixin molecule($name) {
|
|
16
|
-
@include b(m-#{$name}) {
|
|
20
|
+
@include bem.b(m-#{$name}) {
|
|
17
21
|
@content;
|
|
18
22
|
}
|
|
19
23
|
}
|
|
@@ -21,7 +25,7 @@
|
|
|
21
25
|
/// Create an organism with the given name. Alias for the block mixin that autoprefixes the class with o-.
|
|
22
26
|
/// @group General
|
|
23
27
|
@mixin organism($name) {
|
|
24
|
-
@include b(o-#{$name}) {
|
|
28
|
+
@include bem.b(o-#{$name}) {
|
|
25
29
|
@content;
|
|
26
30
|
}
|
|
27
31
|
}
|
|
@@ -29,7 +33,7 @@
|
|
|
29
33
|
/// Create a Block with the given name.
|
|
30
34
|
/// @group General
|
|
31
35
|
@mixin b($name) {
|
|
32
|
-
.#{
|
|
36
|
+
.#{var.$namespace}#{$name} {
|
|
33
37
|
@content;
|
|
34
38
|
}
|
|
35
39
|
}
|
|
@@ -49,11 +53,11 @@
|
|
|
49
53
|
|
|
50
54
|
// Box shadows
|
|
51
55
|
@mixin box-shadow($shadow-color, $color-opacity) {
|
|
52
|
-
box-shadow: 0 rhythm(math.div(1, 3)) rhythm(1 * 0.75) rgba($shadow-color, $color-opacity);
|
|
56
|
+
box-shadow: 0 func.rhythm(math.div(1, 3)) func.rhythm(1 * 0.75) rgba($shadow-color, $color-opacity);
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
@mixin card-shadow($shadow-color, $color-opacity) {
|
|
56
|
-
box-shadow: 0 rhythm(8) rhythm(12) rgba(
|
|
60
|
+
box-shadow: 0 func.rhythm(8) func.rhythm(12) rgba(colors.$color-cyberspace, 0.2);
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
// Alerts
|
|
@@ -65,34 +69,34 @@
|
|
|
65
69
|
|
|
66
70
|
// Tags
|
|
67
71
|
@mixin tag {
|
|
68
|
-
border: 1px solid
|
|
69
|
-
border-radius:
|
|
70
|
-
color:
|
|
72
|
+
border: 1px solid colors.$color-granit;
|
|
73
|
+
border-radius: func.to_rem(17.5px);
|
|
74
|
+
color: colors.$color-cyberspace;
|
|
71
75
|
|
|
72
76
|
&:hover,
|
|
73
77
|
&:focus {
|
|
74
|
-
border: 1px solid
|
|
75
|
-
border-radius:
|
|
76
|
-
background-color:
|
|
77
|
-
color:
|
|
78
|
+
border: 1px solid colors.$color-granit;
|
|
79
|
+
border-radius: func.to_rem(17.5px);
|
|
80
|
+
background-color: colors.$color-granit;
|
|
81
|
+
color: colors.$color-snow;
|
|
78
82
|
|
|
79
83
|
[class*=text] {
|
|
80
|
-
color:
|
|
84
|
+
color: colors.$color-snow;
|
|
81
85
|
}
|
|
82
86
|
}
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
@mixin tag-light {
|
|
86
|
-
border-color:
|
|
87
|
-
color:
|
|
90
|
+
border-color: colors.$color-snow;
|
|
91
|
+
color: colors.$color-snow;
|
|
88
92
|
|
|
89
93
|
&:hover,
|
|
90
94
|
&:focus {
|
|
91
95
|
border: 1px solid transparent;
|
|
92
|
-
background-color: rgba(
|
|
96
|
+
background-color: rgba(colors.$color-snow, 0.5);
|
|
93
97
|
|
|
94
98
|
[class*=text] {
|
|
95
|
-
color:
|
|
99
|
+
color: colors.$color-cyberspace;
|
|
96
100
|
}
|
|
97
101
|
}
|
|
98
102
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
2
|
|
|
3
3
|
@use "sass:math";
|
|
4
|
+
@use '../vendor/baseline/plumber' as plumber;
|
|
5
|
+
@use '../vendor/grid/functions' as grid;
|
|
6
|
+
@use '../configurations/functions' as func;
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
$namespace: '' !default;
|
|
6
9
|
|
|
7
10
|
// Typography
|
|
8
11
|
$font-family-base: 'HK Grotesk', sans-serif !default;
|
|
@@ -29,14 +32,14 @@ $size-small: 12px !default;
|
|
|
29
32
|
|
|
30
33
|
// Base units
|
|
31
34
|
$base-unit: math.div($size-base, 2) !default;
|
|
32
|
-
$rem-size:
|
|
35
|
+
$rem-size: func.to_rem($base-unit) !default;
|
|
33
36
|
|
|
34
37
|
// Small size
|
|
35
|
-
$small-text:
|
|
38
|
+
$small-text: func.to_rem($size-small);
|
|
36
39
|
|
|
37
40
|
// Baseline defaults
|
|
38
|
-
@include plumber-set-defaults(
|
|
39
|
-
$grid-height:
|
|
41
|
+
@include plumber.plumber-set-defaults(
|
|
42
|
+
$grid-height: func.to_rem($base-unit), // 9px based on 18px font size
|
|
40
43
|
$baseline: $body-baseline,
|
|
41
44
|
$font-size: 2,
|
|
42
45
|
$line-height: 3,
|
|
@@ -61,15 +64,15 @@ $grid-breakpoints: (
|
|
|
61
64
|
xxl: 1400px
|
|
62
65
|
) !default;
|
|
63
66
|
|
|
64
|
-
@include
|
|
65
|
-
@include
|
|
67
|
+
@include grid.assert-ascending($grid-breakpoints, '$grid-breakpoints');
|
|
68
|
+
@include grid.assert-starts-at-zero($grid-breakpoints);
|
|
66
69
|
|
|
67
70
|
// Grid columns
|
|
68
71
|
//
|
|
69
72
|
// Set the number of columns and specify the width of the gutters.
|
|
70
73
|
|
|
71
74
|
$grid-columns: 18 !default;
|
|
72
|
-
$grid-gutter-width:
|
|
75
|
+
$grid-gutter-width: func.to_rem(20px) !default;
|
|
73
76
|
|
|
74
77
|
// Grid containers
|
|
75
78
|
//
|
|
@@ -79,25 +82,16 @@ $container-max-widths: (
|
|
|
79
82
|
xl: 1360px
|
|
80
83
|
) !default;
|
|
81
84
|
|
|
82
|
-
@include
|
|
85
|
+
@include grid.assert-ascending($container-max-widths, '$container-max-widths');
|
|
83
86
|
|
|
84
87
|
// Default border-radius
|
|
85
|
-
$border-radius: rhythm(0.5);
|
|
88
|
+
$border-radius: func.rhythm(0.5);
|
|
86
89
|
|
|
87
90
|
// Icons
|
|
88
|
-
$icon-size:
|
|
89
|
-
$icon-size-large:
|
|
90
|
-
$icon-size-medium:
|
|
91
|
-
$icon-size-small:
|
|
92
|
-
$icon-size-smallest:
|
|
93
|
-
|
|
94
|
-
// Z-indexes
|
|
95
|
-
$z-index: (
|
|
96
|
-
'foreground': 1000,
|
|
97
|
-
'foregroundMinus': 999,
|
|
98
|
-
'middleground': 500,
|
|
99
|
-
'middlegroundImportant': 750,
|
|
100
|
-
'background': 1
|
|
101
|
-
);
|
|
91
|
+
$icon-size: func.to_rem(24px);
|
|
92
|
+
$icon-size-large: func.to_rem(28px);
|
|
93
|
+
$icon-size-medium: func.to_rem(20px);
|
|
94
|
+
$icon-size-small: func.to_rem(16px);
|
|
95
|
+
$icon-size-smallest: func.to_rem(12px);
|
|
102
96
|
|
|
103
97
|
$indent: 3.78825%;
|
|
@@ -1,32 +1,39 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
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';
|
|
2
10
|
|
|
3
11
|
//
|
|
4
12
|
// Modifies Wordpress Core classes
|
|
5
13
|
//
|
|
6
|
-
@use "sass:math";
|
|
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); // <== You ugly magic number you, we hates it!
|
|
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); // <== You ugly magic number you, we hates it!
|
|
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
|
}
|
|
@@ -195,9 +202,9 @@ div.aligncenter {
|
|
|
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
|
|