summaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/summary.module.scss
blob: 9d28bc6e7f5e06019836f2007078948fad69103c (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
@use "@styles/abstracts/functions" as fun;
@use "@styles/abstracts/mixins" as mix;

.wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--spacing-md);
  row-gap: var(--spacing-sm);
  padding: var(--spacing-2xs) 0 var(--spacing-lg);

  @include mix.media("screen") {
    @include mix.dimensions("xs") {
      padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-md);
      border: fun.convert-px(1) solid var(--color-primary-dark);
      border-radius: fun.convert-px(3);
      box-shadow: fun.convert-px(1) fun.convert-px(1) fun.convert-px(1) 0
          var(--color-shadow),
        fun.convert-px(3) fun.convert-px(3) fun.convert-px(3) fun.convert-px(-1)
          var(--color-shadow-light),
        fun.convert-px(5) fun.convert-px(5) fun.convert-px(7) fun.convert-px(-1)
          var(--color-shadow-light);
    }

    @include mix.dimensions("sm") {
      grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
      grid-template-rows: repeat(3, max-content);
    }
  }

  &:hover {
    .icon {
      transform: scaleX(1.4);
      transform-origin: left;
    }
  }
}

.cover {
  display: inline-flex;
  flex-flow: column nowrap;
  justify-content: center;
  width: auto;
  height: fun.convert-px(100);
  max-width: 100%;
  border: fun.convert-px(1) solid var(--color-border);

  @include mix.media("screen") {
    @include mix.dimensions("sm") {
      grid-column: 2;
      grid-row: 1;
    }
  }
}

.header {
  @include mix.media("screen") {
    @include mix.dimensions("sm") {
      grid-column: 1;
      grid-row: 1;
      align-self: center;
    }
  }
}

.body {
  @include mix.media("screen") {
    @include mix.dimensions("sm") {
      grid-column: 1;
      grid-row: 2;
    }
  }
}

.footer {
  @include mix.media("screen") {
    @include mix.dimensions("sm") {
      grid-column: 2;
      grid-row: 2 / 4;
    }
  }
}

.title {
  margin: 0;
  background: none;
  color: inherit;
  font-size: var(--font-size-2xl);
  text-shadow: none;
}

.read-more {
  display: flex;
  flex-flow: row nowrap;
  column-gap: var(--spacing-xs);
  width: max-content;
  margin: var(--spacing-sm) 0 0;
}

.meta {
  flex-flow: row wrap;
  font-size: var(--font-size-sm);

  &__item {
    flex: 1 0 min(calc(100vw - 2 * var(--spacing-md)), 14ch);
  }

  @include mix.media("screen") {
    @include mix.dimensions("sm") {
      display: flex;
      margin-top: 0;
    }
  }
}