From 06bf6af3c898e82f1e225f875e7455fac5c10ff9 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Fri, 18 Aug 2023 20:56:21 +0100 Subject: Pulls out link module --- public/css/modules/index.css | 3 ++- public/css/modules/link.css | 25 +++++++++++++++++++++++++ public/main.css | 30 ------------------------------ 3 files changed, 27 insertions(+), 31 deletions(-) create mode 100644 public/css/modules/link.css (limited to 'public') diff --git a/public/css/modules/index.css b/public/css/modules/index.css index 78fbd69..0a778e1 100644 --- a/public/css/modules/index.css +++ b/public/css/modules/index.css @@ -1 +1,2 @@ -@import './btn.css'; \ No newline at end of file +@import './btn.css'; +@import './link.css'; \ No newline at end of file diff --git a/public/css/modules/link.css b/public/css/modules/link.css new file mode 100644 index 0000000..005c82e --- /dev/null +++ b/public/css/modules/link.css @@ -0,0 +1,25 @@ +.link { + color: var(--special-text-color); + text-decoration: underline; + text-decoration-color: var(--special-text-color); + border: dotted transparent 2px; + border-radius: 0.375rem; + transition: + text-decoration-color 300ms, + color 300ms, + border-color 300ms, + font-weight 300ms; +} + +.link:hover, .group-hover:hover .link { + text-decoration-color: transparent; +} + +.link:focus { + border-color: var(--special-text-color); +} + +.link:active { + font-weight: 700; + color: var(--special-text-highlight-color); +} \ No newline at end of file diff --git a/public/main.css b/public/main.css index 4c5276a..598ee65 100644 --- a/public/main.css +++ b/public/main.css @@ -53,32 +53,6 @@ p:not(:first) { margin-block-start: var(--spacing-block-md); } -.link { - color: var(--special-text-color); - text-decoration: underline; - text-decoration-color: var(--special-text-color); - border: dotted transparent 2px; - border-radius: 0.375rem; - transition: - text-decoration-color 300ms, - color 300ms, - border-color 300ms, - font-weight 300ms; -} - -.link:hover { - text-decoration-color: transparent; -} - -.link:focus { - border-color: var(--special-text-color); -} - -.link:active { - font-weight: 700; - color: var(--special-text-highlight-color); -} - td { padding-block-start: var(--spacing-block-sm); } @@ -151,10 +125,6 @@ ol li { transition-duration: 300ms; } -.news-index__item:hover .link { - text-decoration-color: transparent; -} - .news-index__item :first-child { margin-block-start: 0; } -- cgit v1.2.3