aboutsummaryrefslogtreecommitdiff
path: root/assets/_markdown.scss
blob: cb62a2f50879e93154d491c95804634d8999ec5c (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
@import 'variables';

$block-border-radius: 0.15rem;

.markdown {
  line-height: 1.7;

  > :first-child {
    margin-top: 0;
    line-height: 1em;
  }

  h1, h2, h3, h4, h5 {
    font-weight: 400;
    line-height: 1.25;
  }

  b, optgroup, strong {
    font-weight: 700;
  }
  
  a {
    text-decoration: none;

    &:hover {
      text-decoration: underline;
    }
  }

  code {
    font-family: 'Oxygen Mono', monospace;
  }

  p code {
    padding: 0 $padding-4;
    background: $gray-100;
    border-radius: $block-border-radius;
  }

  pre {
    padding: $padding-16;
    background: $gray-100;
    border-radius: $block-border-radius;
    font-size: $font-size-14;
    overflow-x: auto;
  }

  blockquote {
    border-left: $padding-1*2 solid $gray-300;
    margin: 0;
    padding: $padding-1 $padding-16;

    :first-child { margin-top: 0; }
    :last-child { margin-bottom: 0; }
  }

  table tr td {
    padding: $padding-8;
  }
}