aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/static/css/content/page.css
blob: 3ac41d1b8bd9e409d80d6c98ccca078bb79b849f (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
70
.breadcrumb-section {
    padding: 1rem;
}

i.has-icon-padding {
    padding: 0 10px 25px 0;
}

/*
 * Move padding padding from <pre> tag to hljs <code> tags so the padding
 * space is colored the same as the background of hljs <code> blocks.
 */
.content pre {
    padding: 0;
}

code.hljs {
    padding: 1.75em 2em;
}

/*
 * Show header permalink on hover.
 */
.headerlink {
    display: none;
    padding-left: 0.5em;
}

:is(h1, h2, h3, h4, h5, h6):hover > .headerlink {
    display: inline;
}

/*
 * Display <em> tags immediately following <img> tags like figure subcaptions.
 * Note: There must not be a newline between the image and the italicized line
 * for this to work. Otherwise, it's regular markdown.
 *
 * Image caption:
 *
 * ![Title](Source)
 * *This is my caption.*
 *
 */
img + em {
    /* Place the caption on it's own line */
    display: block;
    white-space: pre;

    /* Style */
    font-size: .875em;
}

/*
 * Remove extra padding on the left of TOC items
 */
ul.menu-list.toc {
    margin-left: 0;
}

/*
 * Remove bullets set by the markdown extension, since bulma adds vertical
 * lines to represent nesting
 */
.toc li {
    list-style-type: none;
}
/* ..but we still want bullets on the top <ul> items */
.toc > ul > li {
    list-style-type: disc;
}