@foeewni/web-core 3.0.0-alpha.2 → 3.0.0-alpha.3
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/README.md +40 -1
- package/dist/css/foe.critical.min.css +7 -7
- package/dist/css/foe.extras.min.css +2 -2
- package/dist/css/foe.main.min.css +7 -7
- package/dist/js/foe.fonts.min.js +1 -1
- package/package.json +2 -2
- package/src/components/hero-panel/style.scss +1 -1
- package/src/components/layout/reset.scss +5 -0
- package/src/components/navigation/_nav-items.scss +1 -3
- package/src/components/navigation/_search.scss +10 -1
- package/src/components/typography/blockquotes.scss +15 -18
- package/src/fonts.js +31 -20
- package/src/utils/scss/helpers/_variables.scss +32 -10
package/src/fonts.js
CHANGED
|
@@ -32,6 +32,7 @@ To use them on your CSS please import the webfonts through Google Fonts
|
|
|
32
32
|
// Note, single line deep imports are needed here, for some reason fontawesome messes up
|
|
33
33
|
// with normal imports and webpack ends up bundling the whole library (1.25mb!)
|
|
34
34
|
import { library, dom } from '@fortawesome/fontawesome-svg-core';
|
|
35
|
+
|
|
35
36
|
import { faEnvelope } from '@fortawesome/free-solid-svg-icons/faEnvelope';
|
|
36
37
|
import { faSearch } from '@fortawesome/free-solid-svg-icons/faSearch';
|
|
37
38
|
import { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';
|
|
@@ -40,19 +41,6 @@ import { faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons/faExt
|
|
|
40
41
|
import { faArrowAltCircleUp } from '@fortawesome/free-solid-svg-icons/faArrowAltCircleUp';
|
|
41
42
|
import { faShare } from '@fortawesome/free-solid-svg-icons/faShare';
|
|
42
43
|
import { faLink } from '@fortawesome/free-solid-svg-icons/faLink';
|
|
43
|
-
import { faTwitter } from '@fortawesome/free-brands-svg-icons/faTwitter';
|
|
44
|
-
import { faFacebook } from '@fortawesome/free-brands-svg-icons/faFacebook';
|
|
45
|
-
import { faFacebookF } from '@fortawesome/free-brands-svg-icons/faFacebookF';
|
|
46
|
-
import { faPinterest } from '@fortawesome/free-brands-svg-icons/faPinterest';
|
|
47
|
-
import { faLinkedin } from '@fortawesome/free-brands-svg-icons/faLinkedin';
|
|
48
|
-
import { faInstagram } from '@fortawesome/free-brands-svg-icons/faInstagram';
|
|
49
|
-
import { faYoutube } from '@fortawesome/free-brands-svg-icons/faYoutube';
|
|
50
|
-
import { faTumblr } from '@fortawesome/free-brands-svg-icons/faTumblr';
|
|
51
|
-
import { faWhatsapp } from '@fortawesome/free-brands-svg-icons/faWhatsapp';
|
|
52
|
-
import { faFacebookMessenger } from '@fortawesome/free-brands-svg-icons/faFacebookMessenger';
|
|
53
|
-
import { faTelegram } from '@fortawesome/free-brands-svg-icons/faTelegram';
|
|
54
|
-
import { faTelegramPlane } from '@fortawesome/free-brands-svg-icons/faTelegramPlane';
|
|
55
|
-
import { faTiktok } from '@fortawesome/free-brands-svg-icons/faTiktok';
|
|
56
44
|
import { faChevronDown } from '@fortawesome/free-solid-svg-icons/faChevronDown';
|
|
57
45
|
import { faChevronUp } from '@fortawesome/free-solid-svg-icons/faChevronUp';
|
|
58
46
|
import { faAngleDown } from '@fortawesome/free-solid-svg-icons/faAngleDown';
|
|
@@ -76,6 +64,23 @@ import { faSave } from '@fortawesome/free-solid-svg-icons/faSave';
|
|
|
76
64
|
import { faSignInAlt } from '@fortawesome/free-solid-svg-icons/faSignInAlt';
|
|
77
65
|
import { faTrashAlt } from '@fortawesome/free-solid-svg-icons/faTrashAlt';
|
|
78
66
|
|
|
67
|
+
import { faTwitter } from '@fortawesome/free-brands-svg-icons/faTwitter';
|
|
68
|
+
import { faXTwitter } from '@fortawesome/free-brands-svg-icons/faXTwitter';
|
|
69
|
+
import { faFacebook } from '@fortawesome/free-brands-svg-icons/faFacebook';
|
|
70
|
+
import { faFacebookF } from '@fortawesome/free-brands-svg-icons/faFacebookF';
|
|
71
|
+
import { faPinterest } from '@fortawesome/free-brands-svg-icons/faPinterest';
|
|
72
|
+
import { faLinkedin } from '@fortawesome/free-brands-svg-icons/faLinkedin';
|
|
73
|
+
import { faInstagram } from '@fortawesome/free-brands-svg-icons/faInstagram';
|
|
74
|
+
import { faYoutube } from '@fortawesome/free-brands-svg-icons/faYoutube';
|
|
75
|
+
import { faTumblr } from '@fortawesome/free-brands-svg-icons/faTumblr';
|
|
76
|
+
import { faWhatsapp } from '@fortawesome/free-brands-svg-icons/faWhatsapp';
|
|
77
|
+
import { faFacebookMessenger } from '@fortawesome/free-brands-svg-icons/faFacebookMessenger';
|
|
78
|
+
import { faTelegram } from '@fortawesome/free-brands-svg-icons/faTelegram';
|
|
79
|
+
import { faTelegramPlane } from '@fortawesome/free-brands-svg-icons/faTelegramPlane';
|
|
80
|
+
import { faTiktok } from '@fortawesome/free-brands-svg-icons/faTiktok';
|
|
81
|
+
import { faBluesky } from '@fortawesome/free-brands-svg-icons/faBluesky';
|
|
82
|
+
import { faThreads } from '@fortawesome/free-brands-svg-icons/faThreads';
|
|
83
|
+
|
|
79
84
|
|
|
80
85
|
// Add actually used FA icons
|
|
81
86
|
library.add(
|
|
@@ -88,6 +93,7 @@ library.add(
|
|
|
88
93
|
faShare,
|
|
89
94
|
faLink,
|
|
90
95
|
faTwitter,
|
|
96
|
+
faXTwitter,
|
|
91
97
|
faFacebook,
|
|
92
98
|
faFacebookF,
|
|
93
99
|
faPinterest,
|
|
@@ -121,20 +127,25 @@ library.add(
|
|
|
121
127
|
faSave,
|
|
122
128
|
faTrashAlt,
|
|
123
129
|
faCloudUploadAlt,
|
|
124
|
-
faSignInAlt
|
|
130
|
+
faSignInAlt,
|
|
131
|
+
faBluesky,
|
|
132
|
+
faThreads
|
|
125
133
|
);
|
|
126
134
|
|
|
127
135
|
// Look for Google fonts and append them if they are not there already
|
|
128
136
|
// We avoiding using @import url(); because the new URL has semicolons on it
|
|
129
137
|
// and it tremendously gets broken from some preprocessors.
|
|
130
138
|
|
|
131
|
-
const fonts = window.document.createElement('link');
|
|
132
139
|
// eslint-disable-next-line max-len
|
|
133
|
-
const
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
fonts.
|
|
137
|
-
|
|
140
|
+
const googleFontsHref = 'https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital@0;1&family=Libre+Franklin:ital,wght@0,400;0,700;1,400;1,700&display=swap';
|
|
141
|
+
const googleFontsLink = window.document.querySelector(`link[href="${googleFontsHref}"]`);
|
|
142
|
+
if (!googleFontsLink) {
|
|
143
|
+
const fonts = window.document.createElement('link');
|
|
144
|
+
fonts.setAttribute('rel', 'stylesheet');
|
|
145
|
+
fonts.setAttribute('crossorigin', 'anonymous');
|
|
146
|
+
fonts.setAttribute('href', googleFontsHref);
|
|
147
|
+
document.head.appendChild(fonts);
|
|
148
|
+
}
|
|
138
149
|
|
|
139
150
|
// Kicks off the process of finding <i> tags and replacing with <svg>
|
|
140
151
|
dom.watch();
|
|
@@ -8,17 +8,34 @@
|
|
|
8
8
|
//
|
|
9
9
|
|
|
10
10
|
// Colours
|
|
11
|
-
$foe-
|
|
12
|
-
$foe-
|
|
13
|
-
$foe-secondary: $foe-light !default;
|
|
14
|
-
$foe-dark: #182f2a !default;
|
|
15
|
-
$foe-extradark: #1e234d !default;
|
|
11
|
+
$foe-leaf: #61bdaa !default;
|
|
12
|
+
$foe-iris: #5a54a0 !default;
|
|
16
13
|
$foe-sunset: #ed6132 !default;
|
|
14
|
+
$foe-space: #1e234d !default;
|
|
15
|
+
$foe-ice: #f3f3f7 !default;
|
|
16
|
+
$foe-conch: #f1e2d4 !default;
|
|
17
|
+
|
|
18
|
+
// Tints, would prefer to do this algorithmically but it's useful to have the hex codes on hand to compare with figmas
|
|
19
|
+
$foe-leaf-75: #81cabb !default;
|
|
20
|
+
$foe-leaf-50: #c0e5dd !default;
|
|
21
|
+
$foe-leaf-25: #dff2ee !default;
|
|
22
|
+
$foe-sunset-75: #f1815b !default;
|
|
23
|
+
$foe-sunset-50: #f6b099 !default;
|
|
24
|
+
$foe-sunset-25: #fbdfd6 !default;
|
|
25
|
+
$foe-iris-75: #6d68a7 !default;
|
|
26
|
+
$foe-iris-50: #adaad0 !default;
|
|
27
|
+
$foe-iris-25: #deddec !default;
|
|
28
|
+
|
|
29
|
+
$foe-primary: $foe-leaf !default;
|
|
30
|
+
$foe-light: $foe-leaf-25 !default;
|
|
31
|
+
$foe-secondary: $foe-light !default;
|
|
32
|
+
$foe-dark: #182f2a !default;
|
|
33
|
+
$foe-extradark: $foe-space !default;
|
|
17
34
|
|
|
18
35
|
$foe-white: #fff !default;
|
|
19
36
|
$foe-gray: #b1b8c0 !default;
|
|
20
|
-
$foe-accent:
|
|
21
|
-
$foe-offwhite:
|
|
37
|
+
$foe-accent: $foe-iris !default;
|
|
38
|
+
$foe-offwhite: $foe-ice !default;
|
|
22
39
|
|
|
23
40
|
$foe-success: #5cb85c !default;
|
|
24
41
|
$foe-info: #5bc0de !default;
|
|
@@ -50,6 +67,11 @@ $foe-nav-shadow: 0 0 .5em .2em rgba(0, 0, 0, .25);
|
|
|
50
67
|
|
|
51
68
|
$foe-text-shadow: 0 0 .5rem $foe-tint-overlay-heavy !default;
|
|
52
69
|
|
|
70
|
+
$foe-backgrounds:
|
|
71
|
+
$foe-leaf-50,
|
|
72
|
+
$foe-sunset-50,
|
|
73
|
+
$foe-iris-50;
|
|
74
|
+
|
|
53
75
|
//
|
|
54
76
|
// Palettes vars, needed for Campaignion (mostly) maybe also D8
|
|
55
77
|
//
|
|
@@ -390,7 +412,7 @@ $line-height-sm: 1.5;
|
|
|
390
412
|
$border-width: 1px;
|
|
391
413
|
$border-color: $gray-300;
|
|
392
414
|
|
|
393
|
-
$border-radius: .1rem * 3;
|
|
415
|
+
$border-radius: 0; // .1rem * 3;
|
|
394
416
|
$border-radius-lg: .1rem * 4;
|
|
395
417
|
$border-radius-sm: .1rem * 2;
|
|
396
418
|
|
|
@@ -464,8 +486,8 @@ $display3-weight: 300;
|
|
|
464
486
|
$display4-weight: 300;
|
|
465
487
|
$display-line-height: $headings-line-height;
|
|
466
488
|
|
|
467
|
-
$lead-font-size:
|
|
468
|
-
$lead-font-weight:
|
|
489
|
+
$lead-font-size: $font-size-base;
|
|
490
|
+
$lead-font-weight: bold;
|
|
469
491
|
|
|
470
492
|
$small-font-size: 80%;
|
|
471
493
|
|