Skip to content

Commit

Permalink
css fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Jan 2, 2015
1 parent af80512 commit 38a60c8
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 4 deletions.
86 changes: 86 additions & 0 deletions doc/_static/larch_rtfd.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
.fa-home::before, .icon-home::before {
display: inline-block !important;
width: 16px !important;
height: 16px !important;
content: "" !important;
background: url("_static/larch_favicon.png") no-repeat 0 2px !important;
background-size: 100% !important;

}

#mainlogo
{
-ms-transform-origin: left 75%; /* IE 9 */
-webkit-transform-origin: left 75%; /* Chrome, Safari, Opera */
transform-origin: left 75%;
-ms-transform: scale(0.5,0.5); /* IE 9 */
-webkit-transform: scale(0.5,0.5); /* Chrome, Safari, Opera */
transform: scale(0.5,0.5);
float:none;
margin: 0 0 0 0;
}

img.logo
{
width:200px;
}

div.body h1
{
font-family: 'Roboto Slab', sans-serif;
font-size: 150%;
font-weight: 700;
}

div.body h2
{
font-family: 'Roboto Slab', sans-serif;
font-size: 130%;
font-weight: 400;
}

div.body h3, div.body h4, div.body h5, div.body h6
{
font-family: 'Roboto Slab', sans-serif;
font-weight: 100;

}

div.body h3 { font-size: 110%; padding-left: 50px; }
div.body h4 { font-size: 100%; padding-left: 65px; }
div.body h5 { font-size: 90%; padding-left: 80px; }
div.body h6 { font-size: 80%; padding-left: 95px; }

.wy-side-nav-search
{
background-color: rgb(101,0,122) !important;
}


.wy-breadcrumbs li:first-child::before
{
display: inline-block !important;
width: 16px !important;
height: 16px !important;
margin-right:5px !important;
content: "" !important;
background: url("_static/larch_favicon.png") no-repeat 0 2px !important;
background-size: 100% !important;
}

/*
tt {
font-family: 'Source Code Pro', monospace;
font-size: 80%;
}
tt.descname {
font-weight: 700;
font-size: 90%;
}
tt.descclassname {
font-weight: 300;
font-size: 90%;
}
*/
7 changes: 3 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ def __getattr__(cls, name):
MOCK_MODULES = ['argparse', 'numpy', 'pandas', 'larch']
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

css_files = '_static/elm_doc_style.css'



# Theme options are theme-specific and customize the look and feel of a theme
Expand Down Expand Up @@ -186,8 +184,9 @@ def __getattr__(cls, name):
# ],
# }

def setup(app):
app.add_stylesheet("elm_doc_style.css")
if on_rtd:
def setup(app):
app.add_stylesheet("larch_rtfd.css")

# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
Expand Down

0 comments on commit 38a60c8

Please sign in to comment.