Skip to content

Commit

Permalink
custom css & change the logo
Browse files Browse the repository at this point in the history
  • Loading branch information
smalloranges committed Nov 8, 2018
1 parent df1f807 commit 7df02e4
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 2 deletions.
124 changes: 123 additions & 1 deletion docs/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,125 @@
/* body */

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600');

body, h1, h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend {
font-family: 'Open Sans', 'Helvetica Neue',Helvetica,arial,sans-serif;
}

h1, h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend {
font-weight: 600;
}


/* left */

.wy-nav-side {
background: #fafafa;
border-right: 1px solid #e6e6e6;
}

/* left - logo & search */

.wy-side-nav-search {
margin-bottom: 0;
padding: 0.5em;
background: #fafafa;
}

.wy-side-nav-search>a, .wy-side-nav-search .wy-dropdown>a {
padding: 0;
}
.wy-side-nav-search>a img.logo, .wy-side-nav-search .wy-dropdown>a img.logo {
width: 80%;
width: 50%;
}

.wy-side-nav-search input[type=text] {
border-color: #fafafa;
border-radius: 0;
}

/* left - menu */

.wy-menu-vertical a {
color: #757575;
}

.wy-menu-vertical a:hover {
color: #151515;
background: #ededed;
}

.wy-menu-vertical > ul {
padding: 0 1em;
}

.wy-menu-vertical li.current {
background: none;
}

.wy-menu-vertical li.current a {
color: #151515;
border-right: 0;
}

.wy-menu-vertical li.current a:hover {
background: #ededed;
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a {
background: none;
}


/* right */

.wy-nav-content-wrap {
background: #fff;
}

/* right - top navbar */

.wy-breadcrumbs {
padding: 0 1.618em 0.5em 1.618em;
}

.wy-nav-content {
padding: 0.5em 0 1.618em 0;
max-width: auto;
}

/* right - content */

.wy-nav-content {
padding: 0.5em 3.236em 1.618em 3.236em;
}

hr {
margin: 0;
}

.section {
padding-left: 1.618em;
max-width: 800px;
}

h1 {
background: #2c2c2c;
color: #fff;
padding: 0.8em 1em;
}

/* right - footer */

footer {
padding: 1em;
font-size: 1rem;
}
footer p {
margin-bottom: 0;
margin-top: 12px;
font-size: 0.9em;
}
.rst-footer-buttons {
padding-bottom: 1em;
}
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _warn_node(self, msg, node, **kwargs):
"conf_py_path": "/", # Path in the checkout to the docs root
}

html_logo = 'resources/nebulas-logo-with-slogan-white.svg'
html_logo = 'resources/nebulasx60.png'

html_favicon = 'resources/favicon.ico'

Expand Down
Binary file added docs/resources/nebulasx60.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7df02e4

Please sign in to comment.