Merge pull request #11927 from 4molybdenum2/issue-11900

Adjust Colors for the Solidity Docs
This commit is contained in:
chriseth 2021-10-07 16:50:58 +02:00 committed by GitHub
commit daf61a4c90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 64 additions and 24 deletions

View File

@ -1,14 +1,48 @@
pre { pre {
white-space: pre-wrap; /* css-3 */ white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */ white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */ white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; word-wrap: break-word;
} }
.wy-table-responsive table td, .wy-table-responsive table th { .wy-table-responsive table td, .wy-table-responsive table th {
white-space: normal; white-space: normal;
} }
.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 */
@ -619,4 +626,4 @@ code.docutils.literal.notranslate {
} }
/* Literal.Number.Integer.Long */ /* Literal.Number.Integer.Long */

View File

@ -1,6 +1,6 @@
{% extends "!layout.html" %} {% extends "!layout.html" %}
{% block menu %} {% block menu %}
{{ super() }} {{ super() }}
<a href="{{ pathto('genindex') }}">Keyword Index</a> <a href="{{ pathto('genindex') }}">Keyword Index</a>
{% endblock %} {% endblock %}

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
@ -238,7 +242,7 @@ latex_elements = {
# (source start file, target name, title, # (source start file, target name, title,
# author, documentclass [howto, manual, or own class]). # author, documentclass [howto, manual, or own class]).
latex_documents = [ latex_documents = [
('index', 'solidity.tex', 'Solidity Documentation', 'Ethereum', 'manual'), ('index', 'solidity.tex', 'Solidity Documentation', 'Ethereum', 'manual'),
] ]
# The name of an image file (relative to this directory) to place at the top of # The name of an image file (relative to this directory) to place at the top of

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.
@ -172,4 +167,4 @@ Contents
bugs.rst bugs.rst
contributing.rst contributing.rst
brand-guide.rst brand-guide.rst
language-influences.rst language-influences.rst