@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
@@ -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
 
@@ -52,7 +52,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
52
52
  text-decoration: underline;
53
53
  }
54
54
  .story-card a .story-text {
55
- margin-right: 10px;
55
+ margin-inline-end: 10px;
56
56
  width: 100%;
57
57
  }
58
58
  .story-card a .story-text.has-thumbnail {
@@ -71,7 +71,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
71
71
  }
72
72
  .story-card a .story-text time {
73
73
  font-family: var(--theme-font-family-sans-serif);
74
- margin-top: 8px;
74
+ margin-block-start: 8px;
75
75
  display: block;
76
76
  font-size: 12px;
77
77
  font-weight: 400;
@@ -149,25 +149,25 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
149
149
  }
150
150
  }
151
151
  .dropdown-container > .inner {
152
- padding-left: 2.2222222222vw;
152
+ padding-inline-start: 2.2222222222vw;
153
153
  }
154
154
  .dropdown-container > .inner {
155
- padding-right: 2.2222222222vw;
155
+ padding-inline-end: 2.2222222222vw;
156
156
  }
157
157
  @media (max-width: 1023px) {
158
158
  .dropdown-container > .inner {
159
- padding-left: 4.2666666667vw;
159
+ padding-inline-start: 4.2666666667vw;
160
160
  }
161
161
  .dropdown-container > .inner {
162
- padding-right: 4.2666666667vw;
162
+ padding-inline-end: 4.2666666667vw;
163
163
  }
164
164
  }
165
165
  @media (min-width: 1440px) {
166
166
  .dropdown-container > .inner {
167
- padding-left: 32px;
167
+ padding-inline-start: 32px;
168
168
  }
169
169
  .dropdown-container > .inner {
170
- padding-right: 32px;
170
+ padding-inline-end: 32px;
171
171
  }
172
172
  }
173
173
 
@@ -204,16 +204,16 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
204
204
  border-left: 1px solid var(--nav-rules, var(--tr-muted-grey));
205
205
  }
206
206
  .stories-container .inner {
207
- padding-left: 2.2222222222vw;
207
+ padding-inline-start: 2.2222222222vw;
208
208
  }
209
209
  @media (max-width: 1023px) {
210
210
  .stories-container .inner {
211
- padding-left: 4.2666666667vw;
211
+ padding-inline-start: 4.2666666667vw;
212
212
  }
213
213
  }
214
214
  @media (min-width: 1440px) {
215
215
  .stories-container .inner {
216
- padding-left: 32px;
216
+ padding-inline-start: 32px;
217
217
  }
218
218
  }
219
219
  @media (min-width: 1440px) {
@@ -259,7 +259,7 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
259
259
  }
260
260
 
261
261
  .story-item {
262
- padding-bottom: 20px;
262
+ padding-block-end: 20px;
263
263
  margin: 0;
264
264
  animation: fadein 0.5s both cubic-bezier(0.19, 1, 0.22, 1);
265
265
  }
@@ -267,11 +267,11 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
267
267
  border-bottom: 1px solid var(--nav-rules, var(--tr-muted-grey));
268
268
  }
269
269
  .story-item:nth-child(3), .story-item:nth-child(4) {
270
- padding-top: 20px;
270
+ padding-block-start: 20px;
271
271
  }
272
272
  @media (max-width: 1023px) {
273
273
  .story-item:nth-child(2) {
274
- padding-top: 20px;
274
+ padding-block-start: 20px;
275
275
  }
276
276
  .story-item:nth-child(3) {
277
277
  border-bottom: 1px solid var(--nav-rules, var(--tr-muted-grey));
@@ -280,7 +280,7 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
280
280
 
281
281
  .spinner {
282
282
  width: 40px;
283
- margin-left: -20px;
283
+ margin-inline-start: -20px;
284
284
  position: absolute;
285
285
  top: 60px;
286
286
  left: 50%;
@@ -139,7 +139,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
139
139
  */
140
140
  /* Scales by 1.125 */
141
141
  .nav-bar {
142
- margin-left: auto;
142
+ margin-inline-start: auto;
143
143
  }
144
144
  @media (max-width: 745px) {
145
145
  .nav-bar {
@@ -41,5 +41,5 @@
41
41
  <style>div {
42
42
  min-height: 625px;
43
43
  width: calc(100% + 30px);
44
- margin-left: -15px;
44
+ margin-inline-start: -15px;
45
45
  }</style>
@@ -144,25 +144,25 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
144
144
  max-width: 1440px;
145
145
  }
146
146
  .main-bar {
147
- padding-left: 2.2222222222vw;
147
+ padding-inline-start: 2.2222222222vw;
148
148
  }
149
149
  .main-bar {
150
- padding-right: 2.2222222222vw;
150
+ padding-inline-end: 2.2222222222vw;
151
151
  }
152
152
  @media (max-width: 1023px) {
153
153
  .main-bar {
154
- padding-left: 4.2666666667vw;
154
+ padding-inline-start: 4.2666666667vw;
155
155
  }
156
156
  .main-bar {
157
- padding-right: 4.2666666667vw;
157
+ padding-inline-end: 4.2666666667vw;
158
158
  }
159
159
  }
160
160
  @media (min-width: 1440px) {
161
161
  .main-bar {
162
- padding-left: 32px;
162
+ padding-inline-start: 32px;
163
163
  }
164
164
  .main-bar {
165
- padding-right: 32px;
165
+ padding-inline-end: 32px;
166
166
  }
167
167
  }
168
168
  @media (max-width: 745px) {
@@ -188,7 +188,7 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
188
188
  }
189
189
 
190
190
  .spacer-container {
191
- margin-left: auto;
191
+ margin-inline-start: auto;
192
192
  display: flex;
193
193
  align-items: center;
194
194
  justify-content: flex-end;
@@ -209,7 +209,7 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
209
209
  }
210
210
 
211
211
  .mobile-button-group {
212
- margin-left: auto;
212
+ margin-inline-start: auto;
213
213
  display: flex;
214
214
  align-items: center;
215
215
  justify-content: flex-end;
@@ -221,7 +221,7 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
221
221
  }
222
222
 
223
223
  .mobile-menu {
224
- margin-left: 8px;
224
+ margin-inline-start: 8px;
225
225
  }
226
226
  @media (min-width: 746px) {
227
227
  .mobile-menu {
@@ -59,7 +59,7 @@
59
59
  }
60
60
  .spinner-container {
61
61
  height: 0;
62
- padding-bottom: 100%;
62
+ padding-block-end: 100%;
63
63
  color: var(--spinner-colour, #666);
64
64
  }
65
65
 
@@ -308,7 +308,7 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
308
308
  border-spacing: 0;
309
309
  }
310
310
  .table table thead tr th {
311
- border-bottom: 1px solid var(--theme-colour-text-primary);
311
+ border-block-end: 1px solid var(--theme-colour-text-primary);
312
312
  background-color: var(--theme-colour-background);
313
313
  text-align: inherit;
314
314
  }
@@ -319,19 +319,20 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
319
319
  .table table thead tr th .table--thead--sortarrow {
320
320
  display: inline-block;
321
321
  position: relative;
322
- top: 5px;
322
+ inset-inline-start: 5px;
323
323
  }
324
324
  .table table tbody td {
325
325
  font-size: var(--theme-font-size-sm);
326
326
  font-weight: 400;
327
+ font-variant-numeric: tabular-nums;
327
328
  vertical-align: top;
328
- border-bottom: 1px solid var(--theme-colour-brand-rules, var(--tr-muted-grey));
329
+ border-block-end: 1px solid var(--theme-colour-brand-rules, var(--tr-muted-grey));
329
330
  }
330
331
  .table table tbody td.no-results {
331
332
  color: var(--theme-colour-text-secondary);
332
333
  }
333
334
  .table table tfoot.table--tfoot tr {
334
- border-bottom: 0;
335
+ border-block-end: 0;
335
336
  }
336
337
  .table table tfoot.table--tfoot td {
337
338
  font-family: var(--theme-font-family-note);
@@ -339,11 +340,11 @@ https://utopia.fyi/space/calculator/?c=320,18,1.125,1280,21,1.25,7,3,&s=0.75|0.5
339
340
  font-size: var(--theme-font-size-xs);
340
341
  line-height: 1.3;
341
342
  font-weight: 400;
342
- margin-top: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
343
- margin-bottom: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
343
+ margin-block-start: clamp(0.31rem, 0.31rem + 0vw, 0.31rem);
344
+ margin-block-end: clamp(0.56rem, 0.52rem + 0.21vw, 0.69rem);
344
345
  }
345
346
  .table table.truncated tbody tr:last-child:not(:first-child) {
346
- border-bottom: none;
347
+ border-block-end: none;
347
348
  mask-image: linear-gradient(to bottom, var(--theme-colour-text-primary) 0%, transparent 100%);
348
349
  -webkit-mask-image: linear-gradient(to bottom, var(--theme-colour-text-primary) 0%, transparent 100%);
349
350
  }
@@ -15,4 +15,7 @@
15
15
  width: 1rem;
16
16
  fill: currentColor;
17
17
  }
18
+ :global([dir='rtl']) .icon {
19
+ transform: rotate(180deg);
20
+ }
18
21
  </style>
@@ -1,12 +1,12 @@
1
- export default LeftArrow;
2
- type LeftArrow = SvelteComponent<{
1
+ export default NextArrow;
2
+ type NextArrow = SvelteComponent<{
3
3
  [x: string]: never;
4
4
  }, {
5
5
  [evt: string]: CustomEvent<any>;
6
6
  }, {}> & {
7
7
  $$bindings?: string | undefined;
8
8
  };
9
- declare const LeftArrow: $$__sveltets_2_IsomorphicComponent<{
9
+ declare const NextArrow: $$__sveltets_2_IsomorphicComponent<{
10
10
  [x: string]: never;
11
11
  }, {
12
12
  [evt: string]: CustomEvent<any>;
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">
2
2
  import { intcomma } from 'journalize';
3
- import LeftArrow from './LeftArrow.svelte';
4
- import RightArrow from './RightArrow.svelte';
3
+ import PrevArrow from './PrevArrow.svelte';
4
+ import NextArrow from './NextArrow.svelte';
5
5
 
6
6
  interface Props {
7
7
  /**
@@ -49,7 +49,7 @@
49
49
  <nav aria-label="pagination" class="pagination fmt-4">
50
50
  <button onclick={goToPreviousPage} disabled={pageNumber === 1}
51
51
  ><div class="icon-wrapper">
52
- <LeftArrow />
52
+ <PrevArrow />
53
53
  <span class="visually-hidden">Previous page</span>
54
54
  </div></button
55
55
  >
@@ -62,7 +62,7 @@
62
62
  onclick={goToNextPage}
63
63
  disabled={pageNumber === Math.ceil(n / pageSize)}
64
64
  ><div class="icon-wrapper">
65
- <RightArrow />
65
+ <NextArrow />
66
66
  <span class="visually-hidden">Next page</span>
67
67
  </div></button
68
68
  >
@@ -79,6 +79,7 @@ nav.pagination {
79
79
  display: flex;
80
80
  justify-content: center;
81
81
  align-items: center;
82
+ flex-direction: row;
82
83
  }
83
84
  nav.pagination button {
84
85
  border: 1px solid var(--theme-colour-text-secondary, var(--tr-light-grey));
@@ -15,4 +15,7 @@
15
15
  width: 1rem;
16
16
  fill: currentColor;
17
17
  }
18
+ :global([dir='rtl']) .icon {
19
+ transform: rotate(180deg);
20
+ }
18
21
  </style>
@@ -1,12 +1,12 @@
1
- export default RightArrow;
2
- type RightArrow = SvelteComponent<{
1
+ export default PrevArrow;
2
+ type PrevArrow = SvelteComponent<{
3
3
  [x: string]: never;
4
4
  }, {
5
5
  [evt: string]: CustomEvent<any>;
6
6
  }, {}> & {
7
7
  $$bindings?: string | undefined;
8
8
  };
9
- declare const RightArrow: $$__sveltets_2_IsomorphicComponent<{
9
+ declare const PrevArrow: $$__sveltets_2_IsomorphicComponent<{
10
10
  [x: string]: never;
11
11
  }, {
12
12
  [evt: string]: CustomEvent<any>;
@@ -23,7 +23,7 @@
23
23
  }
24
24
  </script>
25
25
 
26
- <div class="select">
26
+ <div class="select relative inline-flex">
27
27
  <select
28
28
  class="select--input body-caption fpx-2"
29
29
  name="select--input"
@@ -34,6 +34,18 @@
34
34
  <option value={obj.value}>{obj.text} {label.toLowerCase()}</option>
35
35
  {/each}
36
36
  </select>
37
+ <div class="arrow absolute">
38
+ <svg
39
+ width="15"
40
+ height="9"
41
+ viewBox="0 0 15 9"
42
+ xmlns="http://www.w3.org/2000/svg"
43
+ ><path
44
+ d="M6.76474 8.30466L0.236082 1.54523C-0.0786943 1.21934 -0.0786943 0.69069 0.236082 0.364804C0.550521 0.0392666 1.19794 0.0403099 1.51305 0.364804L7.33483 6.49522L12.9249 0.475171C13.3549 0.0451683 14.1195 0.0396141 14.4339 0.365152C14.7487 0.691037 14.7487 1.21969 14.4339 1.54557L7.90492 8.30466C7.59015 8.63054 7.07952 8.63054 6.76474 8.30466Z"
45
+ fill="var(--theme-colour-brand-rules)"
46
+ /></svg
47
+ >
48
+ </div>
37
49
  </div>
38
50
 
39
51
  <style>.select {
@@ -48,11 +60,13 @@
48
60
  -moz-appearance: none; /* Firefox */
49
61
  -webkit-appearance: none; /* Safari and Chrome */
50
62
  appearance: none; /* Remove the default arrow */
51
- background: transparent;
52
- background-image: url('data:image/svg+xml;utf8,<svg width="15" height="9" viewBox="0 0 15 9" xmlns="http://www.w3.org/2000/svg"><path d="M6.76474 8.30466L0.236082 1.54523C-0.0786943 1.21934 -0.0786943 0.69069 0.236082 0.364804C0.550521 0.0392666 1.19794 0.0403099 1.51305 0.364804L7.33483 6.49522L12.9249 0.475171C13.3549 0.0451683 14.1195 0.0396141 14.4339 0.365152C14.7487 0.691037 14.7487 1.21969 14.4339 1.54557L7.90492 8.30466C7.59015 8.63054 7.07952 8.63054 6.76474 8.30466Z" fill="gray"/></svg>');
53
- background-repeat: no-repeat;
54
- background-position-x: 225px;
55
- background-position-y: 55%;
63
+ }
64
+ .select .arrow {
65
+ pointer-events: none;
66
+ inset-inline-end: 0;
67
+ inset-block-start: 0.55rem;
68
+ width: 1.5rem;
69
+ height: 1.5rem;
56
70
  }
57
71
  .select .select--input::-ms-expand {
58
72
  display: none; /* Remove the default arrow in Internet Explorer 11 */
@@ -17,6 +17,6 @@
17
17
  <style>
18
18
  div {
19
19
  width: calc(100% + 30px);
20
- margin-left: -15px;
20
+ margin-inline-start: -15px;
21
21
  }
22
22
  </style>