@nice-digital/nds-page-header 1.2.20-alpha.0 → 2.0.1-alpha.0
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 +3 -3
- package/scss/page-header.scss +23 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nice-digital/nds-page-header",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1-alpha.0",
|
|
4
4
|
"description": "Page header component for the NICE Design System",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"header"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"url": "https://github.com/nice-digital/nice-design-system/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@nice-digital/nds-core": "^
|
|
40
|
+
"@nice-digital/nds-core": "^2.0.1-alpha.0",
|
|
41
41
|
"prop-types": "^15.7.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@babel/cli": "^7.5.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "520ec14c3198c5224e5ea6f007616c408d96acbc"
|
|
51
51
|
}
|
package/scss/page-header.scss
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
/// @group components
|
|
3
3
|
////
|
|
4
4
|
|
|
5
|
-
@
|
|
5
|
+
@use '@nice-digital/nds-core/scss/colours';
|
|
6
|
+
@use '@nice-digital/nds-core/scss/glyphs';
|
|
7
|
+
@use '@nice-digital/nds-core/scss/media-queries';
|
|
8
|
+
@use '@nice-digital/nds-core/scss/spacing';
|
|
9
|
+
@use '@nice-digital/nds-core/scss/typography';
|
|
10
|
+
@use '@nice-digital/nds-core/scss/utils';
|
|
11
|
+
@use '@nice-digital/nds-core/scss/visibility';
|
|
6
12
|
|
|
7
13
|
/// Page header component.
|
|
8
14
|
/// Used at the top of a page to contain an h1 and optional
|
|
@@ -23,37 +29,35 @@
|
|
|
23
29
|
/// </header>
|
|
24
30
|
/// @since 0.4.0
|
|
25
31
|
.page-header {
|
|
26
|
-
margin: rem(0 0
|
|
32
|
+
margin: utils.rem(0 0 spacing.$x-large 0);
|
|
27
33
|
|
|
28
34
|
&__pre-heading {
|
|
29
|
-
@include
|
|
35
|
+
@include typography.font-size(h5);
|
|
30
36
|
display: block;
|
|
31
|
-
margin: rem(0);
|
|
32
|
-
text-shadow: 0.5px 0 0 currentColor;
|
|
37
|
+
margin: utils.rem(0);
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
&__heading {
|
|
36
|
-
@include
|
|
37
|
-
margin: rem(0 0
|
|
41
|
+
@include typography.font-size(h1);
|
|
42
|
+
margin: utils.rem(0 0 spacing.$small 0);
|
|
38
43
|
}
|
|
39
44
|
|
|
40
45
|
&__lead {
|
|
41
|
-
@include
|
|
42
|
-
margin: rem(0 0
|
|
46
|
+
@include typography.font-size(lead);
|
|
47
|
+
margin: utils.rem(0 0 spacing.$small 0);
|
|
43
48
|
}
|
|
44
49
|
|
|
45
50
|
&__metadata {
|
|
46
|
-
@include
|
|
51
|
+
@include typography.font-size(lead);
|
|
47
52
|
display: flex;
|
|
48
53
|
flex-direction: column;
|
|
49
54
|
list-style: none;
|
|
50
|
-
margin: rem(0 0
|
|
55
|
+
margin: utils.rem(0 0 spacing.$small 0);
|
|
51
56
|
max-width: none;
|
|
52
57
|
padding: 0;
|
|
53
58
|
|
|
54
|
-
@include mq($from: md) {
|
|
55
|
-
flex-
|
|
56
|
-
flex-wrap: wrap;
|
|
59
|
+
@include media-queries.mq($from: md) {
|
|
60
|
+
flex-flow: row wrap;
|
|
57
61
|
|
|
58
62
|
li {
|
|
59
63
|
display: flex;
|
|
@@ -61,9 +65,9 @@
|
|
|
61
65
|
white-space: nowrap;
|
|
62
66
|
|
|
63
67
|
&:after {
|
|
64
|
-
background:
|
|
65
|
-
content:
|
|
66
|
-
margin: em(0
|
|
68
|
+
background: colours.$icons;
|
|
69
|
+
content: glyphs.get-glyph(zero-width-space);
|
|
70
|
+
margin: utils.em(0 spacing.$small);
|
|
67
71
|
width: 1px;
|
|
68
72
|
}
|
|
69
73
|
|
|
@@ -75,8 +79,8 @@
|
|
|
75
79
|
}
|
|
76
80
|
|
|
77
81
|
&__cta {
|
|
78
|
-
@include
|
|
79
|
-
@include
|
|
82
|
+
@include visibility.hide-print;
|
|
83
|
+
@include typography.font-size(p);
|
|
80
84
|
display: block;
|
|
81
85
|
margin: 0;
|
|
82
86
|
}
|