aboutsummaryrefslogtreecommitdiff
path: root/scss/tag.scss
blob: 075f3aba2c4e1714521a9e54d255340b413f5663 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@use "vars";

.tags {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 1rem;
  column-gap: 2rem;
  row-gap: 1rem;
  @media only screen and (max-width: vars.$bp-little) {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }
  & h4 {
    @media only screen and (max-width: vars.$bp-little) {
      margin-bottom: 0.5rem;
    }
  }
  & p {
    display: block;
    margin-top: 0.5rem;
  }
}

.tag {
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  @media only screen and (max-width: vars.$bp-little) {
    cursor: auto;
  }
  &.active {
    & h4 {
      margin-bottom: 0.5rem;
    }
    & p {
      display: block;
    }
  }
  &:hover {
    background: var(--tag-hover);
    & h4 {
      font-weight: bold;
    }
  }
}