@guardian/stand 0.0.15 → 0.0.17
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 +1 -0
- package/dist/TopBar.cjs +9 -3
- package/dist/TopBar.js +4 -1
- package/dist/components/avatar/Avatar.cjs +2 -2
- package/dist/components/button/Button.cjs +1 -1
- package/dist/components/button/Button.js +1 -1
- package/dist/components/button/styles.cjs +7 -4
- package/dist/components/button/styles.js +7 -4
- package/dist/components/byline/Byline.cjs +15 -15
- package/dist/components/favicon/Favicon.cjs +2 -2
- package/dist/components/icon-button/IconButton.cjs +4 -4
- package/dist/components/icon-button/IconButton.js +1 -1
- package/dist/components/icon-link-button/IconLinkButton.cjs +4 -4
- package/dist/components/icon-link-button/IconLinkButton.js +1 -1
- package/dist/components/link-button/LinkButton.cjs +1 -1
- package/dist/components/link-button/LinkButton.js +1 -1
- package/dist/components/menu/Menu.cjs +204 -0
- package/dist/components/menu/Menu.js +77 -0
- package/dist/components/menu/styles.cjs +104 -0
- package/dist/components/menu/styles.js +89 -0
- package/dist/components/tag-picker/TagTable.cjs +11 -11
- package/dist/components/topbar/TopBar.cjs +101 -0
- package/dist/components/topbar/TopBar.js +63 -0
- package/dist/components/topbar/styles.cjs +30 -0
- package/dist/components/topbar/styles.js +25 -0
- package/dist/components/topbar/topBarItem/TopBarItem.cjs +28 -0
- package/dist/components/topbar/topBarItem/TopBarItem.js +10 -0
- package/dist/components/topbar/topBarItem/styles.cjs +20 -0
- package/dist/components/topbar/topBarItem/styles.js +17 -0
- package/dist/components/topbar/topBarNavigation/TopBarNavigation.cjs +70 -0
- package/dist/components/topbar/topBarNavigation/TopBarNavigation.js +23 -0
- package/dist/components/topbar/topBarNavigation/styles.cjs +68 -0
- package/dist/components/topbar/topBarNavigation/styles.js +61 -0
- package/dist/components/topbar/{toolName → topBarToolName}/TopBarToolName.cjs +3 -2
- package/dist/components/topbar/topBarToolName/TopBarToolName.js +13 -0
- package/dist/index.cjs +4 -0
- package/dist/index.js +2 -0
- package/dist/menu.cjs +13 -0
- package/dist/menu.js +2 -0
- package/dist/styleD/build/css/base/typography.css +3 -3
- package/dist/styleD/build/css/component/TopBar.css +55 -1
- package/dist/styleD/build/css/component/avatar.css +1 -1
- package/dist/styleD/build/css/component/button.css +177 -255
- package/dist/styleD/build/css/component/favicon.css +1 -1
- package/dist/styleD/build/css/component/menu.css +83 -0
- package/dist/styleD/build/css/component/tagAutocomplete.css +1 -1
- package/dist/styleD/build/css/component/tagTable.css +1 -1
- package/dist/styleD/build/css/component/topBarItem.css +7 -0
- package/dist/styleD/build/css/component/userMenu.css +6 -6
- package/dist/styleD/build/css/semantic/colors.css +45 -46
- package/dist/styleD/build/css/semantic/shadow.css +7 -0
- package/dist/styleD/build/css/semantic/sizing.css +1 -0
- package/dist/styleD/build/css/semantic/typography.css +30 -30
- package/dist/styleD/build/typescript/base/typography.cjs +3 -3
- package/dist/styleD/build/typescript/base/typography.js +3 -3
- package/dist/styleD/build/typescript/component/TopBar.cjs +94 -0
- package/dist/styleD/build/typescript/component/TopBar.js +94 -0
- package/dist/styleD/build/typescript/component/button.cjs +5 -130
- package/dist/styleD/build/typescript/component/button.js +5 -130
- package/dist/styleD/build/typescript/component/menu.cjs +141 -0
- package/dist/styleD/build/typescript/component/menu.js +139 -0
- package/dist/styleD/build/typescript/semantic/colors.cjs +47 -52
- package/dist/styleD/build/typescript/semantic/colors.js +47 -52
- package/dist/styleD/build/typescript/semantic/shadow.cjs +7 -0
- package/dist/styleD/build/typescript/semantic/shadow.js +5 -0
- package/dist/styleD/build/typescript/semantic/sizing.cjs +1 -0
- package/dist/styleD/build/typescript/semantic/sizing.js +1 -0
- package/dist/types/TopBar.d.ts +12 -3
- package/dist/types/avatar.d.ts +1 -1
- package/dist/types/button.d.ts +1 -1
- package/dist/types/byline.d.ts +1 -1
- package/dist/types/components/avatar/styles.d.ts +2 -1
- package/dist/types/components/button/sandbox.d.ts +4 -4
- package/dist/types/components/button/styles.d.ts +2 -1
- package/dist/types/components/button/types.d.ts +1 -1
- package/dist/types/components/favicon/styles.d.ts +2 -1
- package/dist/types/components/icon/styles.d.ts +2 -1
- package/dist/types/components/icon-button/sandbox.d.ts +4 -4
- package/dist/types/components/icon-button/styles.d.ts +5 -129
- package/dist/types/components/icon-button/types.d.ts +1 -1
- package/dist/types/components/icon-link-button/sandbox.d.ts +4 -4
- package/dist/types/components/icon-link-button/styles.d.ts +5 -129
- package/dist/types/components/icon-link-button/types.d.ts +1 -1
- package/dist/types/components/link-button/sandbox.d.ts +4 -4
- package/dist/types/components/link-button/styles.d.ts +5 -129
- package/dist/types/components/link-button/types.d.ts +1 -1
- package/dist/types/components/menu/Menu.d.ts +7 -0
- package/dist/types/components/menu/sandbox.d.ts +5 -0
- package/dist/types/components/menu/styles.d.ts +28 -0
- package/dist/types/components/menu/types.d.ts +63 -0
- package/dist/types/components/topbar/TopBar.d.ts +8 -0
- package/dist/types/components/topbar/sandbox.d.ts +5 -0
- package/dist/types/components/topbar/styles.d.ts +9 -0
- package/dist/types/components/topbar/topBarItem/TopBarItem.d.ts +2 -0
- package/dist/types/components/topbar/topBarItem/sandbox.d.ts +5 -0
- package/dist/types/components/topbar/topBarItem/styles.d.ts +8 -0
- package/dist/types/components/topbar/topBarItem/types.d.ts +14 -0
- package/dist/types/components/topbar/topBarNavigation/TopBarNavigation.d.ts +2 -0
- package/dist/types/components/topbar/topBarNavigation/sandbox.d.ts +5 -0
- package/dist/types/components/topbar/topBarNavigation/styles.d.ts +12 -0
- package/dist/types/components/topbar/topBarNavigation/types.d.ts +44 -0
- package/dist/types/components/topbar/{toolName → topBarToolName}/styles.d.ts +2 -1
- package/dist/types/components/topbar/types.d.ts +3 -0
- package/dist/types/components/typography/styles.d.ts +2 -1
- package/dist/types/favicon.d.ts +1 -1
- package/dist/types/icon-button.d.ts +1 -1
- package/dist/types/icon-link-button.d.ts +1 -1
- package/dist/types/icon.d.ts +1 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/link-button.d.ts +1 -1
- package/dist/types/menu.d.ts +21 -0
- package/dist/types/styleD/build/typescript/base/typography.d.ts +3 -3
- package/dist/types/styleD/build/typescript/component/TopBar.d.ts +94 -0
- package/dist/types/styleD/build/typescript/component/button.d.ts +3 -128
- package/dist/types/styleD/build/typescript/component/menu.d.ts +141 -0
- package/dist/types/styleD/build/typescript/semantic/colors.d.ts +44 -49
- package/dist/types/styleD/build/typescript/semantic/shadow.d.ts +7 -0
- package/dist/types/styleD/build/typescript/semantic/sizing.d.ts +1 -0
- package/dist/types/styleD/stories/semantic/Shadow.d.ts +1 -0
- package/dist/types/typography.d.ts +1 -1
- package/dist/util/css/reset.css +10 -0
- package/dist/util/reset.css.cjs +1 -1
- package/dist/util/reset.css.js +1 -1
- package/package.json +30 -17
- package/dist/components/topbar/toolName/TopBarToolName.js +0 -12
- /package/dist/components/topbar/{toolName → topBarToolName}/styles.cjs +0 -0
- /package/dist/components/topbar/{toolName → topBarToolName}/styles.js +0 -0
- /package/dist/types/components/topbar/{toolName → topBarToolName}/TopBarToolName.d.ts +0 -0
- /package/dist/types/components/topbar/{toolName → topBarToolName}/sandbox.d.ts +0 -0
- /package/dist/types/components/topbar/{toolName → topBarToolName}/types.d.ts +0 -0
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
:root {
|
|
6
|
-
--semantic-colors-text-
|
|
7
|
-
--semantic-colors-text-
|
|
8
|
-
--semantic-colors-text-inverse
|
|
9
|
-
--semantic-colors-text-inverse
|
|
10
|
-
--semantic-colors-text-inverse
|
|
6
|
+
--semantic-colors-text-strong: #000000;
|
|
7
|
+
--semantic-colors-text-weak: #545454;
|
|
8
|
+
--semantic-colors-text-strong-inverse: #dcdcdc;
|
|
9
|
+
--semantic-colors-text-weak-inverse: #cccccc;
|
|
10
|
+
--semantic-colors-text-stronger-inverse: #ffffff;
|
|
11
11
|
--semantic-colors-text-error: #8c2113;
|
|
12
12
|
--semantic-colors-text-warning: #433608;
|
|
13
13
|
--semantic-colors-text-success: #326528;
|
|
@@ -23,47 +23,46 @@
|
|
|
23
23
|
--semantic-colors-text-magenta: #581734;
|
|
24
24
|
--semantic-colors-text-orange: #693c16;
|
|
25
25
|
--semantic-colors-text-yellow: #5b4a0b;
|
|
26
|
-
--semantic-colors-text-interactive-disabled: #999999;
|
|
27
26
|
--semantic-colors-bg-base: #ffffff;
|
|
28
|
-
--semantic-colors-bg-raised-1: #f6f6f6;
|
|
29
|
-
--semantic-colors-bg-raised-2: #ededed;
|
|
30
|
-
--semantic-colors-
|
|
31
|
-
--semantic-colors-
|
|
32
|
-
--semantic-colors-
|
|
33
|
-
--semantic-colors-border-
|
|
34
|
-
--semantic-colors-border-
|
|
35
|
-
--semantic-colors-border-
|
|
36
|
-
--semantic-colors-border-
|
|
37
|
-
--semantic-colors-border-
|
|
38
|
-
--semantic-colors-border-
|
|
39
|
-
--semantic-colors-border-
|
|
40
|
-
--semantic-colors-border-
|
|
41
|
-
--semantic-colors-
|
|
42
|
-
--semantic-colors-
|
|
43
|
-
--semantic-colors-
|
|
44
|
-
--semantic-colors-
|
|
45
|
-
--semantic-colors-
|
|
46
|
-
--semantic-colors-
|
|
47
|
-
--semantic-colors-fill-
|
|
48
|
-
--semantic-colors-fill-
|
|
49
|
-
--semantic-colors-fill-
|
|
50
|
-
--semantic-colors-fill-
|
|
51
|
-
--semantic-colors-fill-
|
|
52
|
-
--semantic-colors-fill-
|
|
53
|
-
--semantic-colors-fill-
|
|
54
|
-
--semantic-colors-fill-
|
|
55
|
-
--semantic-colors-fill-
|
|
56
|
-
--semantic-colors-fill-
|
|
57
|
-
--semantic-colors-fill-
|
|
58
|
-
--semantic-colors-fill-
|
|
59
|
-
--semantic-colors-fill-
|
|
60
|
-
--semantic-colors-fill-
|
|
61
|
-
--semantic-colors-fill-cyan-subtle: #b8d8e7;
|
|
62
|
-
--semantic-colors-fill-teal-subtle: #c5dfe1;
|
|
63
|
-
--semantic-colors-fill-cool-purple-subtle: #dbdff7;
|
|
64
|
-
--semantic-colors-fill-warm-purple-subtle: #dac3e8;
|
|
65
|
-
--semantic-colors-fill-magenta-subtle: #edc6d7;
|
|
66
|
-
--semantic-colors-fill-orange-subtle: #fcddc6;
|
|
67
|
-
--semantic-colors-fill-yellow-subtle: #fbeebf;
|
|
27
|
+
--semantic-colors-bg-raised-level-1: #f6f6f6;
|
|
28
|
+
--semantic-colors-bg-raised-level-2: #ededed;
|
|
29
|
+
--semantic-colors-border-stronger: #545454;
|
|
30
|
+
--semantic-colors-border-strong: #8d8d8d;
|
|
31
|
+
--semantic-colors-border-weak: #cccccc;
|
|
32
|
+
--semantic-colors-border-weaker: #ededed;
|
|
33
|
+
--semantic-colors-border-strong-inverse: #ffffff;
|
|
34
|
+
--semantic-colors-border-disabled: #dcdcdc;
|
|
35
|
+
--semantic-colors-border-accent: #0d4289;
|
|
36
|
+
--semantic-colors-border-error: #b42a19;
|
|
37
|
+
--semantic-colors-border-focused: #0072a9;
|
|
38
|
+
--semantic-colors-border-selected: #0072a9;
|
|
39
|
+
--semantic-colors-border-selected-inverse: #8abed7;
|
|
40
|
+
--semantic-colors-fill-accent-strong: #0d4289;
|
|
41
|
+
--semantic-colors-fill-accent-strong-hover: #092f62;
|
|
42
|
+
--semantic-colors-fill-accent-strong-pressed: #061d3c;
|
|
43
|
+
--semantic-colors-fill-strong: #545454;
|
|
44
|
+
--semantic-colors-fill-strong-hover: #333333;
|
|
45
|
+
--semantic-colors-fill-strong-pressed: #121212;
|
|
46
|
+
--semantic-colors-fill-weak: #ffffff;
|
|
47
|
+
--semantic-colors-fill-weak-hover: #f6f6f6;
|
|
48
|
+
--semantic-colors-fill-weak-pressed: #ededed;
|
|
49
|
+
--semantic-colors-fill-disabled: #dcdcdc;
|
|
50
|
+
--semantic-colors-fill-green-weak: #cde4c9;
|
|
51
|
+
--semantic-colors-fill-blue-weak: #c5d9f4;
|
|
52
|
+
--semantic-colors-fill-red-weak: #f5c6c0;
|
|
53
|
+
--semantic-colors-fill-cyan-weak: #b8d8e7;
|
|
54
|
+
--semantic-colors-fill-teal-weak: #c5dfe1;
|
|
55
|
+
--semantic-colors-fill-cool-purple-weak: #dbdff7;
|
|
56
|
+
--semantic-colors-fill-warm-purple-weak: #dac3e8;
|
|
57
|
+
--semantic-colors-fill-magenta-weak: #edc6d7;
|
|
58
|
+
--semantic-colors-fill-orange-weak: #fcddc6;
|
|
59
|
+
--semantic-colors-fill-yellow-weak: #fbeebf;
|
|
68
60
|
--semantic-colors-fill-selected: #005d8b;
|
|
61
|
+
--semantic-colors-fill-draft-strong: #f1c21b;
|
|
62
|
+
--semantic-colors-fill-live-weak: #aed2a6;
|
|
63
|
+
--semantic-colors-fill-warning-weak: #fbeebf;
|
|
64
|
+
--semantic-colors-fill-information-weak: #e8f0fb;
|
|
65
|
+
--semantic-colors-fill-error-weak: #f5c6c0;
|
|
66
|
+
--semantic-colors-fill-error-strong: #b42a19;
|
|
67
|
+
--semantic-colors-fill-success-weak: #edf5ec;
|
|
69
68
|
}
|
|
@@ -5,22 +5,22 @@
|
|
|
5
5
|
:root {
|
|
6
6
|
--semantic-typography-title-sm-font: normal 700 1.125rem/1.15
|
|
7
7
|
'GH Guardian Headline';
|
|
8
|
-
--semantic-typography-title-sm-letter-spacing:
|
|
8
|
+
--semantic-typography-title-sm-letter-spacing: 0;
|
|
9
9
|
--semantic-typography-title-sm-font-width: 100;
|
|
10
10
|
--semantic-typography-title-md-font: normal 700 1.25rem/1.15
|
|
11
11
|
'GH Guardian Headline';
|
|
12
|
-
--semantic-typography-title-md-letter-spacing:
|
|
12
|
+
--semantic-typography-title-md-letter-spacing: 0;
|
|
13
13
|
--semantic-typography-title-md-font-width: 100;
|
|
14
14
|
--semantic-typography-title-lg-font: normal 700 1.5rem/1.15
|
|
15
15
|
'GH Guardian Headline';
|
|
16
|
-
--semantic-typography-title-lg-letter-spacing:
|
|
16
|
+
--semantic-typography-title-lg-letter-spacing: 0;
|
|
17
17
|
--semantic-typography-title-lg-font-width: 100;
|
|
18
18
|
--semantic-typography-title-xl-font: normal 700 2rem/1.15
|
|
19
19
|
'GH Guardian Headline';
|
|
20
|
-
--semantic-typography-title-xl-letter-spacing:
|
|
20
|
+
--semantic-typography-title-xl-letter-spacing: 0;
|
|
21
21
|
--semantic-typography-title-xl-font-width: 100;
|
|
22
22
|
--semantic-typography-heading-xs-font: normal 700 0.75rem/1.15 'Open Sans';
|
|
23
|
-
--semantic-typography-heading-xs-letter-spacing:
|
|
23
|
+
--semantic-typography-heading-xs-letter-spacing: 0;
|
|
24
24
|
--semantic-typography-heading-xs-font-width: 95;
|
|
25
25
|
--semantic-typography-heading-sm-font: normal 700 0.875rem/1.15 'Open Sans';
|
|
26
26
|
--semantic-typography-heading-sm-letter-spacing: -0.0125rem;
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
--semantic-typography-heading-2xl-font-width: 95;
|
|
40
40
|
--semantic-typography-heading-compact-xs-font: normal 700 0.75rem/1.15
|
|
41
41
|
'Open Sans';
|
|
42
|
-
--semantic-typography-heading-compact-xs-letter-spacing:
|
|
42
|
+
--semantic-typography-heading-compact-xs-letter-spacing: 0;
|
|
43
43
|
--semantic-typography-heading-compact-xs-font-width: 88;
|
|
44
44
|
--semantic-typography-heading-compact-sm-font: normal 700 0.875rem/1.15
|
|
45
45
|
'Open Sans';
|
|
46
|
-
--semantic-typography-heading-compact-sm-letter-spacing:
|
|
46
|
+
--semantic-typography-heading-compact-sm-letter-spacing: 0;
|
|
47
47
|
--semantic-typography-heading-compact-sm-font-width: 88;
|
|
48
48
|
--semantic-typography-heading-compact-md-font: normal 700 1rem/1.15
|
|
49
49
|
'Open Sans';
|
|
@@ -62,83 +62,83 @@
|
|
|
62
62
|
--semantic-typography-heading-compact-2xl-letter-spacing: -0.03125rem;
|
|
63
63
|
--semantic-typography-heading-compact-2xl-font-width: 88;
|
|
64
64
|
--semantic-typography-body-sm-font: normal 460 0.875rem/1.3 'Open Sans';
|
|
65
|
-
--semantic-typography-body-sm-letter-spacing:
|
|
65
|
+
--semantic-typography-body-sm-letter-spacing: 0;
|
|
66
66
|
--semantic-typography-body-sm-font-width: 95;
|
|
67
67
|
--semantic-typography-body-md-font: normal 460 1rem/1.3 'Open Sans';
|
|
68
|
-
--semantic-typography-body-md-letter-spacing:
|
|
68
|
+
--semantic-typography-body-md-letter-spacing: 0;
|
|
69
69
|
--semantic-typography-body-md-font-width: 95;
|
|
70
70
|
--semantic-typography-body-lg-font: normal 460 1.125rem/1.3 'Open Sans';
|
|
71
|
-
--semantic-typography-body-lg-letter-spacing:
|
|
71
|
+
--semantic-typography-body-lg-letter-spacing: 0;
|
|
72
72
|
--semantic-typography-body-lg-font-width: 95;
|
|
73
73
|
--semantic-typography-body-xl-font: normal 460 1.25rem/1.3 'Open Sans';
|
|
74
|
-
--semantic-typography-body-xl-letter-spacing:
|
|
74
|
+
--semantic-typography-body-xl-letter-spacing: 0;
|
|
75
75
|
--semantic-typography-body-xl-font-width: 95;
|
|
76
76
|
--semantic-typography-body-italic-sm-font: italic 460 0.875rem/1.3 'Open Sans';
|
|
77
|
-
--semantic-typography-body-italic-sm-letter-spacing:
|
|
77
|
+
--semantic-typography-body-italic-sm-letter-spacing: 0;
|
|
78
78
|
--semantic-typography-body-italic-sm-font-width: 95;
|
|
79
79
|
--semantic-typography-body-italic-md-font: italic 460 1rem/1.3 'Open Sans';
|
|
80
|
-
--semantic-typography-body-italic-md-letter-spacing:
|
|
80
|
+
--semantic-typography-body-italic-md-letter-spacing: 0;
|
|
81
81
|
--semantic-typography-body-italic-md-font-width: 95;
|
|
82
82
|
--semantic-typography-body-italic-lg-font: italic 460 1.125rem/1.3 'Open Sans';
|
|
83
|
-
--semantic-typography-body-italic-lg-letter-spacing:
|
|
83
|
+
--semantic-typography-body-italic-lg-letter-spacing: 0;
|
|
84
84
|
--semantic-typography-body-italic-lg-font-width: 95;
|
|
85
85
|
--semantic-typography-body-italic-xl-font: italic 460 1.25rem/1.3 'Open Sans';
|
|
86
|
-
--semantic-typography-body-italic-xl-letter-spacing:
|
|
86
|
+
--semantic-typography-body-italic-xl-letter-spacing: 0;
|
|
87
87
|
--semantic-typography-body-italic-xl-font-width: 95;
|
|
88
88
|
--semantic-typography-body-compact-sm-font: normal 460 0.875rem/1.3
|
|
89
89
|
'Open Sans';
|
|
90
|
-
--semantic-typography-body-compact-sm-letter-spacing:
|
|
90
|
+
--semantic-typography-body-compact-sm-letter-spacing: 0;
|
|
91
91
|
--semantic-typography-body-compact-sm-font-width: 88;
|
|
92
92
|
--semantic-typography-body-compact-md-font: normal 460 1rem/1.3 'Open Sans';
|
|
93
|
-
--semantic-typography-body-compact-md-letter-spacing:
|
|
93
|
+
--semantic-typography-body-compact-md-letter-spacing: 0;
|
|
94
94
|
--semantic-typography-body-compact-md-font-width: 88;
|
|
95
95
|
--semantic-typography-body-compact-lg-font: normal 460 1.125rem/1.3
|
|
96
96
|
'Open Sans';
|
|
97
|
-
--semantic-typography-body-compact-lg-letter-spacing:
|
|
97
|
+
--semantic-typography-body-compact-lg-letter-spacing: 0;
|
|
98
98
|
--semantic-typography-body-compact-lg-font-width: 88;
|
|
99
99
|
--semantic-typography-body-compact-xl-font: normal 460 1.25rem/1.3 'Open Sans';
|
|
100
|
-
--semantic-typography-body-compact-xl-letter-spacing:
|
|
100
|
+
--semantic-typography-body-compact-xl-letter-spacing: 0;
|
|
101
101
|
--semantic-typography-body-compact-xl-font-width: 88;
|
|
102
102
|
--semantic-typography-body-compact-italic-sm-font: italic 460 0.875rem/1.3
|
|
103
103
|
'Open Sans';
|
|
104
|
-
--semantic-typography-body-compact-italic-sm-letter-spacing:
|
|
104
|
+
--semantic-typography-body-compact-italic-sm-letter-spacing: 0;
|
|
105
105
|
--semantic-typography-body-compact-italic-sm-font-width: 88;
|
|
106
106
|
--semantic-typography-body-compact-italic-md-font: italic 460 1rem/1.3
|
|
107
107
|
'Open Sans';
|
|
108
|
-
--semantic-typography-body-compact-italic-md-letter-spacing:
|
|
108
|
+
--semantic-typography-body-compact-italic-md-letter-spacing: 0;
|
|
109
109
|
--semantic-typography-body-compact-italic-md-font-width: 88;
|
|
110
110
|
--semantic-typography-body-compact-italic-lg-font: italic 460 1.125rem/1.3
|
|
111
111
|
'Open Sans';
|
|
112
|
-
--semantic-typography-body-compact-italic-lg-letter-spacing:
|
|
112
|
+
--semantic-typography-body-compact-italic-lg-letter-spacing: 0;
|
|
113
113
|
--semantic-typography-body-compact-italic-lg-font-width: 88;
|
|
114
114
|
--semantic-typography-body-compact-italic-xl-font: italic 460 1.25rem/1.3
|
|
115
115
|
'Open Sans';
|
|
116
|
-
--semantic-typography-body-compact-italic-xl-letter-spacing:
|
|
116
|
+
--semantic-typography-body-compact-italic-xl-letter-spacing: 0;
|
|
117
117
|
--semantic-typography-body-compact-italic-xl-font-width: 88;
|
|
118
118
|
--semantic-typography-meta-md-font: normal 460 0.75rem/1.3 'Open Sans';
|
|
119
|
-
--semantic-typography-meta-md-letter-spacing:
|
|
119
|
+
--semantic-typography-meta-md-letter-spacing: 0;
|
|
120
120
|
--semantic-typography-meta-md-font-width: 95;
|
|
121
121
|
--semantic-typography-meta-compact-md-font: normal 460 0.75rem/1.3 'Open Sans';
|
|
122
|
-
--semantic-typography-meta-compact-md-letter-spacing:
|
|
122
|
+
--semantic-typography-meta-compact-md-letter-spacing: 0;
|
|
123
123
|
--semantic-typography-meta-compact-md-font-width: 88;
|
|
124
124
|
--semantic-typography-article-body-md-font: normal 400 1rem/1.4
|
|
125
125
|
GuardianTextEgyptian;
|
|
126
|
-
--semantic-typography-article-body-md-letter-spacing:
|
|
126
|
+
--semantic-typography-article-body-md-letter-spacing: 0;
|
|
127
127
|
--semantic-typography-article-body-md-font-width: 100;
|
|
128
128
|
--semantic-typography-article-body-bold-md-font: normal 700 1rem/1.4
|
|
129
129
|
GuardianTextEgyptian;
|
|
130
|
-
--semantic-typography-article-body-bold-md-letter-spacing:
|
|
130
|
+
--semantic-typography-article-body-bold-md-letter-spacing: 0;
|
|
131
131
|
--semantic-typography-article-body-bold-md-font-width: 100;
|
|
132
132
|
--semantic-typography-article-body-italic-md-font: italic 400 1rem/1.4
|
|
133
133
|
GuardianTextEgyptian;
|
|
134
|
-
--semantic-typography-article-body-italic-md-letter-spacing:
|
|
134
|
+
--semantic-typography-article-body-italic-md-letter-spacing: 0;
|
|
135
135
|
--semantic-typography-article-body-italic-md-font-width: 100;
|
|
136
136
|
--semantic-typography-article-body-bold-italic-md-font: italic 700 1rem/1.4
|
|
137
137
|
GuardianTextEgyptian;
|
|
138
|
-
--semantic-typography-article-body-bold-italic-md-letter-spacing:
|
|
138
|
+
--semantic-typography-article-body-bold-italic-md-letter-spacing: 0;
|
|
139
139
|
--semantic-typography-article-body-bold-italic-md-font-width: 100;
|
|
140
140
|
--semantic-typography-interactive-xs-font: normal 700 0.75rem/1 'Open Sans';
|
|
141
|
-
--semantic-typography-interactive-xs-letter-spacing:
|
|
141
|
+
--semantic-typography-interactive-xs-letter-spacing: 0;
|
|
142
142
|
--semantic-typography-interactive-xs-font-width: 95;
|
|
143
143
|
--semantic-typography-interactive-sm-font: normal 700 0.875rem/1 'Open Sans';
|
|
144
144
|
--semantic-typography-interactive-sm-letter-spacing: -0.0125rem;
|
|
@@ -32,13 +32,13 @@ const baseTypography = {
|
|
|
32
32
|
"48-rem": "3rem"
|
|
33
33
|
},
|
|
34
34
|
weight: {
|
|
35
|
-
"Guardian Headline": {
|
|
36
|
-
bold: 700
|
|
37
|
-
},
|
|
38
35
|
"Guardian Text Egyptian": {
|
|
39
36
|
normal: 400,
|
|
40
37
|
bold: 700
|
|
41
38
|
},
|
|
39
|
+
"Guardian Headline": {
|
|
40
|
+
bold: 700
|
|
41
|
+
},
|
|
42
42
|
"Open Sans": {
|
|
43
43
|
light: 340,
|
|
44
44
|
normal: 460,
|
|
@@ -30,13 +30,13 @@ const baseTypography = {
|
|
|
30
30
|
"48-rem": "3rem"
|
|
31
31
|
},
|
|
32
32
|
weight: {
|
|
33
|
-
"Guardian Headline": {
|
|
34
|
-
bold: 700
|
|
35
|
-
},
|
|
36
33
|
"Guardian Text Egyptian": {
|
|
37
34
|
normal: 400,
|
|
38
35
|
bold: 700
|
|
39
36
|
},
|
|
37
|
+
"Guardian Headline": {
|
|
38
|
+
bold: 700
|
|
39
|
+
},
|
|
40
40
|
"Open Sans": {
|
|
41
41
|
light: 340,
|
|
42
42
|
normal: 460,
|
|
@@ -1,6 +1,100 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const componentTopBar = {
|
|
4
|
+
"background-color": "#f6f6f6",
|
|
5
|
+
display: "flex",
|
|
6
|
+
height: "4rem",
|
|
7
|
+
"justify-content": "space-between",
|
|
8
|
+
border: "0.0625rem solid #cccccc",
|
|
9
|
+
Item: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
"align-items": "center",
|
|
12
|
+
height: "100%",
|
|
13
|
+
sm: {
|
|
14
|
+
padding: {
|
|
15
|
+
top: "0",
|
|
16
|
+
right: "0.75rem",
|
|
17
|
+
bottom: "0",
|
|
18
|
+
left: "0.75rem"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
md: {
|
|
22
|
+
padding: {
|
|
23
|
+
top: "0",
|
|
24
|
+
right: "1rem",
|
|
25
|
+
bottom: "0",
|
|
26
|
+
left: "1rem"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
lg: {
|
|
30
|
+
padding: {
|
|
31
|
+
top: "0",
|
|
32
|
+
right: "1.5rem",
|
|
33
|
+
bottom: "0",
|
|
34
|
+
left: "1.5rem"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
border: "0.0625rem solid #cccccc"
|
|
38
|
+
},
|
|
39
|
+
Navigation: {
|
|
40
|
+
shared: {
|
|
41
|
+
display: "inline-flex",
|
|
42
|
+
position: "relative",
|
|
43
|
+
"align-items": "center",
|
|
44
|
+
cursor: "pointer",
|
|
45
|
+
"text-decoration": "none",
|
|
46
|
+
height: "100%",
|
|
47
|
+
":disabled": {
|
|
48
|
+
cursor: "not-allowed",
|
|
49
|
+
color: "#999999"
|
|
50
|
+
},
|
|
51
|
+
padding: {
|
|
52
|
+
top: "0",
|
|
53
|
+
right: "1rem",
|
|
54
|
+
bottom: "0",
|
|
55
|
+
left: "1rem"
|
|
56
|
+
},
|
|
57
|
+
":focus-visible": {
|
|
58
|
+
outline: "0.125rem solid #0072a9",
|
|
59
|
+
"outline-offset": "-0.0625rem"
|
|
60
|
+
},
|
|
61
|
+
"border-top": "0.5rem solid transparent",
|
|
62
|
+
divider: "0.0625rem solid #cccccc"
|
|
63
|
+
},
|
|
64
|
+
text: {
|
|
65
|
+
margin: {
|
|
66
|
+
left: "0.375rem"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
menuIndicator: {
|
|
70
|
+
margin: {
|
|
71
|
+
top: "0.375rem",
|
|
72
|
+
left: "0.125rem"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
selected: {
|
|
76
|
+
color: "#000000",
|
|
77
|
+
"border-bottom": "0.5rem solid #0072a9"
|
|
78
|
+
},
|
|
79
|
+
unselected: {
|
|
80
|
+
color: "#545454",
|
|
81
|
+
"border-bottom": "0.5rem solid transparent"
|
|
82
|
+
},
|
|
83
|
+
md: {
|
|
84
|
+
typography: {
|
|
85
|
+
font: "normal 700 1rem/1.15 Open Sans",
|
|
86
|
+
letterSpacing: "-0.03125rem",
|
|
87
|
+
fontWidth: 95
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
sm: {
|
|
91
|
+
typography: {
|
|
92
|
+
font: "normal 700 0.875rem/1.15 Open Sans",
|
|
93
|
+
letterSpacing: "-0.0125rem",
|
|
94
|
+
fontWidth: 95
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
4
98
|
ToolName: {
|
|
5
99
|
display: "flex",
|
|
6
100
|
"align-items": "center",
|
|
@@ -1,4 +1,98 @@
|
|
|
1
1
|
const componentTopBar = {
|
|
2
|
+
"background-color": "#f6f6f6",
|
|
3
|
+
display: "flex",
|
|
4
|
+
height: "4rem",
|
|
5
|
+
"justify-content": "space-between",
|
|
6
|
+
border: "0.0625rem solid #cccccc",
|
|
7
|
+
Item: {
|
|
8
|
+
display: "flex",
|
|
9
|
+
"align-items": "center",
|
|
10
|
+
height: "100%",
|
|
11
|
+
sm: {
|
|
12
|
+
padding: {
|
|
13
|
+
top: "0",
|
|
14
|
+
right: "0.75rem",
|
|
15
|
+
bottom: "0",
|
|
16
|
+
left: "0.75rem"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
md: {
|
|
20
|
+
padding: {
|
|
21
|
+
top: "0",
|
|
22
|
+
right: "1rem",
|
|
23
|
+
bottom: "0",
|
|
24
|
+
left: "1rem"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
lg: {
|
|
28
|
+
padding: {
|
|
29
|
+
top: "0",
|
|
30
|
+
right: "1.5rem",
|
|
31
|
+
bottom: "0",
|
|
32
|
+
left: "1.5rem"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
border: "0.0625rem solid #cccccc"
|
|
36
|
+
},
|
|
37
|
+
Navigation: {
|
|
38
|
+
shared: {
|
|
39
|
+
display: "inline-flex",
|
|
40
|
+
position: "relative",
|
|
41
|
+
"align-items": "center",
|
|
42
|
+
cursor: "pointer",
|
|
43
|
+
"text-decoration": "none",
|
|
44
|
+
height: "100%",
|
|
45
|
+
":disabled": {
|
|
46
|
+
cursor: "not-allowed",
|
|
47
|
+
color: "#999999"
|
|
48
|
+
},
|
|
49
|
+
padding: {
|
|
50
|
+
top: "0",
|
|
51
|
+
right: "1rem",
|
|
52
|
+
bottom: "0",
|
|
53
|
+
left: "1rem"
|
|
54
|
+
},
|
|
55
|
+
":focus-visible": {
|
|
56
|
+
outline: "0.125rem solid #0072a9",
|
|
57
|
+
"outline-offset": "-0.0625rem"
|
|
58
|
+
},
|
|
59
|
+
"border-top": "0.5rem solid transparent",
|
|
60
|
+
divider: "0.0625rem solid #cccccc"
|
|
61
|
+
},
|
|
62
|
+
text: {
|
|
63
|
+
margin: {
|
|
64
|
+
left: "0.375rem"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
menuIndicator: {
|
|
68
|
+
margin: {
|
|
69
|
+
top: "0.375rem",
|
|
70
|
+
left: "0.125rem"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
selected: {
|
|
74
|
+
color: "#000000",
|
|
75
|
+
"border-bottom": "0.5rem solid #0072a9"
|
|
76
|
+
},
|
|
77
|
+
unselected: {
|
|
78
|
+
color: "#545454",
|
|
79
|
+
"border-bottom": "0.5rem solid transparent"
|
|
80
|
+
},
|
|
81
|
+
md: {
|
|
82
|
+
typography: {
|
|
83
|
+
font: "normal 700 1rem/1.15 Open Sans",
|
|
84
|
+
letterSpacing: "-0.03125rem",
|
|
85
|
+
fontWidth: 95
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
sm: {
|
|
89
|
+
typography: {
|
|
90
|
+
font: "normal 700 0.875rem/1.15 Open Sans",
|
|
91
|
+
letterSpacing: "-0.0125rem",
|
|
92
|
+
fontWidth: 95
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
2
96
|
ToolName: {
|
|
3
97
|
display: "flex",
|
|
4
98
|
"align-items": "center",
|
|
@@ -18,7 +18,7 @@ const componentButton = {
|
|
|
18
18
|
"outline-offset": "0.125rem"
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
primary: {
|
|
22
22
|
shared: {
|
|
23
23
|
color: "#ffffff",
|
|
24
24
|
backgroundColor: "#0d4289",
|
|
@@ -143,132 +143,7 @@ const componentButton = {
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
|
-
|
|
147
|
-
shared: {
|
|
148
|
-
color: "#000000",
|
|
149
|
-
backgroundColor: "none",
|
|
150
|
-
borderRadius: "0.25rem",
|
|
151
|
-
border: "0.0625rem solid #0d4289",
|
|
152
|
-
":hover": {
|
|
153
|
-
backgroundColor: "#e8f0fb",
|
|
154
|
-
border: "0.0625rem solid #0d4289"
|
|
155
|
-
},
|
|
156
|
-
":active": {
|
|
157
|
-
backgroundColor: "#c5d9f4",
|
|
158
|
-
border: "0.0625rem solid #0d4289"
|
|
159
|
-
},
|
|
160
|
-
":disabled": {
|
|
161
|
-
color: "#999999",
|
|
162
|
-
backgroundColor: "none",
|
|
163
|
-
border: "0.0625rem solid #dcdcdc"
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
xs: {
|
|
167
|
-
height: "1.5rem",
|
|
168
|
-
padding: {
|
|
169
|
-
top: "0.25rem",
|
|
170
|
-
right: "0.5rem",
|
|
171
|
-
bottom: "0.25rem",
|
|
172
|
-
left: "0.5rem",
|
|
173
|
-
withIcon: {
|
|
174
|
-
iconLeft: {
|
|
175
|
-
left: "0.25rem"
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
typography: {
|
|
180
|
-
font: "normal 700 0.75rem/1 Open Sans",
|
|
181
|
-
letterSpacing: "0rem",
|
|
182
|
-
fontWidth: 95
|
|
183
|
-
},
|
|
184
|
-
icon: {
|
|
185
|
-
size: "1.125rem",
|
|
186
|
-
gap: "0.25rem"
|
|
187
|
-
},
|
|
188
|
-
iconButton: {
|
|
189
|
-
width: "1.5rem"
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
sm: {
|
|
193
|
-
height: "2rem",
|
|
194
|
-
padding: {
|
|
195
|
-
top: "0.25rem",
|
|
196
|
-
right: "0.625rem",
|
|
197
|
-
bottom: "0.25rem",
|
|
198
|
-
left: "0.625rem",
|
|
199
|
-
withIcon: {
|
|
200
|
-
iconLeft: {
|
|
201
|
-
left: "0.5rem"
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
typography: {
|
|
206
|
-
font: "normal 700 0.875rem/1 Open Sans",
|
|
207
|
-
letterSpacing: "-0.0125rem",
|
|
208
|
-
fontWidth: 95
|
|
209
|
-
},
|
|
210
|
-
icon: {
|
|
211
|
-
size: "1.125rem",
|
|
212
|
-
gap: "0.25rem"
|
|
213
|
-
},
|
|
214
|
-
iconButton: {
|
|
215
|
-
width: "2rem"
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
md: {
|
|
219
|
-
height: "2.5rem",
|
|
220
|
-
padding: {
|
|
221
|
-
top: "0.25rem",
|
|
222
|
-
right: "0.75rem",
|
|
223
|
-
bottom: "0.25rem",
|
|
224
|
-
left: "0.75rem",
|
|
225
|
-
withIcon: {
|
|
226
|
-
iconLeft: {
|
|
227
|
-
left: "0.5rem"
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
},
|
|
231
|
-
typography: {
|
|
232
|
-
font: "normal 700 0.875rem/1 Open Sans",
|
|
233
|
-
letterSpacing: "-0.0125rem",
|
|
234
|
-
fontWidth: 95
|
|
235
|
-
},
|
|
236
|
-
icon: {
|
|
237
|
-
size: "1.25rem",
|
|
238
|
-
gap: "0.25rem"
|
|
239
|
-
},
|
|
240
|
-
iconButton: {
|
|
241
|
-
width: "2.5rem"
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
lg: {
|
|
245
|
-
height: "3rem",
|
|
246
|
-
padding: {
|
|
247
|
-
top: "0.25rem",
|
|
248
|
-
right: "1rem",
|
|
249
|
-
bottom: "0.25rem",
|
|
250
|
-
left: "1rem",
|
|
251
|
-
withIcon: {
|
|
252
|
-
iconLeft: {
|
|
253
|
-
left: "0.75rem"
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
typography: {
|
|
258
|
-
font: "normal 700 1rem/1 Open Sans",
|
|
259
|
-
letterSpacing: "-0.0125rem",
|
|
260
|
-
fontWidth: 95
|
|
261
|
-
},
|
|
262
|
-
icon: {
|
|
263
|
-
size: "1.5rem",
|
|
264
|
-
gap: "0.25rem"
|
|
265
|
-
},
|
|
266
|
-
iconButton: {
|
|
267
|
-
width: "3rem"
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
},
|
|
271
|
-
"neutral-primary": {
|
|
146
|
+
secondary: {
|
|
272
147
|
shared: {
|
|
273
148
|
color: "#ffffff",
|
|
274
149
|
backgroundColor: "#545454",
|
|
@@ -393,18 +268,18 @@ const componentButton = {
|
|
|
393
268
|
}
|
|
394
269
|
}
|
|
395
270
|
},
|
|
396
|
-
|
|
271
|
+
tertiary: {
|
|
397
272
|
shared: {
|
|
398
273
|
color: "#000000",
|
|
399
274
|
backgroundColor: "none",
|
|
400
275
|
borderRadius: "0.25rem",
|
|
401
276
|
border: "0.0625rem solid #545454",
|
|
402
277
|
":hover": {
|
|
403
|
-
backgroundColor: "#
|
|
278
|
+
backgroundColor: "#f6f6f6",
|
|
404
279
|
border: "0.0625rem solid #545454"
|
|
405
280
|
},
|
|
406
281
|
":active": {
|
|
407
|
-
backgroundColor: "#
|
|
282
|
+
backgroundColor: "#ededed",
|
|
408
283
|
border: "0.0625rem solid #545454"
|
|
409
284
|
},
|
|
410
285
|
":disabled": {
|