Add my-style.css support and add RTEMS to that CSS.

This commit is contained in:
Chris Johns 2016-01-26 12:26:11 +11:00 committed by Amar Takhar
parent b8d3f6b3b7
commit c18d76ae55
4 changed files with 116 additions and 3 deletions

View File

@ -15,7 +15,6 @@
}
.rtemsdefine dd {
margin: 3;
color: #408090;
}
@ -29,3 +28,112 @@
.rtemsoption dt {
color: #a87892;
}
/*
* Special table. We do not use this because the format is only for HTML
* not PDF. Left here as a record.
*/
table.rtems-items-table.docutils:not(.field-list) tr:nth-child(2n-1) td,
table.rtems-items-table.docutils:not(.field-list) tr:nth-child(2n) td {
background-color: #fcfcfc;
white-space: normal;
vertical-align: top;
border-width: 0;
padding-right: 5px;
padding-left: 5px;
}
table.rtems-items-table.docutils:not(.field-list) tr td:nth-child(2n-1) {
text-align: right;
margin-right: 0;
}
table.rtems-items-table.docutils:not(.field-list) tr td:nth-child(2n) {
text-align: left;
}
/*
* Nav side-bar in RTEMS colours.
*/
.wy-nav-top, .wy-nav-top a {
background-color: #38532F;
color: #fdfdfd;
}
.wy-side-nav-search {
background-color: #38532F;
}
.wy-nav-side {
background-color: #dbe5c6;
color: #424242;
}
.wy-menu-vertical {
background-color: #dbe5c6;
color: #333333;
}
.wy-menu-vertical a {
background-color: #dbe5c6;
color: #333333;
}
.wy-menu-vertical a:hover {
background-color: #38532F;
color: #fdfdfd;
}
.wy-menu-vertical li.toctree-l1.current>a{
background:#dbe5c6;
color: #333333;
}
.wy-menu-vertical li.toctree-l1.current>a:hover{
background-color: #38532F;
color: #fdfdfd;
}
.wy-menu-vertical li.toctree-l1.current li.toctree-l2>a{
background:#dbe5c6;
color: #333333;
}
.wy-menu-vertical li.toctree-l1.current li.toctree-l2>a:hover{
background-color: #38532F;
color: #fdfdfd;
}
.wy-menu-vertical li.toctree-l1.current li.toctree-l2.current>a{
background:#dbe5c6;
color: #333333;
}
.wy-menu-vertical li.toctree-l1.current li.toctree-l2.current>a:hover{
background-color: #38532F;
color: #fdfdfd;
}
.wy-menu-vertical li.toctree-l1.current li.toctree-l2.current li.toctree-l3>a{
background: #dbe5c6;
color: #333333;
}
.wy-menu-vertical li.toctree-l1.current li.toctree-l2.current li.toctree-l3>a:hover{
background-color: #38532F;
color: #fdfdfd;
}
.wy-menu-vertical li.toctree-l1.current li.toctree-l2.current li.toctree-l3 li.toctree-l4>a{
background: #dbe5c6;
color: #333333;
}
.wy-menu-vertical li.toctree-l1.current li.toctree-l2.current li.toctree-l3 li.toctree-l4>a:hover{
background-color: #38532F;
color: #fdfdfd;
}
.wy-nav-content a {
color: #77AD4A;
}
.wy-nav-content a:hover {
color: #4B6D2F;
}

View File

@ -144,7 +144,7 @@ html_sidebars = {
#html_split_index = False
# If true, links to the reST sources are added to the pages.
#html_show_sourcelink = True
html_show_sourcelink = False
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
#html_show_sphinx = True

View File

@ -7,6 +7,9 @@
{%- set titlesuffix = "" %}
{%- endif %}
{# Custom CSS overrides #}
{% set extra_css_files = ['_static/my-styles.css'] %}
<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->

View File

@ -4,8 +4,10 @@ stylesheet = css/theme.css
[options]
typekit_id = hiw1hhg
analytics_id =
analytics_id =
sticky_navigation = False
logo_only =
collapse_navigation = False
display_version = True
search = True
genindex = True