Skip to content

Commit

Permalink
Added favicon and changes to design
Browse files Browse the repository at this point in the history
  • Loading branch information
Umair Khan committed Mar 18, 2024
1 parent 96670e4 commit e458300
Show file tree
Hide file tree
Showing 2 changed files with 282 additions and 42 deletions.
322 changes: 280 additions & 42 deletions docs/source/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,139 @@
font-weight: 300;
}

* span.pre {
font-size: 14px;
font-weight: normal;
text-decoration: underline;
text-underline-offset: 2px;
}

* span.pre:hover {
text-decoration: none;
}

.wy-nav-content:not(:has(section)) {
max-width: 1200px;
}

.rst-content div[class^=highlight] pre {
font-size: 14px;
}

nav ul.current li, nav ul li.current, nav ul.current li.current, [aria-expanded="true"] {
background-color: #1c1c1c;
color: #f0f0f0;
}

nav ul.current li:hover, nav ul li.current:hover, nav ul.current li.current:hover, [aria-expanded="true"]:hover {
background-color: #4e4a4a;
}

.wy-menu-vertical li.toctree-l2.current>a {
background-color: #1c1c1c;
color: #f0f0f0;
}

.wy-menu-vertical li.toctree-l2.current>a:hover {
background-color: #4e4a4a;
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a {
background-color: #1c1c1c;
color: #f0f0f0;
}

.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a:hover {
background-color: #4e4a4a;
}

.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a {
background-color: #1c1c1c;
color: #f0f0f0;
}

.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a:hover {
background-color: #4e4a4a;
}

.wy-menu-vertical li.current>a {
background-color: #1c1c1c;
color: #f0f0f0;
}

.wy-menu-vertical li.current>a:hover {
background-color: #4e4a4a;
}

.wy-menu-vertical li.toctree-l1.current>a {
border: none;
color: #f0f0f0;
}

.wy-menu-vertical li.current a {
border: none;
color: #f0f0f0;
}

.wy-menu-vertical li.current a:hover {
background-color: #4e4a4a;
}

.wy-menu code.docutils.literal.notranslate span {
color: #f0f0f0;
background-color: transparent;
font-size: 11.96px;
text-decoration: none;
}

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

.wy-side-nav-search, .wy-nav-top {
background: #625F63;
}

.wy-nav-side {
background: #1c1c1c;
}

.wy-body-for-nav {
background: #1c1c1c;
}

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

.wy-nav-content {
background: #222222;
}

.wy-nav-content a {
color: #03A9F4;
}

#subpackages span.pre {
color: #03A9F4;
}

* h1, h2, h3, h4, h5, h6 {
color: #f0f0f0;
font-family: 'Open Sans', sans-serif;
font-weight: 300;
}

.wy-menu code.docutils.literal.notranslate span {
color: #404040;
background-color: #BDBDBD;
code {
color: #03A9F4;
background-color: transparent;
border: none;
}

code.docutils.literal.notranslate span.pre {
background-color: #222222;
code.docutils.literal.notranslate {
color: #03A9F4;
background-color: transparent;
border: none;
font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,liberation mono,courier new,monospace;
font-feature-settings: normal;
font-variation-settings: normal;
}

code.xref.py.py-obj.docutils.literal.notranslate, code.xref.py.py-class.docutils.literal.notranslate {
Expand All @@ -41,6 +157,13 @@
font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,liberation mono,courier new,monospace;
font-feature-settings: normal;
font-variation-settings: normal;
text-decoration: none;
}

@media screen and (max-width: 550px) {
.sig span.pre, .sig span.viewcode-link {
font-family: 'Open Sans', sans-serif;
}
}

.sig span.sig-paren {
Expand All @@ -49,22 +172,6 @@
font-feature-settings: normal;
font-variation-settings: normal;
}

.wy-body-for-nav {
background: #1c1c1c;
}

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

.wy-nav-content {
background: #222222;
}

.wy-nav-content a {
color: #03A9F4;
}

.rst-content h1 {
color: #fff;
Expand All @@ -78,22 +185,10 @@
color: #fff;
}

.wy-side-nav-search, .wy-nav-top {
background: #625F63;
}

.wy-nav-side {
background: #1c1c1c;
}

.admonition.note, .admonition.todo {
background-color: #f0f0f0;
}

.highlight pre {
background-color: #f0f0f0;
}

#indices-and-tables h1 {
color: #f0f0f0;
font-family: 'Open Sans', sans-serif;
Expand All @@ -106,25 +201,168 @@

.admonition-todo.admonition {
background: #1c1c1c;
color: #e3a72c;
border-radius: 0.5rem;
border: 1px solid #e3a72c;
padding: 1.5rem;
}

.admonition-todo.admonition .admonition-title {
background-color: transparent;
}

.admonition-todo.admonition .admonition-title::before {
color: #e3a72c;
}

.admonition.note {
background: #1c1c1c;
color: #1b83e2;
border-radius: 0.5rem;
border: 1px solid #1b83e2;
padding: 1.5rem;
}

.admonition.note .admonition-title {
background-color: transparent;
}

.admonition.note .admonition-title::before {
color: #1b83e2;
}

.admonition.tip {
background: #1c1c1c;
color: #40d294;
border-radius: 0.5rem;
border: 1px solid #40d294;
padding: 1.5rem;
}

.admonition.tip .admonition-title {
background-color: transparent;
}

.admonition.tip .admonition-title::before {
color: #40d294;
}

.fa-arrow-circle-right, .fa-arrow-circle-left{
color: #1c1c1c;
}

.rst-content div[class^=highlight] {
border: none;
}

.highlight {
border: 1px solid #e3a72c;
border-radius: 0.5rem;
--color-prettylights-syntax-variable: #ffa657;
font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,liberation mono,courier new,monospace;
overflow-x: auto;
}

.highlight pre {
color:#f8f8f2;
background-color:#272822;
-moz-tab-size:4;
-o-tab-size:4;
tab-size:4;
--color-prettylights-syntax-variable: #ffa657;
font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,liberation mono,courier new,monospace;

}

.highlight pre span {
color: #ffffff;
font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,liberation mono,courier new,monospace;
font-weight: normal;
}

/* Code block special text color */
.highlight pre span.o {
color: #f92672;
font-weight: normal;
}

.highlight pre span.ow {
color: #ff82a3;
.highlight pre span.kn {
color: #f92672;
font-weight: normal;
}

.highlight pre {
background: #625F63;
.highlight pre span.s2 {
color: #E6DB74;
font-weight: normal;
}

.highlight pre span.c1 {
color: #75715E;
font-weight: normal;
}

.highlight pre span.mi {
color: #AE81FF;
font-weight: normal;
}

.highlight pre span.nn {
color: #f0f0f0;
font-weight: normal;
}

.highlight .k {
color: #66d9ef;
font-weight: normal;
}

.highlight .sd {
color: #e6db74;
font-weight: normal;
}

.highlight .nc, .highlight .fm, .highlight .nd, .highlight .nf, .highlight .ne{
color: #a6e22e;
font-weight: normal;
}

.highlight .ow {
color: #f92672;
font-weight: normal;
}

.highlight .kc {
color: #66d9ef;
font-weight: normal;
}

.highlight .nb, .highlight .bp, .highlight .vm {
color: #f0f0f0;
font-weight: normal;
}

html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt {
display: block;
}


html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt {
border-top: 2px solid #03A9F4;
border-radius: 2px;
background: #414040;
color: #03A9F4;
}

html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple) dl:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt {
border-top: none;
}

html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt span.pre, .sig span.sig-paren {
color: #fff;
}

html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.footnote):not(.citation):not(.glossary):not(.simple)>dt .headerlink {
color: #fff;
}


</style>
{% endblock %}
2 changes: 2 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

autodoc_typehints = "none"

html_favicon = 'branding/riacore.png'

autodoc_typehints_format = "short"
python_use_unqualified_type_names = True

Expand Down

0 comments on commit e458300

Please sign in to comment.