@internetstiftelsen/styleguide 4.0.8-beta.0.3 → 4.0.8-beta.0.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@internetstiftelsen/styleguide",
3
- "version": "4.0.8-beta.0.3",
3
+ "version": "4.0.8-beta.0.5",
4
4
  "main": "dist/components.js",
5
5
  "ports": {
6
6
  "fractal": "3000"
@@ -388,6 +388,39 @@
388
388
  }
389
389
  }
390
390
 
391
+ @include m(sticky-buttons) {
392
+ @include bp-down(sm-xs) {
393
+ @include e(buttons) {
394
+ position: absolute;
395
+ bottom: 0;
396
+ left: rhythm(2);
397
+ right: rhythm(2);
398
+ display: flex;
399
+ flex-wrap: nowrap;
400
+ justify-content: space-between;
401
+ align-items: stretch;
402
+ margin: 0 0 rhythm(2) 0;
403
+
404
+ [class*='a-button'] {
405
+ margin: 0 rhythm(1) 0 0;
406
+ flex: 1;
407
+ padding-top: rhythm(1);
408
+ padding-bottom: rhythm(1);
409
+ padding-left: rhythm(1.5);
410
+ padding-right: rhythm(1.5);
411
+
412
+ &:last-child {
413
+ margin-right: 0;
414
+ }
415
+
416
+ > span {
417
+ font-size: 90%;
418
+ }
419
+ }
420
+ }
421
+ }
422
+ }
423
+
391
424
  // Hero without darkened caption
392
425
  @include m(clean) {
393
426
  @include e(caption) {
@@ -28,10 +28,13 @@ module.exports = {
28
28
  {
29
29
  name: 'Buttons',
30
30
  context: {
31
+ no_image_class: 'o-hero--no-break o-hero--sticky-buttons',
31
32
  has_tags: false,
32
33
  has_buttons: true,
33
34
  limited_width: false,
34
- text: ' gott som alla svenskar använder internet och digitala tjänster idag',
35
+ heading: 'Välkommen till Goto 10',
36
+ hero_image: 'https://stage.goto10.se/app/uploads/2024/05/toppbild-goto-10-linkoping-1-.jpg.webp',
37
+ text: 'Goto 10 är en kostnadsfri mötesplats för kunskapsutbyte och innovation som drivs av Internetstiftelsen. Besök oss i Linköping, Malmö och Stockholm.',
35
38
  },
36
39
  },
37
40
  {