mp-design-system 0.9.6 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mp-design-system",
3
- "version": "0.9.6",
3
+ "version": "0.9.8",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "dev": "npm-run-all --parallel bundle:*",
@@ -23,6 +23,15 @@ module.exports = {
23
23
  label: 'Register for part 3'
24
24
  }]
25
25
  }
26
+ },
27
+ {
28
+ title: 'With author link',
29
+ context: {
30
+ author: {
31
+ link: '/',
32
+ label: 'Lauren Ipson'
33
+ }
34
+ }
26
35
  }
27
36
  ],
28
37
  props: [
@@ -6,5 +6,11 @@
6
6
  links: params.series
7
7
  }) }}
8
8
  {% endif %}
9
- {{ params.content | safe }}
10
- </div>
9
+ {% if params.author %}
10
+ <p>By <a class="u-link u-link--underline" href="{{ params.author.link }}">{{ params.author.label | safe }}</a>, Wednesday 6 January 2021</p>
11
+ {% else %}
12
+ {{ params.content | safe }}
13
+ {% endif %}
14
+ </div>
15
+
16
+ {# test #}
@@ -10,6 +10,10 @@
10
10
  border-top: 1px solid color('petrol', 'step-2');
11
11
  }
12
12
 
13
+ .u-border-bottom {
14
+ border-bottom: 1px solid color('petrol', 'step-2');
15
+ }
16
+
13
17
  .u-border {
14
18
  border: 1px solid color('petrol', 'step-2');
15
19
  }
@@ -7,7 +7,19 @@
7
7
  text-decoration: underline;
8
8
  }
9
9
 
10
+ &--petrol {
11
+ color: color('petrol');
12
+ }
13
+
10
14
  &--red {
11
15
  color: color('red');
12
16
  }
13
- }
17
+
18
+ &--underline {
19
+ text-decoration: underline;
20
+
21
+ &:hover {
22
+ text-decoration: none;
23
+ }
24
+ }
25
+ }
@@ -97,6 +97,10 @@
97
97
  @include padding('xl');
98
98
  }
99
99
 
100
+ .u-pad-y-xs {
101
+ @include padding-top('xs');
102
+ @include padding-bottom('xs');
103
+ }
100
104
  .u-pad-y-s {
101
105
  @include padding-top('s');
102
106
  @include padding-bottom('s');