summaryrefslogtreecommitdiffstats
path: root/assets/sass/_markdown.scss
blob: 4241cafe3115351da9224bfa2d4da91ab9a4dca4 (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
// primer CSS markdown color remap
@mixin markdown-remap {
    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();

    img {
        border: 2px solid $color-secondary;
        border-radius: 1px;
    }
}

#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;
        }
    }
}