@internetstiftelsen/styleguide 4.1.10-beta.0.1 → 4.1.10

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.
Files changed (31) hide show
  1. package/dist/atoms/textarea/rich-text.js +1 -1
  2. package/package.json +2 -2
  3. package/src/atoms/button/_button.scss +3 -4
  4. package/src/atoms/checkbox/_checkbox.scss +2 -3
  5. package/src/atoms/file/_file.scss +1 -1
  6. package/src/atoms/icon/_all-icons.zip +0 -0
  7. package/src/atoms/icon/sprite.svg +0 -3
  8. package/src/atoms/main-menu/main-menu.config.js +1 -5
  9. package/src/atoms/meta/_meta.scss +8 -8
  10. package/src/atoms/paging/_paging.scss +1 -2
  11. package/src/atoms/radiobutton/_radiobutton.scss +2 -3
  12. package/src/atoms/range/_range.scss +1 -2
  13. package/src/configurations/_extends.scss +4 -5
  14. package/src/configurations/colors/_colors-functions.scss +6 -12
  15. package/src/configurations/colors/_colors.scss +7 -15
  16. package/src/configurations/forms/_fields.scss +3 -4
  17. package/src/molecules/cookie-disclaimer/cookie-disclaimer.scss +3 -2
  18. package/src/molecules/glider/_glider.scss +1 -2
  19. package/src/molecules/submenu/_submenu.scss +6 -7
  20. package/src/molecules/table/_table.scss +1 -1
  21. package/src/organisms/accordion/_accordion.scss +4 -4
  22. package/src/organisms/domain-search/_domain-search.scss +4 -4
  23. package/src/organisms/domain-search/domain-search.config.js +1 -2
  24. package/src/organisms/event-listing-item/_event-listing-item.scss +5 -4
  25. package/src/organisms/mega-menu/_mega-menu.scss +18 -174
  26. package/src/organisms/mega-menu/mega-menu.config.js +11 -34
  27. package/src/organisms/podcast/_podcast-player.scss +1 -2
  28. package/src/organisms/search/_search.scss +4 -7
  29. package/src/organisms/tabs/_tabs.scss +1 -2
  30. package/src/organisms/video-guide/_video-guide.scss +2 -3
  31. package/src/atoms/icon/search-domain.svg +0 -1
@@ -197,7 +197,7 @@ function setupTextArea(el) {
197
197
  editorEl.className = el.className;
198
198
  editorEl.classList.add((0, _className2.default)('a-textarea--rich-text'));
199
199
 
200
- el.style.display = 'none';
200
+ el.classList.add((0, _className2.default)('a-textarea--hidden'));
201
201
  el.editor = editor;
202
202
 
203
203
  el.parentNode.insertBefore(editorEl, el);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetstiftelsen/styleguide",
3
- "version": "4.1.10-beta.0.1",
3
+ "version": "4.1.10",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
@@ -65,7 +65,7 @@
65
65
  "postcss-class-prefix": "^0.3.0",
66
66
  "postcss-cli": "^8.3.1",
67
67
  "replace": "^1.2.1",
68
- "sass": "^1.79.4",
68
+ "sass": "^1.35.1",
69
69
  "stylelint": "^13.13.1",
70
70
  "uglify-es": "^3.3.9"
71
71
  },
@@ -1,5 +1,4 @@
1
1
  @charset 'UTF-8';
2
- @use "sass:color";
3
2
 
4
3
  // Default Button
5
4
  /// @group Buttons
@@ -343,7 +342,7 @@
343
342
 
344
343
  &:hover,
345
344
  &:focus {
346
- color: color.adjust($color-jade, $lightness: -10%);
345
+ color: darken($color-jade, 10%);
347
346
  text-shadow: none;
348
347
  }
349
348
 
@@ -431,7 +430,7 @@
431
430
  color: $color-peacock;
432
431
 
433
432
  &:hover {
434
- color: color.adjust($color-peacock, $lightness: -10%);
433
+ color: darken($color-peacock, 10%);
435
434
  text-shadow: none;
436
435
  }
437
436
 
@@ -502,7 +501,7 @@
502
501
  &:hover {
503
502
  color: $color-sandstone;
504
503
  }
505
-
504
+
506
505
  &:focus {
507
506
  color: $color-sandstone-light;
508
507
  }
@@ -1,5 +1,4 @@
1
1
  @charset 'UTF-8';
2
- @use "sass:color";
3
2
 
4
3
  @include atom(checkbox) {
5
4
  &[type='checkbox'] {
@@ -31,7 +30,7 @@
31
30
  &:hover {
32
31
  + label {
33
32
  &::before {
34
- background-color: color.adjust($color-ash, $lightness: -5%);
33
+ background-color: darken($color-ash, 5%);
35
34
  }
36
35
  }
37
36
  }
@@ -59,7 +58,7 @@
59
58
  @extend %disabled;
60
59
 
61
60
  &::before {
62
- background-color: color.adjust($color-concrete, $lightness: -5%);
61
+ background-color: darken($color-concrete, 5%);
63
62
  }
64
63
  }
65
64
  }
@@ -62,7 +62,7 @@
62
62
  }
63
63
 
64
64
  @include bp-up(sm) {
65
- max-width: rem(300px);
65
+ width: rem(300px);
66
66
  }
67
67
  }
68
68
  }
Binary file
@@ -8,9 +8,6 @@
8
8
  <symbol id="icon-search" viewbox="0 0 32 32">
9
9
  <path d="M24,21.8l8,8L29.9,32l-8-8c-5.9,4.6-14.3,3.6-19-2.2S-0.7,7.6,5.1,2.9S19.3-0.7,24,5.1C27.9,10,27.9,16.9,24,21.8L24,21.8z M13.4,23.9c5.8,0,10.5-4.7,10.5-10.5S19.2,3,13.4,3S3,7.7,3,13.4S7.7,23.9,13.4,23.9z"/>
10
10
  </symbol>
11
- <symbol id="icon-search-domain" viewbox="0 0 32 32">
12
- <path d="m24 21.8 8 8-2.1 2.2-8-8c-5.9 4.6-14.3 3.6-19-2.2S-.7 7.6 5.1 2.9C10.9-1.8 19.3-.7 24 5.1c3.9 4.9 3.9 11.8 0 16.7Zm-10.6 2.1c5.8 0 10.5-4.7 10.5-10.5S19.2 3 13.4 3 3 7.7 3 13.4s4.7 10.5 10.4 10.5Z"/><path d="M6 15.2h1.8V17H6v-1.8ZM9.7 16.7c-.5-.3-.9-.6-1.2-1l1.2-1c.2.3.4.5.7.7.3.2.6.3 1 .3s.6 0 .8-.2c.2-.1.3-.3.3-.5s0-.3-.2-.4c-.1-.1-.3-.2-.4-.3s-.4-.1-.7-.2c-.5-.1-.9-.3-1.2-.4-.3-.1-.6-.4-.8-.6-.2-.3-.3-.6-.3-1.1s.1-.8.3-1.1.5-.5.9-.7c.4-.2.8-.3 1.3-.3s1 .1 1.5.3.8.5 1 .9l-1.1.8-.6-.6c-.3-.1-.5-.2-.8-.2s-.5 0-.6.2c-.2.1-.3.2-.3.4s0 .2.1.3.2.2.4.2.4.1.7.2c.5.1.9.3 1.3.4.3.1.6.3.9.6.3.3.4.7.4 1.2s-.1.8-.3 1.2c-.2.3-.6.6-1 .8-.4.2-.9.3-1.5.3s-1.3-.1-1.8-.4ZM16.2 16.7c-.5-.3-.9-.7-1.1-1.3-.2-.5-.4-1.1-.4-1.7s.1-1.2.3-1.8c.2-.5.6-1 1.1-1.3.5-.3 1.1-.5 1.8-.5s1.3.2 1.7.5c.5.3.8.7 1.1 1.2.2.5.4 1.1.4 1.8v.6h-4.6c0 .4.2.8.5 1 .3.3.7.4 1.2.4s1.2-.2 1.6-.7l1.2 1c-.4.4-.8.7-1.2.9-.5.2-1 .3-1.6.3s-1.4-.2-1.9-.5Zm3.3-3.8c0-.3 0-.5-.2-.7-.1-.2-.3-.4-.5-.5-.2-.1-.5-.2-.8-.2-.5 0-.9.1-1.1.4-.3.3-.4.6-.5 1h3.1Z"/>
13
- </symbol>
14
11
  <symbol id="icon-arrow-forwards" viewbox="0 0 18.9 32">
15
12
  <polygon points="2.8,0 18.9,16 2.8,32 0,29.1 12.5,16 0,2.9 "/>
16
13
  </symbol>
@@ -68,11 +68,7 @@ module.exports = {
68
68
  extra_class: 'js-toggle-mega-menu',
69
69
  has_expandable: true,
70
70
  controls: 'mega-menu',
71
- hide_mobile: false,
72
- has_id: true,
73
- id: 'mega-menu-text',
74
- toggle_text: true,
75
- data_toggle_text: 'Meny|Stäng'
71
+ hide_mobile: false
76
72
  }
77
73
  ]
78
74
  }
@@ -1,6 +1,14 @@
1
1
  @charset 'UTF-8';
2
2
 
3
3
  @include atom(meta) {
4
+ @include plumber(
5
+ $font-size: 1.7,
6
+ $baseline: $mono-baseline,
7
+ $leading-bottom: 0
8
+ );
9
+
10
+ @include color_values($colors, 'fill', $prefix: '--', $separator: '-');
11
+
4
12
  display: flex;
5
13
  position: relative;
6
14
  align-items: center;
@@ -10,14 +18,6 @@
10
18
  text-transform: uppercase;
11
19
  white-space: nowrap;
12
20
 
13
- @include plumber(
14
- $font-size: 1.7,
15
- $baseline: $mono-baseline,
16
- $leading-bottom: 0
17
- );
18
-
19
- @include color_values($colors, 'fill', $prefix: '--', $separator: '-');
20
-
21
21
  span {
22
22
  margin-left: rem(3px);
23
23
  }
@@ -1,5 +1,4 @@
1
1
  @charset 'UTF-8';
2
- @use "sass:color";
3
2
 
4
3
  // Forwards / backwards
5
4
  /// @group Paging
@@ -30,7 +29,7 @@
30
29
  border: 1px solid $color-ash;
31
30
  border-radius: 50%;
32
31
  background-color: $color-snow;
33
- box-shadow: 0 3px 5px color.adjust($color-granit, $lightness: 15%);
32
+ box-shadow: 0 3px 5px lighten($color-granit, 15%);
34
33
 
35
34
  @include bp-up(sm) {
36
35
  width: rhythm(6);
@@ -1,5 +1,4 @@
1
1
  @charset 'UTF-8';
2
- @use "sass:color";
3
2
 
4
3
  @include atom(radio) {
5
4
  &[type='radio'] {
@@ -32,7 +31,7 @@
32
31
  &:hover {
33
32
  + label {
34
33
  &::before {
35
- background-color: color.adjust($color-snow, $lightness: -5%);
34
+ background-color: darken($color-snow, 5%);
36
35
  }
37
36
  }
38
37
  }
@@ -51,7 +50,7 @@
51
50
  @extend %disabled;
52
51
 
53
52
  &::before {
54
- background-color: color.adjust($color-concrete, $lightness: -5%);
53
+ background-color: darken($color-concrete, 5%);
55
54
  }
56
55
  }
57
56
 
@@ -1,5 +1,4 @@
1
1
  @charset 'UTF-8';
2
- @use "sass:color";
3
2
 
4
3
  @include atom(range) {
5
4
  -webkit-appearance: none;
@@ -13,7 +12,7 @@
13
12
  background-color: $color-concrete;
14
13
  height: rhythm(1);
15
14
  border-radius: $border-radius;
16
- border-top: 1px solid color.adjust($color-granit, $lightness: 15%);
15
+ border-top: 1px solid lighten($color-granit, 15%);
17
16
  }
18
17
 
19
18
  &::-moz-range-track {
@@ -1,5 +1,4 @@
1
1
  @charset 'UTF-8';
2
- @use "sass:color";
3
2
 
4
3
  %normalize-links {
5
4
  padding: 0;
@@ -61,7 +60,7 @@
61
60
  padding: rhythm(1);
62
61
  border: 1px solid $color-granit;
63
62
  border-radius: $border-radius;
64
- background-color: color.adjust($color-ash, $lightness: 4%);
63
+ background-color: lighten($color-ash, 4%);
65
64
  -webkit-appearance: none;
66
65
  font-size: rem(16px);
67
66
  }
@@ -73,7 +72,7 @@
73
72
 
74
73
  %invalid {
75
74
  border-color: $color-ruby;
76
- background-color: color.adjust($color-ruby-light, $lightness: 16%);
75
+ background-color: lighten($color-ruby-light, 16%);
77
76
  }
78
77
 
79
78
  %disabled {
@@ -89,12 +88,12 @@
89
88
 
90
89
  %discreet {
91
90
  border-style: dashed;
92
- border-color: color.adjust($color-granit, $lightness: 20%);
91
+ border-color: lighten($color-granit, 20%);
93
92
  background-color: transparent;
94
93
 
95
94
  &:focus {
96
95
  border-style: solid;
97
- background-color: color.adjust($color-ash, $lightness: 4%);
96
+ background-color: lighten($color-ash, 4%);
98
97
  }
99
98
  }
100
99
 
@@ -24,38 +24,32 @@ $colors: (
24
24
  ruby: (
25
25
  base: $color-ruby,
26
26
  light: $color-ruby-light,
27
- dark: $color-ruby-dark,
28
- medium-dark: $color-ruby-medium-dark
27
+ dark: $color-ruby-dark
29
28
  ),
30
29
  peacock: (
31
30
  base: $color-peacock,
32
31
  light: $color-peacock-light,
33
- dark: $color-peacock-dark,
34
- medium-dark: $color-peacock-medium-dark
32
+ dark: $color-peacock-dark
35
33
  ),
36
34
  jade: (
37
35
  base: $color-jade,
38
36
  light: $color-jade-light,
39
- dark: $color-jade-dark,
40
- medium-dark: $color-jade-medium-dark
37
+ dark: $color-jade-dark
41
38
  ),
42
39
  sandstone: (
43
40
  base: $color-sandstone,
44
41
  light: $color-sandstone-light,
45
- dark: $color-sandstone-dark,
46
- medium-dark: $color-sandstone-medium-dark
42
+ dark: $color-sandstone-dark
47
43
  ),
48
44
  lemon: (
49
45
  base: $color-lemon,
50
46
  light: $color-lemon-light,
51
- dark: $color-lemon-dark,
52
- medium-dark: $color-lemon-medium-dark
47
+ dark: $color-lemon-dark
53
48
  ),
54
49
  ocean: (
55
50
  base: $color-ocean,
56
51
  light: $color-ocean-light,
57
- dark : $color-ocean-dark,
58
- medium-dark: $color-ocean-medium-dark
52
+ dark : $color-ocean-dark
59
53
  )
60
54
  );
61
55
 
@@ -1,5 +1,4 @@
1
1
  @charset 'UTF-8';
2
- @use "sass:color";
3
2
 
4
3
  /// @group Colors
5
4
  $color-black: #000 !default;
@@ -25,18 +24,11 @@ $color-facebook: #0866ff !default;
25
24
  $color-twitter: #00aced !default;
26
25
  $color-linkedin: #0a66c2 !default;
27
26
 
28
- // Dark colors only for accessibility
29
- $color-ruby-dark: color.adjust($color-ruby, $lightness: -20%);
30
- $color-peacock-dark: color.adjust($color-peacock, $lightness: -20%);
31
- $color-jade-dark: color.adjust($color-jade, $lightness: -20%);
32
- $color-sandstone-dark: color.adjust($color-sandstone, $lightness: -20%);
33
- $color-lemon-dark: color.adjust($color-lemon, $lightness: -15%);
34
- $color-ocean-dark:color.adjust($color-ocean, $lightness: -24%);
27
+ // Temporary darker colors
35
28
 
36
- // Medium dark colors, for decoration purposes like borders
37
- $color-ruby-medium-dark: color.adjust($color-ruby, $lightness: -10%);
38
- $color-peacock-medium-dark: color.adjust($color-peacock, $lightness: -10%);
39
- $color-jade-medium-dark: color.adjust($color-jade, $lightness: -10%);
40
- $color-sandstone-medium-dark: color.adjust($color-sandstone, $lightness: -10%);
41
- $color-lemon-medium-dark: color.adjust($color-lemon, $lightness: -13%);
42
- $color-ocean-medium-dark: color.adjust($color-ocean, $lightness: -10%);
29
+ $color-ruby-dark: darken($color-ruby, 20%);
30
+ $color-peacock-dark: darken($color-peacock, 20%);
31
+ $color-jade-dark: darken($color-jade, 20%);
32
+ $color-sandstone-dark: darken($color-sandstone, 20%);
33
+ $color-lemon-dark: darken($color-lemon, 15%);
34
+ $color-ocean-dark: darken($color-ocean, 24%);
@@ -1,5 +1,4 @@
1
1
  @charset 'UTF-8';
2
- @use "sass:color";
3
2
 
4
3
  @include b(field-group) {
5
4
  position: relative;
@@ -95,7 +94,7 @@ fieldset[disabled] {
95
94
  @extend %disabled;
96
95
 
97
96
  &::before {
98
- background-color: color.adjust($color-concrete, $lightness: -5%) !important;
97
+ background-color: darken($color-concrete, 5%) !important;
99
98
  }
100
99
  }
101
100
  }
@@ -105,14 +104,14 @@ fieldset[disabled] {
105
104
  @extend %disabled;
106
105
 
107
106
  &::before {
108
- background-color: color.adjust($color-concrete, $lightness: -5%);
107
+ background-color: darken($color-concrete, 5%);
109
108
  }
110
109
 
111
110
  &:hover,
112
111
  &:focus {
113
112
  /* stylelint-disable */
114
113
  &::before {
115
- background-color: color.adjust($color-concrete, $lightness: -5%);
114
+ background-color: darken($color-concrete, 5%);
116
115
  }
117
116
  /* stylelint-enable */
118
117
  }
@@ -23,13 +23,14 @@
23
23
  }
24
24
 
25
25
  @include e(inner) {
26
+
27
+ @include make-container-max-widths();
28
+
26
29
  display: flex;
27
30
  flex-wrap: wrap;
28
31
  margin-right: auto;
29
32
  margin-left: auto;
30
33
 
31
- @include make-container-max-widths();
32
-
33
34
  @include bp-down(xl) {
34
35
  padding-right: $grid-gutter-width;
35
36
  padding-left: $grid-gutter-width;
@@ -1,5 +1,4 @@
1
1
  @charset "UTF-8";
2
- @use "sass:color";
3
2
 
4
3
  // The Glider components is dependant on JS-classes and is therefore not namespaced
5
4
 
@@ -115,7 +114,7 @@
115
114
 
116
115
  &.disabled {
117
116
  background-color: $color-ash;
118
- box-shadow: 0 2px 5px color.adjust($color-granit, $lightness: 25%);
117
+ box-shadow: 0 2px 5px lighten($color-granit, 25%);
119
118
  pointer-events: none;
120
119
 
121
120
  svg {
@@ -1,7 +1,6 @@
1
1
  @charset "UTF-8";
2
2
 
3
3
  @use "sass:math";
4
- @use "sass:color";
5
4
 
6
5
  @include molecule(submenu) {
7
6
  margin: 0 0 rhythm(2) 0;
@@ -144,7 +143,7 @@
144
143
  margin: 0;
145
144
  padding: rhythm(1) rhythm(3);
146
145
  border: 0;
147
- border-left: 1px solid color.adjust($color-ash, $lightness: -5%);
146
+ border-left: 1px solid darken($color-ash, 5%);
148
147
  background-color: transparent;
149
148
 
150
149
  &::before,
@@ -172,7 +171,7 @@
172
171
 
173
172
  &[aria-expanded='true'] {
174
173
  margin-bottom: -1px;
175
- background-color: color.adjust($color-ash, $lightness: 3%);
174
+ background-color: lighten($color-ash, 3%);
176
175
 
177
176
  &::after {
178
177
  transform: rotate(-135deg);
@@ -184,7 +183,7 @@
184
183
  }
185
184
 
186
185
  &:hover {
187
- background-color: color.adjust($color-ash, $lightness: 3%);
186
+ background-color: lighten($color-ash, 3%);
188
187
  }
189
188
 
190
189
  @include bp-up(md) {
@@ -208,8 +207,8 @@
208
207
  @include e(sublevel) {
209
208
  margin: 0;
210
209
  padding: 0;
211
- border-top: 1px solid color.adjust($color-ash, $lightness: -3%);
212
- background-color: color.adjust($color-ash, $lightness: 3%);
210
+ border-top: 1px solid darken($color-ash, 3);
211
+ background-color: lighten($color-ash, 3%);
213
212
  list-style: none;
214
213
 
215
214
  &[aria-hidden='true'] {
@@ -222,7 +221,7 @@
222
221
  padding: 0 rhythm(1.5);
223
222
 
224
223
  & + & {
225
- border-top: 1px solid color.adjust($color-ash, $lightness: -4%);
224
+ border-top: 1px solid darken($color-ash, 4);
226
225
  }
227
226
 
228
227
  /* Support for icon on sublevel */
@@ -49,7 +49,7 @@
49
49
  }
50
50
 
51
51
  th {
52
- font-weight: normal;
52
+ font-weight: 700;
53
53
  }
54
54
 
55
55
  th,
@@ -1,5 +1,4 @@
1
1
  @charset 'UTF-8';
2
- @use "sass:color";
3
2
 
4
3
  // Extends
5
4
  %header {
@@ -14,7 +13,6 @@
14
13
  font-family: $font-family-headings;
15
14
  font-size: rem(17px);
16
15
  text-align: left;
17
- -webkit-appearance: none;
18
16
 
19
17
  @include bp-up(md) {
20
18
  font-size: rem(18px);
@@ -24,6 +22,8 @@
24
22
  font-size: rem(20px);
25
23
  }
26
24
 
25
+ -webkit-appearance: none;
26
+
27
27
  &::before,
28
28
  &::after {
29
29
  content: '';
@@ -126,7 +126,7 @@
126
126
  }
127
127
 
128
128
  @include organism(accordion) {
129
- background-color: color.adjust($color-ash, $lightness: 4%);
129
+ background-color: lighten($color-ash, 4%);
130
130
 
131
131
  @include e(panel) {
132
132
  &[aria-hidden='false'],
@@ -240,7 +240,7 @@
240
240
 
241
241
  @include m(ash) {
242
242
  border-radius: 0;
243
- background-color: color.adjust($color-ash, $lightness: 4%);
243
+ background-color: lighten($color-ash, 4%);
244
244
  }
245
245
  }
246
246
 
@@ -1,8 +1,8 @@
1
1
  @charset 'UTF-8';
2
- @use "sass:color";
3
2
 
4
3
  @include organism(domain-search) {
5
4
  padding: rhythm(2) 0 rhythm(1) 0;
5
+ background-color: $color-snow;
6
6
 
7
7
  &:not([class*='is-in-mega-menu']) {
8
8
  display: none;
@@ -72,7 +72,7 @@
72
72
  transition: padding 0.25s ease-out;
73
73
  border: 0;
74
74
  border-radius: $border-radius;
75
- background-color: color.adjust($color-ash, $lightness: 4%);
75
+ background-color: lighten($color-ash, 4%);
76
76
  letter-spacing: -0.1px;
77
77
  -webkit-appearance: none;
78
78
 
@@ -81,10 +81,10 @@
81
81
  }
82
82
 
83
83
  @include m(force-focus-look) {
84
- background-color: color.adjust($color-ash, $lightness: 4%);
84
+ background-color: lighten($color-ash, 4%);
85
85
 
86
86
  &:focus {
87
- background-color: color.adjust($color-ash, $lightness: 4%);
87
+ background-color: lighten($color-ash, 4%);
88
88
  }
89
89
  }
90
90
  }
@@ -5,7 +5,6 @@ module.exports = {
5
5
  hidden: 'false',
6
6
  id: 'domain-search',
7
7
  addidional_classes: 'o-domain-search--narrow',
8
- label: 'sök en .se- eller .nu-domän',
9
- white_background: true
8
+ label: 'sök en .se- eller .nu-domän'
10
9
  }
11
10
  }
@@ -1,6 +1,11 @@
1
1
  @charset "UTF-8";
2
2
 
3
3
  @include organism(event-listing-item) {
4
+
5
+ @include e(button) {
6
+
7
+ }
8
+
4
9
  position: relative;
5
10
  padding: rhythm(2);
6
11
  border-left: 4px solid;
@@ -8,10 +13,6 @@
8
13
  background-color: $color-snow;
9
14
  font-size: $size-medium-plus;
10
15
 
11
- @include e(button) {
12
-
13
- }
14
-
15
16
  @include bp-up(md) {
16
17
  font-size: $size-base;
17
18
  }
@@ -1,9 +1,11 @@
1
+ $border-color: darken($color-jade, 5%);
2
+
1
3
  @include organism(mega-menu) {
2
4
  z-index: z_index(middlegroundImportant);
3
5
  padding-right: 0;
4
6
  padding-left: 0;
5
7
  transition: transform 0.25s ease-out;
6
- background-color: currentColor;
8
+ background-color: $color-jade-light;
7
9
 
8
10
  &[aria-hidden='true'] {
9
11
  display: none;
@@ -29,182 +31,35 @@
29
31
  }
30
32
 
31
33
  @include e(wrapper) {
34
+ padding-top: rhythm(3);
35
+
32
36
  @include bp-down(md) {
33
37
  padding-right: rhythm(1);
34
38
  padding-left: rhythm(1);
35
- border-bottom: 1px solid currentColor;
36
- }
37
-
38
- @include bp-up(lg) {
39
- padding-top: rhythm(3);
40
- }
41
- }
42
-
43
- @include e(column) {
44
- padding-bottom: rhythm(2);
45
-
46
- @include bp-down(md) {
47
- padding-left: 0;
48
- padding-right: 0;
49
- padding-bottom: 0;
50
- }
51
- }
52
-
53
- @include e(buttons-list) {
54
- display: flex;
55
- align-items: stretch;
56
- margin: 0;
57
- padding: 0;
58
- list-style: none;
59
-
60
- @include e(item) {
61
- width: 50%;
62
- flex-grow: 1;
63
- flex-shrink: 0;
64
- margin: 0;
65
- padding: 0;
66
-
67
- & + & {
68
- border-left: 1px solid currentColor;
69
- }
70
- }
71
-
72
- @include e(link) {
73
- display: flex;
74
- flex-direction: column;
75
- align-items: center;
76
- padding-top: rhythm(2);
77
- padding-bottom: rhythm(2);
78
- text-align: center;
79
- color: $color-cyberspace;
80
- text-decoration: none;
81
- font-family: $font-family-headings;
82
- border: 0;
83
- background-color: transparent;
84
- appearance: none;
85
- width: 100%;
86
- height: 100%;
87
-
88
- &[aria-expanded='true'] {
89
- background-color: currentColor;
90
- }
91
-
92
- svg {
93
- width: $icon-size-large * 1.25;
94
- height: $icon-size-large * 1.25;
95
- margin-bottom: rhythm(1);
96
- pointer-events: none;
97
- }
98
-
99
- span {
100
- pointer-events: none;
101
- }
102
- }
103
-
104
- @include bp-up(lg) {
105
- display: none;
106
- }
107
- }
108
-
109
- @include e(search-container) {
110
- background-color: currentcolor;
111
- padding-top: rhythm(2);
112
- padding-bottom: rhythm(2);
113
-
114
- &[aria-hidden='true'] {
115
- display: none;
116
- }
117
- }
118
-
119
- @include e(topic) {
120
- display: flex;
121
- justify-content: space-between;
122
- align-items: center;
123
- border-top: 1px solid currentColor;
124
-
125
- @include bp-up(lg) {
126
- background-color: transparent;
127
- border-top: 0;
128
- margin-bottom: rhythm(1);
129
- }
130
- }
131
-
132
- @include e(topic-button) {
133
- margin-left: auto;
134
- align-self: stretch;
135
- padding-left: rhythm(1.5);
136
- padding-right: rhythm(1.5);
137
- border-left: 1px solid currentColor;
138
-
139
- @include bp-up(lg) {
140
- display: none;
141
- pointer-events: none;
142
- }
143
-
144
- &[aria-expanded='true'] {
145
- background-color: currentColor;
146
-
147
- svg {
148
- transform: rotate(-180deg);
149
- }
150
39
  }
151
40
  }
152
41
 
153
42
  @include e(list) {
154
- margin-top: 0;
155
- background-color: currentColor;
156
- margin-bottom: 0;
157
- padding-top: 0;
158
- padding-bottom: 0;
159
-
160
- &[aria-hidden='true'] {
161
- display: none;
162
- }
163
-
164
- @include bp-up(lg) {
165
- margin-top: rhythm(1);
166
- background-color: transparent;
167
- border-bottom: 0;
168
-
169
- &[aria-hidden='true'] {
170
- display: initial;
171
- }
172
- }
43
+ margin-top: rhythm(1);
173
44
 
174
45
  @include e(topic) {
175
- margin-top: 0;
176
- margin-bottom: 0;
177
- border-bottom: 1px solid currentColor;
46
+ margin-top: rhythm(2);
47
+ margin-bottom: rhythm(0.5);
48
+ padding: rhythm(1) rhythm(1);
49
+ border-bottom: 1px solid $border-color;
178
50
  font-family: $font-family-headings;
179
51
 
180
- > a {
181
- padding: rhythm(1) rhythm(3.5);
182
- }
183
-
184
- @include bp-up(lg) {
185
- margin-top: rhythm(2);
186
- margin-bottom: rhythm(0.5);
187
- padding: rhythm(1) rhythm(1);
188
- border-bottom: 0;
189
-
190
- > a {
191
- padding: 0;
192
- }
52
+ &:first-child {
53
+ margin-top: 0;
193
54
  }
194
55
  }
195
56
 
196
57
  @include e(item) {
197
- margin: 0;
198
- border-bottom: 1px solid currentColor;
58
+ margin: 0 0 rhythm(0.5) 0;
59
+ padding: rhythm(1) rhythm(1);
199
60
 
200
- &:last-child {
201
- border-bottom: 0;
202
- }
203
-
204
- @include bp-up(lg) {
205
- padding: rhythm(1) rhythm(1);
206
- margin-bottom: rhythm(0.5);
207
- border-bottom: 0;
61
+ & + & {
62
+ border-top: 1px solid $border-color;
208
63
  }
209
64
  }
210
65
 
@@ -230,14 +85,8 @@
230
85
  @include e(link) {
231
86
  display: inline-flex;
232
87
  align-items: baseline;
233
- width: 100%;
234
88
  color: $color-cyberspace;
235
89
  text-decoration: none;
236
- padding: rhythm(1) rhythm(3.5);
237
-
238
- @include m(sub-level) {
239
- padding: rhythm(1) rhythm(5);
240
- }
241
90
 
242
91
  &:hover {
243
92
  &:not(span) {
@@ -245,20 +94,15 @@
245
94
  }
246
95
  }
247
96
 
248
- @include bp-up(lg) {
249
- padding: 0;
250
- }
251
-
252
97
  @include m(large) {
253
98
  display: block;
254
- width: 100%;
255
- padding: rhythm(1.5) rhythm(2);
99
+ padding: 0 rhythm(1);
256
100
  font-family: $font-family-headings;
101
+ font-size: rem(23px);
257
102
  white-space: nowrap;
258
103
 
259
104
  @include bp-up(lg) {
260
105
  padding: 0;
261
- font-size: rem(23px);
262
106
  }
263
107
  }
264
108
 
@@ -3,12 +3,11 @@ module.exports = {
3
3
 
4
4
  context: {
5
5
  hidden: 'false',
6
- id: 'megaMenu',
6
+ id: 'mega-menu',
7
7
  modifier:'',
8
8
  columns: [
9
9
  {
10
10
  headline: 'Domäner',
11
- list_id: 'domains',
12
11
  topics: [
13
12
  {
14
13
  topic: '',
@@ -62,22 +61,18 @@ module.exports = {
62
61
  },
63
62
  {
64
63
  headline: 'Kunskap',
65
- list_id: 'kunskap',
66
64
  topics: [
67
65
  {
68
66
  topic: 'För skolan',
69
67
  items: [
70
68
  {
71
- item: 'Digitala lektioner',
72
- is_sub_level: true,
69
+ item: 'Digitala lektioner'
73
70
  },
74
71
  {
75
- item: 'Lärarfortbildning',
76
- is_sub_level: true,
72
+ item: 'Lärarfortbildning'
77
73
  },
78
74
  {
79
- item: 'Fördjupning',
80
- is_sub_level: true,
75
+ item: 'Fördjupning'
81
76
  },
82
77
 
83
78
  ]
@@ -86,16 +81,13 @@ module.exports = {
86
81
  topic: 'För samhället',
87
82
  items: [
88
83
  {
89
- item: 'Svenskarna och internet',
90
- is_sub_level: true,
84
+ item: 'Svenskarna och internet'
91
85
  },
92
86
  {
93
- item: 'Projekt internetaccess',
94
- is_sub_level: true,
87
+ item: 'Projekt internetaccess'
95
88
  },
96
89
  {
97
- item: 'Federationers',
98
- is_sub_level: true,
90
+ item: 'Federationers'
99
91
  },
100
92
 
101
93
  ]
@@ -104,7 +96,6 @@ module.exports = {
104
96
  },
105
97
  {
106
98
  headline: 'Mötesplatser',
107
- list_id: 'motesplatser',
108
99
  topics: [
109
100
  {
110
101
  topic: '',
@@ -126,7 +117,7 @@ module.exports = {
126
117
  },
127
118
  {
128
119
  item: 'Investeringar',
129
- external: true,
120
+ external: true
130
121
  },
131
122
 
132
123
  ]
@@ -135,27 +126,22 @@ module.exports = {
135
126
  },
136
127
  {
137
128
  headline: 'Om oss',
138
- list_id: 'om-oss',
139
129
  topics: [
140
130
  {
141
131
  topic: 'Presentation',
142
132
  items: [
143
133
  {
144
134
  item: 'Jobba hos oss',
145
- is_sub_level: true,
146
135
  external: true
147
136
  },
148
137
  {
149
- item: 'Press',
150
- is_sub_level: true,
138
+ item: 'Press'
151
139
  },
152
140
  {
153
- item: 'Pressbilder och fotografier',
154
- is_sub_level: true,
141
+ item: 'Pressbilder och fotografier'
155
142
  },
156
143
  {
157
- item: 'Kontakt',
158
- is_sub_level: true,
144
+ item: 'Kontakt'
159
145
  }
160
146
 
161
147
  ]
@@ -164,7 +150,6 @@ module.exports = {
164
150
  },
165
151
  {
166
152
  headline: 'English',
167
- list_id: 'english',
168
153
  topics: [
169
154
  {
170
155
  topic: '',
@@ -197,14 +182,6 @@ module.exports = {
197
182
  context: {
198
183
  domain_search: true
199
184
  }
200
- },
201
- {
202
- name: 'With both searches',
203
- context: {
204
- domain_search: true,
205
- search: true,
206
- hidden: true
207
- }
208
185
  }
209
186
  ]
210
187
  }
@@ -1,5 +1,4 @@
1
1
  @charset "UTF-8";
2
- @use "sass:color";
3
2
 
4
3
  @use "sass:math";
5
4
 
@@ -18,7 +17,7 @@
18
17
  transform: translateY(0);
19
18
  transition: transform 0.25s ease-out;
20
19
  background-color: $color-snow;
21
- box-shadow: 0 -#{rhythm(1)} rhythm(3) color.adjust($color-cyberspace, $lightness: 70%);
20
+ box-shadow: 0 -#{rhythm(1)} rhythm(3) lighten($color-cyberspace, 70%);
22
21
 
23
22
  @include m(hidden) {
24
23
  transform: translateY(100%);
@@ -1,6 +1,3 @@
1
- @charset 'UTF-8';
2
- @use "sass:color";
3
-
4
1
  @include organism(search) {
5
2
  border-radius: $border-radius;
6
3
  background-color: $color-snow;
@@ -36,13 +33,13 @@
36
33
  transition: padding 0.25s ease-out;
37
34
  border: 0;
38
35
  border-radius: $border-radius;
39
- background-color: color.adjust($color-ash, $lightness: 4%);
36
+ background-color: lighten($color-ash, 4%);
40
37
  letter-spacing: -0.1px;
41
38
  -webkit-appearance: none;
42
39
 
43
40
  &:focus {
44
41
  @extend %input-focus;
45
-
42
+
46
43
  background-color: $color-snow;
47
44
  }
48
45
 
@@ -51,10 +48,10 @@
51
48
  }
52
49
 
53
50
  @include m(force-focus-look) {
54
- background-color: color.adjust($color-ash, $lightness: 4%);
51
+ background-color: lighten($color-ash, 4%);
55
52
 
56
53
  &:focus {
57
- background-color: color.adjust($color-ash, $lightness: 4%);
54
+ background-color: lighten($color-ash, 4%);
58
55
  }
59
56
  }
60
57
  }
@@ -1,5 +1,4 @@
1
1
  @charset 'UTF-8';
2
- @use "sass:color";
3
2
 
4
3
  @include organism(tab-list) {
5
4
  overflow: hidden;
@@ -82,7 +81,7 @@
82
81
  }
83
82
 
84
83
  &:hover {
85
- background-color: color.adjust($color-concrete, $lightness: -5%);
84
+ background-color: darken($color-concrete, 5%);
86
85
  }
87
86
  }
88
87
 
@@ -1,5 +1,4 @@
1
1
  @charset "UTF-8";
2
- @use "sass:color";
3
2
 
4
3
  @include organism(video-guide) {
5
4
  flex-direction: column;
@@ -307,7 +306,7 @@
307
306
  padding: 0;
308
307
  margin: 0;
309
308
  display: block;
310
- border-top: 1px solid color.adjust($color-cyberspace, $lightness: 10%);
309
+ border-top: 1px solid lighten($color-cyberspace, 10%);
311
310
  }
312
311
  }
313
312
 
@@ -344,7 +343,7 @@
344
343
  &:hover,
345
344
  &:focus,
346
345
  &.is-current {
347
- background-color: color.adjust($color-cyberspace, $lightness: 10%);
346
+ background-color: lighten($color-cyberspace, 10%);
348
347
 
349
348
  &::after {
350
349
  overflow: visible;
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32" id="icon-search-domain"><path d="m24 21.8 8 8-2.1 2.2-8-8c-5.9 4.6-14.3 3.6-19-2.2S-.7 7.6 5.1 2.9C10.9-1.8 19.3-.7 24 5.1c3.9 4.9 3.9 11.8 0 16.7Zm-10.6 2.1c5.8 0 10.5-4.7 10.5-10.5S19.2 3 13.4 3 3 7.7 3 13.4s4.7 10.5 10.4 10.5Z"/><path d="M6 15.2h1.8V17H6v-1.8ZM9.7 16.7c-.5-.3-.9-.6-1.2-1l1.2-1c.2.3.4.5.7.7.3.2.6.3 1 .3s.6 0 .8-.2c.2-.1.3-.3.3-.5s0-.3-.2-.4c-.1-.1-.3-.2-.4-.3s-.4-.1-.7-.2c-.5-.1-.9-.3-1.2-.4-.3-.1-.6-.4-.8-.6-.2-.3-.3-.6-.3-1.1s.1-.8.3-1.1.5-.5.9-.7c.4-.2.8-.3 1.3-.3s1 .1 1.5.3.8.5 1 .9l-1.1.8-.6-.6c-.3-.1-.5-.2-.8-.2s-.5 0-.6.2c-.2.1-.3.2-.3.4s0 .2.1.3.2.2.4.2.4.1.7.2c.5.1.9.3 1.3.4.3.1.6.3.9.6.3.3.4.7.4 1.2s-.1.8-.3 1.2c-.2.3-.6.6-1 .8-.4.2-.9.3-1.5.3s-1.3-.1-1.8-.4ZM16.2 16.7c-.5-.3-.9-.7-1.1-1.3-.2-.5-.4-1.1-.4-1.7s.1-1.2.3-1.8c.2-.5.6-1 1.1-1.3.5-.3 1.1-.5 1.8-.5s1.3.2 1.7.5c.5.3.8.7 1.1 1.2.2.5.4 1.1.4 1.8v.6h-4.6c0 .4.2.8.5 1 .3.3.7.4 1.2.4s1.2-.2 1.6-.7l1.2 1c-.4.4-.8.7-1.2.9-.5.2-1 .3-1.6.3s-1.4-.2-1.9-.5Zm3.3-3.8c0-.3 0-.5-.2-.7-.1-.2-.3-.4-.5-.5-.2-.1-.5-.2-.8-.2-.5 0-.9.1-1.1.4-.3.3-.4.6-.5 1h3.1Z"/></svg>