+
Oct. 20, 2020
But then forces built up.
diff --git a/src/components/BeforeAfter/BeforeAfter.svelte b/src/components/BeforeAfter/BeforeAfter.svelte
index adf8250a..3a79ef3d 100644
--- a/src/components/BeforeAfter/BeforeAfter.svelte
+++ b/src/components/BeforeAfter/BeforeAfter.svelte
@@ -280,6 +280,7 @@
button.before-after-container {
box-sizing: content-box;
+ text-align: inherit;
img {
top: 0;
@@ -352,18 +353,18 @@
height: 0;
user-select: none;
position: relative;
- border-top: 10px solid transparent;
- border-bottom: 10px solid transparent;
+ border-block-start: 10px solid transparent;
+ border-block-end: 10px solid transparent;
}
.arrow-right {
- left: 19px;
- bottom: 14px;
- border-left: 10px solid var(--before-after-handle-colour);
+ inset-inline-start: 19px;
+ inset-block-end: 14px;
+ border-inline-start: 10px solid var(--before-after-handle-colour);
}
.arrow-left {
- left: 3px;
- top: 6px;
- border-right: 10px solid var(--before-after-handle-colour);
+ inset-inline-start: 3px;
+ inset-block-start: 6px;
+ border-inline-end: 10px solid var(--before-after-handle-colour);
}
}
diff --git a/src/components/Byline/Byline.stories.svelte b/src/components/Byline/Byline.stories.svelte
index 33705d5a..c79cffd9 100644
--- a/src/components/Byline/Byline.stories.svelte
+++ b/src/components/Byline/Byline.stories.svelte
@@ -9,7 +9,7 @@
argTypes: {
align: {
control: 'select',
- options: ['left', 'center'],
+ options: ['auto', 'center'],
},
},
});
diff --git a/src/components/Byline/Byline.svelte b/src/components/Byline/Byline.svelte
index ae41a269..c67cb91e 100644
--- a/src/components/Byline/Byline.svelte
+++ b/src/components/Byline/Byline.svelte
@@ -21,7 +21,7 @@
/**
* Alignment of the byline.
*/
- align?: 'left' | 'center';
+ align?: 'auto' | 'center';
/**
* Add an id to to target with custom CSS.
* @type {string}
@@ -54,7 +54,7 @@
authors = [],
publishTime,
updateTime,
- align = 'left',
+ align = 'auto',
id = '',
cls = '',
getAuthorPage = getAuthorPageUrl,
@@ -63,7 +63,7 @@
updated,
}: Props = $props();
- let alignmentClass = $derived(align === 'left' ? 'text-left' : 'text-center');
+ let alignmentClass = $derived(align === 'center' ? 'text-center' : '');
/**
/* Date validation and formatter functions
diff --git a/src/components/SearchInput/SearchInput.svelte b/src/components/SearchInput/SearchInput.svelte
index 01e78d05..831f2c34 100644
--- a/src/components/SearchInput/SearchInput.svelte
+++ b/src/components/SearchInput/SearchInput.svelte
@@ -57,8 +57,8 @@
.search {
width: 250px;
.search--icon {
- left: 0.5rem;
- top: 0.55rem;
+ inset-inline-start: 0.5rem;
+ inset-block-start: 0.55rem;
width: 1.5rem;
height: 1.5rem;
fill: mixins.$theme-colour-brand-rules;
@@ -71,8 +71,8 @@
width: 100%;
}
.search--x {
- right: 0;
- top: 0.55rem;
+ inset-inline-end: 0;
+ inset-block-start: 0.55rem;
width: 1.5rem;
height: 1.5rem;
fill: mixins.$theme-colour-text-primary;
diff --git a/src/components/SimpleTimeline/SimpleTimeline.svelte b/src/components/SimpleTimeline/SimpleTimeline.svelte
index ea292d9c..0a13767d 100644
--- a/src/components/SimpleTimeline/SimpleTimeline.svelte
+++ b/src/components/SimpleTimeline/SimpleTimeline.svelte
@@ -95,15 +95,15 @@
@use '../../scss/mixins' as mixins;
.timeline {
.date {
- border-left: 1px solid var(--symbol-colour);
+ border-inline-start: 1px solid var(--symbol-colour);
&:last-child {
- border-left: 1px solid mixins.$theme-colour-background;
+ border-inline-start: 1px solid mixins.$theme-colour-background;
@include mixins.fpb-0;
}
}
svg {
- top: -1px;
- left: -10px;
+ inset-block-start: -1px;
+ inset-inline-start: -10px;
}
div.title {
@include mixins.fmt-2;
diff --git a/src/components/Table/Table.svelte b/src/components/Table/Table.svelte
index 1a4a442a..0cd90bb7 100644
--- a/src/components/Table/Table.svelte
+++ b/src/components/Table/Table.svelte
@@ -304,7 +304,7 @@
thead {
tr {
th {
- border-bottom: 1px solid var(--theme-colour-text-primary);
+ border-block-end: 1px solid var(--theme-colour-text-primary);
@include mixins.bg;
text-align: inherit;
&.sortable {
@@ -314,7 +314,7 @@
.table--thead--sortarrow {
display: inline-block;
position: relative;
- top: 5px;
+ inset-inline-start: 5px;
}
}
}
@@ -325,7 +325,7 @@
@include mixins.font-regular;
font-variant-numeric: tabular-nums;
vertical-align: top;
- border-bottom: 1px solid
+ border-block-end: 1px solid
var(--theme-colour-brand-rules, var(--tr-muted-grey));
&.no-results {
@include mixins.text-secondary;
@@ -334,7 +334,7 @@
}
tfoot.table--tfoot {
tr {
- border-bottom: 0;
+ border-block-end: 0;
}
td {
@include mixins.body-caption;
@@ -342,7 +342,7 @@
}
&.truncated {
tbody tr:last-child:not(:first-child) {
- border-bottom: none;
+ border-block-end: none;
mask-image: linear-gradient(
to bottom,
var(--theme-colour-text-primary) 0%,
diff --git a/src/components/Table/components/RightArrow.svelte b/src/components/Table/components/NextArrow.svelte
similarity index 86%
rename from src/components/Table/components/RightArrow.svelte
rename to src/components/Table/components/NextArrow.svelte
index cbc5acaa..3749a681 100644
--- a/src/components/Table/components/RightArrow.svelte
+++ b/src/components/Table/components/NextArrow.svelte
@@ -15,4 +15,7 @@
width: 1rem;
fill: currentColor;
}
+ :global([dir='rtl']) .icon {
+ transform: rotate(180deg);
+ }
diff --git a/src/components/Table/components/Pagination.svelte b/src/components/Table/components/Pagination.svelte
index 254215d5..10f3443e 100644
--- a/src/components/Table/components/Pagination.svelte
+++ b/src/components/Table/components/Pagination.svelte
@@ -1,7 +1,7 @@
-
+
+