sfc-utils 1.3.54 → 1.3.55
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/brands2.js +1 -1
- package/components/authors.mjs +41 -0
- package/components/byline.mjs +79 -0
- package/components/captioncredit.mjs +31 -0
- package/components/heading.mjs +33 -0
- package/components/helpers/datehelpers.mjs +54 -0
- package/components/helpers/utilfunctions.mjs +12 -0
- package/components/sharebuttons.mjs +93 -0
- package/components/topper2.mjs +202 -0
- package/components/wcmimage2.mjs +113 -0
- package/css/nav2.less +1 -0
- package/example/gatsby-config.js +2 -2
- package/example/gatsby-node.js +7 -1
- package/example/project-config.json +3 -3
- package/example/src/components/layout.js +9 -9
- package/example/src/pages/index.js +36 -6
- package/example/src/styles/credittooltip.less +55 -0
- package/example/src/styles/footer.less +48 -38
- package/example/src/styles/{defaults.less → old css/defaults.less} +0 -0
- package/example/src/styles/old css/footer.less +345 -0
- package/example/src/styles/old css/nav.less +187 -0
- package/example/src/styles/old css/project.less +1 -0
- package/example/src/styles/old css/reset.css +95 -0
- package/example/src/styles/old css/seed.less +7 -0
- package/example/src/styles/{typography.css → old css/typography.css} +0 -0
- package/example/src/styles/old css/values.less +74 -0
- package/example/src/styles/project.less +1 -1
- package/example/src/styles/reset.css +4 -2
- package/example/src/styles/seed.less +4 -3
- package/example/src/styles/values.less +129 -0
- package/example/src/styles/variables.less +142 -0
- package/package.json +2 -1
- package/settings.js +10 -1
- package/styles/brandStylesCommon.less +164 -0
- package/styles/modules/share.module.less +25 -0
- package/styles/modules/topper2.module.less +143 -0
- package/styles/modules/wcmimage2.module.less +32 -0
- package/styles/values.less +128 -0
- package/styles/variables.less +143 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
@import (less) './variables.less';
|
|
2
|
+
|
|
3
|
+
//sizing and spacing tachyons
|
|
4
|
+
.text-width {
|
|
5
|
+
max-width: @md;
|
|
6
|
+
padding: 0 @s16;
|
|
7
|
+
margin-left: auto;
|
|
8
|
+
margin-right: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.mb-xxs {margin-bottom: @s4;}
|
|
12
|
+
.mb-xs {margin-bottom: @s8;}
|
|
13
|
+
.mb-sm {margin-bottom: @s16;}
|
|
14
|
+
.mb-md {margin-bottom: @s24;}
|
|
15
|
+
.mb-lg {margin-bottom: @s32;}
|
|
16
|
+
.mb-xl {margin-bottom: @s40;}
|
|
17
|
+
.mb-xxl {margin-bottom: @s48;}
|
|
18
|
+
.mb-auto {margin-bottom: auto;}
|
|
19
|
+
|
|
20
|
+
.mt-xxs {margin-top: @s4;}
|
|
21
|
+
.mt-xs {margin-top: @s8;}
|
|
22
|
+
.mt-sm {margin-top: @s16;}
|
|
23
|
+
.mt-md {margin-top: @s24;}
|
|
24
|
+
.mt-lg {margin-top: @s32;}
|
|
25
|
+
.mt-xl {margin-top: @s40;}
|
|
26
|
+
.mt-xxl {margin-top: @s48;}
|
|
27
|
+
.mt-auto {margin-top: auto;}
|
|
28
|
+
|
|
29
|
+
.mr-xxs {margin-right: @s4;}
|
|
30
|
+
.mr-xs {margin-right: @s8;}
|
|
31
|
+
.mr-sm {margin-right: @s16;}
|
|
32
|
+
.mr-md {margin-right: @s24;}
|
|
33
|
+
.mr-lg {margin-right: @s32;}
|
|
34
|
+
.mr-xl {margin-right: @s40;}
|
|
35
|
+
.mr-xxl {margin-right: @s48;}
|
|
36
|
+
.mr-auto {margin-right: auto;}
|
|
37
|
+
|
|
38
|
+
.ml-xxs {margin-left: @s4;}
|
|
39
|
+
.ml-xs {margin-left: @s8;}
|
|
40
|
+
.ml-sm {margin-left: @s16;}
|
|
41
|
+
.ml-md {margin-left: @s24;}
|
|
42
|
+
.ml-lg {margin-left: @s32;}
|
|
43
|
+
.ml-xl {margin-left: @s40;}
|
|
44
|
+
.ml-xxl {margin-left: @s48;}
|
|
45
|
+
.ml-auto {margin-left: auto;}
|
|
46
|
+
|
|
47
|
+
.ma-xxs {margin: @s4;}
|
|
48
|
+
.ma-xs {margin: @s8;}
|
|
49
|
+
.ma-sm {margin: @s16;}
|
|
50
|
+
.ma-md {margin: @s24;}
|
|
51
|
+
.ma-lg {margin: @s32;}
|
|
52
|
+
.ma-xl {margin: @s40;}
|
|
53
|
+
.ma-xxl {margin: @s48;}
|
|
54
|
+
.ma-auto {margin: auto;}
|
|
55
|
+
|
|
56
|
+
//padding
|
|
57
|
+
.pb-xxs {padding-bottom: @s4;}
|
|
58
|
+
.pb-xs {padding-bottom: @s8;}
|
|
59
|
+
.pb-sm {padding-bottom: @s16;}
|
|
60
|
+
.pb-md {padding-bottom: @s24;}
|
|
61
|
+
.pb-lg {padding-bottom: @s32;}
|
|
62
|
+
.pb-xl {padding-bottom: @s40;}
|
|
63
|
+
.pb-xxl {padding-bottom: @s48;}
|
|
64
|
+
|
|
65
|
+
.pt-xxs {padding-top: @s4;}
|
|
66
|
+
.pt-xs {padding-top: @s8;}
|
|
67
|
+
.pt-sm {padding-top: @s16;}
|
|
68
|
+
.pt-md {padding-top: @s24;}
|
|
69
|
+
.pt-lg {padding-top: @s32;}
|
|
70
|
+
.pt-xl {padding-top: @s40;}
|
|
71
|
+
.pt-xxl {padding-top: @s48;}
|
|
72
|
+
|
|
73
|
+
.pr-xxs {padding-right: @s4;}
|
|
74
|
+
.pr-xs {padding-right: @s8;}
|
|
75
|
+
.pr-sm {padding-right: @s16;}
|
|
76
|
+
.pr-md {padding-right: @s24;}
|
|
77
|
+
.pr-lg {padding-right: @s32;}
|
|
78
|
+
.pr-xl {padding-right: @s40;}
|
|
79
|
+
.pr-xxl {padding-right: @s48;}
|
|
80
|
+
|
|
81
|
+
.pl-xxs {padding-left: @s4;}
|
|
82
|
+
.pl-xs {padding-left: @s8;}
|
|
83
|
+
.pl-sm {padding-left: @s16;}
|
|
84
|
+
.pl-md {padding-left: @s24;}
|
|
85
|
+
.pl-lg {padding-left: @s32;}
|
|
86
|
+
.pl-xl {padding-left: @s40;}
|
|
87
|
+
.pl-xxl {padding-left: @s48;}
|
|
88
|
+
|
|
89
|
+
.pa-xxs {padding: @s4;}
|
|
90
|
+
.pa-xs {padding: @s8;}
|
|
91
|
+
.pa-sm {padding: @s16;}
|
|
92
|
+
.pa-md {padding: @s24;}
|
|
93
|
+
.pa-lg {padding: @s32;}
|
|
94
|
+
.pa-xl {padding: @s40;}
|
|
95
|
+
.pa-xxl {padding: @s48;}
|
|
96
|
+
|
|
97
|
+
.mw-sm {max-width: @sm;}
|
|
98
|
+
.mw-md {max-width: @md;}
|
|
99
|
+
.mw-lg {max-width: @lg;}
|
|
100
|
+
.mw-xl {max-width: @xl;}
|
|
101
|
+
.mw-100 {max-width: 100%;}
|
|
102
|
+
|
|
103
|
+
//alignment
|
|
104
|
+
.center {text-align: center;}
|
|
105
|
+
.left {text-align: left;}
|
|
106
|
+
.right {text-align: right;}
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
// accessibility styles from https://github.com/mike-engel/a11y-css-reset/
|
|
110
|
+
/* https://medium.com/@matuzo/writing-css-with-accessibility-in-mind-8514a0007939 */
|
|
111
|
+
.visually-hidden() {
|
|
112
|
+
position: absolute;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
width: 1px;
|
|
115
|
+
height: 1px;
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
border: 0;
|
|
118
|
+
padding: 0;
|
|
119
|
+
clip: rect(0 0 0 0);
|
|
120
|
+
clip-path: inset(50%);
|
|
121
|
+
margin: -1px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html */
|
|
125
|
+
.plain-list() {
|
|
126
|
+
list-style: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E");
|
|
127
|
+
padding-left: 0;
|
|
128
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
//sizing variables
|
|
2
|
+
@s4: 0.25rem;
|
|
3
|
+
@s8: 0.5rem;
|
|
4
|
+
@s16: 1rem;
|
|
5
|
+
@s24: 1.5rem;
|
|
6
|
+
@s32: 2rem;
|
|
7
|
+
@s40: 2.5rem;
|
|
8
|
+
@s48: 3rem;
|
|
9
|
+
@s56: 3.5rem;
|
|
10
|
+
@s64: 4rem;
|
|
11
|
+
@s72: 4.5rem;
|
|
12
|
+
@s80: 5rem;
|
|
13
|
+
@s88: 5.5rem;
|
|
14
|
+
@s96: 6rem;
|
|
15
|
+
@s104: 6.5rem;
|
|
16
|
+
@s112: 7rem;
|
|
17
|
+
@s120: 7.5rem;
|
|
18
|
+
@s128: 8rem;
|
|
19
|
+
@s136: 8.5rem;
|
|
20
|
+
@s144: 9rem;
|
|
21
|
+
@s152: 9.5rem;
|
|
22
|
+
@s160: 10rem;
|
|
23
|
+
|
|
24
|
+
//font-only variables
|
|
25
|
+
@s12: 0.75rem;
|
|
26
|
+
@s14: 0.875rem;
|
|
27
|
+
@s18: 1.125rem;
|
|
28
|
+
@s20: 1.25rem;
|
|
29
|
+
|
|
30
|
+
//widths
|
|
31
|
+
@xs: 320px;
|
|
32
|
+
@sm: 400px;
|
|
33
|
+
@md: 672px;
|
|
34
|
+
@lg: 928px;
|
|
35
|
+
@xl: 1200px;
|
|
36
|
+
@w-text-width: 640px;
|
|
37
|
+
@w-tablet: 768px;
|
|
38
|
+
@w-mobile: 480px;
|
|
39
|
+
|
|
40
|
+
//media queries
|
|
41
|
+
@mobile: ~"(max-width: 480px)";
|
|
42
|
+
@tablet: ~"(max-width: 768px)";
|
|
43
|
+
@max: ~"(max-width: 1000000px)";
|
|
44
|
+
|
|
45
|
+
@max-sm: ~"(max-width: 400px)";
|
|
46
|
+
@max-tablet: ~"(max-width: 768px)";
|
|
47
|
+
@max-text-width: ~"(max-width: 672px)";
|
|
48
|
+
@max-desktop: ~"(max-width: 1200px)";
|
|
49
|
+
@max: ~"(max-width: 1000000px)";
|
|
50
|
+
|
|
51
|
+
@min-mobile: ~"(min-width: 480px)";
|
|
52
|
+
@min-tablet: ~"(min-width: 768px)";
|
|
53
|
+
@min-text-width: ~"(min-width: 672px)";
|
|
54
|
+
@min-desktop: ~"(min-width: 1200px)";
|
|
55
|
+
|
|
56
|
+
//color variables
|
|
57
|
+
@white: #FFFFFF;
|
|
58
|
+
@black: #111111;
|
|
59
|
+
|
|
60
|
+
@grey-100: #3E3E3E;
|
|
61
|
+
@grey-75: #676767;
|
|
62
|
+
@grey-50: #909090;
|
|
63
|
+
@grey-25: #C7C7C7;
|
|
64
|
+
@grey-0: #E1E1E1;
|
|
65
|
+
@grey-pale: #F4F4F4;
|
|
66
|
+
|
|
67
|
+
//brights: best used as highlights or spot colors
|
|
68
|
+
@red-bright: #D20C0E;
|
|
69
|
+
@blue-bright: #1874CB;
|
|
70
|
+
@pink-bright: #E94B73;
|
|
71
|
+
@teal-bright: #26A0A5;
|
|
72
|
+
@gold-bright: #FFBC30;
|
|
73
|
+
@orange-bright: #FF7500;
|
|
74
|
+
@green-bright: #7CA735;
|
|
75
|
+
@purple-bright: #B87790;
|
|
76
|
+
|
|
77
|
+
//pales: best used as backgrounds or large color blocks/screens
|
|
78
|
+
@red-pale: #FBF5F5;
|
|
79
|
+
@blue-pale: #EFF5FA;
|
|
80
|
+
@pink-pale: #FCF2F3;
|
|
81
|
+
@teal-pale: #EDF7F9;
|
|
82
|
+
@gold-pale: #FCF9F0;
|
|
83
|
+
@orange-pale: #FCF4EE;
|
|
84
|
+
@green-pale: #F5F7F1;
|
|
85
|
+
@purple-pale: #F8F5F8;
|
|
86
|
+
|
|
87
|
+
//color scales - 100 is the base, higher values are darker, lower values are lighter
|
|
88
|
+
@red-300: #7F0D0A;
|
|
89
|
+
@red-100: #BA142D;
|
|
90
|
+
@red-75: #D06566;
|
|
91
|
+
@red-50: #D18786;
|
|
92
|
+
@red-25: #DDABAA;
|
|
93
|
+
@red-0: #F2E1E1;
|
|
94
|
+
|
|
95
|
+
@blue-300: #003166;
|
|
96
|
+
@blue-100: #025BAF;
|
|
97
|
+
@blue-75: #428BCA;
|
|
98
|
+
@blue-50: #67A2D4;
|
|
99
|
+
@blue-25: #95C1E8;
|
|
100
|
+
@blue-0: #CFE0EF;
|
|
101
|
+
|
|
102
|
+
@pink-300: #951D3A;
|
|
103
|
+
@pink-100: #D1365E;
|
|
104
|
+
@pink-75: #DA5E7D;
|
|
105
|
+
@pink-50: #E3879D;
|
|
106
|
+
@pink-25: #ECAFBC;
|
|
107
|
+
@pink-0: #F5D7DB;
|
|
108
|
+
|
|
109
|
+
@teal-300: #00505A;
|
|
110
|
+
@teal-100: #189196;
|
|
111
|
+
@teal-75: #45A6AC;
|
|
112
|
+
@teal-50: #71BBC2;
|
|
113
|
+
@teal-25: #9ED1D8;
|
|
114
|
+
@teal-0: #CAE6EE;
|
|
115
|
+
|
|
116
|
+
@gold-300: #B17A00;
|
|
117
|
+
@gold-200: #D39213;
|
|
118
|
+
@gold-100: #E5A72C;
|
|
119
|
+
@gold-75: #E8BD62;
|
|
120
|
+
@gold-50: #EDCE87;
|
|
121
|
+
@gold-25: #F1DEAD;
|
|
122
|
+
@gold-0: #F6EED2;
|
|
123
|
+
|
|
124
|
+
@orange-300: #B05A0C;
|
|
125
|
+
@orange-100: #DF7821;
|
|
126
|
+
@orange-75: #E4914B;
|
|
127
|
+
@orange-50: #EAAB76;
|
|
128
|
+
@orange-25: #F0C4A1;
|
|
129
|
+
@orange-0: #F5DECB;
|
|
130
|
+
|
|
131
|
+
@green-300: #5F7539;
|
|
132
|
+
@green-100: #819958;
|
|
133
|
+
@green-75: #99AC78;
|
|
134
|
+
@green-50: #B1C097;
|
|
135
|
+
@green-25: #C8D3B7;
|
|
136
|
+
@green-0: #E0E6D6;
|
|
137
|
+
|
|
138
|
+
@purple-300: #724C6C;
|
|
139
|
+
@purple-100: #97668F;
|
|
140
|
+
@purple-75: #AC84A5;
|
|
141
|
+
@purple-50: #C1A3BC;
|
|
142
|
+
@purple-25: #D6C1D3;
|
|
143
|
+
@purple-0: #EBE0E9;
|