sfc-utils 1.3.20 → 1.3.23

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
@@ -15,6 +15,9 @@ let getBrands = function(market){
15
15
  "@sans-med": '"Source Sans Pro Regular", Helvetica, sans-serif',
16
16
  "@sans-book": '"Source Sans Pro Regular", Helvetica, sans-serif',
17
17
  "@sans-bold": '"Source Sans Pro Bold", Helvetica, sans-serif',
18
+
19
+ // Icons
20
+ "@sub-icon": `url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="currentColor"><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>')`,
18
21
  },
19
22
  attributes: {
20
23
  "subscribeLink": "https://www.hearst.com/newspapers?projects=true"
package/css/nav2.less CHANGED
@@ -1,3 +1,4 @@
1
+ // NOTE: This relies on variables that are updated in brands.js
1
2
  // Styles for the nav
2
3
  .nav2-container {
3
4
  width: 100%;
@@ -6,7 +7,7 @@
6
7
  display: flex;
7
8
  justify-content: space-between;
8
9
  align-items: center;
9
- font-family: var(--brand-sans-med);
10
+ font-family: @sans-med;
10
11
  }
11
12
 
12
13
  .nav2-left, .nav2-right {
@@ -29,15 +30,11 @@
29
30
  }
30
31
 
31
32
  #nav2-sub-box {
32
- border: 1px solid var(--brand-color);
33
- border-radius: 3px;
34
- color: var(--brand-color);
35
33
  font-size: 14px;
36
34
  letter-spacing: 0.05em;
37
35
  margin-right: 10px;
38
36
  padding: 3px 8px 2px;
39
37
  text-decoration: none;
40
- text-transform: uppercase;
41
38
  }
42
39
 
43
40
  .nav2-desk-logo, .nav2-mobile-logo {
@@ -85,6 +82,8 @@
85
82
  background-repeat: no-repeat;
86
83
  padding: 6px;
87
84
  margin-left: 4px;
85
+ position: relative;
86
+ top: 8px;
88
87
  }
89
88
  }
90
89
  }
@@ -102,7 +101,7 @@
102
101
  #nav2-sub-box div {
103
102
  &::after {
104
103
  content: " ";
105
- background: @sub-icon-invert;
104
+ background: @sub-icon;
106
105
  }
107
106
  }
108
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sfc-utils",
3
- "version": "1.3.20",
3
+ "version": "1.3.23",
4
4
  "author": "ewagstaff <evanjwagstaff@gmail.com>",
5
5
  "dependencies": {
6
6
  "archieml": "^0.4.2",
package/css/nav3.less DELETED
@@ -1,106 +0,0 @@
1
- // Styles for the nav
2
- .nav2-container {
3
- width: 100%;
4
- left: 0;
5
- height: 37px;
6
- display: flex;
7
- justify-content: space-between;
8
- align-items: center;
9
- font-family: var(--brand-sans-med);
10
- }
11
-
12
- .nav2-left, .nav2-right {
13
- display: flex;
14
- }
15
-
16
- .nav2-left {
17
- justify-content: flex-start;
18
- margin-left: 10px;
19
- text-transform: uppercase;
20
- letter-spacing: 0.05em;
21
- font-size: 12px;
22
- a {
23
- text-decoration: none;
24
- }
25
- }
26
-
27
- .nav2-right {
28
- justify-content: flex-end;
29
- }
30
-
31
- #nav2-sub-box {
32
- border: 1px solid var(--brand-color);
33
- border-radius: 3px;
34
- color: var(--brand-color);
35
- font-size: 14px;
36
- letter-spacing: 0.05em;
37
- margin-right: 10px;
38
- padding: 3px 8px 2px;
39
- text-decoration: none;
40
- text-transform: uppercase;
41
- }
42
-
43
- .nav2-desk-logo, .nav2-mobile-logo {
44
- max-height: 20px;
45
- margin-left: 0.335rem;
46
- }
47
-
48
- .nav2-mobile-logo {
49
- display: none;
50
- }
51
- @media (max-width: 490px){
52
- .nav2-mobile-logo {
53
- display: block;
54
- }
55
- .nav2-desk-logo {
56
- display: none;
57
- }
58
- .nav2-left {
59
- order: 1;
60
- }
61
- .nav2-right {
62
- flex: 25 1;
63
- order: 2;
64
- }
65
- }
66
-
67
-
68
- .nav2-container {
69
- background: @brand;
70
- color: white;
71
- .nav2-left a {
72
- color: white;
73
- }
74
- #nav2-sub-box {
75
- border: none;
76
- color:white;
77
- text-transform: none;
78
- text-decoration: underline white;
79
- }
80
- #nav2-sub-box div {
81
- &::after {
82
- content: " ";
83
- background-position: center center;
84
- background-repeat: no-repeat;
85
- padding: 6px;
86
- margin-left: 4px;
87
- }
88
- }
89
- }
90
-
91
- .nav2-container.invert {
92
- background-color: #fff;
93
- color: black;
94
- .nav2-left a {
95
- color: black;
96
- }
97
- #nav2-sub-box {
98
- color:black;
99
- text-decoration: underline black;
100
- }
101
- #nav2-sub-box div {
102
- &::after {
103
- content: " ";
104
- }
105
- }
106
- }