diff options
| author | Joe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com> | 2024-01-19 09:33:11 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-19 09:33:11 +0000 |
| commit | 7140956da0820d4b818119eff7dfc72345f3328e (patch) | |
| tree | 503e1129a999fe834d2a7b98a4e82bf07264f49f /scss/modules/_news-index.scss | |
| parent | a4f3cb02befe658594c076144be2e5200f36682a (diff) | |
| parent | 83c3460191a2089b56b091a7f4e09f39ac636e1e (diff) | |
Merge pull request #65 from joeacarstairs/deployment-staging
Update production
Diffstat (limited to 'scss/modules/_news-index.scss')
| -rw-r--r-- | scss/modules/_news-index.scss | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/scss/modules/_news-index.scss b/scss/modules/_news-index.scss new file mode 100644 index 0000000..b235edd --- /dev/null +++ b/scss/modules/_news-index.scss @@ -0,0 +1,36 @@ +.news-index__item { + display: block; + box-sizing: border-box; + border: var(--border-width) solid var(--text-color); + transition: background 100ms; + padding-block: var(--spacing-block-md); + padding-inline: var(--spacing-inline-sm); + width: var(--width-prose); +} + +a.news-index__item { + text-decoration: none; + color: var(--text-color); +} + +.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; +} |
