Skip to content

Commit

Permalink
CSS fixes (+ re-integrated package-lock.json)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zulko committed Oct 1, 2019
1 parent 150dc75 commit 0a3b6a7
Show file tree
Hide file tree
Showing 4 changed files with 11,386 additions and 7 deletions.
3 changes: 2 additions & 1 deletion docs/source/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ See docs on `html_sidebars <http://www.sphinx-doc.org/en/master/usage/configurat
``html_css_files``
^^^^^^^^^^^^^^^^^^

Adds custom CSS files to the theme:
Adds custom CSS files to the theme

.. code-block:: python
# Here we assume that the file is at _static/css/custom.css
html_css_files = ["css/custom.css"]
``html_external_links``
Expand Down
12 changes: 9 additions & 3 deletions sphinx_press_theme/static/sphinx_press_theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@
*
*/

@import url('https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap');
@import url('https://fonts.googleapis.com/css?family=Inconsolata&display=swap');
/* FONTS FOR THE CODE - will fall back to monospace if unavailable */
@import url('https://fontlibrary.org/face/roboto-mono');
@import url('https://fontlibrary.org/face/inconsolata');

/* MAKES MAIN TEXT SECTION LARGER */
.content:not(.custom) {
max-width: 840px;
}

/* TJE SECTION BELOW DEFINES THE APPEARANCE OF AUTODOC-GENERATED DOCS */
/* THE SECTION BELOW DEFINES THE APPEARANCE OF AUTODOC-GENERATED DOCS */

.sig-name.descname {
font-size: 1.2em;
Expand Down Expand Up @@ -77,6 +78,7 @@ dl.method, dl.function {
}


/* THE SECTION BELOW CHANGES CODE FONTS FOR BETTER 80-CHARS READABILITY */
/* Code will be displayed as Roboto, or Inconsolata if screen is small */
code, pre {
font-family: 'Roboto Mono', 'Inconsolata', monospace;
Expand All @@ -95,6 +97,10 @@ blockquote {
font-size: inherit;
}

blockquote h2 {
margin-left: 1em;
}

/* THE SECTION BELOW FIXES A SPHINX-MERMAID OPACITY PROBLEM */
.content .section {
opacity: 1.0 !important;
Expand Down
4 changes: 1 addition & 3 deletions ui/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,4 @@ yarn-error.log*
*.ntvs*
*.njsproj
*.sln
*.sw*

package-lock.json
*.sw*
Loading

0 comments on commit 0a3b6a7

Please sign in to comment.