summaryrefslogtreecommitdiffstats
path: root/assets/sass/_markdown.scss
blob: 5ca2b70a8af358b54cf2503f65eac7b244790ecb (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
// primer CSS markdown color remap
@mixin markdown-remap {
    font-family: inherit !important;

    h1, h2, h3, h4, h5, h6 {
        color: $color-primary;
    }

    h1 {
        font-size: $font-size-l1;
        border-bottom: $spliter;
    }

    h2 {
        font-size: $font-size-l2;
        border-bottom: $spliter;
    }

    h3 {
        font-size: $font-size-l3;
    }

    h4, h5, h6 {
        font-size: $font-size-l4;
    }

    hr {
        background-color: $color-spliter;
    }

    ul {
        list-style-type: circle;
    }

    @include link-secondary();
}

#post-content {
    &.markdown-body {
        @include markdown-remap();
    }
}

#post-summary {
    &.markdown-body {
        @include markdown-remap();

        // do not show heads in summary
        h1, h2, h3, h4, h5, h6 {
            display: none;
        }
    }
}