summaryrefslogtreecommitdiff
path: root/public/css/modules/news-index.css
blob: 48c455d22d2bfd1b6aad47b479f17396de6f501e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.news-index__item {
  display: block;
  box-sizing: border-box;
  border: 2px solid var(--text-color);
  transition: background 100ms;
  padding-block: var(--margin-block-md);
  padding-inline: var(--padding-inline-sm);
}

.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;
}