sfc-utils 1.3.53 → 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
- package/topper.js +1 -1
|
@@ -44,6 +44,8 @@ h1,
|
|
|
44
44
|
h2,
|
|
45
45
|
h3,
|
|
46
46
|
h4,
|
|
47
|
+
h5,
|
|
48
|
+
h6,
|
|
47
49
|
p,
|
|
48
50
|
ul[class],
|
|
49
51
|
ol[class],
|
|
@@ -82,9 +84,9 @@ img {
|
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
/* Natural flow and rhythm in articles by default */
|
|
85
|
-
article > * + * {
|
|
87
|
+
/* article > * + * {
|
|
86
88
|
margin-top: 1em;
|
|
87
|
-
}
|
|
89
|
+
} */
|
|
88
90
|
|
|
89
91
|
/* Inherit fonts for inputs and buttons */
|
|
90
92
|
input,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import (css) "reset.css";
|
|
2
|
-
@import (css) "typography.css";
|
|
3
|
-
@import (less) "
|
|
4
|
-
@import (less) "
|
|
2
|
+
// @import (css) "typography.css";
|
|
3
|
+
@import (less) "../../../styles/brandStylesCommon.less";
|
|
4
|
+
@import (less) "../../../styles/variables.less";
|
|
5
|
+
@import (less) "../../../styles/brandStylesCommon.less";
|
|
5
6
|
@import (less) "project";
|
|
@@ -52,6 +52,135 @@
|
|
|
52
52
|
@med-gray: #777777;
|
|
53
53
|
@red: #CB0024;
|
|
54
54
|
|
|
55
|
+
// accessibility styles from https://github.com/mike-engel/a11y-css-reset/
|
|
56
|
+
/* https://medium.com/@matuzo/writing-css-with-accessibility-in-mind-8514a0007939 */
|
|
57
|
+
.visually-hidden() {
|
|
58
|
+
position: absolute;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
width: 1px;
|
|
61
|
+
height: 1px;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
border: 0;
|
|
64
|
+
padding: 0;
|
|
65
|
+
clip: rect(0 0 0 0);
|
|
66
|
+
clip-path: inset(50%);
|
|
67
|
+
margin: -1px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html */
|
|
71
|
+
.plain-list() {
|
|
72
|
+
list-style: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'/%3E");
|
|
73
|
+
padding-left: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@import (less) './variables.less';
|
|
77
|
+
|
|
78
|
+
//sizing and spacing tachyons
|
|
79
|
+
.text-width {
|
|
80
|
+
max-width: @md;
|
|
81
|
+
padding: 0 @s16;
|
|
82
|
+
margin-left: auto;
|
|
83
|
+
margin-right: auto;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.mb-xxs {margin-bottom: @s4;}
|
|
87
|
+
.mb-xs {margin-bottom: @s8;}
|
|
88
|
+
.mb-sm {margin-bottom: @s16;}
|
|
89
|
+
.mb-md {margin-bottom: @s24;}
|
|
90
|
+
.mb-lg {margin-bottom: @s32;}
|
|
91
|
+
.mb-xl {margin-bottom: @s40;}
|
|
92
|
+
.mb-xxl {margin-bottom: @s48;}
|
|
93
|
+
.mb-auto {margin-bottom: auto;}
|
|
94
|
+
|
|
95
|
+
.mt-xxs {margin-top: @s4;}
|
|
96
|
+
.mt-xs {margin-top: @s8;}
|
|
97
|
+
.mt-sm {margin-top: @s16;}
|
|
98
|
+
.mt-md {margin-top: @s24;}
|
|
99
|
+
.mt-lg {margin-top: @s32;}
|
|
100
|
+
.mt-xl {margin-top: @s40;}
|
|
101
|
+
.mt-xxl {margin-top: @s48;}
|
|
102
|
+
.mt-auto {margin-top: auto;}
|
|
103
|
+
|
|
104
|
+
.mr-xxs {margin-right: @s4;}
|
|
105
|
+
.mr-xs {margin-right: @s8;}
|
|
106
|
+
.mr-sm {margin-right: @s16;}
|
|
107
|
+
.mr-md {margin-right: @s24;}
|
|
108
|
+
.mr-lg {margin-right: @s32;}
|
|
109
|
+
.mr-xl {margin-right: @s40;}
|
|
110
|
+
.mr-xxl {margin-right: @s48;}
|
|
111
|
+
.mr-auto {margin-right: auto;}
|
|
112
|
+
|
|
113
|
+
.ml-xxs {margin-left: @s4;}
|
|
114
|
+
.ml-xs {margin-left: @s8;}
|
|
115
|
+
.ml-sm {margin-left: @s16;}
|
|
116
|
+
.ml-md {margin-left: @s24;}
|
|
117
|
+
.ml-lg {margin-left: @s32;}
|
|
118
|
+
.ml-xl {margin-left: @s40;}
|
|
119
|
+
.ml-xxl {margin-left: @s48;}
|
|
120
|
+
.ml-auto {margin-left: auto;}
|
|
121
|
+
|
|
122
|
+
.ma-xxs {margin: @s4;}
|
|
123
|
+
.ma-xs {margin: @s8;}
|
|
124
|
+
.ma-sm {margin: @s16;}
|
|
125
|
+
.ma-md {margin: @s24;}
|
|
126
|
+
.ma-lg {margin: @s32;}
|
|
127
|
+
.ma-xl {margin: @s40;}
|
|
128
|
+
.ma-xxl {margin: @s48;}
|
|
129
|
+
.ma-auto {margin: auto;}
|
|
130
|
+
|
|
131
|
+
//padding
|
|
132
|
+
.pb-xxs {padding-bottom: @s4;}
|
|
133
|
+
.pb-xs {padding-bottom: @s8;}
|
|
134
|
+
.pb-sm {padding-bottom: @s16;}
|
|
135
|
+
.pb-md {padding-bottom: @s24;}
|
|
136
|
+
.pb-lg {padding-bottom: @s32;}
|
|
137
|
+
.pb-xl {padding-bottom: @s40;}
|
|
138
|
+
.pb-xxl {padding-bottom: @s48;}
|
|
139
|
+
|
|
140
|
+
.pt-xxs {padding-top: @s4;}
|
|
141
|
+
.pt-xs {padding-top: @s8;}
|
|
142
|
+
.pt-sm {padding-top: @s16;}
|
|
143
|
+
.pt-md {padding-top: @s24;}
|
|
144
|
+
.pt-lg {padding-top: @s32;}
|
|
145
|
+
.pt-xl {padding-top: @s40;}
|
|
146
|
+
.pt-xxl {padding-top: @s48;}
|
|
147
|
+
|
|
148
|
+
.pr-xxs {padding-right: @s4;}
|
|
149
|
+
.pr-xs {padding-right: @s8;}
|
|
150
|
+
.pr-sm {padding-right: @s16;}
|
|
151
|
+
.pr-md {padding-right: @s24;}
|
|
152
|
+
.pr-lg {padding-right: @s32;}
|
|
153
|
+
.pr-xl {padding-right: @s40;}
|
|
154
|
+
.pr-xxl {padding-right: @s48;}
|
|
155
|
+
|
|
156
|
+
.pl-xxs {padding-left: @s4;}
|
|
157
|
+
.pl-xs {padding-left: @s8;}
|
|
158
|
+
.pl-sm {padding-left: @s16;}
|
|
159
|
+
.pl-md {padding-left: @s24;}
|
|
160
|
+
.pl-lg {padding-left: @s32;}
|
|
161
|
+
.pl-xl {padding-left: @s40;}
|
|
162
|
+
.pl-xxl {padding-left: @s48;}
|
|
163
|
+
|
|
164
|
+
.pa-xxs {padding: @s4;}
|
|
165
|
+
.pa-xs {padding: @s8;}
|
|
166
|
+
.pa-sm {padding: @s16;}
|
|
167
|
+
.pa-md {padding: @s24;}
|
|
168
|
+
.pa-lg {padding: @s32;}
|
|
169
|
+
.pa-xl {padding: @s40;}
|
|
170
|
+
.pa-xxl {padding: @s48;}
|
|
171
|
+
|
|
172
|
+
.mw-sm {max-width: @sm;}
|
|
173
|
+
.mw-md {max-width: @md;}
|
|
174
|
+
.mw-lg {max-width: @lg;}
|
|
175
|
+
.mw-xl {max-width: @xl;}
|
|
176
|
+
.mw-100 {max-width: 100%;}
|
|
177
|
+
|
|
178
|
+
//alignment
|
|
179
|
+
.center {text-align: center;}
|
|
180
|
+
.left {text-align: left;}
|
|
181
|
+
.right {text-align: right;}
|
|
182
|
+
|
|
183
|
+
|
|
55
184
|
// accessibility styles from https://github.com/mike-engel/a11y-css-reset/
|
|
56
185
|
/* https://medium.com/@matuzo/writing-css-with-accessibility-in-mind-8514a0007939 */
|
|
57
186
|
.visually-hidden() {
|
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
@sm: 400px;
|
|
32
|
+
@md: 672px;
|
|
33
|
+
@lg: 928px;
|
|
34
|
+
@xl: 1200px;
|
|
35
|
+
@w-text-width: 640px;
|
|
36
|
+
@w-tablet: 768px;
|
|
37
|
+
@w-mobile: 480px;
|
|
38
|
+
|
|
39
|
+
//media queries
|
|
40
|
+
@mobile: ~"(max-width: 480px)";
|
|
41
|
+
@tablet: ~"(max-width: 768px)";
|
|
42
|
+
@max: ~"(max-width: 1000000px)";
|
|
43
|
+
|
|
44
|
+
@max-sm: ~"(max-width: 400px)";
|
|
45
|
+
@max-tablet: ~"(max-width: 768px)";
|
|
46
|
+
@max-text-width: ~"(max-width: 672px)";
|
|
47
|
+
@max-desktop: ~"(max-width: 1200px)";
|
|
48
|
+
|
|
49
|
+
@min-mobile: ~"(min-width: 480px)";
|
|
50
|
+
@min-tablet: ~"(min-width: 768px)";
|
|
51
|
+
@min-text-width: ~"(min-width: 672px)";
|
|
52
|
+
@min-desktop: ~"(min-width: 1200px)";
|
|
53
|
+
@max: ~"(max-width: 1000000px)";
|
|
54
|
+
|
|
55
|
+
//color variables
|
|
56
|
+
@white: #FFFFFF;
|
|
57
|
+
@black: #111111;
|
|
58
|
+
|
|
59
|
+
@grey-100: #3E3E3E;
|
|
60
|
+
@grey-75: #676767;
|
|
61
|
+
@grey-50: #909090;
|
|
62
|
+
@grey-25: #C7C7C7;
|
|
63
|
+
@grey-0: #E1E1E1;
|
|
64
|
+
@grey-pale: #F4F4F4;
|
|
65
|
+
|
|
66
|
+
//brights: best used as highlights or spot colors
|
|
67
|
+
@red-bright: #D20C0E;
|
|
68
|
+
@blue-bright: #1874CB;
|
|
69
|
+
@pink-bright: #E94B73;
|
|
70
|
+
@teal-bright: #26A0A5;
|
|
71
|
+
@gold-bright: #FFBC30;
|
|
72
|
+
@orange-bright: #FF7500;
|
|
73
|
+
@green-bright: #7CA735;
|
|
74
|
+
@purple-bright: #B87790;
|
|
75
|
+
|
|
76
|
+
//pales: best used as backgrounds or large color blocks/screens
|
|
77
|
+
@red-pale: #FBF5F5;
|
|
78
|
+
@blue-pale: #EFF5FA;
|
|
79
|
+
@pink-pale: #FCF2F3;
|
|
80
|
+
@teal-pale: #EDF7F9;
|
|
81
|
+
@gold-pale: #FCF9F0;
|
|
82
|
+
@orange-pale: #FCF4EE;
|
|
83
|
+
@green-pale: #F5F7F1;
|
|
84
|
+
@purple-pale: #F8F5F8;
|
|
85
|
+
|
|
86
|
+
//color scales - 100 is the base, higher values are darker, lower values are lighter
|
|
87
|
+
@red-300: #7F0D0A;
|
|
88
|
+
@red-100: #BA142D;
|
|
89
|
+
@red-75: #D06566;
|
|
90
|
+
@red-50: #D18786;
|
|
91
|
+
@red-25: #DDABAA;
|
|
92
|
+
@red-0: #F2E1E1;
|
|
93
|
+
|
|
94
|
+
@blue-300: #003166;
|
|
95
|
+
@blue-100: #025BAF;
|
|
96
|
+
@blue-75: #428BCA;
|
|
97
|
+
@blue-50: #67A2D4;
|
|
98
|
+
@blue-25: #95C1E8;
|
|
99
|
+
@blue-0: #CFE0EF;
|
|
100
|
+
|
|
101
|
+
@pink-300: #951D3A;
|
|
102
|
+
@pink-100: #D1365E;
|
|
103
|
+
@pink-75: #DA5E7D;
|
|
104
|
+
@pink-50: #E3879D;
|
|
105
|
+
@pink-25: #ECAFBC;
|
|
106
|
+
@pink-0: #F5D7DB;
|
|
107
|
+
|
|
108
|
+
@teal-300: #00505A;
|
|
109
|
+
@teal-100: #189196;
|
|
110
|
+
@teal-75: #45A6AC;
|
|
111
|
+
@teal-50: #71BBC2;
|
|
112
|
+
@teal-25: #9ED1D8;
|
|
113
|
+
@teal-0: #CAE6EE;
|
|
114
|
+
|
|
115
|
+
@gold-300: #B17A00;
|
|
116
|
+
@gold-200: #D39213;
|
|
117
|
+
@gold-100: #E5A72C;
|
|
118
|
+
@gold-75: #E8BD62;
|
|
119
|
+
@gold-50: #EDCE87;
|
|
120
|
+
@gold-25: #F1DEAD;
|
|
121
|
+
@gold-0: #F6EED2;
|
|
122
|
+
|
|
123
|
+
@orange-300: #B05A0C;
|
|
124
|
+
@orange-100: #DF7821;
|
|
125
|
+
@orange-75: #E4914B;
|
|
126
|
+
@orange-50: #EAAB76;
|
|
127
|
+
@orange-25: #F0C4A1;
|
|
128
|
+
@orange-0: #F5DECB;
|
|
129
|
+
|
|
130
|
+
@green-300: #5F7539;
|
|
131
|
+
@green-100: #819958;
|
|
132
|
+
@green-75: #99AC78;
|
|
133
|
+
@green-50: #B1C097;
|
|
134
|
+
@green-25: #C8D3B7;
|
|
135
|
+
@green-0: #E0E6D6;
|
|
136
|
+
|
|
137
|
+
@purple-300: #724C6C;
|
|
138
|
+
@purple-100: #97668F;
|
|
139
|
+
@purple-75: #AC84A5;
|
|
140
|
+
@purple-50: #C1A3BC;
|
|
141
|
+
@purple-25: #D6C1D3;
|
|
142
|
+
@purple-0: #EBE0E9;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sfc-utils",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.55",
|
|
4
4
|
"author": "ewagstaff <evanjwagstaff@gmail.com>",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"archieml": "^0.4.2",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"html-entities": "1.3.1",
|
|
10
10
|
"htmlparser2": "4.1.0",
|
|
11
11
|
"opn": "^6.0.0",
|
|
12
|
+
"prop-types": "^15.8.1",
|
|
12
13
|
"write": "^2.0.0"
|
|
13
14
|
}
|
|
14
15
|
}
|
package/settings.js
CHANGED
|
@@ -13,6 +13,12 @@ try {
|
|
|
13
13
|
|
|
14
14
|
// Get settings off story_settings if it exists, otherwise fall back to projectConfig
|
|
15
15
|
let getSettings = function(){
|
|
16
|
+
if (!projectConfig) {
|
|
17
|
+
let settings = {PROJECT : {DATE: "September 20, 2022 9:00 AM", MOD_DATE: "September 21, 2022 9:00 AM"}}
|
|
18
|
+
return (
|
|
19
|
+
settings
|
|
20
|
+
)
|
|
21
|
+
}
|
|
16
22
|
let projectSettings = projectConfig.PROJECT
|
|
17
23
|
let settings = projectConfig
|
|
18
24
|
// This needs to be set even if the "try" below fails
|
|
@@ -22,8 +28,11 @@ let getSettings = function(){
|
|
|
22
28
|
let fullAuthors = []
|
|
23
29
|
try {
|
|
24
30
|
try {
|
|
25
|
-
|
|
31
|
+
|
|
26
32
|
[storySettings] = require("../../src/data/story_settings.sheet.json")
|
|
33
|
+
// Uncomment line below and comment out line above if testing from example folder in utils
|
|
34
|
+
// [storySettings] = require("./example/src/data/story_settings.sheet.json")
|
|
35
|
+
|
|
27
36
|
// If we got story_settings, try structuring the AUTHORS object
|
|
28
37
|
let authorNames = []
|
|
29
38
|
let authorLinks = []
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
.hed, .deck{
|
|
2
|
+
text-align: center;
|
|
3
|
+
margin: @s8 0;
|
|
4
|
+
&.left {
|
|
5
|
+
text-align: left;
|
|
6
|
+
}
|
|
7
|
+
@media (max-width: 960px) {
|
|
8
|
+
text-align: left;
|
|
9
|
+
padding: 0 @s16;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
//could the next three classes be moved into byline module?
|
|
14
|
+
.byline-wrapper {
|
|
15
|
+
max-width: @lg;
|
|
16
|
+
border-bottom: 1px solid @grey-75;
|
|
17
|
+
margin: @s16 auto @s24;
|
|
18
|
+
padding-bottom: @s8;
|
|
19
|
+
@media (max-width: 960px) {
|
|
20
|
+
margin: @s16 @s16 @s24;
|
|
21
|
+
}
|
|
22
|
+
@media (max-width: @md) {
|
|
23
|
+
border-bottom: none; }
|
|
24
|
+
}
|
|
25
|
+
.byline-name {
|
|
26
|
+
font-weight: 700;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.byline {
|
|
30
|
+
text-align: left;
|
|
31
|
+
display: inline-block;
|
|
32
|
+
a, a:visited {
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
color: @black;
|
|
35
|
+
&:hover {
|
|
36
|
+
color: @brand;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//move into share module?
|
|
42
|
+
.articleHeader--shareTools {
|
|
43
|
+
display: inline-block;
|
|
44
|
+
text-align: right;
|
|
45
|
+
float: right;
|
|
46
|
+
a, a:visited {
|
|
47
|
+
color: @black;
|
|
48
|
+
}
|
|
49
|
+
@media (max-width: @md) {
|
|
50
|
+
display: block;
|
|
51
|
+
float: none;
|
|
52
|
+
margin: @s4 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.caption {
|
|
57
|
+
margin: @s4 auto @s24;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Handle basic embed classes
|
|
61
|
+
.inline-figure {
|
|
62
|
+
&.float-left, &.float-right {
|
|
63
|
+
max-width: @xl;
|
|
64
|
+
margin: 0 auto;
|
|
65
|
+
@media (max-width: @xl){
|
|
66
|
+
max-width: @md;
|
|
67
|
+
padding: 0 @s16;
|
|
68
|
+
}
|
|
69
|
+
figure {
|
|
70
|
+
max-width: @xs;
|
|
71
|
+
width: 100%;
|
|
72
|
+
@media (max-width: @xl){
|
|
73
|
+
max-width: @md;
|
|
74
|
+
float: none;
|
|
75
|
+
margin: @s24 auto;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
&.float-left {
|
|
80
|
+
figure {
|
|
81
|
+
float: left;
|
|
82
|
+
margin-right: @s16;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
}
|
|
86
|
+
&.float-right {
|
|
87
|
+
figure {
|
|
88
|
+
float: right;
|
|
89
|
+
margin-left: @s16;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
&.full {
|
|
93
|
+
max-width: 100%;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// TO DO: Add support for side-by-side visuals
|
|
98
|
+
|
|
99
|
+
.inline-figure.wide, .inline-figure.full, .inline-figure.large {
|
|
100
|
+
&.graphic-wrapper {
|
|
101
|
+
@media @max-desktop {
|
|
102
|
+
padding: 0 @s16;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
.caption {
|
|
106
|
+
max-width: @w-text-width;
|
|
107
|
+
@media @max-text-width {
|
|
108
|
+
padding: 0 @s16;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.graphic-wrapper {
|
|
114
|
+
&.inline-figure.wide, &.inline-figure.full, &.inline-figure.large {
|
|
115
|
+
.caption {
|
|
116
|
+
max-width: 100%;
|
|
117
|
+
@media @max-text-width {
|
|
118
|
+
padding: 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.inline-figure.wide {
|
|
125
|
+
caption {
|
|
126
|
+
@media (max-width: @xl) {
|
|
127
|
+
padding: 0 @s16;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
.topper-image {
|
|
134
|
+
.caption {
|
|
135
|
+
max-width: @lg;
|
|
136
|
+
margin-bottom: @s8;
|
|
137
|
+
@media (max-width: 960px) {
|
|
138
|
+
padding: 0 @s16;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
a {
|
|
143
|
+
color: @black;
|
|
144
|
+
text-decoration: underline;
|
|
145
|
+
text-decoration-color: @brand;
|
|
146
|
+
text-decoration-skip-ink: auto;
|
|
147
|
+
outline: 0 !important;
|
|
148
|
+
|
|
149
|
+
&:hover {
|
|
150
|
+
color: @brand;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&:visited {
|
|
154
|
+
color: @grey-75;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.dropcap:first-letter {
|
|
159
|
+
font-family: @hed;
|
|
160
|
+
font-size: @s112;
|
|
161
|
+
float: left;
|
|
162
|
+
line-height: 0.75;
|
|
163
|
+
margin: 0.75rem 0.5rem 0 0.25rem;
|
|
164
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@import (less) "../variables.less";
|
|
2
|
+
|
|
3
|
+
.wrapper {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.link {
|
|
9
|
+
width: 25px;
|
|
10
|
+
height: 25px;
|
|
11
|
+
margin: 0 2px;
|
|
12
|
+
border-radius: 25px;
|
|
13
|
+
border: 1px solid black;
|
|
14
|
+
padding: 5px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.svg {
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
vertical-align: top;
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
color: @brand;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
@import (less) "../variables.less";
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--headerDek-vertical-offset: 0px;
|
|
5
|
+
--headerDek-horizontal-offset: 0px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.topperContainerFullScreen {
|
|
9
|
+
max-width: 100%;
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.imageFullScreen {
|
|
14
|
+
top: 0 !important;
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.imageStacked {
|
|
19
|
+
position: relative;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
|
|
22
|
+
@media @mobile {
|
|
23
|
+
width: 100%;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.headerDekStacked {
|
|
28
|
+
margin-left: auto;
|
|
29
|
+
margin-right: auto;
|
|
30
|
+
@media (max-width: 960px) {
|
|
31
|
+
margin-left: 0;
|
|
32
|
+
margin-right: 0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.headerDekFullScreen {
|
|
36
|
+
position: absolute;
|
|
37
|
+
padding: @s24;
|
|
38
|
+
width: @md;
|
|
39
|
+
@media @tablet {
|
|
40
|
+
width: @sm;
|
|
41
|
+
position: static;
|
|
42
|
+
transform: none;
|
|
43
|
+
margin: 0;
|
|
44
|
+
padding: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.hedFullScreen {
|
|
50
|
+
margin-top: 0px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.deckFullScreen {
|
|
54
|
+
margin-bottom: 0px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.headerDekTop {
|
|
58
|
+
top: 0%;
|
|
59
|
+
margin-top: var(--headerDek-vertical-offset);
|
|
60
|
+
@media @tablet {
|
|
61
|
+
margin-top: 0px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.headerDekBottom {
|
|
66
|
+
bottom: 0%;
|
|
67
|
+
margin-bottom: var(--headerDek-vertical-offset);
|
|
68
|
+
@media @tablet {
|
|
69
|
+
margin-bottom: 0px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.headerDekLeft {
|
|
74
|
+
left: 0%;
|
|
75
|
+
margin-left: var(--headerDek-horizontal-offset);
|
|
76
|
+
@media @tablet {
|
|
77
|
+
margin-left: 0px;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.headerDekRight {
|
|
82
|
+
right: 0%;
|
|
83
|
+
margin-right: var(--headerDek-horizontal-offset);
|
|
84
|
+
@media @tablet {
|
|
85
|
+
margin-right: 0px;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.headerDekCenter {
|
|
90
|
+
left: 50%;
|
|
91
|
+
transform: translate(-50%, 0%);
|
|
92
|
+
margin-left: var(--headerDek-horizontal-offset);
|
|
93
|
+
|
|
94
|
+
@media @tablet {
|
|
95
|
+
transform: none;
|
|
96
|
+
top: 0%;
|
|
97
|
+
left: 0%;
|
|
98
|
+
margin-left: 0px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.textAlignLeft {
|
|
103
|
+
text-align: left;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.textAlignCenter {
|
|
107
|
+
text-align: center;
|
|
108
|
+
@media @tablet {
|
|
109
|
+
text-align: left;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.whiteTextBlackBg {
|
|
114
|
+
color: @white;
|
|
115
|
+
background-color: rgba(0, 0, 0, 0.54);
|
|
116
|
+
@media @tablet {
|
|
117
|
+
color: @black;
|
|
118
|
+
background-color: transparent;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.blackTextWhiteBg {
|
|
123
|
+
color: @black;
|
|
124
|
+
background-color: rgba(255, 255, 255, 0.54);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.hideWhenMobile {
|
|
128
|
+
@media @mobile {
|
|
129
|
+
display: none;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.hideWhenDesktop {
|
|
134
|
+
display: none;
|
|
135
|
+
@media @mobile {
|
|
136
|
+
display: block;
|
|
137
|
+
padding-left: @s8;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.smallPaddingLeft {
|
|
142
|
+
padding-left: @s8;
|
|
143
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@import (less) '../values';
|
|
2
|
+
@import (less) "../variables.less";
|
|
3
|
+
|
|
4
|
+
:root {
|
|
5
|
+
--img-bottom-padding-ratio: "56.25%";
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.c-img {
|
|
9
|
+
display: block;
|
|
10
|
+
position: relative;
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding: 0;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: auto;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.c-img-fullscreen {
|
|
18
|
+
position: static;
|
|
19
|
+
object-fit: cover;
|
|
20
|
+
height: calc(100vh - 37px);
|
|
21
|
+
@media @tablet {
|
|
22
|
+
height: auto;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.c-fig-hidden-when-desktop {
|
|
27
|
+
display: none;
|
|
28
|
+
@media @mobile {
|
|
29
|
+
display: block;
|
|
30
|
+
padding-left: @s8;
|
|
31
|
+
}
|
|
32
|
+
}
|