@internetstiftelsen/styleguide 5.0.0 → 5.0.2

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 (126) hide show
  1. package/dist/assets/js/iconToggle.js +1 -2
  2. package/dist/assets/js/parallax.js +0 -2
  3. package/dist/assets/js/textToggle.js +0 -1
  4. package/dist/assets/js/track.js +2 -2
  5. package/dist/assets/js/youtube.js +1 -0
  6. package/dist/components.js +0 -4
  7. package/dist/molecules/glider/glider-hero.js +1 -2
  8. package/dist/molecules/modal/modal.js +2 -2
  9. package/dist/molecules/overview-navigation/overview-navigation.js +1 -2
  10. package/dist/organisms/mailchimp/mailchimp.js +2 -1
  11. package/dist/organisms/tabs/tabs.js +3 -2
  12. package/dist/organisms/timeline/timeline.js +2 -4
  13. package/package.json +8 -3
  14. package/src/app.js +1 -15
  15. package/src/assets/js/iconToggle.js +2 -2
  16. package/src/assets/js/parallax.js +0 -2
  17. package/src/assets/js/textToggle.js +1 -1
  18. package/src/assets/js/track.js +2 -2
  19. package/src/assets/js/youtube.js +1 -0
  20. package/src/atoms/archive-link/archive-link.config.js +1 -1
  21. package/src/atoms/button/_button.scss +6 -6
  22. package/src/atoms/checkbox/checkbox.config.js +1 -1
  23. package/src/atoms/file/file.config.js +1 -1
  24. package/src/atoms/grid-toggle/grid-toggle.config.js +1 -1
  25. package/src/atoms/height-limiter/height-limiter.config.js +1 -1
  26. package/src/atoms/hr/hr.config.js +1 -1
  27. package/src/atoms/icon/icon.config.js +2 -2
  28. package/src/atoms/input/input.config.js +1 -1
  29. package/src/atoms/label/label.config.js +1 -1
  30. package/src/atoms/logotype/logotype.config.js +3 -3
  31. package/src/atoms/main-menu/_main-menu.scss +1 -1
  32. package/src/atoms/main-menu/main-menu.config.js +1 -1
  33. package/src/atoms/meta/meta.config.js +1 -1
  34. package/src/atoms/paging/paging.config.js +1 -1
  35. package/src/atoms/password-toggle/password-toggle.config.js +1 -1
  36. package/src/atoms/progress/progress.config.js +1 -1
  37. package/src/atoms/quote/quote.config.js +1 -1
  38. package/src/atoms/radiobutton/radiobutton.config.js +1 -1
  39. package/src/atoms/range/range.config.js +1 -1
  40. package/src/atoms/rating/rating.config.js +1 -1
  41. package/src/atoms/ribbon/_ribbon.scss +1 -1
  42. package/src/atoms/ribbon/ribbon.config.js +1 -1
  43. package/src/atoms/select/select.config.js +1 -1
  44. package/src/atoms/skip/skip.config.js +1 -1
  45. package/src/atoms/spinner/spinner.config.js +1 -1
  46. package/src/atoms/tag/tag.config.js +1 -1
  47. package/src/atoms/textarea/textarea.config.js +1 -1
  48. package/src/atoms/toggle-button/toggle-button.config.js +1 -1
  49. package/src/atoms/tooltip/tooltip.config.js +1 -1
  50. package/src/base/_normalize.scss +93 -93
  51. package/src/brandbook/goto10/goto10.config.js +1 -1
  52. package/src/brandbook/internetstiftelsen/bildman/303/251r/bildman/303/251r.config.js +1 -1
  53. package/src/brandbook/internetstiftelsen/identitet/identitet.config.js +1 -1
  54. package/src/brandbook/internetstiftelsen/tonalitet och spr/303/245kbruk/tonalitet och spr/303/245kbruk.config.js" +1 -1
  55. package/src/configurations/_bem.scss +22 -22
  56. package/src/configurations/_config.scss +13 -13
  57. package/src/configurations/_functions.scss +6 -6
  58. package/src/configurations/_variables.scss +20 -20
  59. package/src/configurations/_wordpress.scss +6 -6
  60. package/src/configurations/colors/_colors.scss +3 -3
  61. package/src/configurations/colors/colors.config.js +1 -1
  62. package/src/configurations/favicon/favicon.config.js +1 -1
  63. package/src/configurations/grid/grid.config.js +1 -1
  64. package/src/configurations/icons.json +1 -1
  65. package/src/configurations/typography/typography.config.js +1 -1
  66. package/src/molecules/alert/alert.config.js +1 -1
  67. package/src/molecules/breadcrumb/breadcrumb.config.js +1 -1
  68. package/src/molecules/byline/byline.config.js +1 -1
  69. package/src/molecules/context-menu/context-menu.config.js +11 -11
  70. package/src/molecules/continue-video-guide/continue-video-guide.config.js +1 -1
  71. package/src/molecules/cookie-disclaimer/cookie-disclaimer.config.js +1 -1
  72. package/src/molecules/download/download.config.js +1 -1
  73. package/src/molecules/form/form.config.js +1 -1
  74. package/src/molecules/form-control/form-control.config.js +1 -1
  75. package/src/molecules/glider/glider-hero.js +1 -3
  76. package/src/molecules/glider/glider.config.js +1 -1
  77. package/src/molecules/icon-overlay/icon-overlay.config.js +1 -1
  78. package/src/molecules/info-box/info-box.config.js +1 -1
  79. package/src/molecules/input-group/input-group.config.js +1 -1
  80. package/src/molecules/modal/modal.js +2 -2
  81. package/src/molecules/multi-select/multi-select.js +3 -3
  82. package/src/molecules/natural-language-form/natural-language-form.config.js +4 -4
  83. package/src/molecules/overview-navigation/overview-navigation.js +2 -2
  84. package/src/molecules/share/share.config.js +1 -1
  85. package/src/molecules/submenu/submenu.config.js +1 -1
  86. package/src/molecules/system-error/system-error.config.js +1 -1
  87. package/src/molecules/table/table.config.js +1 -1
  88. package/src/molecules/teaser-news-list/teaser-news-list.config.js +1 -1
  89. package/src/organisms/accordion/_accordion.scss +4 -4
  90. package/src/organisms/accordion/accordion.config.js +1 -1
  91. package/src/organisms/domain-search/domain-search.config.js +1 -1
  92. package/src/organisms/filter/filter.config.js +1 -1
  93. package/src/organisms/footer/_footer.scss +1 -1
  94. package/src/organisms/footer/footer.config.js +1 -1
  95. package/src/organisms/header/header.config.js +1 -1
  96. package/src/organisms/hero/hero.config.js +35 -36
  97. package/src/organisms/mailchimp/_mailchimp.scss +1 -1
  98. package/src/organisms/mailchimp/mailchimp.config.js +1 -1
  99. package/src/organisms/mailchimp/mailchimp.js +2 -1
  100. package/src/organisms/mega-menu/mega-menu.config.js +1 -1
  101. package/src/organisms/members-service-product/members-service-product.config.js +1 -3
  102. package/src/organisms/podcast/_podcast-player.scss +1 -1
  103. package/src/organisms/podcast/podcast.config.js +1 -1
  104. package/src/organisms/search-result/search-result.config.js +1 -1
  105. package/src/organisms/sections/sections.config.js +1 -1
  106. package/src/organisms/tabs/tabs.config.js +1 -1
  107. package/src/organisms/tabs/tabs.js +3 -2
  108. package/src/organisms/timeline/timeline.config.js +1 -1
  109. package/src/organisms/timeline/timeline.js +3 -2
  110. package/src/organisms/video-guide/VideoGuidePlayback.js +1 -1
  111. package/src/organisms/video-guide/video-guide.config.js +1 -1
  112. package/src/organisms/video-guide/video-guide.js +2 -2
  113. package/src/pages/animate-footer/animate-footer.config.js +1 -1
  114. package/src/pages/bredbandskollen/bredbandskollen.config.js +1 -1
  115. package/src/pages/conditional/conditional.config.js +1 -1
  116. package/src/pages/dark-mode/dark-mode.config.js +1 -1
  117. package/src/pages/internetguider/internetguider.config.js +1 -1
  118. package/src/pages/magazine/magazine.config.js +1 -1
  119. package/src/pages/mailchimp-newsletter/mailchimp-newsletter.config.js +1 -1
  120. package/src/pages/responsive-position/responsive-position.config.js +1 -1
  121. package/src/pages/search/search.config.js +1 -1
  122. package/src/pages/wordpress-blocks/wordpress-blocks.config.js +1 -1
  123. package/src/theme/_theme.scss +1 -1
  124. package/src/utilities/_icons.scss +4 -4
  125. package/src/utilities/_margin.scss +8 -8
  126. package/src/utilities/_padding.scss +8 -8
@@ -25,7 +25,7 @@ body {
25
25
  min-height: 100%;
26
26
  margin: 0;
27
27
 
28
- //iPhone X landscape Notch fix
28
+ /* iPhone X landscape Notch fix */
29
29
  padding-right: env(safe-area-inset-right);
30
30
  padding-left: env(safe-area-inset-left);
31
31
  overflow-x: hidden;
@@ -40,7 +40,7 @@ body {
40
40
  box-sizing: inherit;
41
41
  }
42
42
 
43
- // HTML5 display definitions
43
+ /* HTML5 display definitions
44
44
  // ==========================================================================
45
45
 
46
46
  //
@@ -48,7 +48,7 @@ body {
48
48
  // Correct `block` display not defined for `details` or `summary` in IE 10/11
49
49
  // and Firefox.
50
50
  // Correct `block` display not defined for `main` in IE 11.
51
- //
51
+ */
52
52
 
53
53
  article,
54
54
  aside,
@@ -66,30 +66,30 @@ summary {
66
66
  display: block;
67
67
  }
68
68
 
69
- //
69
+ /*
70
70
  // Iframe
71
- //
71
+ //*
72
72
  iframe {
73
73
  border: 0;
74
74
  }
75
75
 
76
- //
76
+ /*
77
77
  // 1. Correct `inline-block` display not defined in IE 8/9.
78
78
  // 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
79
- //
79
+ */
80
80
 
81
81
  audio,
82
82
  canvas,
83
83
  progress,
84
84
  video {
85
- display: inline-block; // 1
86
- vertical-align: baseline; // 2
85
+ display: inline-block; /* 1 */
86
+ vertical-align: baseline; /* 2 */
87
87
  }
88
88
 
89
- //
89
+ /*
90
90
  // Prevent modern browsers from displaying `audio` without controls.
91
91
  // Remove excess height in iOS 5 devices.
92
- //
92
+ */
93
93
 
94
94
  audio {
95
95
  &:not([controls]) {
@@ -98,30 +98,30 @@ audio {
98
98
  }
99
99
  }
100
100
 
101
- //
101
+ /*
102
102
  // Address
103
- //
103
+ */
104
104
 
105
105
  address {
106
106
  font-style: normal;
107
107
  }
108
108
 
109
- //
109
+ /*
110
110
  // Address `[hidden]` styling not present in IE 8/9/10.
111
111
  // Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
112
- //
112
+ */
113
113
 
114
114
  [hidden],
115
115
  template {
116
116
  display: none;
117
117
  }
118
118
 
119
- // Links
120
- // ==========================================================================
119
+ /* Links
120
+ /* ========================================================================== */
121
121
 
122
- //
122
+ /*
123
123
  // Remove the gray background color from active links in IE 10.
124
- //
124
+ */
125
125
 
126
126
  a {
127
127
  background-color: transparent;
@@ -132,7 +132,7 @@ a {
132
132
  }
133
133
  }
134
134
 
135
- // Prevent 300ms click delay
135
+ /* Prevent 300ms click delay */
136
136
  a,
137
137
  button,
138
138
  input,
@@ -142,12 +142,12 @@ label {
142
142
  touch-action: manipulation;
143
143
  }
144
144
 
145
- // Text-level semantics
145
+ /* Text-level semantics
146
146
  // ==========================================================================
147
147
 
148
148
  //
149
149
  // Address styling not present in IE 8/9/10/11, Safari, and Chrome.
150
- //
150
+ */
151
151
 
152
152
  abbr {
153
153
  &[title] {
@@ -155,18 +155,18 @@ abbr {
155
155
  }
156
156
  }
157
157
 
158
- //
158
+ /*
159
159
  // Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
160
- //
160
+ */
161
161
 
162
162
  b,
163
163
  strong {
164
164
  font-weight: 700;
165
165
  }
166
166
 
167
- //
167
+ /*
168
168
  // Address styling not present in Safari and Chrome.
169
- //
169
+ */
170
170
 
171
171
  em,
172
172
  i,
@@ -184,33 +184,33 @@ h6 {
184
184
  font-weight: normal;
185
185
  }
186
186
 
187
- //
187
+ /*
188
188
  // Address styling not present in IE 8/9.
189
- //
189
+ */
190
190
 
191
191
  mark {
192
192
  background: colors.$color-lemon-light;
193
193
  color: colors.$color-black;
194
194
  }
195
195
 
196
- //
196
+ /*
197
197
  // Remove default italic
198
- //
198
+ */
199
199
  cite {
200
200
  font-style: normal;
201
201
  }
202
202
 
203
- //
203
+ /*
204
204
  // Address inconsistent and variable font size in all browsers.
205
- //
205
+ */
206
206
 
207
207
  small {
208
208
  font-size: 80%;
209
209
  }
210
210
 
211
- //
211
+ /*
212
212
  // Prevent `sub` and `sup` affecting `line-height` in all browsers.
213
- //
213
+ */
214
214
 
215
215
  sub,
216
216
  sup {
@@ -228,12 +228,12 @@ sub {
228
228
  bottom: -0.25em;
229
229
  }
230
230
 
231
- // Embedded content
231
+ /* Embedded content
232
232
  // ==========================================================================
233
233
 
234
234
  //
235
235
  // Remove border when inside `a` element in IE 8/9/10.
236
- //
236
+ */
237
237
 
238
238
  img {
239
239
  max-width: 100%;
@@ -241,7 +241,7 @@ img {
241
241
  border: 0;
242
242
  }
243
243
 
244
- // Images in Google Translate Widget
244
+ /* Images in Google Translate Widget */
245
245
 
246
246
  /* stylelint-disable */
247
247
  .google_translate_element {
@@ -255,9 +255,9 @@ img {
255
255
  }
256
256
  /* stylelint-enable */
257
257
 
258
- //
258
+ /*
259
259
  // Correct overflow not hidden in IE 9/10/11.
260
- //
260
+ */
261
261
 
262
262
  svg {
263
263
  &:not(:root) {
@@ -265,20 +265,20 @@ svg {
265
265
  }
266
266
  }
267
267
 
268
- // Grouping content
268
+ /* Grouping content
269
269
  // ==========================================================================
270
270
 
271
271
  //
272
272
  // Address margin not present in IE 8/9 and Safari.
273
- //
273
+ */
274
274
 
275
275
  figure {
276
276
  margin: 0;
277
277
  }
278
278
 
279
- //
279
+ /*
280
280
  // Address differences between Firefox and other browsers.
281
- //
281
+ */
282
282
 
283
283
  hr,
284
284
  hr.wp-block-separator {
@@ -291,9 +291,9 @@ hr.wp-block-separator {
291
291
  border-bottom: 1px solid colors.$color-concrete;
292
292
  }
293
293
 
294
- //
294
+ /*
295
295
  // Contain overflow in all browsers.
296
- //
296
+ */
297
297
 
298
298
  pre {
299
299
  width: 100%;
@@ -319,9 +319,9 @@ code {
319
319
  color: colors.$color-cyberspace;
320
320
  }
321
321
 
322
- //
322
+ /*
323
323
  // Address odd `em`-unit font size rendering in all browsers.
324
- //
324
+ */
325
325
 
326
326
  code,
327
327
  kbd,
@@ -330,7 +330,7 @@ samp {
330
330
  font-family: var.$font-family-mono;
331
331
  }
332
332
 
333
- // Forms
333
+ /* Forms
334
334
  // ==========================================================================
335
335
 
336
336
  //
@@ -343,67 +343,67 @@ samp {
343
343
  // Known issue: affects color of disabled elements.
344
344
  // 2. Correct font properties not being inherited.
345
345
  // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
346
- //
346
+ */
347
347
 
348
348
  button,
349
349
  input,
350
350
  optgroup,
351
351
  select,
352
352
  textarea {
353
- margin: 0; // 3
354
- color: inherit; // 1
355
- font: inherit; // 2
356
- -webkit-appearance: none; // stylelint:disable-line no-vendor-prefixes
353
+ margin: 0; /* 3 */
354
+ color: inherit; /* 1 */
355
+ font: inherit; /* 2 */
356
+ -webkit-appearance: none; /* stylelint:disable-line no-vendor-prefixes */
357
357
  }
358
358
 
359
- //
359
+ /*
360
360
  // Address `overflow` set to `hidden` in IE 8/9/10/11.
361
- //
361
+ */
362
362
 
363
363
  button {
364
364
  overflow: visible;
365
365
  }
366
366
 
367
- //
367
+ /*
368
368
  // Address inconsistent `text-transform` inheritance for `button` and `select`.
369
369
  // All other form control elements do not inherit `text-transform` values.
370
370
  // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
371
371
  // Correct `select` style inheritance in Firefox.
372
- //
372
+ */
373
373
 
374
374
  button,
375
375
  select {
376
376
  text-transform: none;
377
377
  }
378
378
 
379
- //
379
+ /*
380
380
  // 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
381
381
  // and `video` controls.
382
382
  // 2. Correct inability to style clickable `input` types in iOS.
383
383
  // 3. Improve usability and consistency of cursor style between image-type
384
384
  // `input` and others.
385
- //
385
+ */
386
386
 
387
387
  button,
388
- html input[type='button'], // 1
388
+ html input[type='button'], /* 1 */
389
389
  input[type='reset'],
390
390
  input[type='submit'] {
391
391
  cursor: pointer;
392
- -webkit-appearance: button; // 3
392
+ -webkit-appearance: button; /* 3 */
393
393
  }
394
394
 
395
- //
395
+ /*
396
396
  // Re-set default cursor for disabled elements.
397
- //
397
+ */
398
398
 
399
399
  button[disabled],
400
400
  html input[disabled] {
401
401
  cursor: default;
402
402
  }
403
403
 
404
- //
404
+ /*
405
405
  // Remove inner padding and border in Firefox 4+.
406
- //
406
+ */
407
407
 
408
408
  button::-moz-focus-inner,
409
409
  input::-moz-focus-inner {
@@ -411,65 +411,65 @@ input::-moz-focus-inner {
411
411
  border: 0;
412
412
  }
413
413
 
414
- //
414
+ /*
415
415
  // Address Firefox 4+ setting `line-height` on `input` using `!important` in
416
416
  // the UA stylesheet.
417
- //
417
+ */
418
418
 
419
419
  input {
420
420
  border-radius: 0;
421
421
  line-height: normal;
422
422
  }
423
423
 
424
- //
424
+ /*
425
425
  // It's recommended that you don't attempt to style these elements.
426
426
  // Firefox's implementation doesn't respect box-sizing, padding, or width.
427
427
  //
428
428
  // 1. Address box sizing set to `content-box` in IE 8/9/10.
429
429
  // 2. Remove excess padding in IE 8/9/10.
430
- //
430
+ */
431
431
 
432
432
  input,
433
433
  input {
434
434
  &[type='checkbox'],
435
435
  &[type='radio'] {
436
- box-sizing: border-box; // 1
437
- padding: 0; // 2
436
+ box-sizing: border-box; /* 1 */
437
+ padding: 0; /* 2 */
438
438
  }
439
439
  }
440
440
 
441
- //
441
+ /*
442
442
  // Fix the cursor style for Chrome's increment/decrement buttons. For certain
443
443
  // `font-size` values of the `input`, it causes the cursor style of the
444
444
  // decrement button to change from `default` to `text`.
445
- //
445
+ */
446
446
 
447
447
  input[type='number']::-webkit-inner-spin-button,
448
448
  input[type='number']::-webkit-outer-spin-button {
449
449
  height: auto;
450
450
  }
451
451
 
452
- //
452
+ /*
453
453
  // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
454
454
  // 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
455
- //
455
+ */
456
456
 
457
457
  input[type='search'] {
458
458
  -webkit-appearance: none;
459
459
  }
460
460
 
461
- //
461
+ /*
462
462
  // Remove inner padding and search cancel button in Safari and Chrome on OS X.
463
463
  // Safari (but not Chrome) clips the cancel button when the search input has
464
464
  // padding (and `textfield` appearance).
465
- //
465
+ */
466
466
 
467
467
  input[type='search']::-webkit-search-cancel-button,
468
468
  input[type='search']::-webkit-search-decoration {
469
469
  -webkit-appearance: none;
470
470
  }
471
471
 
472
- // Style placeholders
472
+ /* Style placeholders */
473
473
  ::-webkit-input-placeholder {
474
474
  opacity: 1;
475
475
  color: colors.$color-granit;
@@ -495,7 +495,7 @@ input[type='search']::-webkit-search-decoration {
495
495
  color: colors.$color-granit;
496
496
  }
497
497
 
498
- // Remove spinner from fields in Chrome
498
+ /* Remove spinner from fields in Chrome */
499
499
  input[type=number]::-webkit-inner-spin-button,
500
500
  input[type=number]::-webkit-outer-spin-button,
501
501
  input[type=date]::-webkit-inner-spin-button,
@@ -508,14 +508,14 @@ input[type=time]::-webkit-outer-spin-button {
508
508
  -webkit-appearance: none;
509
509
  }
510
510
 
511
- // Remove spinner from number fields in Firefox
511
+ /* Remove spinner from number fields in Firefox */
512
512
  input[type=number] {
513
513
  -moz-appearance: textfield;
514
514
  }
515
515
 
516
- //
516
+ /*
517
517
  // Define consistent border, margin, and padding.
518
- //
518
+ */
519
519
 
520
520
  fieldset {
521
521
  margin: 0;
@@ -523,41 +523,41 @@ fieldset {
523
523
  border: 0;
524
524
  }
525
525
 
526
- //
526
+ /*
527
527
  // 1. Correct `color` not being inherited in IE 8/9/10/11.
528
528
  // 2. Remove padding so people aren't caught out if they zero out fieldsets.
529
- //
529
+ */
530
530
 
531
531
  legend {
532
532
  margin-bottom: func.rhythm(1);
533
- padding: 0; // 2
534
- border: 0; // 1
533
+ padding: 0; /* 2 */
534
+ border: 0; /* 1 */
535
535
  font-weight: 700;
536
536
  }
537
537
 
538
- //
538
+ /*
539
539
  // Remove default vertical scrollbar in IE 8/9/10/11.
540
- //
540
+ */
541
541
 
542
542
  textarea {
543
543
  overflow: auto;
544
544
  }
545
545
 
546
- //
546
+ /*
547
547
  // Don't inherit the `font-weight` (applied by a rule above).
548
548
  // NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
549
- //
549
+ */
550
550
 
551
551
  optgroup {
552
552
  font-weight: bold;
553
553
  }
554
554
 
555
- // Tables
555
+ /* Tables
556
556
  // ==========================================================================
557
557
 
558
- //
558
+ /*
559
559
  // Remove most spacing between table cells.
560
- //
560
+ */
561
561
 
562
562
  table {
563
563
  border-spacing: 0;
@@ -184,4 +184,4 @@ module.exports = {
184
184
  }
185
185
  ]
186
186
  }
187
- }
187
+ };
@@ -2,4 +2,4 @@ module.exports = {
2
2
  status: 'ready',
3
3
  label: 'Bildmanér',
4
4
  title: 'Bildmanér'
5
- }
5
+ };
@@ -2,4 +2,4 @@ module.exports = {
2
2
  status: 'ready',
3
3
  label: 'Identitet',
4
4
  title: 'Identitet'
5
- }
5
+ };
@@ -2,4 +2,4 @@ module.exports = {
2
2
  status: 'ready',
3
3
  label: 'Tonalitet och språkbruk',
4
4
  title: 'Tonalitet och språkbruk'
5
- }
5
+ };
@@ -3,28 +3,28 @@
3
3
  @use "sass:string";
4
4
  @use '../configurations/variables' as var;
5
5
 
6
- /// Element class separator
7
- /// @group BEM
6
+ /* Element class separator
7
+ /// @group BEM */
8
8
  $element-separator: '__';
9
9
 
10
- /// Element class modifier
11
- /// @group BEM
10
+ /* Element class modifier
11
+ /// @group BEM */
12
12
  $modifier-separator: '--';
13
13
 
14
- /// Element class state prefix
15
- /// @group BEM
14
+ /* Element class state prefix
15
+ /// @group BEM */
16
16
  $state-prefix: 'is';
17
17
 
18
- /// Converts selector to string
19
- /// @group BEM
18
+ /* Converts selector to string
19
+ /// @group BEM */
20
20
  @function selector_to_string($selector) {
21
- $selector: meta.inspect($selector); //cast to string
22
- $selector: string.slice($selector, 2, -2); //remove brackets
21
+ $selector: meta.inspect($selector); /*cast to string */
22
+ $selector: string.slice($selector, 2, -2); /* remove brackets */
23
23
  @return $selector;
24
24
  }
25
25
 
26
- /// Checks if a inside a BEM modifier
27
- /// @group BEM
26
+ /* Checks if a inside a BEM modifier
27
+ /// @group BEM */
28
28
  @function contains_modifier($selector) {
29
29
  $selector: selector_to_string($selector);
30
30
  @if string.index($selector, $modifier-separator) {
@@ -34,24 +34,24 @@ $state-prefix: 'is';
34
34
  }
35
35
  }
36
36
 
37
- /// Get BEM block
38
- /// @group BEM
37
+ /* Get BEM block
38
+ /// @group BEM */
39
39
  @function get_block($selector) {
40
40
  $selector: selector_to_string($selector);
41
41
  $modifier-start: string.index($selector, $modifier-separator) - 1;
42
42
  @return string.slice($selector, 0, $modifier-start);
43
43
  }
44
44
 
45
- /// Encapsulates a standalone entity that is meaningful on its own.
46
- /// @group BEM
45
+ /* Encapsulates a standalone entity that is meaningful on its own.
46
+ /// @group BEM */
47
47
  @mixin b($name) {
48
48
  .#{var.$namespace}#{$name} {
49
49
  @content;
50
50
  }
51
51
  }
52
52
 
53
- /// Parts of a block and have no standalone meaning
54
- /// @group BEM
53
+ /* Parts of a block and have no standalone meaning
54
+ /// @group BEM */
55
55
  @mixin e($element) {
56
56
  $selector: &;
57
57
  @if contains_modifier($selector) {
@@ -72,8 +72,8 @@ $state-prefix: 'is';
72
72
  }
73
73
  }
74
74
 
75
- /// Flags on blocks or elements. Use them to change appearance or behavior.
76
- /// @group BEM
75
+ /* Flags on blocks or elements. Use them to change appearance or behavior.
76
+ /// @group BEM */
77
77
  @mixin m($modifier) {
78
78
  @at-root {
79
79
  #{&}#{$modifier-separator + $modifier} {
@@ -82,8 +82,8 @@ $state-prefix: 'is';
82
82
  }
83
83
  }
84
84
 
85
- /// States on blocks or elements. Use them to state.
86
- /// @group BEM
85
+ /* States on blocks or elements. Use them to state.
86
+ /// @group BEM */
87
87
  @mixin s($state, $prefix: $state-prefix) {
88
88
  @at-root {
89
89
  &.#{$prefix}-#{$state} {