sfc-utils 1.4.179 → 1.4.181

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/brands.js CHANGED
@@ -1,220 +1,222 @@
1
-
2
1
  // Set brand object to override CSS based on this market's styles
3
- let getBrands = function(market){
4
- // We can add any Hearst global overrides here:
5
- let defaultObj = {
6
- styles: {
7
- "@alert-red": "#d20000",
8
- // Defaults
9
- "@hed": '"Lora Bold", Georgia, serif',
10
- "@hed-alt": '"Lora Regular", Georgia, serif',
11
- "@serif-book": '"Lora Light", Georgia, serif',
12
- "@serif-bold": '"Lora Light", Georgia, serif',
2
+ let getBrands = function (market) {
3
+ // We can add any Hearst global overrides here:
4
+ let defaultObj = {
5
+ styles: {
6
+ "@alert-red": "#d20000",
7
+ // Defaults
8
+ "@hed": '"Lora Bold", Georgia, serif',
9
+ "@hed-alt": '"Lora Regular", Georgia, serif',
10
+ "@serif-book": '"Lora Light", Georgia, serif',
11
+ "@serif-bold": '"Lora Light", Georgia, serif',
13
12
 
14
- "@sans": '"Source Sans Pro Light", Helvetica, sans-serif',
15
- "@sans-light": '"Source Sans Pro Light", Helvetica, sans-serif',
16
- "@sans-med": '"Source Sans Pro Regular", Helvetica, sans-serif',
17
- "@sans-book": '"Source Sans Pro Regular", Helvetica, sans-serif',
18
- "@sans-bold": '"Source Sans Pro Bold", Helvetica, sans-serif',
13
+ "@sans": '"Source Sans Pro Light", Helvetica, sans-serif',
14
+ "@sans-light": '"Source Sans Pro Light", Helvetica, sans-serif',
15
+ "@sans-med": '"Source Sans Pro Regular", Helvetica, sans-serif',
16
+ "@sans-book": '"Source Sans Pro Regular", Helvetica, sans-serif',
17
+ "@sans-bold": '"Source Sans Pro Bold", Helvetica, sans-serif',
19
18
 
20
- // Icons
21
- "@sub-icon": `url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white"><path d="M160 416H96c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h64c17.67 0 32-14.33 32-32S177.7 32 160 32H96C42.98 32 0 74.98 0 128v256c0 53.02 42.98 96 96 96h64c17.67 0 32-14.33 32-32S177.7 416 160 416zM502.6 233.4l-128-128c-12.51-12.51-32.76-12.49-45.25 0c-12.5 12.5-12.5 32.75 0 45.25L402.8 224H192C174.3 224 160 238.3 160 256s14.31 32 32 32h210.8l-73.38 73.38c-12.5 12.5-12.5 32.75 0 45.25s32.75 12.5 45.25 0l128-128C515.1 266.1 515.1 245.9 502.6 233.4z"/></svg>')`,
22
- },
23
- attributes: {
24
- "subscribeLink": "https://www.hearst.com/newspapers?projects=true"
25
- }
26
- }
19
+ // Icons
20
+ "@sub-icon": `url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="white"><path d="M160 416H96c-17.67 0-32-14.33-32-32V128c0-17.67 14.33-32 32-32h64c17.67 0 32-14.33 32-32S177.7 32 160 32H96C42.98 32 0 74.98 0 128v256c0 53.02 42.98 96 96 96h64c17.67 0 32-14.33 32-32S177.7 416 160 416zM502.6 233.4l-128-128c-12.51-12.51-32.76-12.49-45.25 0c-12.5 12.5-12.5 32.75 0 45.25L402.8 224H192C174.3 224 160 238.3 160 256s14.31 32 32 32h210.8l-73.38 73.38c-12.5 12.5-12.5 32.75 0 45.25s32.75 12.5 45.25 0l128-128C515.1 266.1 515.1 245.9 502.6 233.4z"/></svg>')`,
21
+ },
22
+ attributes: {
23
+ subscribeLink: "https://www.hearst.com/newspapers?projects=true",
24
+ },
25
+ };
27
26
 
28
- // Handle market-specific styles here:
29
- let marketObj = {
30
- /* San Franicsco Chronicle */
31
- SFC: {
32
- styles: {
33
- "@brand": "#26A0A5",
34
- "@hed": '"Tiempos Headline Black", Georgia, serif',
35
- "@hed-alt": '"Tiempos Headline Light", Georgia, serif',
36
- "@serif-book": '"Tiempos Regular", Georgia, serif',
37
- "@serif-bold": '"Tiempos Bold", Georgia, serif',
27
+ // Handle market-specific styles here:
28
+ let marketObj = {
29
+ /* San Franicsco Chronicle */
30
+ SFC: {
31
+ styles: {
32
+ "@brand": "#26A0A5",
33
+ "@hed": '"Tiempos Headline Black", Georgia, serif',
34
+ "@hed-alt": '"Tiempos Headline Light", Georgia, serif',
35
+ "@serif-book": '"Tiempos Regular", Georgia, serif',
36
+ "@serif-bold": '"Tiempos Bold", Georgia, serif',
38
37
 
39
- "@sans": '"National Medium", Helvetica, sans-serif',
40
- "@sans-light": '"National Light", Helvetica, sans-serif',
41
- "@sans-med": '"National Medium", Helvetica, sans-serif',
42
- "@sans-book": '"National Book", Helvetica, sans-serif',
43
- "@sans-bold": '"National Bold", Helvetica, sans-serif',
44
- },
45
- attributes: {
46
- "marketPrefix": "sf",
47
- "siteName": "The San Francisco Chronicle",
48
- "twitter": "sfchronicle",
49
- "gaAccount": "UA-1616916-26",
50
- "subscribeLink": "https://www.sfchronicle.com/subproject"
51
- }
52
- },
38
+ "@sans": '"National Medium", Helvetica, sans-serif',
39
+ "@sans-light": '"National Light", Helvetica, sans-serif',
40
+ "@sans-med": '"National Medium", Helvetica, sans-serif',
41
+ "@sans-book": '"National Book", Helvetica, sans-serif',
42
+ "@sans-bold": '"National Bold", Helvetica, sans-serif',
43
+ },
44
+ attributes: {
45
+ marketPrefix: "sf",
46
+ siteName: "The San Francisco Chronicle",
47
+ twitter: "sfchronicle",
48
+ gaAccount: "UA-1616916-26",
49
+ subscribeLink: "https://www.sfchronicle.com/subproject",
50
+ },
51
+ },
53
52
 
54
- /* Houston Chronicle */
55
- Houston: {
56
- styles: {
57
- "@brand": "#ff7500",
58
- "@hed": '"Marr Sans Condensed Semibold", Georgia, serif',
59
- "@hed-alt": '"Publico Headline Medium", Georgia, serif',
60
- "@serif-book": '"Publico Text Roman", Georgia, serif',
61
- "@serif-bold": '"Publico Text Bold", Georgia, serif',
53
+ /* Houston Chronicle */
54
+ Houston: {
55
+ styles: {
56
+ "@brand": "#ff7500",
57
+ "@hed": '"Marr Sans Condensed Semibold", Georgia, serif',
58
+ "@hed-alt": '"Publico Headline Medium", Georgia, serif',
59
+ "@serif-book": '"Publico Text Roman", Georgia, serif',
60
+ "@serif-bold": '"Publico Text Bold", Georgia, serif',
62
61
 
63
- "@sans": '"Marr Sans Regular", Helvetica, sans-serif',
64
- "@sans-light": '"Marr Sans Regular", Helvetica, sans-serif',
65
- "@sans-med": '"Marr Sans Regular", Helvetica, sans-serif',
66
- "@sans-book": '"Marr Sans Regular", Helvetica, sans-serif',
67
- "@sans-bold": '"Marr Sans Semibold", Helvetica, sans-serif',
68
- },
69
- attributes: {
70
- "marketPrefix": "hc",
71
- "siteName": "The Houston Chronicle",
72
- "twitter": "HoustonChron",
73
- "invert": true,
74
- "gaAccount": "UA-1616916-24",
75
- "subscribeLink": "https://www.houstonchronicle.com/subproject"
76
- }
77
- },
62
+ "@sans": '"Marr Sans Regular", Helvetica, sans-serif',
63
+ "@sans-light": '"Marr Sans Regular", Helvetica, sans-serif',
64
+ "@sans-med": '"Marr Sans Regular", Helvetica, sans-serif',
65
+ "@sans-book": '"Marr Sans Regular", Helvetica, sans-serif',
66
+ "@sans-bold": '"Marr Sans Semibold", Helvetica, sans-serif',
67
+ },
68
+ attributes: {
69
+ marketPrefix: "hc",
70
+ siteName: "The Houston Chronicle",
71
+ twitter: "HoustonChron",
72
+ invert: true,
73
+ gaAccount: "UA-1616916-24",
74
+ subscribeLink: "https://www.houstonchronicle.com/subproject",
75
+ },
76
+ },
78
77
 
79
- /* Albany Times Union */
80
- Albany: {
81
- styles: {
82
- "@brand": "#006FBA",
83
- "@hed": '"ChronicleDispCond-Black", Georgia, serif',
84
- "@hed-alt": '"ChronicleDispCond-Roman", Georgia, serif',
85
- "@serif-book": '"ChronicleTextG2-Roman", Georgia, serif',
86
- "@serif-bold": '"ChronicleTextG2-Bold", Georgia, serif',
87
- "@base-font-size": "20px",
78
+ /* Albany Times Union */
79
+ Albany: {
80
+ styles: {
81
+ "@brand": "#006FBA",
82
+ "@hed": '"ChronicleDispCond-Black", Georgia, serif',
83
+ "@hed-alt": '"ChronicleDispCond-Roman", Georgia, serif',
84
+ "@serif-book": '"ChronicleTextG2-Roman", Georgia, serif',
85
+ "@serif-bold": '"ChronicleTextG2-Bold", Georgia, serif',
86
+ "@base-font-size": "20px",
88
87
 
89
- "@sans": '"HelveticaNeue-Roman", Helvetica, sans-serif',
90
- "@sans-light": '"HelveticaNeue-Roman", Helvetica, sans-serif',
91
- "@sans-med": '"HelveticaNeue-Roman", Helvetica, sans-serif',
92
- "@sans-book": '"HelveticaNeue-Roman", Helvetica, sans-serif',
93
- "@sans-bold": '"HelveticaNeue-HeavyCond", Helvetica, sans-serif',
94
- },
95
- attributes: {
96
- "marketPrefix": "tu",
97
- "siteName": "Times Union",
98
- "twitter": "timesunion",
99
- "invert": true,
100
- "gaAccount": "UA-1616916-7",
101
- "subscribeLink": "https://www.timesunion.com/subproject"
102
- }
103
- },
88
+ "@sans": '"HelveticaNeue-Roman", Helvetica, sans-serif',
89
+ "@sans-light": '"HelveticaNeue-Roman", Helvetica, sans-serif',
90
+ "@sans-med": '"HelveticaNeue-Roman", Helvetica, sans-serif',
91
+ "@sans-book": '"HelveticaNeue-Roman", Helvetica, sans-serif',
92
+ "@sans-bold": '"HelveticaNeue-HeavyCond", Helvetica, sans-serif',
93
+ },
94
+ attributes: {
95
+ marketPrefix: "tu",
96
+ siteName: "Times Union",
97
+ twitter: "timesunion",
98
+ invert: true,
99
+ gaAccount: "UA-1616916-7",
100
+ subscribeLink: "https://www.timesunion.com/subproject",
101
+ },
102
+ },
104
103
 
105
- /* San Antonio Express News */
106
- SanAntonio: {
107
- styles: {
108
- "@brand": "#ba141a",
109
- },
110
- attributes: {
111
- "marketPrefix": "sa",
112
- "siteName": "Express-News",
113
- "twitter": "ExpressNews",
114
- "invert": true,
115
- "gaAccount": "UA-1616916-27",
116
- "subscribeLink": "https://www.expressnews.com/subproject"
117
- }
118
- },
104
+ /* San Antonio Express News */
105
+ SanAntonio: {
106
+ styles: {
107
+ "@brand": "#ba141a",
108
+ },
109
+ attributes: {
110
+ marketPrefix: "sa",
111
+ siteName: "Express-News",
112
+ twitter: "ExpressNews",
113
+ invert: true,
114
+ gaAccount: "UA-1616916-27",
115
+ subscribeLink: "https://www.expressnews.com/subproject",
116
+ },
117
+ },
119
118
 
120
- /* Connecticut */
121
- CT: {
122
- styles: {
123
- "@brand": "#1A98FF",
124
- },
125
- attributes: {
126
- "marketPrefix": "in",
127
- "siteName": "CTInsider",
128
- "twitter": "insider_ct",
129
- "invert": true,
130
- "gaAccount": "UA-1616916-99",
131
- "subscribeLink": "https://www.ctinsider.com/subproject"
132
- }
133
- },
119
+ /* Connecticut */
120
+ CT: {
121
+ styles: {
122
+ "@brand": "#1A98FF",
123
+ },
124
+ attributes: {
125
+ marketPrefix: "in",
126
+ siteName: "CTInsider",
127
+ twitter: "insider_ct",
128
+ invert: true,
129
+ gaAccount: "UA-1616916-99",
130
+ subscribeLink: "https://www.ctinsider.com/subproject",
131
+ },
132
+ },
134
133
 
135
- /* Connecticut */
136
- Texcom: {
137
- styles: {
138
- "@brand": "#900900",
139
- },
140
- attributes: {
141
- "marketPrefix": "texcom/mrt",
142
- "siteName": "Midland Reporter-Telegram",
143
- "twitter": "mwtnews",
144
- "invert": true,
145
- "gaAccount": "UA-1616916-99",
146
- "subscribeLink": "/subproject"
147
- }
148
- },
134
+ /* Connecticut */
135
+ Texcom: {
136
+ styles: {
137
+ "@brand": "#900900",
138
+ },
139
+ attributes: {
140
+ marketPrefix: "texcom/mrt",
141
+ siteName: "Midland Reporter-Telegram",
142
+ twitter: "mwtnews",
143
+ invert: true,
144
+ gaAccount: "UA-1616916-99",
145
+ subscribeLink: "/subproject",
146
+ },
147
+ },
149
148
 
150
- /* Connecticut */
151
- Midcom: {
152
- styles: {
153
- "@brand": "#900900",
154
- },
155
- attributes: {
156
- "marketPrefix": "midcom/mid",
157
- "siteName": "Midland Daily News",
158
- "twitter": "MDN",
159
- "invert": true,
160
- "gaAccount": "UA-1616916-99",
161
- "subscribeLink": "/subproject"
162
- }
163
- },
164
- Conroe: {
165
- styles: {
166
- "@brand": "#900900",
167
- "@brand-secondary": "#189196"
168
- },
169
- attributes: {
170
- "marketPrefix": "conroe",
171
- "siteName": "Conroe Courier",
172
- "twitter": "ConroeCourier",
173
- "invert": true,
174
- "gaAccount": "UA-1616916-99",
175
- "subscribeLink": "https://www.yourconroenews.com/subproject",
176
- "sailCustomer": "4a181de0b63a131cf27f8ea9485e5e1c",
177
- "sailSiteName": "the-courier-of-montgomery-county",
178
- "siteId": 68
179
- }
180
- },
181
- Seattle: {
182
- styles: {
183
- "@brand": "#3F8395",
184
- "@brand-secondary": "#189196"
185
- },
186
- attributes: {
187
- "marketPrefix": "seattle",
188
- "siteName": "Seattle PI",
189
- "twitter": "seattlepi",
190
- "invert": true,
191
- "gaAccount": "UA-1616916-99",
192
- "subscribeLink": "",
193
- "sailCustomer": "da30899589786517b0c0cead37a48b06",
194
- "sailSiteName": "seattle-post-intelligencer",
195
- "siteId": 20
196
- }
197
- },
198
- /* Misc */
199
- TK: {
200
- styles: {
201
- "@brand": "#900900",
202
- },
203
- attributes: {
204
- "marketPrefix": "tk",
205
- "siteName": "Hearst Digital News",
206
- "twitter": "Hearst",
207
- "invert": true,
208
- }
209
- }
210
- }
149
+ /* Connecticut */
150
+ Midcom: {
151
+ styles: {
152
+ "@brand": "#900900",
153
+ },
154
+ attributes: {
155
+ marketPrefix: "midcom/mid",
156
+ siteName: "Midland Daily News",
157
+ twitter: "MDN",
158
+ invert: true,
159
+ gaAccount: "UA-1616916-99",
160
+ subscribeLink: "/subproject",
161
+ },
162
+ },
163
+ Conroe: {
164
+ styles: {
165
+ "@brand": "#900900",
166
+ "@brand-secondary": "#189196",
167
+ },
168
+ attributes: {
169
+ marketPrefix: "conroe",
170
+ siteName: "Conroe Courier",
171
+ twitter: "ConroeCourier",
172
+ invert: true,
173
+ gaAccount: "UA-1616916-99",
174
+ subscribeLink: "https://www.yourconroenews.com/subproject",
175
+ sailCustomer: "4a181de0b63a131cf27f8ea9485e5e1c",
176
+ sailSiteName: "the-courier-of-montgomery-county",
177
+ siteId: 68,
178
+ },
179
+ },
180
+ Seattle: {
181
+ styles: {
182
+ "@brand": "#3F8395",
183
+ "@brand-secondary": "#189196",
184
+ },
185
+ attributes: {
186
+ marketPrefix: "seattle",
187
+ siteName: "Seattle PI",
188
+ twitter: "seattlepi",
189
+ invert: true,
190
+ gaAccount: "UA-1616916-99",
191
+ subscribeLink: "",
192
+ sailCustomer: "da30899589786517b0c0cead37a48b06",
193
+ sailSiteName: "seattle-post-intelligencer",
194
+ siteId: 20,
195
+ },
196
+ },
197
+ /* Misc */
198
+ TK: {
199
+ styles: {
200
+ "@brand": "#900900",
201
+ },
202
+ attributes: {
203
+ marketPrefix: "tk",
204
+ siteName: "Hearst Digital News",
205
+ twitter: "Hearst",
206
+ invert: true,
207
+ },
208
+ },
209
+ };
211
210
 
212
- // Combine global and market styles to return the final object
213
- let combinedStyles = {
214
- styles: Object.assign(defaultObj.styles, marketObj[market].styles),
215
- attributes: Object.assign(defaultObj.attributes, marketObj[market].attributes)
216
- }
217
- return combinedStyles
218
- }
211
+ // Combine global and market styles to return the final object
212
+ let combinedStyles = {
213
+ styles: Object.assign(defaultObj.styles, marketObj[market].styles),
214
+ attributes: Object.assign(
215
+ defaultObj.attributes,
216
+ marketObj[market].attributes
217
+ ),
218
+ };
219
+ return combinedStyles;
220
+ };
219
221
 
220
- module.exports = { getBrands }
222
+ module.exports = { getBrands };
package/footer.js CHANGED
@@ -1,4 +1,4 @@
1
- let { getBrands } = require("./brands");
1
+ let { getBrands3 } = require("./brands3");
2
2
 
3
3
  // Handle nav for various markets and include nav options for other links
4
4
  let getFooter = function (meta, forceColor) {
@@ -12,7 +12,7 @@ let getFooter = function (meta, forceColor) {
12
12
 
13
13
  let {
14
14
  attributes: { marketPrefix, invert },
15
- } = getBrands(meta.PROJECT.MARKET_KEY);
15
+ } = getBrands3(meta.PROJECT.MARKET_KEY);
16
16
 
17
17
  // Handle various CT domains
18
18
  let eedition = "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.4.179",
3
+ "version": "1.4.181",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
@@ -154,7 +154,6 @@
154
154
 
155
155
  @media (max-width: @lg) {
156
156
  width: 100vw;
157
- max-height: calc(100vw * 2 / 3);
158
157
  height: auto;
159
158
  }
160
159
  }