@reuters-graphics/graphics-components 3.0.3 → 3.0.5

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.
Files changed (75) hide show
  1. package/dist/components/Article/Article.mdx +1 -1
  2. package/dist/components/Article/Article.stories.svelte +4 -4
  3. package/dist/components/BeforeAfter/BeforeAfter.stories.svelte +2 -2
  4. package/dist/components/BeforeAfter/BeforeAfter.svelte +13 -12
  5. package/dist/components/Block/Block.stories.svelte +3 -3
  6. package/dist/components/Byline/Byline.stories.svelte +1 -1
  7. package/dist/components/Byline/Byline.svelte +3 -3
  8. package/dist/components/Byline/Byline.svelte.d.ts +1 -1
  9. package/dist/components/EndNotes/EndNotes.svelte +7 -7
  10. package/dist/components/Framer/Resizer/index.svelte +3 -3
  11. package/dist/components/Framer/Typeahead/index.svelte +1 -1
  12. package/dist/components/GraphicBlock/GraphicBlock.svelte +6 -6
  13. package/dist/components/Headline/Headline.svelte +2 -2
  14. package/dist/components/HeroHeadline/HeroHeadline.mdx +2 -2
  15. package/dist/components/HeroHeadline/HeroHeadline.stories.svelte +2 -2
  16. package/dist/components/HeroHeadline/HeroHeadline.svelte +5 -5
  17. package/dist/components/InfoBox/InfoBox.svelte +17 -17
  18. package/dist/components/PhotoPack/PhotoPack.svelte +3 -3
  19. package/dist/components/ReferralBlock/ReferralBlock.svelte +4 -4
  20. package/dist/components/Scroller/Background.svelte +15 -6
  21. package/dist/components/Scroller/Embedded/Foreground.svelte +1 -1
  22. package/dist/components/Scroller/Foreground.svelte +2 -2
  23. package/dist/components/Scroller/Scroller.mdx +1 -1
  24. package/dist/components/Scroller/Scroller.svelte +1 -1
  25. package/dist/components/ScrollerBase/ScrollerBase.mdx +82 -0
  26. package/dist/components/ScrollerBase/ScrollerBase.stories.svelte +12 -0
  27. package/dist/components/ScrollerBase/ScrollerBase.stories.svelte.d.ts +19 -0
  28. package/dist/components/{Scroller/ScrollerBase/index.svelte → ScrollerBase/ScrollerBase.svelte} +1 -1
  29. package/dist/components/{Scroller/ScrollerBase/index.svelte.d.ts → ScrollerBase/ScrollerBase.svelte.d.ts} +3 -3
  30. package/dist/components/ScrollerBase/demo/DraggableLabel.svelte +96 -0
  31. package/dist/components/ScrollerBase/demo/DraggableLabel.svelte.d.ts +21 -0
  32. package/dist/components/ScrollerBase/demo/ScrollerDemo.svelte +82 -0
  33. package/dist/components/ScrollerBase/demo/ScrollerDemo.svelte.d.ts +3 -0
  34. package/dist/components/SearchInput/SearchInput.svelte +4 -4
  35. package/dist/components/SimpleTimeline/SimpleTimeline.svelte +9 -9
  36. package/dist/components/SiteFooter/CompanyLinks.svelte +11 -11
  37. package/dist/components/SiteFooter/LegalLinks.svelte +9 -9
  38. package/dist/components/SiteFooter/QuickLinks.svelte +11 -11
  39. package/dist/components/SiteFooter/SiteFooter.stories.svelte +1 -1
  40. package/dist/components/SiteFooter/SiteFooter.svelte +1 -1
  41. package/dist/components/SiteHeader/MobileMenu/index.svelte +16 -16
  42. package/dist/components/SiteHeader/NavBar/DownArrow.svelte +1 -1
  43. package/dist/components/SiteHeader/NavBar/NavDropdown/MoreDropdown.svelte +3 -3
  44. package/dist/components/SiteHeader/NavBar/NavDropdown/SectionDropdown.svelte +3 -3
  45. package/dist/components/SiteHeader/NavBar/NavDropdown/Spinner/index.svelte +1 -1
  46. package/dist/components/SiteHeader/NavBar/NavDropdown/StoryCard/index.svelte +2 -2
  47. package/dist/components/SiteHeader/NavBar/NavDropdown/index.svelte +13 -13
  48. package/dist/components/SiteHeader/NavBar/index.svelte +1 -1
  49. package/dist/components/SiteHeader/SiteHeader.stories.svelte +1 -1
  50. package/dist/components/SiteHeader/SiteHeader.svelte +9 -9
  51. package/dist/components/Spinner/Spinner.svelte +1 -1
  52. package/dist/components/Table/Table.svelte +8 -7
  53. package/dist/components/Table/components/{RightArrow.svelte → NextArrow.svelte} +3 -0
  54. package/dist/components/Table/components/{LeftArrow.svelte.d.ts → NextArrow.svelte.d.ts} +3 -3
  55. package/dist/components/Table/components/Pagination.svelte +5 -4
  56. package/dist/components/Table/components/{LeftArrow.svelte → PrevArrow.svelte} +3 -0
  57. package/dist/components/Table/components/{RightArrow.svelte.d.ts → PrevArrow.svelte.d.ts} +3 -3
  58. package/dist/components/Table/components/Select.svelte +20 -6
  59. package/dist/components/Theme/@types/component.d.ts +1 -0
  60. package/dist/components/Theme/Theme.svelte +2 -2
  61. package/dist/components/Theme/Theme.svelte.d.ts +4 -4
  62. package/dist/components/ToolsHeader/ToolsHeader.stories.svelte +1 -1
  63. package/dist/components/Video/Video.stories.svelte +2 -2
  64. package/dist/index.d.ts +1 -0
  65. package/dist/index.js +1 -0
  66. package/dist/scss/tokens/borders/_border-radius.scss +108 -108
  67. package/dist/scss/tokens/borders/_border-width.scss +40 -40
  68. package/dist/scss/tokens/sizing/_width.scss +2 -2
  69. package/dist/scss/tokens/spacers/_fluid-margin.scss +16 -16
  70. package/dist/scss/tokens/spacers/_fluid-padding.scss +16 -16
  71. package/dist/scss/tokens/spacers/_margin.scss +24 -24
  72. package/dist/scss/tokens/spacers/_padding.scss +16 -16
  73. package/dist/scss/tokens/spacers/mixins/_fluid-margin.scss +168 -168
  74. package/dist/scss/tokens/spacers/mixins/_fluid-padding.scss +88 -88
  75. package/package.json +2 -1
@@ -0,0 +1,19 @@
1
+ import ScrollerBase from './ScrollerBase.svelte';
2
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
+ $$bindings?: Bindings;
5
+ } & Exports;
6
+ (internal: unknown, props: {
7
+ $$events?: Events;
8
+ $$slots?: Slots;
9
+ }): Exports & {
10
+ $set?: any;
11
+ $on?: any;
12
+ };
13
+ z_$$bindings?: Bindings;
14
+ }
15
+ declare const ScrollerBase: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
+ [evt: string]: CustomEvent<any>;
17
+ }, {}, {}, string>;
18
+ type ScrollerBase = InstanceType<typeof ScrollerBase>;
19
+ export default ScrollerBase;
@@ -117,7 +117,7 @@
117
117
  top = 0,
118
118
  bottom = 1,
119
119
  threshold = 0.5,
120
- query = 'section',
120
+ query = 'div.step-foreground-container',
121
121
  parallax = false,
122
122
  backgroundSnippet,
123
123
  foregroundSnippet,
@@ -27,6 +27,6 @@ interface Props {
27
27
  /** Whether the foreground is visible */
28
28
  visible?: boolean;
29
29
  }
30
- declare const Index: import("svelte").Component<Props, {}, "progress" | "offset" | "index" | "count" | "visible">;
31
- type Index = ReturnType<typeof Index>;
32
- export default Index;
30
+ declare const ScrollerBase: import("svelte").Component<Props, {}, "progress" | "offset" | "index" | "count" | "visible">;
31
+ type ScrollerBase = ReturnType<typeof ScrollerBase>;
32
+ export default ScrollerBase;
@@ -0,0 +1,96 @@
1
+ <script lang="ts">
2
+ export let value = 0;
3
+ export let label = 'label';
4
+
5
+ function drag(node: HTMLElement) {
6
+ function handleMousedown() {
7
+ function handleMousemove(event: MouseEvent) {
8
+ event.preventDefault();
9
+
10
+ node.dispatchEvent(
11
+ new CustomEvent('drag', {
12
+ detail: {
13
+ value: event.clientY / window.innerHeight,
14
+ },
15
+ })
16
+ );
17
+ }
18
+
19
+ function handleMouseup() {
20
+ window.removeEventListener('mousemove', handleMousemove);
21
+ window.removeEventListener('mouseup', handleMouseup);
22
+ }
23
+
24
+ window.addEventListener('mousemove', handleMousemove);
25
+ window.addEventListener('mouseup', handleMouseup);
26
+ }
27
+
28
+ node.addEventListener('mousedown', handleMousedown);
29
+
30
+ return {
31
+ destroy() {
32
+ node.removeEventListener('mousedown', handleMousedown);
33
+ },
34
+ };
35
+ }
36
+
37
+ // Round to 2 decimal places
38
+ function round(value: number): number {
39
+ return Math.round(value * 100) / 100;
40
+ }
41
+ </script>
42
+
43
+ <div
44
+ class="label"
45
+ style="top: {value * 100}%"
46
+ use:drag
47
+ ondrag={(event: DragEvent) => {
48
+ const customEvent = event as unknown as { detail: { value: number } };
49
+ value = customEvent.detail.value;
50
+ }}
51
+ role="slider"
52
+ aria-valuemin="0"
53
+ aria-valuemax="1"
54
+ aria-valuenow={value}
55
+ tabindex="0"
56
+ >
57
+ <div class="drag-target"></div>
58
+ <hr />
59
+ <p>{label}: {round(value)}</p>
60
+ </div>
61
+
62
+ <style>/* Generated from
63
+ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12
64
+ */
65
+ /* Generated from
66
+ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12
67
+ */
68
+ /* Scales by 1.125 */
69
+ .label {
70
+ position: fixed;
71
+ top: 0;
72
+ right: 0;
73
+ width: 150px;
74
+ height: 0;
75
+ cursor: ns-resize;
76
+ }
77
+ .label .drag-target {
78
+ position: absolute;
79
+ height: 20px;
80
+ top: -10px;
81
+ }
82
+ .label hr {
83
+ position: absolute;
84
+ top: 0;
85
+ width: 100%;
86
+ height: 2px;
87
+ background: red;
88
+ border: none;
89
+ margin: 0;
90
+ }
91
+ .label p {
92
+ position: absolute;
93
+ font-family: var(--theme-font-family-sans-serif);
94
+ font-weight: 500;
95
+ font-size: var(--theme-font-size-sm);
96
+ }</style>
@@ -0,0 +1,21 @@
1
+ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
2
+ new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
3
+ $$bindings?: Bindings;
4
+ } & Exports;
5
+ (internal: unknown, props: Props & {
6
+ $$events?: Events;
7
+ $$slots?: Slots;
8
+ }): Exports & {
9
+ $set?: any;
10
+ $on?: any;
11
+ };
12
+ z_$$bindings?: Bindings;
13
+ }
14
+ declare const DraggableLabel: $$__sveltets_2_IsomorphicComponent<{
15
+ value?: number;
16
+ label?: string;
17
+ }, {
18
+ [evt: string]: CustomEvent<any>;
19
+ }, {}, {}, string>;
20
+ type DraggableLabel = InstanceType<typeof DraggableLabel>;
21
+ export default DraggableLabel;
@@ -0,0 +1,82 @@
1
+ <script lang="ts">
2
+ import ScrollerBase from '../ScrollerBase.svelte';
3
+ import DraggableLabel from './DraggableLabel.svelte';
4
+ import BodyText from '../../BodyText/BodyText.svelte';
5
+
6
+ let count = $state(1);
7
+ let index = $state(0);
8
+ let offset = $state(0);
9
+ let progress = $state(0);
10
+ let top = $state(0.1);
11
+ let threshold = $state(0.5);
12
+ let bottom = $state(0.9);
13
+
14
+ const text =
15
+ 'Read the documentation on the props `progress`, `top`, `threshold`, `bottom` under **Controls** to understand how they work. \n\nAdjust the red sliders on the right to see how changes in these values affect scrolling behaviour.';
16
+ </script>
17
+
18
+ <BodyText {text} />
19
+
20
+ <div class="scroller-demo-container">
21
+ <ScrollerBase
22
+ {top}
23
+ {threshold}
24
+ {bottom}
25
+ bind:count
26
+ bind:index
27
+ bind:offset
28
+ bind:progress
29
+ query="div.step-foreground-container"
30
+ >
31
+ {#snippet backgroundSnippet()}
32
+ <p class="mb-0">
33
+ Current step: <strong>{index + 1}/{count}</strong>
34
+ </p>
35
+ <progress class="mb-4" value={(index + 1) / count}></progress>
36
+
37
+ <p class="mb-0">Offset in current step</p>
38
+ <progress class="mb-4" value={offset}></progress>
39
+
40
+ <p class="mb-0">Total progress</p>
41
+ <progress class="mb-4" value={progress}></progress>
42
+ {/snippet}
43
+ {#snippet foregroundSnippet()}
44
+ <div class="step-foreground-container font-medium">Step 1</div>
45
+ <div class="step-foreground-container font-medium">Step 2</div>
46
+ <div class="step-foreground-container font-medium">Step 3</div>
47
+ <div class="step-foreground-container font-medium">Step 4</div>
48
+ <div class="step-foreground-container font-medium">Step 5</div>
49
+ {/snippet}
50
+ </ScrollerBase>
51
+ </div>
52
+
53
+ <BodyText
54
+ text="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
55
+ "
56
+ />
57
+
58
+ <DraggableLabel bind:value={top} label="top" />
59
+ <DraggableLabel bind:value={threshold} label="threshold" />
60
+ <DraggableLabel bind:value={bottom} label="bottom" />
61
+
62
+ <style>/* Generated from
63
+ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12
64
+ */
65
+ /* Generated from
66
+ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12
67
+ */
68
+ /* Scales by 1.125 */
69
+ .scroller-demo-container {
70
+ width: 660px;
71
+ margin: auto;
72
+ }
73
+
74
+ .step-foreground-container {
75
+ height: 100vh;
76
+ width: 50%;
77
+ background-color: rgba(0, 0, 0, 0.2);
78
+ padding: 1em;
79
+ margin: 0 0 2em 0;
80
+ position: relative;
81
+ left: 50%;
82
+ }</style>
@@ -0,0 +1,3 @@
1
+ declare const ScrollerDemo: import("svelte").Component<Record<string, never>, {}, "">;
2
+ type ScrollerDemo = ReturnType<typeof ScrollerDemo>;
3
+ export default ScrollerDemo;
@@ -62,8 +62,8 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
62
62
  width: 250px;
63
63
  }
64
64
  .search .search--icon {
65
- left: 0.5rem;
66
- top: 0.55rem;
65
+ inset-inline-start: 0.5rem;
66
+ inset-block-start: 0.55rem;
67
67
  width: 1.5rem;
68
68
  height: 1.5rem;
69
69
  fill: var(--theme-colour-brand-rules);
@@ -76,8 +76,8 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
76
76
  width: 100%;
77
77
  }
78
78
  .search .search--x {
79
- right: 0;
80
- top: 0.55rem;
79
+ inset-inline-end: 0;
80
+ inset-block-start: 0.55rem;
81
81
  width: 1.5rem;
82
82
  height: 1.5rem;
83
83
  fill: var(--theme-colour-text-primary);
@@ -99,19 +99,19 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
99
99
  */
100
100
  /* Scales by 1.125 */
101
101
  .timeline .date {
102
- border-left: 1px solid var(--symbol-colour);
102
+ border-inline-start: 1px solid var(--symbol-colour);
103
103
  }
104
104
  .timeline .date:last-child {
105
- border-left: 1px solid var(--theme-colour-background);
106
- padding-bottom: 0;
105
+ border-inline-start: 1px solid var(--theme-colour-background);
106
+ padding-block-end: 0;
107
107
  }
108
108
  .timeline svg {
109
- top: -1px;
110
- left: -10px;
109
+ inset-block-start: -1px;
110
+ inset-inline-start: -10px;
111
111
  }
112
112
  .timeline div.title {
113
- margin-top: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
114
- margin-bottom: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
113
+ margin-block-start: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
114
+ margin-block-end: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
115
115
  font-weight: 500;
116
116
  }
117
117
  .timeline div.event a {
@@ -127,8 +127,8 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
127
127
  opacity: 0.8;
128
128
  }
129
129
  .timeline div.event :global(p) {
130
- margin-top: 0;
131
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
130
+ margin-block-start: 0;
131
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
132
132
  font-family: var(--theme-font-family-note);
133
133
  font-size: calc(0.9 * var(--theme-font-size-base));
134
134
  color: var(--theme-colour-text-primary);
@@ -80,8 +80,8 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
80
80
  }
81
81
 
82
82
  .company {
83
- padding-top: 24px;
84
- padding-bottom: 24px;
83
+ padding-block-start: 24px;
84
+ padding-block-end: 24px;
85
85
  box-sizing: border-box;
86
86
  }
87
87
  .company .content-container {
@@ -114,25 +114,25 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
114
114
  box-sizing: border-box;
115
115
  }
116
116
  .company .content-container {
117
- padding-left: 2.2222222222vw;
117
+ padding-inline-start: 2.2222222222vw;
118
118
  }
119
119
  .company .content-container {
120
- padding-right: 2.2222222222vw;
120
+ padding-inline-end: 2.2222222222vw;
121
121
  }
122
122
  @media (max-width: 1023px) {
123
123
  .company .content-container {
124
- padding-left: 4.2666666667vw;
124
+ padding-inline-start: 4.2666666667vw;
125
125
  }
126
126
  .company .content-container {
127
- padding-right: 4.2666666667vw;
127
+ padding-inline-end: 4.2666666667vw;
128
128
  }
129
129
  }
130
130
  @media (min-width: 1440px) {
131
131
  .company .content-container {
132
- padding-left: 32px;
132
+ padding-inline-start: 32px;
133
133
  }
134
134
  .company .content-container {
135
- padding-right: 32px;
135
+ padding-inline-end: 32px;
136
136
  }
137
137
  }
138
138
 
@@ -179,17 +179,17 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
179
179
  list-style: none;
180
180
  display: inline-block;
181
181
  vertical-align: middle;
182
- margin-left: 16px;
182
+ margin-inline-start: 16px;
183
183
  }
184
184
  .symbol:first-child {
185
- margin-left: 0;
185
+ margin-inline-start: 0;
186
186
  }
187
187
 
188
188
  section.company {
189
189
  max-width: 100%;
190
190
  }
191
191
  section.company h2 {
192
- margin-bottom: 12px;
192
+ margin-block-end: 12px;
193
193
  line-height: 1.333;
194
194
  font-size: 16px;
195
195
  color: var(--nav-primary);
@@ -74,8 +74,8 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
74
74
  }
75
75
 
76
76
  .legal {
77
- padding-top: 24px;
78
- padding-bottom: 24px;
77
+ padding-block-start: 24px;
78
+ padding-block-end: 24px;
79
79
  box-sizing: border-box;
80
80
  }
81
81
  .legal .content-container {
@@ -108,25 +108,25 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
108
108
  box-sizing: border-box;
109
109
  }
110
110
  .legal .content-container {
111
- padding-left: 2.2222222222vw;
111
+ padding-inline-start: 2.2222222222vw;
112
112
  }
113
113
  .legal .content-container {
114
- padding-right: 2.2222222222vw;
114
+ padding-inline-end: 2.2222222222vw;
115
115
  }
116
116
  @media (max-width: 1023px) {
117
117
  .legal .content-container {
118
- padding-left: 4.2666666667vw;
118
+ padding-inline-start: 4.2666666667vw;
119
119
  }
120
120
  .legal .content-container {
121
- padding-right: 4.2666666667vw;
121
+ padding-inline-end: 4.2666666667vw;
122
122
  }
123
123
  }
124
124
  @media (min-width: 1440px) {
125
125
  .legal .content-container {
126
- padding-left: 32px;
126
+ padding-inline-start: 32px;
127
127
  }
128
128
  .legal .content-container {
129
- padding-right: 32px;
129
+ padding-inline-end: 32px;
130
130
  }
131
131
  }
132
132
 
@@ -199,7 +199,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
199
199
  }
200
200
  .link-group li {
201
201
  display: inline-flex;
202
- margin-right: 16px;
202
+ margin-inline-end: 16px;
203
203
  list-style: none;
204
204
  align-items: center;
205
205
  }
@@ -161,8 +161,8 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
161
161
  }
162
162
 
163
163
  .quick-links {
164
- padding-top: 24px;
165
- padding-bottom: 24px;
164
+ padding-block-start: 24px;
165
+ padding-block-end: 24px;
166
166
  box-sizing: border-box;
167
167
  }
168
168
  .quick-links .content-container {
@@ -212,25 +212,25 @@ section.quick-links .content-container {
212
212
  box-sizing: border-box;
213
213
  }
214
214
  section.quick-links .content-container {
215
- padding-left: 2.2222222222vw;
215
+ padding-inline-start: 2.2222222222vw;
216
216
  }
217
217
  section.quick-links .content-container {
218
- padding-right: 2.2222222222vw;
218
+ padding-inline-end: 2.2222222222vw;
219
219
  }
220
220
  @media (max-width: 1023px) {
221
221
  section.quick-links .content-container {
222
- padding-left: 4.2666666667vw;
222
+ padding-inline-start: 4.2666666667vw;
223
223
  }
224
224
  section.quick-links .content-container {
225
- padding-right: 4.2666666667vw;
225
+ padding-inline-end: 4.2666666667vw;
226
226
  }
227
227
  }
228
228
  @media (min-width: 1440px) {
229
229
  section.quick-links .content-container {
230
- padding-left: 32px;
230
+ padding-inline-start: 32px;
231
231
  }
232
232
  section.quick-links .content-container {
233
- padding-right: 32px;
233
+ padding-inline-end: 32px;
234
234
  }
235
235
  }
236
236
  section.quick-links h3 {
@@ -267,7 +267,7 @@ section.quick-links h3 {
267
267
  grid-row: 1;
268
268
  }
269
269
  .quick-links .content-container .latest-and-media .media {
270
- margin-top: 24px;
270
+ margin-block-start: 24px;
271
271
  }
272
272
  .quick-links .content-container .about-and-stay-informed {
273
273
  grid-column: 7/span 3;
@@ -285,12 +285,12 @@ section.quick-links h3 {
285
285
  }
286
286
  }
287
287
  .quick-links .content-container .stay-informed {
288
- margin-top: 24px;
288
+ margin-block-start: 24px;
289
289
  }
290
290
 
291
291
  .symbol {
292
292
  width: 20px;
293
- margin-right: 16px;
293
+ margin-inline-end: 16px;
294
294
  }
295
295
 
296
296
  .visually-hidden {
@@ -24,6 +24,6 @@
24
24
  <style>
25
25
  div {
26
26
  width: calc(100% + 30px);
27
- margin-left: -15px;
27
+ margin-inline-start: -15px;
28
28
  }
29
29
  </style>
@@ -68,7 +68,7 @@
68
68
  </footer>
69
69
 
70
70
  <style>footer {
71
- margin-top: 0;
71
+ margin-block-start: 0;
72
72
  background-color: var(--nav-background, #fff);
73
73
  }
74
74
  footer div {
@@ -88,7 +88,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
88
88
  left: 0;
89
89
  width: 100%;
90
90
  height: 100%;
91
- padding-bottom: 60px;
91
+ padding-block-end: 60px;
92
92
  box-sizing: border-box;
93
93
  background: var(--nav-background);
94
94
  color: var(--nav-primary);
@@ -115,7 +115,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
115
115
  .close-button {
116
116
  width: 40px;
117
117
  height: 40px;
118
- margin-left: auto;
118
+ margin-inline-start: auto;
119
119
  display: inline-block;
120
120
  vertical-align: top;
121
121
  outline: none;
@@ -151,55 +151,55 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
151
151
  border-bottom: 1px solid var(--nav-rules, var(--tr-muted-grey));
152
152
  }
153
153
  .header {
154
- padding-left: 2.2222222222vw;
154
+ padding-inline-start: 2.2222222222vw;
155
155
  }
156
156
  .header {
157
- padding-right: 2.2222222222vw;
157
+ padding-inline-end: 2.2222222222vw;
158
158
  }
159
159
  @media (max-width: 1023px) {
160
160
  .header {
161
- padding-left: 4.2666666667vw;
161
+ padding-inline-start: 4.2666666667vw;
162
162
  }
163
163
  .header {
164
- padding-right: 4.2666666667vw;
164
+ padding-inline-end: 4.2666666667vw;
165
165
  }
166
166
  }
167
167
  @media (min-width: 1440px) {
168
168
  .header {
169
- padding-left: 32px;
169
+ padding-inline-start: 32px;
170
170
  }
171
171
  .header {
172
- padding-right: 32px;
172
+ padding-inline-end: 32px;
173
173
  }
174
174
  }
175
175
 
176
176
  .section {
177
- padding-top: 16px;
178
- padding-bottom: 16px;
177
+ padding-block-start: 16px;
178
+ padding-block-end: 16px;
179
179
  border-bottom: 1px solid var(--tr-muted-grey);
180
180
  width: 100%;
181
181
  max-width: 100%;
182
182
  }
183
183
  .section {
184
- padding-left: 2.2222222222vw;
184
+ padding-inline-start: 2.2222222222vw;
185
185
  }
186
186
  .section {
187
- padding-right: 2.2222222222vw;
187
+ padding-inline-end: 2.2222222222vw;
188
188
  }
189
189
  @media (max-width: 1023px) {
190
190
  .section {
191
- padding-left: 4.2666666667vw;
191
+ padding-inline-start: 4.2666666667vw;
192
192
  }
193
193
  .section {
194
- padding-right: 4.2666666667vw;
194
+ padding-inline-end: 4.2666666667vw;
195
195
  }
196
196
  }
197
197
  @media (min-width: 1440px) {
198
198
  .section {
199
- padding-left: 32px;
199
+ padding-inline-start: 32px;
200
200
  }
201
201
  .section {
202
- padding-right: 32px;
202
+ padding-inline-end: 32px;
203
203
  }
204
204
  }
205
205
  .section .subsections {
@@ -20,7 +20,7 @@
20
20
  </svg>
21
21
 
22
22
  <style>svg {
23
- margin-left: 4px;
23
+ margin-inline-start: 4px;
24
24
  width: 10px;
25
25
  fill: var(--nav-primary, var(--tr-dark-grey));
26
26
  transition: transform 0.15s ease;
@@ -60,7 +60,7 @@ a:hover {
60
60
  }
61
61
 
62
62
  .more-section-group.has-children {
63
- margin-bottom: 20px;
63
+ margin-block-end: 20px;
64
64
  }
65
65
  .more-section-group .subsections {
66
66
  display: grid;
@@ -92,7 +92,7 @@ a:hover {
92
92
  font-weight: 400;
93
93
  display: inline-block;
94
94
  padding: 4px 0;
95
- margin-bottom: 2px;
95
+ margin-block-end: 2px;
96
96
  text-decoration: none;
97
97
  }
98
98
  .more-section-group .subsections .subsection-link:hover {
@@ -100,7 +100,7 @@ a:hover {
100
100
  }
101
101
  .more-section-group .section-link {
102
102
  grid-column: 1/-1;
103
- margin-bottom: 16px;
103
+ margin-block-end: 16px;
104
104
  line-height: 18px;
105
105
  font-size: 16px;
106
106
  display: inline-block;
@@ -73,11 +73,11 @@ a:hover {
73
73
  margin: 0;
74
74
  }
75
75
  .sections .sections-group:first-child {
76
- margin-right: 16px;
76
+ margin-inline-end: 16px;
77
77
  }
78
78
  @media (max-width: 1023px) {
79
79
  .sections .sections-group:nth-child(2) {
80
- margin-top: 0;
80
+ margin-block-start: 0;
81
81
  }
82
82
  }
83
83
 
@@ -86,7 +86,7 @@ a:hover {
86
86
  font-weight: 400;
87
87
  display: inline-block;
88
88
  padding: 4px 0;
89
- margin-bottom: 2px;
89
+ margin-block-end: 2px;
90
90
  font-family: var(--theme-font-family-sans-serif);
91
91
  }
92
92
  .subsection-link:hover {
@@ -12,7 +12,7 @@
12
12
  .spinner-container {
13
13
  position: relative;
14
14
  height: 0;
15
- padding-bottom: 100%;
15
+ padding-block-end: 100%;
16
16
  color: var(--nav-primary, var(--tr-dark-grey));
17
17
  }
18
18