aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Comment/Comment.module.scss
blob: a952f66b3ff7418d278db281f3bbe64a5ed5e705 (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
pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888888 } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { color: #008800; font-weight: bold } /* Keyword */
.highlight .ch { color: #888888 } /* Comment.Hashbang */
.highlight .cm { color: #888888 } /* Comment.Multiline */
.highlight .cp { color: #cc0000; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888888 } /* Comment.Single */
.highlight .cs { color: #cc0000; font-weight: bold; background-color: #fff0f0 } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highli
@use "@styles/abstracts/functions" as fun;
@use "@styles/abstracts/mixins" as mix;

.item {
  margin: var(--spacing-sm) 0;
}

.wrapper {
  background: var(--color-bg);
  border: fun.convert-px(1) solid var(--color-border-light);
  box-shadow: fun.convert-px(3) fun.convert-px(3) 0 0
      var(--color-shadow-lighter),
    fun.convert-px(4) fun.convert-px(4) fun.convert-px(3) fun.convert-px(-2)
      var(--color-shadow-light);
  padding: var(--spacing-md);
  position: relative;

  @include mix.media("screen") {
    @include mix.dimensions("sm") {
      display: grid;
      grid-template-columns: minmax(#{fun.convert-px(150)}, 1fr) minmax(0, 85ch);
      column-gap: var(--spacing-lg);
    }
  }
}

.header {
  display: flex;
  flex-flow: column wrap;
  align-items: center;
  row-gap: var(--spacing-sm);

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

.avatar {
  width: fun.convert-px(85);
  height: fun.convert-px(85);
  margin: 0 auto;
  border-radius: fun.convert-px(3);
  box-shadow: 0 0 0 fun.convert-px(1) var(--color-shadow-lighter),
    fun.convert-px(2) fun.convert-px(2) 0 fun.convert-px(1)
      var(--color-shadow-light);
  position: relative;

  img {
    border-radius: fun.convert-px(3);
  }
}

.author {
  color: var(--color-primary-darker);
  font-weight: 600;
  text-align: center;
}

.date {
  color: var(--color-fg-secondary);
  font-size: var(--font-size-sm);
  display: flex;
  flex-flow: row wrap;
  column-gap: var(--spacing-2xs);
  justify-content: center;
  margin: var(--spacing-md) 0;

  @include mix.media("screen") {
    @include mix.dimensions("sm") {
      justify-content: left;
      margin: 0 0 var(--spacing-md);
    }
  }
}

.body {
  overflow-wrap: break-word;
}

.footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: var(--spacing-md) 0 0;

  @include mix.media("screen") {
    @include mix.dimensions("sm") {
      padding: var(--spacing-sm) 0 0;
    }
  }

  button {
    margin: 0;
  }
}

.list {
  padding-left: var(--spacing-md);
}