Skip to content

Commit

Permalink
Fix #1078: Citation not styled properly
Browse files Browse the repository at this point in the history
Turns out our demo docs werent being rendered by sphinx as citations so this may have slipped though the sphinx 2 fixes.

I updated the demo docs and included the need style fixes.
  • Loading branch information
Blendify committed Mar 12, 2021
1 parent b356376 commit 2e89419
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
6 changes: 2 additions & 4 deletions docs/demo/demo.rst
Expand Up @@ -264,17 +264,15 @@ Footnotes
Citations
---------

.. [11] This is the citation I made, let's make this extremely long so that we can tell that it doesn't follow the normal responsive table stuff.
.. [Citation] This is the citation I made, let's make this extremely long so that we can tell that it doesn't follow the normal responsive table stuff.
.. [12] This citation has some ``code blocks`` in it, maybe some **bold** and
*italics* too. Heck, lets put a link to a meta citation [13]_ too.
.. [13] This citation will have two backlinks.
Here's a reference to the above, [12]_, and a [nonexistent]_ citation.

Here is another type of citation: `citation`
Here's a reference to the above, [Citation]_, and a [nonexistent]_ citation.

Glossary
--------
Expand Down
9 changes: 4 additions & 5 deletions src/sass/_theme_rst.sass
Expand Up @@ -278,8 +278,7 @@
dl dt span.classifier
&:before
content: " : "
dl.footnote,
dl.field-list
dl.footnote, dl.citation, dl.field-list
display: grid
grid-template-columns: max-content auto
> dt
Expand All @@ -288,7 +287,7 @@
content: ":"
> dt, > dd
margin-bottom: 0rem
dl.footnote
dl.footnote, dl.citation
font-size: .9rem
> dt
margin: 0rem .5rem .5rem 0rem
Expand All @@ -313,7 +312,7 @@
font-size: .9rem
// Both
html.writer-html4 & table.docutils.citation, table.docutils.footnote,
html.writer-html5 & dl.footnote
html.writer-html5 & dl.footnote, dl.citation
color: $text-medium
code
color: $gray
Expand Down Expand Up @@ -398,7 +397,7 @@
margin: 0 0 $base-line-height / 2 $base-line-height
line-height: $base-line-height
html.writer-html4 & dl:not(.docutils),
html.writer-html5 & dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple)
html.writer-html5 & dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.glossary):not(.simple):not(.citation)
margin-bottom: $base-line-height
> dt
display: table
Expand Down

0 comments on commit 2e89419

Please sign in to comment.