summaryrefslogtreecommitdiff
path: root/scss/modules/news-index.scss
diff options
context:
space:
mode:
authorJoe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com>2023-10-20 13:45:52 +0100
committerGitHub <noreply@github.com>2023-10-20 13:45:52 +0100
commit58a6b29df62f95f68baa0fcc7c8b5b053d409ea6 (patch)
tree46ffa547685292dc2907da64275f514ea25a68f4 /scss/modules/news-index.scss
parent958457be8626148a9559716caf032bb54c10bbdc (diff)
parentb2e3ed96b703f49af556d641eae57c1c4fcd8db0 (diff)
Merge pull request #20 from Sycamost/dev
Dev
Diffstat (limited to 'scss/modules/news-index.scss')
-rw-r--r--scss/modules/news-index.scss31
1 files changed, 31 insertions, 0 deletions
diff --git a/scss/modules/news-index.scss b/scss/modules/news-index.scss
new file mode 100644
index 0000000..0050f70
--- /dev/null
+++ b/scss/modules/news-index.scss
@@ -0,0 +1,31 @@
+.news-index__item {
+ display: block;
+ box-sizing: border-box;
+ border: var(--relative-eighth-rem) solid var(--text-color);
+ transition: background 100ms;
+ padding-block: var(--margin-block-md);
+ padding-inline: var(--padding-inline-sm);
+ width: var(--width-prose);
+}
+
+.news-index__item:not(:first-child) {
+ border-top-width: 0;
+}
+
+.news-index__item:is(:hover, :focus, :focus-visible, :focus-within) {
+ outline: none;
+ box-shadow: none;
+ color: var(--text-highlight-color);
+ border-color: var(--background-highlight-color);
+ background: var(--background-highlight-color);
+ transition-duration: 300ms;
+}
+
+.news-index__item:is(:hover, :focus, :focus-visible, :focus-within) .link {
+ color: var(--special-text-highlight-color);
+}
+
+.news-index__item:is(:focus, :focus-visible, :focus-within) {
+ border-color: var(--special-text-highlight-color);
+ border-style: dotted;
+} \ No newline at end of file