aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/lists/description-list.module.scss
blob: caa2711e0216fae7ec40d86a91207c41aed28282 (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
46
47
48
49
50
51
52
53
54
@use "@styles/abstracts/mixins" as mix;

.list {
  display: flex;
  flex-flow: column wrap;
  gap: var(--spacing-2xs);
  margin: 0;

  &__term {
    flex: 0 0 max-content;
    color: var(--color-fg-light);
    font-weight: 600;
  }

  &__description {
    flex: 0 0 auto;
    margin: 0;
  }

  &__item {
    display: flex;
  }

  &--inline &__item {
    flex-flow: column wrap;

    @include mix.media("screen") {
      @include mix.dimensions("xs") {
        flex-flow: row wrap;
        gap: var(--spacing-2xs);

        .list__description:not(:first-of-type) {
          &::before {
            content: "/";
            margin-right: var(--spacing-2xs);
          }
        }
      }
    }
  }

  &--column#{&}--responsive {
    @include mix.media("screen") {
      @include mix.dimensions("xs") {
        flex-flow: row wrap;
        gap: var(--spacing-lg);
      }
    }
  }

  &--column &__item {
    flex-flow: column wrap;
  }
}