@reuters-graphics/graphics-components 3.0.2 → 3.0.4

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 (59) hide show
  1. package/dist/components/@types/global.d.ts +1 -1
  2. package/dist/components/Article/Article.mdx +1 -1
  3. package/dist/components/Article/Article.stories.svelte +4 -4
  4. package/dist/components/BeforeAfter/BeforeAfter.stories.svelte +2 -2
  5. package/dist/components/BeforeAfter/BeforeAfter.svelte +13 -12
  6. package/dist/components/Block/Block.stories.svelte +3 -3
  7. package/dist/components/Byline/Byline.stories.svelte +1 -1
  8. package/dist/components/Byline/Byline.svelte +3 -3
  9. package/dist/components/Byline/Byline.svelte.d.ts +1 -1
  10. package/dist/components/EndNotes/EndNotes.svelte +7 -7
  11. package/dist/components/Framer/Resizer/index.svelte +3 -3
  12. package/dist/components/Framer/Typeahead/index.svelte +1 -1
  13. package/dist/components/GraphicBlock/GraphicBlock.svelte +6 -6
  14. package/dist/components/Headline/Headline.svelte +2 -2
  15. package/dist/components/HeroHeadline/HeroHeadline.mdx +2 -2
  16. package/dist/components/HeroHeadline/HeroHeadline.stories.svelte +2 -2
  17. package/dist/components/HeroHeadline/HeroHeadline.svelte +5 -5
  18. package/dist/components/InfoBox/InfoBox.svelte +17 -17
  19. package/dist/components/PhotoPack/PhotoPack.svelte +3 -3
  20. package/dist/components/ReferralBlock/ReferralBlock.svelte +4 -4
  21. package/dist/components/Scroller/Embedded/Foreground.svelte +1 -1
  22. package/dist/components/Scroller/Foreground.svelte +2 -2
  23. package/dist/components/SearchInput/SearchInput.svelte +4 -4
  24. package/dist/components/SimpleTimeline/SimpleTimeline.svelte +9 -9
  25. package/dist/components/SiteFooter/CompanyLinks.svelte +11 -11
  26. package/dist/components/SiteFooter/LegalLinks.svelte +9 -9
  27. package/dist/components/SiteFooter/QuickLinks.svelte +11 -11
  28. package/dist/components/SiteFooter/SiteFooter.stories.svelte +1 -1
  29. package/dist/components/SiteFooter/SiteFooter.svelte +1 -1
  30. package/dist/components/SiteHeader/MobileMenu/index.svelte +16 -16
  31. package/dist/components/SiteHeader/NavBar/DownArrow.svelte +1 -1
  32. package/dist/components/SiteHeader/NavBar/NavDropdown/MoreDropdown.svelte +3 -3
  33. package/dist/components/SiteHeader/NavBar/NavDropdown/SectionDropdown.svelte +3 -3
  34. package/dist/components/SiteHeader/NavBar/NavDropdown/Spinner/index.svelte +1 -1
  35. package/dist/components/SiteHeader/NavBar/NavDropdown/StoryCard/index.svelte +2 -2
  36. package/dist/components/SiteHeader/NavBar/NavDropdown/index.svelte +13 -13
  37. package/dist/components/SiteHeader/NavBar/index.svelte +1 -1
  38. package/dist/components/SiteHeader/SiteHeader.stories.svelte +1 -1
  39. package/dist/components/SiteHeader/SiteHeader.svelte +9 -9
  40. package/dist/components/Spinner/Spinner.svelte +1 -1
  41. package/dist/components/Table/Table.svelte +8 -7
  42. package/dist/components/Table/components/{RightArrow.svelte → NextArrow.svelte} +3 -0
  43. package/dist/components/Table/components/{LeftArrow.svelte.d.ts → NextArrow.svelte.d.ts} +3 -3
  44. package/dist/components/Table/components/Pagination.svelte +5 -4
  45. package/dist/components/Table/components/{LeftArrow.svelte → PrevArrow.svelte} +3 -0
  46. package/dist/components/Table/components/{RightArrow.svelte.d.ts → PrevArrow.svelte.d.ts} +3 -3
  47. package/dist/components/Table/components/Select.svelte +20 -6
  48. package/dist/components/ToolsHeader/ToolsHeader.stories.svelte +1 -1
  49. package/dist/components/Video/Video.stories.svelte +2 -2
  50. package/dist/scss/tokens/borders/_border-radius.scss +108 -108
  51. package/dist/scss/tokens/borders/_border-width.scss +40 -40
  52. package/dist/scss/tokens/sizing/_width.scss +2 -2
  53. package/dist/scss/tokens/spacers/_fluid-margin.scss +16 -16
  54. package/dist/scss/tokens/spacers/_fluid-padding.scss +16 -16
  55. package/dist/scss/tokens/spacers/_margin.scss +24 -24
  56. package/dist/scss/tokens/spacers/_padding.scss +16 -16
  57. package/dist/scss/tokens/spacers/mixins/_fluid-margin.scss +168 -168
  58. package/dist/scss/tokens/spacers/mixins/_fluid-padding.scss +88 -88
  59. package/package.json +2 -1
@@ -21,7 +21,7 @@ export interface ScrollerStep {
21
21
  /**
22
22
  * A background component
23
23
  */
24
- background: Component;
24
+ background: Component | undefined;
25
25
  /**
26
26
  * Optional props for background component
27
27
  */
@@ -105,7 +105,7 @@ If you're not using our `Block` component, you can still inherit the column widt
105
105
  }
106
106
  &.fluid {
107
107
  width: calc(100% + 30px);
108
- margin-left: -15px;
108
+ margin-inline-start: -15px;
109
109
  max-width: none;
110
110
  }
111
111
  }
@@ -66,13 +66,13 @@
66
66
 
67
67
  :global(#article-story-basic, #article-column-widths-demo) {
68
68
  width: calc(100% + 30px);
69
- margin-left: -15px;
69
+ margin-inline-start: -15px;
70
70
  }
71
71
 
72
72
  :global(#article-column-widths-demo) {
73
73
  background-color: #ddd;
74
74
  position: relative;
75
- margin-bottom: 10px;
75
+ margin-block-end: 10px;
76
76
  }
77
77
 
78
78
  :global(#article-column-widths-demo .article-boundaries) {
@@ -89,9 +89,9 @@
89
89
  :global(#article-column-widths-demo div.article-block) {
90
90
  height: 300px;
91
91
  background: #81a1c1;
92
- margin-bottom: 2px;
92
+ margin-block-end: 2px;
93
93
  height: 50px;
94
- padding-left: 3px;
94
+ padding-inline-start: 3px;
95
95
  color: white;
96
96
  font-size: 1rem;
97
97
  }
@@ -40,13 +40,13 @@
40
40
  afterAlt="Satellite image of Russian base at Myrne taken on Oct. 20, 2020."
41
41
  >
42
42
  {#snippet beforeOverlay()}
43
- <div class="overlay p-3 before text-left">
43
+ <div class="overlay p-3 before">
44
44
  <p class="h4 font-bold">July 7, 2020</p>
45
45
  <p class="body-note">Initially, this site was far smaller.</p>
46
46
  </div>
47
47
  {/snippet}
48
48
  {#snippet afterOverlay()}
49
- <div class="overlay p-3 after text-right">
49
+ <div class="overlay p-3 after">
50
50
  <p class="h4 font-bold">Oct. 20, 2020</p>
51
51
  <p class="body-note">But then forces built up.</p>
52
52
  </div>
@@ -284,6 +284,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
284
284
  /* Scales by 1.125 */
285
285
  button.before-after-container {
286
286
  box-sizing: content-box;
287
+ text-align: inherit;
287
288
  }
288
289
  button.before-after-container img {
289
290
  top: 0;
@@ -301,10 +302,10 @@ button.before-after-container .overlay-container {
301
302
  top: 0;
302
303
  }
303
304
  button.before-after-container .overlay-container :global(:first-child) {
304
- margin-top: 0;
305
+ margin-block-start: 0;
305
306
  }
306
307
  button.before-after-container .overlay-container :global(:last-child) {
307
- margin-bottom: 0;
308
+ margin-block-end: 0;
308
309
  }
309
310
  button.before-after-container .overlay-container.before {
310
311
  left: 0;
@@ -352,18 +353,18 @@ button.before-after-container .overlay-container.after {
352
353
  height: 0;
353
354
  user-select: none;
354
355
  position: relative;
355
- border-top: 10px solid transparent;
356
- border-bottom: 10px solid transparent;
356
+ border-block-start: 10px solid transparent;
357
+ border-block-end: 10px solid transparent;
357
358
  }
358
359
  .handle .arrow-right {
359
- left: 19px;
360
- bottom: 14px;
361
- border-left: 10px solid var(--before-after-handle-colour);
360
+ inset-inline-start: 19px;
361
+ inset-block-end: 14px;
362
+ border-inline-start: 10px solid var(--before-after-handle-colour);
362
363
  }
363
364
  .handle .arrow-left {
364
- left: 3px;
365
- top: 6px;
366
- border-right: 10px solid var(--before-after-handle-colour);
365
+ inset-inline-start: 3px;
366
+ inset-block-start: 6px;
367
+ border-inline-end: 10px solid var(--before-after-handle-colour);
367
368
  }
368
369
 
369
370
  .before-after-caption :global(p) {
@@ -372,6 +373,6 @@ button.before-after-container .overlay-container.after {
372
373
  font-size: var(--theme-font-size-xs);
373
374
  line-height: 1.3;
374
375
  font-weight: 400;
375
- margin-top: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
376
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
376
+ margin-block-start: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
377
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
377
378
  }</style>
@@ -129,7 +129,7 @@
129
129
  background-color: #ddd;
130
130
  position: relative;
131
131
  width: calc(100% + 30px);
132
- margin-left: -15px;
132
+ margin-inline-start: -15px;
133
133
  }
134
134
 
135
135
  :global(#block-demo-article .article-boundaries) {
@@ -145,7 +145,7 @@
145
145
  }
146
146
 
147
147
  :global(#block-demo-article div.article-block.block-snap-widths-demo) {
148
- margin-bottom: 2px;
148
+ margin-block-end: 2px;
149
149
  height: 40px;
150
150
  font-size: 11px;
151
151
  }
@@ -156,7 +156,7 @@
156
156
 
157
157
  :global(#block-demo-article .label,
158
158
  #block-demo-article div.article-block.block-snap-widths-demo) {
159
- padding-left: 3px;
159
+ padding-inline-start: 3px;
160
160
  color: white;
161
161
  font-weight: 500;
162
162
  }
@@ -9,7 +9,7 @@
9
9
  argTypes: {
10
10
  align: {
11
11
  control: 'select',
12
- options: ['left', 'center'],
12
+ options: ['auto', 'center'],
13
13
  },
14
14
  },
15
15
  });
@@ -21,7 +21,7 @@
21
21
  /**
22
22
  * Alignment of the byline.
23
23
  */
24
- align?: 'left' | 'center';
24
+ align?: 'auto' | 'center';
25
25
  /**
26
26
  * Add an id to to target with custom CSS.
27
27
  * @type {string}
@@ -54,7 +54,7 @@
54
54
  authors = [],
55
55
  publishTime,
56
56
  updateTime,
57
- align = 'left',
57
+ align = 'auto',
58
58
  id = '',
59
59
  cls = '',
60
60
  getAuthorPage = getAuthorPageUrl,
@@ -63,7 +63,7 @@
63
63
  updated,
64
64
  }: Props = $props();
65
65
 
66
- let alignmentClass = $derived(align === 'left' ? 'text-left' : 'text-center');
66
+ let alignmentClass = $derived(align === 'center' ? 'text-center' : '');
67
67
 
68
68
  /**
69
69
  /* Date validation and formatter functions
@@ -15,7 +15,7 @@ interface Props {
15
15
  /**
16
16
  * Alignment of the byline.
17
17
  */
18
- align?: 'left' | 'center';
18
+ align?: 'auto' | 'center';
19
19
  /**
20
20
  * Add an id to to target with custom CSS.
21
21
  * @type {string}
@@ -47,13 +47,13 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
47
47
  font-size: var(--theme-font-size-xs);
48
48
  line-height: 1.3;
49
49
  font-weight: 400;
50
- margin-top: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
51
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
50
+ margin-block-start: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
51
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
52
52
  color: var(--theme-colour-text-primary);
53
53
  font-weight: 500;
54
54
  letter-spacing: 0em;
55
- margin-top: clamp(0.88rem, 0.83rem + 0.21vw, 1rem);
56
- margin-bottom: 0.125rem;
55
+ margin-block-start: clamp(0.88rem, 0.83rem + 0.21vw, 1rem);
56
+ margin-block-end: 0.125rem;
57
57
  text-transform: none;
58
58
  }
59
59
 
@@ -63,7 +63,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
63
63
  font-size: var(--theme-font-size-xs);
64
64
  line-height: 1.3;
65
65
  font-weight: 400;
66
- margin-top: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
67
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
68
- margin-top: 0;
66
+ margin-block-start: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
67
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
68
+ margin-block-start: 0;
69
69
  }</style>
@@ -165,7 +165,7 @@
165
165
  background-color: rgba(255, 255, 255, 0.8);
166
166
  padding: 4px 8px;
167
167
  border-radius: 4px;
168
- margin-right: 5px;
168
+ margin-inline-end: 5px;
169
169
  }
170
170
  #resizer button.icon {
171
171
  font-size: 14px;
@@ -196,10 +196,10 @@
196
196
  }
197
197
  #resizer button.icon.left {
198
198
  text-align: right;
199
- padding-right: 3px;
199
+ padding-inline-end: 3px;
200
200
  }
201
201
  #resizer button.icon.right {
202
- padding-left: 6px;
202
+ padding-inline-start: 6px;
203
203
  text-align: left;
204
204
  }
205
205
  #resizer div.slider-container {
@@ -354,7 +354,7 @@ li:hover {
354
354
  }
355
355
 
356
356
  :global([data-svelte-search] label) {
357
- margin-bottom: 0.25rem;
357
+ margin-block-end: 0.25rem;
358
358
  display: inline-flex;
359
359
  font-size: 0.75rem;
360
360
  color: #aaa;
@@ -138,8 +138,8 @@ div.container {
138
138
  display: contents;
139
139
  }
140
140
  div.container :global(.article-block.graphic p) {
141
- margin-top: 0;
142
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
141
+ margin-block-start: 0;
142
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
143
143
  font-family: var(--theme-font-family-note);
144
144
  font-size: calc(0.9 * var(--theme-font-size-base));
145
145
  color: var(--theme-colour-text-primary);
@@ -152,8 +152,8 @@ div.container :global(.article-block.graphic aside p) {
152
152
  font-size: var(--theme-font-size-xs);
153
153
  line-height: 1.3;
154
154
  font-weight: 400;
155
- margin-top: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
156
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
157
- margin-top: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
158
- margin-bottom: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
155
+ margin-block-start: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
156
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
157
+ margin-block-start: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
158
+ margin-block-end: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
159
159
  }</style>
@@ -155,9 +155,9 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
155
155
  max-width: 660px;
156
156
  }
157
157
  .headline-wrapper :global(.dek p) {
158
- margin-top: 0;
158
+ margin-block-start: 0;
159
159
  font-family: var(--theme-font-family-note);
160
160
  line-height: 1.3;
161
161
  font-weight: 300;
162
- margin-bottom: clamp(0.88rem, 0.83rem + 0.21vw, 1rem);
162
+ margin-block-end: clamp(0.88rem, 0.83rem + 0.21vw, 1rem);
163
163
  }</style>
@@ -51,7 +51,7 @@ In the graphics kit, set styles in `global.scss` to make the Reuters site header
51
51
  border: none !important;
52
52
  }
53
53
  .hero-wrapper {
54
- margin-top: -64px;
54
+ margin-block-start: -64px;
55
55
  }
56
56
  ```
57
57
 
@@ -316,7 +316,7 @@ Add styles in `global.scss`:
316
316
  }
317
317
 
318
318
  .dek {
319
- margin-top: 1rem;
319
+ margin-block-start: 1rem;
320
320
  p {
321
321
  color: #ffffff;
322
322
  text-shadow: 1px 1px 8px #ff7c88;
@@ -243,7 +243,7 @@
243
243
  filter: drop-shadow(0px 0px 12px #ff7c88);
244
244
  }
245
245
  .custom-hed .dek {
246
- margin-top: 1rem;
246
+ margin-block-start: 1rem;
247
247
  }
248
248
  .custom-hed .dek p {
249
249
  color: #ffffff;
@@ -260,5 +260,5 @@
260
260
  border: none !important;
261
261
  }
262
262
  .transparent-header :global(.hero-wrapper) {
263
- margin-top: -64px;
263
+ margin-block-start: -64px;
264
264
  }</style>
@@ -200,7 +200,7 @@
200
200
  {getAuthorPage}
201
201
  {published}
202
202
  {updated}
203
- align="left"
203
+ align="auto"
204
204
  />
205
205
  {/if}
206
206
  </div>
@@ -230,7 +230,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
230
230
  height: var(--heroHeight, 100svh);
231
231
  max-height: 1800px;
232
232
  transform: translateX(-50%);
233
- margin-top: 0;
233
+ margin-block-start: 0;
234
234
  }
235
235
  @media (max-width: 690px) {
236
236
  .hero-wrapper :global(.background-hero .headline) {
@@ -243,8 +243,8 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
243
243
  font-size: var(--theme-font-size-xs);
244
244
  line-height: 1.3;
245
245
  font-weight: 400;
246
- margin-top: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
247
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
246
+ margin-block-start: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
247
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
248
248
  }
249
249
  .hero-wrapper :global(.background-hero video) {
250
250
  position: relative;
@@ -257,7 +257,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
257
257
  .hero-wrapper :global(.graphic-container .article-block.notes) {
258
258
  width: 100%;
259
259
  padding: 0 15px;
260
- margin-left: 0;
260
+ margin-inline-start: 0;
261
261
  }
262
262
  }
263
263
 
@@ -124,14 +124,14 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
124
124
  font-weight: 600;
125
125
  letter-spacing: 0.03em;
126
126
  text-transform: uppercase;
127
- margin-top: clamp(1.13rem, 1.06rem + 0.31vw, 1.31rem);
128
- margin-bottom: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
129
- margin-top: 0;
130
- margin-bottom: 0;
127
+ margin-block-start: clamp(1.13rem, 1.06rem + 0.31vw, 1.31rem);
128
+ margin-block-end: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
129
+ margin-block-start: 0;
130
+ margin-block-end: 0;
131
131
  }
132
132
  .infobox :global(.body p) {
133
- margin-top: 0;
134
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
133
+ margin-block-start: 0;
134
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
135
135
  font-family: var(--theme-font-family-note);
136
136
  font-size: calc(0.9 * var(--theme-font-size-base));
137
137
  color: var(--theme-colour-text-primary);
@@ -140,29 +140,29 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
140
140
  font-weight: 300;
141
141
  }
142
142
  .infobox :global(.body p):last-child {
143
- margin-bottom: 0;
143
+ margin-block-end: 0;
144
144
  }
145
145
  .infobox :global(.body ul),
146
146
  .infobox :global(.body ol) {
147
- margin-top: 0;
148
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
147
+ margin-block-start: 0;
148
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
149
149
  font-family: var(--theme-font-family-note);
150
150
  font-size: calc(0.9 * var(--theme-font-size-base));
151
151
  color: var(--theme-colour-text-primary);
152
152
  line-height: 1.3;
153
153
  font-size: var(--theme-font-size-sm);
154
154
  font-weight: 300;
155
- margin-bottom: 0;
155
+ margin-block-end: 0;
156
156
  }
157
157
  .infobox :global(.body ul li),
158
158
  .infobox :global(.body ol li) {
159
- margin-top: 0;
160
- margin-top: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
161
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
159
+ margin-block-start: 0;
160
+ margin-block-start: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
161
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
162
162
  }
163
163
  .infobox :global(.body ul li):last-child,
164
164
  .infobox :global(.body ol li):last-child {
165
- margin-bottom: 0;
165
+ margin-block-end: 0;
166
166
  }
167
167
  .infobox :global(.footer p) {
168
168
  font-family: var(--theme-font-family-note);
@@ -170,9 +170,9 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
170
170
  font-size: var(--theme-font-size-xs);
171
171
  line-height: 1.3;
172
172
  font-weight: 400;
173
- margin-top: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
174
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
173
+ margin-block-start: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
174
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
175
175
  }
176
176
  .infobox :global(.footer p):last-child {
177
- margin-bottom: 0;
177
+ margin-block-end: 0;
178
178
  }</style>
@@ -85,7 +85,7 @@
85
85
  <div
86
86
  class="photopack-row flex justify-between"
87
87
  style:gap="0 {gap}px"
88
- style:margin-bottom={ri < rows.length - 1 ? gap + 'px' : ''}
88
+ style:margin-block-end={ri < rows.length - 1 ? gap + 'px' : ''}
89
89
  >
90
90
  {#each row as img, i}
91
91
  <figure
@@ -143,6 +143,6 @@ div.photopack-container div.photopack-row figure div.alt-warning {
143
143
  font-size: var(--theme-font-size-xs);
144
144
  line-height: 1.3;
145
145
  font-weight: 400;
146
- margin-top: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
147
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
146
+ margin-block-start: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
147
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
148
148
  }</style>
@@ -189,7 +189,7 @@ div.block-container.stacked {
189
189
  }
190
190
 
191
191
  div.heading {
192
- margin-top: 0;
192
+ margin-block-start: 0;
193
193
  font-family: Knowledge, sans-serif;
194
194
  }
195
195
  div.heading.stacked {
@@ -212,8 +212,8 @@ div.heading.stacked {
212
212
  display: block;
213
213
  width: calc(50% - 30px);
214
214
  max-width: 450px;
215
- margin-top: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
216
- margin-bottom: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
215
+ margin-block-start: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
216
+ margin-block-end: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
217
217
  }
218
218
  .referral-container .referral:hover .title {
219
219
  text-decoration: underline;
@@ -224,7 +224,7 @@ div.heading.stacked {
224
224
  .referral-container .referral .headline {
225
225
  display: inline-block;
226
226
  width: calc(100% - 9rem);
227
- padding-right: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
227
+ padding-inline-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
228
228
  }
229
229
  .referral-container .referral .headline .kicker {
230
230
  font-size: var(--theme-font-size-xxs);
@@ -40,5 +40,5 @@
40
40
  {/if}
41
41
 
42
42
  <style>div.embedded-foreground :global(p:last-child) {
43
- margin-bottom: 0;
43
+ margin-block-end: 0;
44
44
  }</style>
@@ -59,8 +59,8 @@ div.step-foreground-container .step-foreground {
59
59
  background: rgba(255, 255, 255, 0.9);
60
60
  }
61
61
  div.step-foreground-container .step-foreground :global(p:last-child) {
62
- margin-bottom: 0;
62
+ margin-block-end: 0;
63
63
  }
64
64
  div.step-foreground-container .step-foreground :global(*:first-child) {
65
- margin-top: 0;
65
+ margin-block-start: 0;
66
66
  }</style>
@@ -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);