8000 Add css for blockquote and references/citations (#482) · pydata/pydata-sphinx-theme@a62c05c · GitHub
[go: up one dir, main page]

Skip to content

Commit a62c05c

Browse files
authored
Add css for blockquote and references/citations (#482)
1 parent 8fa0080 commit a62c05c

File tree

4 files changed

+27
-4
lines changed

4 files changed

+27
-4
lines changed

pydata_sphinx_theme/static/css/index.ef515bf865743bbaed9984579188973e.css renamed to pydata_sphinx_theme/static/css/index.adfc57296990d4b2f3a187d629e201b3.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pydata_sphinx_theme/static/webpack-macros.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
{% macro head_pre_bootstrap() %}
1515
<link href="{{ pathto('_static/css/theme.css', 1) }}" rel="stylesheet">
16-
<link href="{{ pathto('_static/css/index.ef515bf865743bbaed9984579188973e.css', 1) }}" rel="stylesheet">
16+
<link href="{{ pathto('_static/css/index.adfc57296990d4b2f3a187d629e201b3.css', 1) }}" rel="stylesheet">
1717
{% endmacro %}
1818

1919
{% macro head_js_preload() %}
20-
<link rel="preload" as="script" href="{{ pathto('_static/js/index.9c9e368bceed924a6569.js', 1) }}">
20+
<link rel="preload" as="script" href="{{ pathto('_static/js/index.bf9e07489fed6cf49b0d.js', 1) }}">
2121
{% endmacro %}
2222

2323
{% macro body_post() %}
24-
<script src="{{ pathto('_static/js/index.9c9e368bceed924a6569.js', 1) }}"></script>
24+
<script src="{{ pathto('_static/js/index.bf9e07489fed6cf49b0d.js', 1) }}"></script>
2525
{% endmacro %}

src/scss/index.scss

Expand all lines: src/scss/index.scss
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,29 @@ $grid-breakpoints: (
2525
@import './api';
2626

2727
// Custom css, TODO: to be refactored in different partials
28+
// GitHub blockquote style
29+
blockquote {
30+
padding: 0 1em;
31+
color: #6a737d;
32+
border-left: .25em solid #dfe2e5;
33+
}
34+
35+
// For consistency, add bracket around footnotes/citations which are
36+
// cited more than once. E.g. [Newton](1,2) instead of Newton(1,2)
37+
dt.label > span.brackets:not(:only-child):before {
38+
content: "[";
39+
}
40+
41+
dt.label > span.brackets:not(:only-child):after {
42+
content: "]";
43+
}
44+
68F4
45+
// Make footnote as a supercript
46+
a.footnote-reference {
47+
vertical-align: super;
48+
font-size: small;
49+
}
50+
2851
div.deprecated {
2952
margin-bottom: 10px;
3053
margin-top: 10px;

0 commit comments

Comments
 (0)
0