summaryrefslogtreecommitdiffstats
path: root/src/components/molecules/layout/card.module.scss
blob: 2b1b7dccc81f6e328dbeb344581e32f97d291924 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@use "@styles/abstracts/functions" as fun;

.wrapper {
  --scale-up: 1.05;
  --scale-down: 0.95;

  display: flex;
  flex-flow: column wrap;
  max-width: var(--card-width, 40ch);
  padding: 0;
  text-align: center;

  .article {
    flex: 1;
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-start;
  }

  .footer {
    margin-top: var(--spacing-md);
  }

  .cover {
    align-self: flex-start;
    max-height: fun.convert-px(150);
    margin: auto;
    border-bottom: fun.convert-px(1) solid var(--color-border);
  }

  .title,
  .tagline,
  .footer {
    padding: 0 var(--spacing-md);
  }

  .title {
    flex: 1;
    margin: var(--spacing-sm) 0;
  }

  h2.title {
    background: none;
    text-shadow: none;
  }

  .tagline {
    flex: 1;
    color: var(--color-fg);
    font-weight: 400;
  }

  .list {
    margin-bottom: var(--spacing-md);
  }

  .items {
    flex-flow: row wrap;
    place-content: center;
    gap: var(--spacing-2xs);
  }

  .term {
    flex: 0 0 100%;
  }

  .description {
    padding: fun.convert-px(2) var(--spacing-xs);
    border: fun.convert-px(1) solid var(--color-primary-darker);
    color: var(--color-fg);
    font-weight: 400;

    &::before {
      display: none;
    }
  }
}