summaryrefslogtreecommitdiff
path: root/www/src/components/Article.astro
blob: 283d79d91b87836841b7a36fc415c1142a0ef152 (plain) (blame)
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
<article>
    <slot></slot>
</article>

<style lang="scss">
    article {
      text-align: left;
      line-height: 1.5;
      display: flex;
      flex-direction: column;
    }
    :global(article > * + *) {
      margin-top: 1rem;
    }
    h1 {
      font-family: var(--font-sans);
      font-weight: 400;
      font-size: 16px;
      overflow: hidden;
      width: 100%;
    }
    em {
      font-style: normal;
      color: var(--color-green);
    }
    a {
      color: rgba(255, 255, 255, 0.8);
      position: relative;
      display: flex;
      font-family: var(--font-mono);
      font-size: 1rem;
      font-weight: 700;
      text-decoration: none;
      height: 40px;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding-left: 24px;
      padding-right: 24px;
      width: max-content;
      margin: 2.5rem auto;
    }
    a:hover,
    a:focus {
      background: white;
      color: black;
    }

    a::before,
    a::after {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      bottom: 0;
      width: 8px;
      border: 2px solid white;
      border-left-style: dotted;
      border-right-style: dotted;
    }
    a::before {
      border-right: 0;
      left: 0;
    }
    a::after {
      border-left: 0;
      right: 0;
    }
</style>