summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorJoe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com>2023-12-21 21:21:30 +0000
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2024-01-12 08:29:08 +0000
commit5d5e2f8aa5c4030c33bf06f2cb817b9d770cc884 (patch)
tree1ef67a95bec53331eeba34787e6edc03a2fd9bb1 /src/components
parent9102fe8bcd13c01bf7bae462e013c920cae9f52f (diff)
Improve CSS reset (#51)
* Font size inflation * Removes main adjustment for IE * Documents hr corrections * Documents pre corrections * Documents abbr[title] corrections * Documents b, strong corrections * Squishes pre rule with code,kbd,samp * Documents sub,sub line-height fix * Removes IE fix for img borders * Documents form control resets * Documents details display:block * Documents summary correction * Removes [hidden] fix for IE * Adds border-box sizing rules * Refactors links
Diffstat (limited to 'src/components')
-rw-r--r--src/components/LallansIssuesGallery.astro2
-rw-r--r--src/components/Link.astro9
-rw-r--r--src/components/Navbar/Breadcrumbs.astro4
-rw-r--r--src/components/ScotsounCdGallery.astro2
-rw-r--r--src/components/SwitchLanguageLink.astro2
5 files changed, 4 insertions, 15 deletions
diff --git a/src/components/LallansIssuesGallery.astro b/src/components/LallansIssuesGallery.astro
index fd0ad0a..3e79de9 100644
--- a/src/components/LallansIssuesGallery.astro
+++ b/src/components/LallansIssuesGallery.astro
@@ -17,7 +17,7 @@ function issueNumberDescending(issue1: LallansIssue, issue2: LallansIssue) {
issues.map(async (issue) => (
<li>
<a
- class="link link-gallery__container"
+ class="link-gallery__container"
href={`/${locale}/furthsettins/lallans/${issue.issueNumber}`}
>
<Image src={issue.img.width192} alt="" />
diff --git a/src/components/Link.astro b/src/components/Link.astro
deleted file mode 100644
index 365441e..0000000
--- a/src/components/Link.astro
+++ /dev/null
@@ -1,9 +0,0 @@
----
-interface Props {
- href: string;
-}
-
-const { href } = Astro.props;
----
-
-<a class="link" href={href}><slot /></a>
diff --git a/src/components/Navbar/Breadcrumbs.astro b/src/components/Navbar/Breadcrumbs.astro
index 1e82fd9..f949873 100644
--- a/src/components/Navbar/Breadcrumbs.astro
+++ b/src/components/Navbar/Breadcrumbs.astro
@@ -23,9 +23,7 @@ const t = translate(locale);
parentRoutes.map((route) => {
return (
<li>
- <a class="link" href={`/${locale}${route}`}>
- {t(tBreadcrumbs, { key: route })}
- </a>
+ <a href={`/${locale}${route}`}>{t(tBreadcrumbs, { key: route })}</a>
</li>
);
})
diff --git a/src/components/ScotsounCdGallery.astro b/src/components/ScotsounCdGallery.astro
index d2c7e0b..3908f4d 100644
--- a/src/components/ScotsounCdGallery.astro
+++ b/src/components/ScotsounCdGallery.astro
@@ -17,7 +17,7 @@ function scotsounIdDescending(scotsoun1: Scotsoun, scotsoun2: Scotsoun) {
scotsoun.map((scotsounItem) => (
<li>
<a
- class="link link-gallery__container"
+ class="link-gallery__container"
href={`/${locale}/furthsettins/scotsoun/${scotsounItem.scotsounId}`}
>
<Image src={scotsounItem.img.width192} alt="" />
diff --git a/src/components/SwitchLanguageLink.astro b/src/components/SwitchLanguageLink.astro
index fce633f..abbf0cb 100644
--- a/src/components/SwitchLanguageLink.astro
+++ b/src/components/SwitchLanguageLink.astro
@@ -20,7 +20,7 @@ const otherLocalePath = currentPath
const t = translate(otherLocale);
---
-<a class="link nav__switch-language-link" href={otherLocalePath}>
+<a class="nav__switch-language-link" href={otherLocalePath}>
{
t(tPage, {
key: 'language-link-text',