mirror of
https://github.com/readthedocs/sphinx_rtd_theme.git
synced 2025-02-25 18:55:21 -06:00
Merge branch 'master' into grunt-uglify
This commit is contained in:
commit
d6bc4c6daf
@ -96,7 +96,7 @@ exclude_patterns = []
|
|||||||
#show_authors = False
|
#show_authors = False
|
||||||
|
|
||||||
# The name of the Pygments (syntax highlighting) style to use.
|
# The name of the Pygments (syntax highlighting) style to use.
|
||||||
pygments_style = 'sphinx'
|
pygments_style = 'default'
|
||||||
|
|
||||||
# A list of ignored prefixes for module index sorting.
|
# A list of ignored prefixes for module index sorting.
|
||||||
#modindex_common_prefix = []
|
#modindex_common_prefix = []
|
||||||
|
@ -78,8 +78,6 @@
|
|||||||
position: relative
|
position: relative
|
||||||
background: $menu-vertical-background-color
|
background: $menu-vertical-background-color
|
||||||
border: none
|
border: none
|
||||||
border-bottom: solid 1px darken($menu-vertical-background-color, 20%)
|
|
||||||
border-top: solid 1px darken($menu-vertical-background-color, 20%)
|
|
||||||
padding-left: $gutter -4px
|
padding-left: $gutter -4px
|
||||||
+font-smooth
|
+font-smooth
|
||||||
&:hover
|
&:hover
|
||||||
@ -94,6 +92,10 @@
|
|||||||
line-height: 1.6em
|
line-height: 1.6em
|
||||||
color: darken($menu-link-medium, 30%)
|
color: darken($menu-link-medium, 30%)
|
||||||
|
|
||||||
|
li.toctree-l1.current > a
|
||||||
|
border-bottom: solid 1px darken($menu-vertical-background-color, 20%)
|
||||||
|
border-top: solid 1px darken($menu-vertical-background-color, 20%)
|
||||||
|
|
||||||
// This is the on state for pages beyond second level
|
// This is the on state for pages beyond second level
|
||||||
li.toctree-l1.current li.toctree-l2, li.toctree-l2.current li.toctree-l3
|
li.toctree-l1.current li.toctree-l2, li.toctree-l2.current li.toctree-l3
|
||||||
> ul
|
> ul
|
||||||
@ -123,8 +125,6 @@
|
|||||||
display: block
|
display: block
|
||||||
background: darken($menu-vertical-background-color, 25%)
|
background: darken($menu-vertical-background-color, 25%)
|
||||||
padding: $gutter / 4 $gutter * 3.5
|
padding: $gutter / 4 $gutter * 3.5
|
||||||
border-top: none
|
|
||||||
border-bottom: none
|
|
||||||
a:hover span.toctree-expand
|
a:hover span.toctree-expand
|
||||||
color: $menu-link-medium
|
color: $menu-link-medium
|
||||||
span.toctree-expand
|
span.toctree-expand
|
||||||
@ -247,9 +247,7 @@
|
|||||||
|
|
||||||
|
|
||||||
.wy-body-for-nav
|
.wy-body-for-nav
|
||||||
background: left repeat-y $section-background-color
|
background: $section-background-color
|
||||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyRpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxOERBMTRGRDBFMUUxMUUzODUwMkJCOThDMEVFNURFMCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoxOERBMTRGRTBFMUUxMUUzODUwMkJCOThDMEVFNURFMCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjE4REExNEZCMEUxRTExRTM4NTAyQkI5OEMwRUU1REUwIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjE4REExNEZDMEUxRTExRTM4NTAyQkI5OEMwRUU1REUwIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+EwrlwAAAAA5JREFUeNpiMDU0BAgwAAE2AJgB9BnaAAAAAElFTkSuQmCC)
|
|
||||||
background-size: $nav-desktop-width 1px
|
|
||||||
|
|
||||||
.wy-grid-for-nav
|
.wy-grid-for-nav
|
||||||
position: absolute
|
position: absolute
|
||||||
|
@ -19,13 +19,12 @@
|
|||||||
max-width: 100%
|
max-width: 100%
|
||||||
height: auto
|
height: auto
|
||||||
|
|
||||||
.highlight > pre, .linenodiv > pre
|
|
||||||
line-height: normal
|
|
||||||
|
|
||||||
div.figure
|
div.figure
|
||||||
margin-bottom: $base-line-height
|
margin-bottom: $base-line-height
|
||||||
p.caption
|
p.caption
|
||||||
font-style: italic
|
font-style: italic
|
||||||
|
p:last-child.caption
|
||||||
|
margin-bottom: 0px
|
||||||
|
|
||||||
div.figure.align-center
|
div.figure.align-center
|
||||||
text-align: center
|
text-align: center
|
||||||
@ -53,8 +52,39 @@
|
|||||||
margin-left: $base-line-height
|
margin-left: $base-line-height
|
||||||
line-height: $base-line-height
|
line-height: $base-line-height
|
||||||
margin-bottom: $base-line-height
|
margin-bottom: $base-line-height
|
||||||
.literal-block, pre.literal-block
|
|
||||||
@extend .codeblock
|
pre.literal-block, div[class^='highlight']
|
||||||
|
border: 1px solid $table-border-color
|
||||||
|
padding: 0px
|
||||||
|
overflow-x: auto
|
||||||
|
// 1px hack otherwise border won't show. lame
|
||||||
|
margin: 1px 0 $base-line-height 0
|
||||||
|
div[class^='highlight']
|
||||||
|
border: none
|
||||||
|
margin: 0
|
||||||
|
// Needs 100% width for line highlighting to work properly
|
||||||
|
div[class^='highlight'] td.code
|
||||||
|
width: 100%
|
||||||
|
.linenodiv pre
|
||||||
|
border-right: solid 1px lighten($table-border-color, 2%)
|
||||||
|
margin: 0
|
||||||
|
padding: $base-line-height / 2 $base-line-height / 2
|
||||||
|
font-family: $code-font-family
|
||||||
|
div[class^='highlight'] pre
|
||||||
|
white-space: pre
|
||||||
|
margin: 0
|
||||||
|
padding: $base-line-height / 2 $base-line-height / 2
|
||||||
|
font-family: $code-font-family
|
||||||
|
display: block
|
||||||
|
overflow: auto
|
||||||
|
pre.literal-block, div[class^='highlight'] pre, .linenodiv pre
|
||||||
|
font-size: 12px
|
||||||
|
line-height: normal
|
||||||
|
|
||||||
|
@media print
|
||||||
|
.codeblock, div[class^='highlight'], div[class^='highlight'] pre
|
||||||
|
white-space: pre-wrap
|
||||||
|
|
||||||
// These are the various note pullouts that sphinx applies
|
// These are the various note pullouts that sphinx applies
|
||||||
.note, .attention, .caution, .danger, .error, .hint, .important, .tip, .warning, .seealso, .admonition-todo, .admonition
|
.note, .attention, .caution, .danger, .error, .hint, .important, .tip, .warning, .seealso, .admonition-todo, .admonition
|
||||||
@extend .wy-alert
|
@extend .wy-alert
|
||||||
|
@ -40,10 +40,6 @@
|
|||||||
@import wyrm_core/table
|
@import wyrm_core/table
|
||||||
@import wyrm_core/type
|
@import wyrm_core/type
|
||||||
|
|
||||||
// Pygments styling
|
|
||||||
@import wyrm_addons/pygments/pygments
|
|
||||||
@import wyrm_addons/pygments/pygments_light
|
|
||||||
|
|
||||||
// Theme specific styles. These are likely the files you want to edit.
|
// Theme specific styles. These are likely the files you want to edit.
|
||||||
@import theme_breadcrumbs
|
@import theme_breadcrumbs
|
||||||
@import theme_layout
|
@import theme_layout
|
||||||
|
@ -86,7 +86,7 @@
|
|||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="wy-body-for-nav" role="document">
|
<body class="wy-body-for-nav">
|
||||||
|
|
||||||
{% block extrabody %} {% endblock %}
|
{% block extrabody %} {% endblock %}
|
||||||
<div class="wy-grid-for-nav">
|
<div class="wy-grid-for-nav">
|
||||||
@ -152,7 +152,7 @@
|
|||||||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||||||
|
|
||||||
{# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
|
{# MOBILE NAV, TRIGGLES SIDE NAV ON TOGGLE #}
|
||||||
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
|
<nav class="wy-nav-top" aria-label="top navigation">
|
||||||
{% block mobile_nav %}
|
{% block mobile_nav %}
|
||||||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||||||
<a href="{{ pathto(master_doc) }}">{{ project }}</a>
|
<a href="{{ pathto(master_doc) }}">{{ project }}</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user