sfc-utils 1.3.16 → 1.3.19
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/css/nav2.less +43 -6
- package/css/nav3.less +108 -0
- package/package.json +1 -1
- package/topper.js +2 -3
package/css/nav2.less
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
// Styles for the nav
|
|
2
2
|
.nav2-container {
|
|
3
|
-
position: fixed;
|
|
4
|
-
top: 0;
|
|
5
3
|
width: 100%;
|
|
6
4
|
left: 0;
|
|
7
5
|
height: 37px;
|
|
@@ -11,10 +9,6 @@
|
|
|
11
9
|
font-family: var(--brand-sans-med);
|
|
12
10
|
}
|
|
13
11
|
|
|
14
|
-
.nav2-container.invert {
|
|
15
|
-
background-color: #fff;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
12
|
.nav2-left, .nav2-right {
|
|
19
13
|
display: flex;
|
|
20
14
|
}
|
|
@@ -69,3 +63,46 @@
|
|
|
69
63
|
order: 2;
|
|
70
64
|
}
|
|
71
65
|
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
.nav2-container {
|
|
69
|
+
background: black;
|
|
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: @sub-icon;
|
|
84
|
+
background-position: center center;
|
|
85
|
+
background-repeat: no-repeat;
|
|
86
|
+
padding: 6px;
|
|
87
|
+
margin-left: 4px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.nav2-container.invert {
|
|
93
|
+
background-color: #fff;
|
|
94
|
+
color: black;
|
|
95
|
+
.nav2-left a {
|
|
96
|
+
color: black;
|
|
97
|
+
}
|
|
98
|
+
#nav2-sub-box {
|
|
99
|
+
color:black;
|
|
100
|
+
text-decoration: underline black;
|
|
101
|
+
}
|
|
102
|
+
#nav2-sub-box div {
|
|
103
|
+
&::after {
|
|
104
|
+
content: " ";
|
|
105
|
+
background: @sub-icon-invert;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
package/css/nav3.less
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
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: @sub-icon;
|
|
84
|
+
background-position: center center;
|
|
85
|
+
background-repeat: no-repeat;
|
|
86
|
+
padding: 6px;
|
|
87
|
+
margin-left: 4px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.nav2-container.invert {
|
|
93
|
+
background-color: #fff;
|
|
94
|
+
color: black;
|
|
95
|
+
.nav2-left a {
|
|
96
|
+
color: black;
|
|
97
|
+
}
|
|
98
|
+
#nav2-sub-box {
|
|
99
|
+
color:black;
|
|
100
|
+
text-decoration: underline black;
|
|
101
|
+
}
|
|
102
|
+
#nav2-sub-box div {
|
|
103
|
+
&::after {
|
|
104
|
+
content: " ";
|
|
105
|
+
background: @sub-icon-invert;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
package/package.json
CHANGED
package/topper.js
CHANGED
|
@@ -93,7 +93,6 @@ let getTopper = function(settings){
|
|
|
93
93
|
authorLinks = authorLink.split(',')
|
|
94
94
|
}
|
|
95
95
|
let authorHTML = ""
|
|
96
|
-
consonle.log("authorNames", authorNames)
|
|
97
96
|
for (let i = 0; i<authorNames.length; i++){
|
|
98
97
|
// If we have a matching link, build it
|
|
99
98
|
if (authorLinks[i]){
|
|
@@ -102,9 +101,9 @@ let getTopper = function(settings){
|
|
|
102
101
|
// If we don't just print the name
|
|
103
102
|
authorHTML += `<span itemscope="" itemprop="author" itemtype="http://schema.org/Person">${authorNames[i].trim()}</span>`
|
|
104
103
|
}
|
|
105
|
-
if (i < authorNames.length -
|
|
104
|
+
if (i < authorNames.length - 2){
|
|
106
105
|
authorHTML += ", "
|
|
107
|
-
} else if (i === authorNames.length -
|
|
106
|
+
} else if (i === authorNames.length - 2){
|
|
108
107
|
authorHTML += " and "
|
|
109
108
|
}
|
|
110
109
|
}
|