Adjust Colors for the Solidity Docs

This commit is contained in:
4molybdenum2 2021-09-10 15:46:43 +05:30 committed by Kamil Śliwak
parent 0043eca672
commit 551c3ae17a
4 changed files with 53 additions and 13 deletions

View File

@ -12,3 +12,37 @@ pre {
.rst-content table.docutils td { .rst-content table.docutils td {
vertical-align: top; vertical-align: top;
} }
/* links */
.rst-content a:not(:visited) {
color: #002fa7;
}
.rst-content .highlighted {
background: #eac545;
}
/* code block highlights */
.rst-content pre {
background: #fafafa;
}
.wy-side-nav-search img.logo {
width: 100px !important;
padding: 0;
}
.wy-side-nav-search > a {
padding: 0;
margin: 0;
}
/* project version (displayed under project logo) */
.wy-side-nav-search .version {
color: #272525 !important;
}
/* menu section headers */
.wy-menu .caption {
color: #65afff !important;
}

View File

@ -1,11 +1,9 @@
/* links */ /* links */
a, .rst-content a:not(:visited) {
a:visited { color: #aaddff !important;
color: #aaddff;
} }
/* code directives */ /* code directives */
.method dt, .method dt,
@ -46,6 +44,9 @@ em.property {
background-color: #5a5a5a; background-color: #5a5a5a;
} }
.rst-content pre {
background: none;
}
/* inlined code highlights */ /* inlined code highlights */
@ -70,6 +71,12 @@ code.docutils.literal.notranslate {
color: #ddd; color: #ddd;
} }
/* highlight color search text */
.rst-content .highlighted {
background: #ff5722;
box-shadow: 0 0 0 2px #f0978b;
}
/* notes, warnings, hints */ /* notes, warnings, hints */

View File

@ -128,7 +128,11 @@ html_theme = 'sphinx_rtd_theme'
# Theme options are theme-specific and customize the look and feel of a theme # Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the # further. For a list of options available for each theme, see the
# documentation. # documentation.
#html_theme_options = {} html_theme_options = {
'logo_only': True,
'style_nav_header_background': '#65afff',
'display_version': True,
}
# Add any paths that contain custom themes here, relative to this directory. # Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = [] #html_theme_path = []
@ -142,7 +146,7 @@ html_theme = 'sphinx_rtd_theme'
# The name of an image file (relative to this directory) to place at the top # The name of an image file (relative to this directory) to place at the top
# of the sidebar. # of the sidebar.
#html_logo = None html_logo = "logo.svg"
# The name of an image file (within the static path) to use as favicon of the # The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32

View File

@ -1,11 +1,6 @@
Solidity Solidity
======== ========
.. image:: logo.svg
:width: 120px
:alt: Solidity logo
:align: center
Solidity is an object-oriented, high-level language for implementing smart Solidity is an object-oriented, high-level language for implementing smart
contracts. Smart contracts are programs which govern the behaviour of accounts contracts. Smart contracts are programs which govern the behaviour of accounts
within the Ethereum state. within the Ethereum state.