mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Merge branch 'master' into davidfischer/native-code-font-stack
This commit is contained in:
commit
23094a4ff6
@ -16,6 +16,7 @@ Other Changes
|
|||||||
--------------
|
--------------
|
||||||
|
|
||||||
* Changed code and literals to use a native font stack (#612)
|
* Changed code and literals to use a native font stack (#612)
|
||||||
|
* Fix small styling issues
|
||||||
|
|
||||||
v0.3.1
|
v0.3.1
|
||||||
======
|
======
|
||||||
|
@ -22,7 +22,7 @@ function ThemeNav () {
|
|||||||
// out from the RTD assets. This just ensures old projects that are
|
// out from the RTD assets. This just ensures old projects that are
|
||||||
// calling `enable()` get the sticky menu on by default. All other cals
|
// calling `enable()` get the sticky menu on by default. All other cals
|
||||||
// to `enable` should include an argument for enabling the sticky menu.
|
// to `enable` should include an argument for enabling the sticky menu.
|
||||||
if (typeof(withStickNav) == 'undefined') {
|
if (typeof(withStickyNav) == 'undefined') {
|
||||||
withStickyNav = true;
|
withStickyNav = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -132,6 +132,7 @@
|
|||||||
.line-block
|
.line-block
|
||||||
margin-left: 0px
|
margin-left: 0px
|
||||||
margin-bottom: $base-line-height
|
margin-bottom: $base-line-height
|
||||||
|
line-height: $base-line-height
|
||||||
.line-block .line-block
|
.line-block .line-block
|
||||||
margin-left: $base-line-height
|
margin-left: $base-line-height
|
||||||
margin-bottom: 0px
|
margin-bottom: 0px
|
||||||
@ -246,6 +247,9 @@
|
|||||||
border-color: $table-border-color
|
border-color: $table-border-color
|
||||||
&:not(.field-list)
|
&:not(.field-list)
|
||||||
@extend .wy-table-striped
|
@extend .wy-table-striped
|
||||||
|
// Remove bottom margin for the last element (and it's last child)
|
||||||
|
td .last, td .last :last-child
|
||||||
|
margin-bottom: 0
|
||||||
// This table is what gets spit out for auto-generated API stuff. I style it smaller bits of padding.
|
// This table is what gets spit out for auto-generated API stuff. I style it smaller bits of padding.
|
||||||
table.field-list
|
table.field-list
|
||||||
@extend .wy-table
|
@extend .wy-table
|
||||||
@ -285,12 +289,14 @@
|
|||||||
margin-bottom: $base-line-height
|
margin-bottom: $base-line-height
|
||||||
dt
|
dt
|
||||||
font-weight: bold
|
font-weight: bold
|
||||||
|
margin-bottom: $base-line-height / 2
|
||||||
// Most of the content within these dls are one liners, so I halve the normal margins.
|
// Most of the content within these dls are one liners, so I halve the normal margins.
|
||||||
p, table, ul, ol
|
p, table, ul, ol
|
||||||
margin-bottom: $base-line-height / 2 !important
|
margin-bottom: $base-line-height / 2 !important
|
||||||
// rST seems to want dds to be treated as the browser would, indented.
|
// rST seems to want dds to be treated as the browser would, indented.
|
||||||
dd
|
dd
|
||||||
margin: 0 0 $base-line-height / 2 $base-line-height
|
margin: 0 0 $base-line-height / 2 $base-line-height
|
||||||
|
line-height: $base-line-height
|
||||||
// This is what Sphinx spits out for it's autodocs. Depending upon what language the person is referencing
|
// This is what Sphinx spits out for it's autodocs. Depending upon what language the person is referencing
|
||||||
// these things usually have a class of "method" or "class" or something similar, but really who knows.
|
// these things usually have a class of "method" or "class" or something similar, but really who knows.
|
||||||
// Sphinx doesn't give me a generic class on these, so unfortunately I have to apply it to the root dl.
|
// Sphinx doesn't give me a generic class on these, so unfortunately I have to apply it to the root dl.
|
||||||
|
Loading…
Reference in New Issue
Block a user