@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,8 +1,15 @@
|
|
|
1
|
-
@charset
|
|
2
|
-
|
|
3
|
-
@
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/extends';
|
|
4
|
+
@use '../../configurations/bem' as bem;
|
|
5
|
+
@use '../../configurations/variables' as var;
|
|
6
|
+
@use '../../configurations/functions' as func;
|
|
7
|
+
@use '../../configurations/colors/colors' as colors;
|
|
8
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
9
|
+
|
|
10
|
+
@include mixin.atom(main-menu) {
|
|
11
|
+
|
|
12
|
+
@include bem.e(list) {
|
|
6
13
|
$root: &;
|
|
7
14
|
|
|
8
15
|
display: flex;
|
|
@@ -18,55 +25,55 @@
|
|
|
18
25
|
position: relative;
|
|
19
26
|
|
|
20
27
|
&:last-child {
|
|
21
|
-
#{$root}#{
|
|
28
|
+
#{$root}#{bem.$element-separator}link {
|
|
22
29
|
padding-right: 0;
|
|
23
30
|
}
|
|
24
31
|
}
|
|
25
32
|
}
|
|
26
33
|
|
|
27
|
-
@include e(button) {
|
|
28
|
-
padding: rhythm(2) 0 rhythm(2) rhythm(1);
|
|
34
|
+
@include bem.e(button) {
|
|
35
|
+
padding: func.rhythm(2) 0 func.rhythm(2) func.rhythm(1);
|
|
29
36
|
|
|
30
|
-
@include atom(button) {
|
|
31
|
-
padding: rhythm(0.4) rhythm(1.5);
|
|
32
|
-
font-family:
|
|
33
|
-
font-size:
|
|
37
|
+
@include mixin.atom(button) {
|
|
38
|
+
padding: func.rhythm(0.4) func.rhythm(1.5);
|
|
39
|
+
font-family: var.$font-family-medium;
|
|
40
|
+
font-size: var.$size-small;
|
|
34
41
|
|
|
35
|
-
@include e(text) {
|
|
42
|
+
@include bem.e(text) {
|
|
36
43
|
overflow: hidden;
|
|
37
44
|
text-overflow: ellipsis;
|
|
38
45
|
white-space: nowrap;
|
|
39
46
|
}
|
|
40
47
|
|
|
41
|
-
@include m(icon-left) {
|
|
42
|
-
padding-left: rhythm(5);
|
|
48
|
+
@include bem.m(icon-left) {
|
|
49
|
+
padding-left: func.rhythm(5);
|
|
43
50
|
}
|
|
44
51
|
|
|
45
|
-
@include m(icon-right) {
|
|
46
|
-
padding-right: rhythm(5);
|
|
52
|
+
@include bem.m(icon-right) {
|
|
53
|
+
padding-right: func.rhythm(5);
|
|
47
54
|
}
|
|
48
55
|
}
|
|
49
56
|
|
|
50
|
-
@include bp-up(sm) {
|
|
51
|
-
@include atom(button) {
|
|
52
|
-
padding-top: rhythm(0.6);
|
|
53
|
-
padding-bottom: rhythm(0.6);
|
|
54
|
-
font-size:
|
|
57
|
+
@include breakpoint.bp-up(sm) {
|
|
58
|
+
@include mixin.atom(button) {
|
|
59
|
+
padding-top: func.rhythm(0.6);
|
|
60
|
+
padding-bottom: func.rhythm(0.6);
|
|
61
|
+
font-size: var.$size-base;
|
|
55
62
|
}
|
|
56
63
|
}
|
|
57
64
|
}
|
|
58
65
|
|
|
59
|
-
@include e(link) {
|
|
66
|
+
@include bem.e(link) {
|
|
60
67
|
@extend %normalize-links;
|
|
61
68
|
|
|
62
69
|
display: flex;
|
|
63
70
|
align-items: center;
|
|
64
|
-
padding: rhythm(2) rhythm(1);
|
|
71
|
+
padding: func.rhythm(2) func.rhythm(1);
|
|
65
72
|
border: 0;
|
|
66
73
|
background-color: transparent;
|
|
67
74
|
color: var(--cyberspace-color);
|
|
68
|
-
font-family:
|
|
69
|
-
font-size:
|
|
75
|
+
font-family: var.$font-family-medium;
|
|
76
|
+
font-size: func.to_rem(var.$size-small);
|
|
70
77
|
text-decoration: none;
|
|
71
78
|
-webkit-appearance: none;
|
|
72
79
|
line-height: 1;
|
|
@@ -77,13 +84,13 @@
|
|
|
77
84
|
}
|
|
78
85
|
|
|
79
86
|
&.is-current {
|
|
80
|
-
color:
|
|
81
|
-
font-family:
|
|
87
|
+
color: colors.$color-ruby;
|
|
88
|
+
font-family: var.$font-family-medium;
|
|
82
89
|
}
|
|
83
90
|
|
|
84
91
|
&[aria-expanded='true'] {
|
|
85
92
|
|
|
86
|
-
@include b(icon-hamburger) {
|
|
93
|
+
@include bem.b(icon-hamburger) {
|
|
87
94
|
transform: rotate(-90deg);
|
|
88
95
|
background-color: transparent;
|
|
89
96
|
|
|
@@ -98,7 +105,7 @@
|
|
|
98
105
|
}
|
|
99
106
|
}
|
|
100
107
|
|
|
101
|
-
@include b(icon-arrow-down) {
|
|
108
|
+
@include bem.b(icon-arrow-down) {
|
|
102
109
|
&::before {
|
|
103
110
|
left: 0;
|
|
104
111
|
width: 100%;
|
|
@@ -113,14 +120,14 @@
|
|
|
113
120
|
}
|
|
114
121
|
}
|
|
115
122
|
|
|
116
|
-
@include b(icon-hamburger) {
|
|
123
|
+
@include bem.b(icon-hamburger) {
|
|
117
124
|
display: flex;
|
|
118
125
|
position: relative;
|
|
119
126
|
z-index: -1;
|
|
120
127
|
flex-direction: column;
|
|
121
|
-
width:
|
|
128
|
+
width: var.$icon-size-medium;
|
|
122
129
|
height: 2px;
|
|
123
|
-
margin-left: rhythm(1);
|
|
130
|
+
margin-left: func.rhythm(1);
|
|
124
131
|
transform-origin: 50% 50%;
|
|
125
132
|
transition: all 0.3s ease-out, background-color 0.15s ease-out;
|
|
126
133
|
border: 0;
|
|
@@ -140,23 +147,23 @@
|
|
|
140
147
|
}
|
|
141
148
|
|
|
142
149
|
&::before {
|
|
143
|
-
top: -#{
|
|
150
|
+
top: -#{func.to_rem(6px)};
|
|
144
151
|
}
|
|
145
152
|
|
|
146
153
|
&::after {
|
|
147
|
-
bottom: -#{
|
|
154
|
+
bottom: -#{func.to_rem(6px)};
|
|
148
155
|
}
|
|
149
156
|
}
|
|
150
157
|
|
|
151
|
-
@include b(icon-arrow-down) {
|
|
158
|
+
@include bem.b(icon-arrow-down) {
|
|
152
159
|
display: flex;
|
|
153
160
|
position: relative;
|
|
154
161
|
z-index: -1;
|
|
155
162
|
flex-direction: column;
|
|
156
|
-
width:
|
|
157
|
-
height:
|
|
158
|
-
margin-left: rhythm(1);
|
|
159
|
-
margin-top: -#{
|
|
163
|
+
width: var.$icon-size-medium;
|
|
164
|
+
height: var.$icon-size-medium;
|
|
165
|
+
margin-left: func.rhythm(1);
|
|
166
|
+
margin-top: -#{func.to_rem(3px)};
|
|
160
167
|
transform-origin: 50% 50%;
|
|
161
168
|
transition: all 0.3s ease-out;
|
|
162
169
|
border: 0;
|
|
@@ -176,42 +183,42 @@
|
|
|
176
183
|
}
|
|
177
184
|
|
|
178
185
|
&::before {
|
|
179
|
-
left: -#{
|
|
186
|
+
left: -#{func.to_rem(2px)};
|
|
180
187
|
transform: rotate(45deg);
|
|
181
188
|
}
|
|
182
189
|
|
|
183
190
|
&::after {
|
|
184
|
-
right: -#{
|
|
191
|
+
right: -#{func.to_rem(2px)};
|
|
185
192
|
transform: rotate(-45deg);
|
|
186
193
|
}
|
|
187
194
|
}
|
|
188
195
|
|
|
189
|
-
@include bp-up(sm) {
|
|
190
|
-
font-size:
|
|
196
|
+
@include breakpoint.bp-up(sm) {
|
|
197
|
+
font-size: var.$size-base;
|
|
191
198
|
}
|
|
192
199
|
}
|
|
193
200
|
|
|
194
|
-
@include e(text) {
|
|
195
|
-
margin-top: -#{
|
|
201
|
+
@include bem.e(text) {
|
|
202
|
+
margin-top: -#{func.to_rem(3px)}; /* Adjust for the font's bad placement in viewbox */
|
|
196
203
|
pointer-events: none;
|
|
197
204
|
}
|
|
198
205
|
}
|
|
199
206
|
|
|
200
|
-
@include e(subnav) {
|
|
207
|
+
@include bem.e(subnav) {
|
|
201
208
|
position: absolute;
|
|
202
209
|
left: 0;
|
|
203
|
-
top: calc(100% - #{rhythm(1)});
|
|
210
|
+
top: calc(100% - #{func.rhythm(1)});
|
|
204
211
|
margin: 0;
|
|
205
212
|
padding: 0;
|
|
206
|
-
background-color:
|
|
207
|
-
border: 1px solid
|
|
213
|
+
background-color: colors.$color-snow;
|
|
214
|
+
border: 1px solid colors.$color-ash;
|
|
208
215
|
|
|
209
|
-
@include card-shadow(
|
|
216
|
+
@include mixin.card-shadow(colors.$color-cyberspace, 0.2);
|
|
210
217
|
|
|
211
218
|
&::after,
|
|
212
219
|
&:before {
|
|
213
220
|
bottom: 100%;
|
|
214
|
-
left: rhythm(4);
|
|
221
|
+
left: func.rhythm(4);
|
|
215
222
|
border: solid transparent;
|
|
216
223
|
content: '';
|
|
217
224
|
height: 0;
|
|
@@ -222,13 +229,13 @@
|
|
|
222
229
|
|
|
223
230
|
&::after {
|
|
224
231
|
border-color: rgba(255, 255, 255, 0);
|
|
225
|
-
border-bottom-color:
|
|
232
|
+
border-bottom-color: colors.$color-snow;
|
|
226
233
|
border-width: 15px;
|
|
227
234
|
margin-left: -15px;
|
|
228
235
|
}
|
|
229
236
|
&::before {
|
|
230
237
|
border-color: rgba(238, 238, 238, 0);
|
|
231
|
-
border-bottom-color:
|
|
238
|
+
border-bottom-color: colors.$color-ash;
|
|
232
239
|
border-width: 16px;
|
|
233
240
|
margin-left: -16px;
|
|
234
241
|
}
|
|
@@ -238,18 +245,18 @@
|
|
|
238
245
|
display: none;
|
|
239
246
|
}
|
|
240
247
|
|
|
241
|
-
@include e(item) {
|
|
248
|
+
@include bem.e(item) {
|
|
242
249
|
width: 100%;
|
|
243
250
|
|
|
244
251
|
& + & {
|
|
245
|
-
border-top: 1px solid
|
|
252
|
+
border-top: 1px solid colors.$color-ash;
|
|
246
253
|
}
|
|
247
254
|
|
|
248
255
|
a {
|
|
249
|
-
color:
|
|
256
|
+
color: colors.$color-cyberspace;
|
|
250
257
|
display: block;
|
|
251
258
|
width: 100%;
|
|
252
|
-
padding: rhythm(0.5) rhythm(2);
|
|
259
|
+
padding: func.rhythm(0.5) func.rhythm(2);
|
|
253
260
|
text-decoration: none;
|
|
254
261
|
white-space: nowrap;
|
|
255
262
|
|
|
@@ -262,8 +269,8 @@
|
|
|
262
269
|
}
|
|
263
270
|
|
|
264
271
|
.no-js {
|
|
265
|
-
@include atom(main-menu) {
|
|
266
|
-
@include e(subnav) {
|
|
272
|
+
@include mixin.atom(main-menu) {
|
|
273
|
+
@include bem.e(subnav) {
|
|
267
274
|
display: block;
|
|
268
275
|
}
|
|
269
276
|
}
|
|
@@ -1,74 +1,85 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/variables' as var;
|
|
3
|
+
@use '../../configurations/functions' as func;
|
|
4
|
+
@use '../../configurations/mixins' as mixin;
|
|
5
|
+
@use '../../configurations/bem' as bem;
|
|
6
|
+
@use '../../configurations/functions' as f;
|
|
7
|
+
@use '../../configurations/colors/colors' as colors;
|
|
8
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
9
|
+
@use '../../vendor/baseline/plumber' as plumber;
|
|
10
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
2
11
|
|
|
3
|
-
@include atom(meta) {
|
|
12
|
+
@include mixin.atom(meta) {
|
|
4
13
|
display: flex;
|
|
5
14
|
position: relative;
|
|
6
15
|
align-items: center;
|
|
7
16
|
color: var(--cyberspace-color);
|
|
8
|
-
font-family:
|
|
9
|
-
text-
|
|
17
|
+
font-family: var.$font-family-mono;
|
|
18
|
+
text-decoratiosn: none;
|
|
10
19
|
text-transform: uppercase;
|
|
11
20
|
white-space: nowrap;
|
|
12
21
|
|
|
13
|
-
@include plumber(
|
|
14
|
-
|
|
15
|
-
$baseline:
|
|
22
|
+
@include plumber.plumber(
|
|
23
|
+
var.$font-size: 1.7,
|
|
24
|
+
$baseline: var.$mono-baseline,
|
|
16
25
|
$leading-bottom: 0
|
|
17
26
|
);
|
|
18
27
|
|
|
19
|
-
@include color_values(
|
|
28
|
+
@include colorFunc.color_values(colorFunc.$colors, 'fill', $prefix: '--', $separator: '-');
|
|
20
29
|
|
|
21
30
|
span {
|
|
22
|
-
margin-left:
|
|
31
|
+
margin-left: func.to_rem(3px);
|
|
23
32
|
}
|
|
24
33
|
|
|
25
|
-
@include b(icon) {
|
|
34
|
+
@include bem.b(icon) {
|
|
26
35
|
display: flex;
|
|
27
36
|
flex-shrink: 0;
|
|
28
37
|
align-items: center;
|
|
29
|
-
width:
|
|
30
|
-
height:
|
|
31
|
-
margin-right: rhythm(1);
|
|
32
|
-
fill: inherit;
|
|
38
|
+
width: var.$icon-size;
|
|
39
|
+
height: var.$icon-size;
|
|
40
|
+
margin-right: func.rhythm(1);
|
|
33
41
|
color: var(--color-cyberspace);
|
|
34
|
-
|
|
42
|
+
|
|
43
|
+
svg {
|
|
44
|
+
fill: inherit;
|
|
45
|
+
}
|
|
35
46
|
}
|
|
36
47
|
|
|
37
|
-
@include m(light) {
|
|
38
|
-
color:
|
|
48
|
+
@include bem.m(light) {
|
|
49
|
+
color: colors.$color-snow;
|
|
39
50
|
|
|
40
|
-
@include b(icon) {
|
|
41
|
-
fill:
|
|
51
|
+
@include bem.b(icon) {
|
|
52
|
+
fill: colors.$color-snow;
|
|
42
53
|
}
|
|
43
54
|
}
|
|
44
55
|
|
|
45
|
-
@include m(lowercase) {
|
|
56
|
+
@include bem.m(lowercase) {
|
|
46
57
|
text-transform: initial;
|
|
47
58
|
}
|
|
48
59
|
|
|
49
|
-
@include m(wrap) {
|
|
60
|
+
@include bem.m(wrap) {
|
|
50
61
|
white-space: normal;
|
|
51
62
|
}
|
|
52
63
|
|
|
53
|
-
@include m(responsive) {
|
|
54
|
-
@include plumber(
|
|
55
|
-
|
|
56
|
-
$baseline:
|
|
64
|
+
@include bem.m(responsive) {
|
|
65
|
+
@include plumber.plumber(
|
|
66
|
+
var.$font-size: 1.4,
|
|
67
|
+
$baseline: var.$mono-baseline,
|
|
57
68
|
$leading-bottom: 0
|
|
58
69
|
);
|
|
59
70
|
|
|
60
|
-
@include bp-up(md) {
|
|
61
|
-
@include plumber(
|
|
62
|
-
|
|
63
|
-
$baseline:
|
|
71
|
+
@include breakpoint.bp-up(md) {
|
|
72
|
+
@include plumber.plumber(
|
|
73
|
+
var.$font-size: 1.6,
|
|
74
|
+
$baseline: var.$mono-baseline,
|
|
64
75
|
$leading-bottom: 0
|
|
65
76
|
);
|
|
66
77
|
}
|
|
67
78
|
|
|
68
|
-
@include bp-up(lg) {
|
|
69
|
-
@include plumber(
|
|
70
|
-
|
|
71
|
-
$baseline:
|
|
79
|
+
@include breakpoint.bp-up(lg) {
|
|
80
|
+
@include plumber.plumber(
|
|
81
|
+
var.$font-size: 1.7,
|
|
82
|
+
$baseline:var.$mono-baseline,
|
|
72
83
|
$leading-bottom: 0
|
|
73
84
|
);
|
|
74
85
|
}
|
|
@@ -1,57 +1,63 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
2
|
@use "sass:color";
|
|
3
|
+
@use '../../configurations/mixins' as mixin;
|
|
4
|
+
@use '../../configurations/bem' as bem;
|
|
5
|
+
@use '../../configurations/variables' as var;
|
|
6
|
+
@use '../../configurations/functions' as func;
|
|
7
|
+
@use '../../configurations/colors/colors' as colors;
|
|
8
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
3
9
|
|
|
4
10
|
// Forwards / backwards
|
|
5
11
|
/// @group Paging
|
|
6
|
-
@include atom(paging-wrapper) {
|
|
12
|
+
@include mixin.atom(paging-wrapper) {
|
|
7
13
|
display: flex;
|
|
8
14
|
position: relative;
|
|
9
15
|
width: 100%;
|
|
10
16
|
align-items: center;
|
|
11
17
|
|
|
12
|
-
@include e(text) {
|
|
18
|
+
@include bem.e(text) {
|
|
13
19
|
flex: 1;
|
|
14
|
-
font-family:
|
|
15
|
-
font-size:
|
|
20
|
+
font-family: var.$font-family-mono;
|
|
21
|
+
font-size: func.to_rem(var.$size-medium-plus);
|
|
16
22
|
text-align: center;
|
|
17
23
|
text-transform: uppercase;
|
|
18
24
|
}
|
|
19
25
|
}
|
|
20
26
|
|
|
21
|
-
@include atom(paging) {
|
|
27
|
+
@include mixin.atom(paging) {
|
|
22
28
|
display: inline-flex;
|
|
23
29
|
position: relative;
|
|
24
30
|
flex-grow: 0;
|
|
25
31
|
flex-shrink: 0;
|
|
26
32
|
align-items: center;
|
|
27
33
|
justify-content: center;
|
|
28
|
-
width: rhythm(4);
|
|
29
|
-
height: rhythm(4);
|
|
30
|
-
border: 1px solid
|
|
34
|
+
width: func.rhythm(4);
|
|
35
|
+
height: func.rhythm(4);
|
|
36
|
+
border: 1px solid colors.$color-ash;
|
|
31
37
|
border-radius: 50%;
|
|
32
|
-
background-color:
|
|
33
|
-
box-shadow: 0 3px 5px color.adjust(
|
|
38
|
+
background-color: colors.$color-snow;
|
|
39
|
+
box-shadow: 0 3px 5px color.adjust(colors.$color-granit, $lightness: 15%);
|
|
34
40
|
|
|
35
|
-
@include bp-up(sm) {
|
|
36
|
-
width: rhythm(6);
|
|
37
|
-
height: rhythm(6);
|
|
41
|
+
@include breakpoint.bp-up(sm) {
|
|
42
|
+
width: func.rhythm(6);
|
|
43
|
+
height: func.rhythm(6);
|
|
38
44
|
}
|
|
39
45
|
|
|
40
46
|
&:focus,
|
|
41
47
|
&:hover {
|
|
42
|
-
background-color:
|
|
48
|
+
background-color: colors.$color-ash;
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
@include e(icon) {
|
|
51
|
+
@include bem.e(icon) {
|
|
46
52
|
display: flex;
|
|
47
53
|
align-items: center;
|
|
48
54
|
justify-content: center;
|
|
49
|
-
width:
|
|
50
|
-
height:
|
|
55
|
+
width: var.$icon-size-small;
|
|
56
|
+
height: var.$icon-size-small;
|
|
51
57
|
|
|
52
|
-
@include bp-up(sm) {
|
|
53
|
-
width:
|
|
54
|
-
height:
|
|
58
|
+
@include breakpoint.bp-up(sm) {
|
|
59
|
+
width: var.$icon-size-medium;
|
|
60
|
+
height: var.$icon-size-medium;
|
|
55
61
|
}
|
|
56
62
|
}
|
|
57
63
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/variables' as var;
|
|
3
|
+
@use '../../configurations/functions' as func;
|
|
4
|
+
@use '../../configurations/colors/colors' as colors;
|
|
2
5
|
|
|
3
6
|
input[type='password'],
|
|
4
7
|
input[type='text'] {
|
|
5
|
-
+ button.#{
|
|
8
|
+
+ button.#{var.$namespace}input-icon {
|
|
6
9
|
border: 0;
|
|
7
10
|
border-radius: 0;
|
|
8
11
|
background: transparent;
|
|
@@ -16,17 +19,17 @@ input[type='text'] {
|
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
input[type='password'] {
|
|
19
|
-
+ button.#{
|
|
22
|
+
+ button.#{var.$namespace}input-icon {
|
|
20
23
|
svg {
|
|
21
|
-
fill:
|
|
24
|
+
fill: colors.$color-granit;
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
input[type='text'] {
|
|
27
|
-
+ button.#{
|
|
30
|
+
+ button.#{var.$namespace}input-icon {
|
|
28
31
|
svg {
|
|
29
|
-
fill:
|
|
32
|
+
fill: colors.$color-cyberspace;
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -1,34 +1,42 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/bem' as bem;
|
|
4
|
+
@use '../../configurations/variables' as var;
|
|
5
|
+
@use '../../configurations/functions' as func;
|
|
6
|
+
@use '../../configurations/colors/colors' as colors;
|
|
7
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
8
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
2
9
|
|
|
3
|
-
|
|
10
|
+
|
|
11
|
+
@include mixin.atom(progress) {
|
|
4
12
|
&[value] {
|
|
5
13
|
-webkit-appearance: none;
|
|
6
14
|
-moz-appearance: none;
|
|
7
15
|
appearance: none;
|
|
8
16
|
display: block;
|
|
9
|
-
color:
|
|
10
|
-
background:
|
|
17
|
+
color: colors.$color-ocean;
|
|
18
|
+
background: colors.$color-concrete;
|
|
11
19
|
border: none;
|
|
12
20
|
width: 100%;
|
|
13
21
|
border-radius: 0;
|
|
14
|
-
height: rhythm(1);
|
|
22
|
+
height: func.rhythm(1);
|
|
15
23
|
|
|
16
|
-
@include bp-up(md) {
|
|
17
|
-
height: rhythm(2);
|
|
24
|
+
@include breakpoint.bp-up(md) {
|
|
25
|
+
height: func.rhythm(2);
|
|
18
26
|
}
|
|
19
27
|
}
|
|
20
28
|
&[value]::-webkit-progress-bar {
|
|
21
29
|
border-radius: 0;
|
|
22
|
-
background:
|
|
30
|
+
background: colors.$color-concrete;
|
|
23
31
|
}
|
|
24
32
|
&[value]::-webkit-progress-value {
|
|
25
33
|
border-radius: 0;
|
|
26
|
-
background:
|
|
34
|
+
background: colors.$color-ocean;
|
|
27
35
|
transition: width 5s ease;
|
|
28
36
|
}
|
|
29
37
|
&[value]::-moz-progress-bar {
|
|
30
38
|
border-radius: 0;
|
|
31
|
-
background:
|
|
39
|
+
background: colors.$color-ocean;
|
|
32
40
|
transition: padding-bottom 5s ease;
|
|
33
41
|
padding-left: 60px;
|
|
34
42
|
padding-bottom: var(--value);
|
|
@@ -38,11 +46,11 @@
|
|
|
38
46
|
}
|
|
39
47
|
}
|
|
40
48
|
|
|
41
|
-
@include atom(progress-label) {
|
|
49
|
+
@include mixin.atom(progress-label) {
|
|
42
50
|
display: flex;
|
|
43
51
|
align-items: center;
|
|
44
52
|
|
|
45
53
|
> progress {
|
|
46
|
-
margin-left: rhythm(1);
|
|
54
|
+
margin-left: func.rhythm(1);
|
|
47
55
|
}
|
|
48
56
|
}
|
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/bem' as bem;
|
|
4
|
+
@use '../../configurations/variables' as var;
|
|
5
|
+
@use '../../configurations/functions' as func;
|
|
6
|
+
@use '../../configurations/colors/colors' as colors;
|
|
7
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
2
8
|
|
|
3
|
-
|
|
9
|
+
|
|
10
|
+
@include mixin.atom(quote) {
|
|
4
11
|
display: flex;
|
|
5
12
|
flex-direction: column;
|
|
6
13
|
justify-content: space-between;
|
|
7
|
-
max-width:
|
|
14
|
+
max-width: func.to_rem(500px);
|
|
8
15
|
margin: 0;
|
|
9
16
|
padding: 0;
|
|
10
17
|
|
|
11
|
-
@include e(footer) {
|
|
18
|
+
@include bem.e(footer) {
|
|
12
19
|
display: flex;
|
|
13
20
|
align-items: center;
|
|
14
|
-
padding-top: rhythm(1);
|
|
15
|
-
font-family:
|
|
21
|
+
padding-top: func.rhythm(1);
|
|
22
|
+
font-family: var.$font-family-headings;
|
|
16
23
|
}
|
|
17
24
|
|
|
18
|
-
@include e(avatar) {
|
|
19
|
-
width: rhythm(4);
|
|
20
|
-
height: rhythm(4);
|
|
21
|
-
margin-right: rhythm(2);
|
|
25
|
+
@include bem.e(avatar) {
|
|
26
|
+
width: func.rhythm(4);
|
|
27
|
+
height: func.rhythm(4);
|
|
28
|
+
margin-right: func.rhythm(2);
|
|
22
29
|
border-radius: 50%;
|
|
23
|
-
background-color:
|
|
30
|
+
background-color: colors.$color-snow;
|
|
24
31
|
}
|
|
25
32
|
}
|