@madgex/design-system 5.11.1 → 5.11.3

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.
@@ -60,6 +60,8 @@
60
60
  <article style="margin: 2rem 0;">
61
61
  <h4>Iframes and media objects</h4>
62
62
  <div class="mds-edited-text">
63
- <iframe src="https://player.vimeo.com/video/76979871" title="Embedded Video: The New Vimeo Player (You Know, For Videos)" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
63
+ <p>
64
+ <iframe src="https://player.vimeo.com/video/76979871" title="Embedded Video: The New Vimeo Player (You Know, For Videos)" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>
65
+ </p>
64
66
  </div>
65
67
  </article>
@@ -40,7 +40,7 @@ You can use `space-around` or `space-between` by adding the classes `mds-grid-ar
40
40
 
41
41
  For smaller (half width) gutters `mds-grid-small` can be used on the row element.
42
42
 
43
- I you want a column to only be as wide as it's content needs it to be, and allows other columns to grow to fill the remaining space use `.mds-grid-fit-content`.
43
+ If you want a column to only be as wide as it's content needs it to be, and allows other columns to grow to fill the remaining space use `.mds-grid-fit-content` (also has breakpoint versions e.g. `.mds-grid-fit-content-md` )
44
44
 
45
45
  ### Reordering and Reversing
46
46
 
@@ -61,4 +61,11 @@
61
61
  <div class="mds-grid-col"><span>Column</span></div>
62
62
  <div class="mds-grid-col mds-grid-fit-content"><span class="mds-whitespace-nowrap">with content fit</span></div>
63
63
  </div>
64
+ <h2>With different breakpoints</h2>
65
+ <div class="mds-grid-row">
66
+ <div class="mds-grid-col"><span>Column</span></div>
67
+ <div class="mds-grid-col mds-grid-fit-content-lg"><span class="mds-whitespace-nowrap">with content fit lg</span></div>
68
+ <div class="mds-grid-col mds-grid-fit-content-md"><span class="mds-whitespace-nowrap">with content fit md</span></div>
69
+ </div>
70
+ <hr>
64
71
  </div>
@@ -414,6 +414,10 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
414
414
  .mds-grid-last-sm {
415
415
  order: 1;
416
416
  }
417
+ .mds-grid-fit-content-sm {
418
+ flex-grow: 0;
419
+ flex-basis: auto;
420
+ }
417
421
  }
418
422
 
419
423
  @media only screen and (min-width: $mds-size-breakpoint-md) {
@@ -605,6 +609,11 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
605
609
  .mds-grid-last-md {
606
610
  order: 1;
607
611
  }
612
+
613
+ .mds-grid-fit-content-md {
614
+ flex-grow: 0;
615
+ flex-basis: auto;
616
+ }
608
617
  }
609
618
 
610
619
  @media only screen and (min-width: $mds-size-breakpoint-lg) {
@@ -796,6 +805,11 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
796
805
  .mds-grid-last-lg {
797
806
  order: 1;
798
807
  }
808
+
809
+ .mds-grid-fit-content-lg {
810
+ flex-grow: 0;
811
+ flex-basis: auto;
812
+ }
799
813
  }
800
814
 
801
815
  @media only screen and (min-width: $mds-size-breakpoint-xl) {
@@ -987,4 +1001,8 @@ $mds-quarter-gutter-width: $mds-size-gutter-width * 0.25;
987
1001
  .mds-grid-last-xl {
988
1002
  order: 1;
989
1003
  }
990
- }
1004
+ .mds-grid-fit-content-xl {
1005
+ flex-grow: 0;
1006
+ flex-basis: auto;
1007
+ }
1008
+ }
@@ -63,8 +63,11 @@ async function createSvgStack() {
63
63
 
64
64
  return fs.mkdir(path.resolve(__dirname, '../dist/assets'), { recursive: true }, async () => {
65
65
  icons.push({ name: fileName });
66
- fs.writeFileSync(`${path.resolve(__dirname, '../dist/assets', 'icons.svg')}`, sprites);
67
- fs.writeFileSync(`${path.resolve(__dirname, '../dist/assets', 'icons-inline.svg')}`, inlineSprites);
66
+ fs.writeFileSync(`${path.resolve(__dirname, '../dist/assets', 'icons.svg')}`, sprites.toString());
67
+ fs.writeFileSync(
68
+ `${path.resolve(__dirname, '../dist/assets', 'icons-inline.svg')}`,
69
+ inlineSprites.toString()
70
+ );
68
71
  fs.writeFileSync(`${path.resolve(__dirname, '../dist/assets', 'icons.json')}`, JSON.stringify(icons));
69
72
  });
70
73
  })