-
Notifications
You must be signed in to change notification settings - Fork 332
feature: redesigned to conform to brand styleguides #2429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,243 @@ | ||
| *{ | ||
| -webkit-box-sizing:border-box; | ||
| -moz-box-sizing:border-box; | ||
| box-sizing:border-box | ||
| } | ||
| html,body{ | ||
| margin:0; | ||
| padding:0; | ||
| min-height:100% | ||
| } | ||
| html{ | ||
| font-family:-apple-system,BlinkMacSystemFont,sans-serif; | ||
| font-size:16px; | ||
| line-height:1.5; | ||
| position:relative; | ||
| } | ||
| body{ | ||
| color:#34383b; | ||
| background-color:#fff; | ||
| } | ||
| a{ | ||
| color:#0772de; | ||
| text-decoration:none; | ||
| transition:color 0.08s | ||
| } | ||
| a:hover,a:focus{ | ||
| color:#05498f | ||
| } | ||
| html,body{ | ||
| -webkit-font-smoothing:antialiased; | ||
| -moz-osx-font-smoothing:grayscale; | ||
| -webkit-text-size-adjust:100%; | ||
| -ms-text-size-adjust:100%; | ||
| font-weight:300 | ||
| } | ||
| h1,h2,h3,h4,h5,h6{ | ||
| margin-bottom:0; | ||
| line-height:1.5; | ||
| text-rendering:optimizeLegibility | ||
| } | ||
| h1{ | ||
| font-size:2rem; | ||
| font-weight:300; | ||
| text-align:center; | ||
| padding:32px 16px | ||
| } | ||
| h2{ | ||
| margin-top:2rem; | ||
| font-size:1.5rem; | ||
| font-weight:600 | ||
| } | ||
| h2:first-child{ | ||
| margin-top:0 | ||
| } | ||
| h3{ | ||
| margin-top:2rem; | ||
| font-size:1.5rem; | ||
| font-weight:300 | ||
| } | ||
| h4{ | ||
| margin-top:2rem; | ||
| font-size:1rem; | ||
| font-weight:600 | ||
| } | ||
| strong,b{ | ||
| font-weight:600 | ||
| } | ||
| p,dd{ | ||
| margin-top:0; | ||
| margin-bottom:1rem | ||
| } | ||
| p.lead,dd.lead{ | ||
| font-size:2rem; | ||
| font-weight:300; | ||
| color:#696c6e | ||
| } | ||
| p.dark,dd.dark{ | ||
| color:#34383b | ||
| } | ||
| p.error,dd.error{ | ||
| margin:160px 0 80px; | ||
| text-align:center | ||
| } | ||
| p a { | ||
| word-break: break-all; | ||
| } | ||
| ul,ol,dl{ | ||
| margin:0 0 1rem; | ||
| padding:0 | ||
| } | ||
| li{ | ||
| list-style-image:url('data:image/svg+xml;utf8,<svg width="10" height="10" viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><circle cx="5" cy="5" r="2" fill="#BAC8D1" fill-rule="evenodd"/></svg>'); | ||
| } | ||
|
|
||
| hr{ | ||
| margin:2rem 0; | ||
| border:0; | ||
| border-top:1px solid #696c6e; | ||
| border-bottom:0 | ||
| } | ||
| blockquote{ | ||
| padding:0 0 0 12px; | ||
| margin:1rem 0 1rem -14px; | ||
| border-left:2px solid #696c6e; | ||
| color:#34383b | ||
| } | ||
| dt{ | ||
| font-weight:600 | ||
| } | ||
| del{ | ||
| color:#34383b | ||
| } | ||
| main{ | ||
| max-width:840px; | ||
| display:flex; | ||
| align-items:stretch; | ||
| margin:0 auto | ||
| } | ||
| @media screen and (max-width: 550px){ | ||
| main{ | ||
| display:inherit | ||
| } | ||
| } | ||
| article{ | ||
| max-width:560px; | ||
| margin:0 auto | ||
| } | ||
| main article{ | ||
| margin:0 | ||
| } | ||
| header{ | ||
| max-width:840px; | ||
| height:96px; | ||
| border-bottom:1px solid #bec0c1; | ||
| display:flex; | ||
| align-items:center; | ||
| justify-content:center; | ||
| margin:0 auto 32px | ||
| } | ||
| header a{ | ||
| font-size:12px; | ||
| font-weight:600; | ||
| color:#34383b | ||
| } | ||
| header a:hover{ | ||
| color:#17181a | ||
| } | ||
| header a:first-child{ | ||
| margin-right:auto | ||
| } | ||
| header a:last-child{ | ||
| margin-left:auto | ||
| } | ||
| a h1{ | ||
| color:#34383b | ||
| } | ||
| input[type='checkbox']{ | ||
| display:none | ||
| } | ||
| input[type='checkbox']:checked ~ #menu{ | ||
| display:block | ||
| } | ||
| footer{ | ||
| text-align:center; | ||
| color: #696C6E; | ||
| } | ||
| footer div{ | ||
| max-width:840px; | ||
| line-height:160px; | ||
| margin:0 auto; | ||
| font-size:12px; | ||
| font-weight:600 | ||
| } | ||
|
|
||
| .wy-menu-vertical a { | ||
| color: #0772de; | ||
| } | ||
|
|
||
| .wy-menu-vertical a:hover { | ||
| color: #05498f; | ||
| background-color: #fff; | ||
| } | ||
|
|
||
| .wy-side-scroll { | ||
| background-color: #fafafa; | ||
| } | ||
|
|
||
| .wy-nav-side { | ||
| background-color: #fafafa; | ||
| } | ||
|
|
||
| .wy-side-nav-search { | ||
| background-color: #fafafa; | ||
| } | ||
|
|
||
| .wy-body-for-nav { | ||
| background-color: #fff; | ||
| } | ||
|
|
||
| .wy-nav-content { | ||
| background-color: #fff !important; | ||
| } | ||
|
|
||
| .wy-nav-content-wrap { | ||
| background-color: #fff !important; | ||
| } | ||
|
|
||
| .wy-menu-vertical li.current { | ||
| background-color: #eaeaea; | ||
| } | ||
|
|
||
| .wy-menu-vertical li.current a { | ||
| border: none; | ||
| } | ||
|
|
||
| .wy-menu-vertical li.toctree-l2.current li.toctree-l3>a, .wy-menu-vertical li.toctree-l3.current li.toctree-l4>a { | ||
| background: unset; | ||
| } | ||
|
|
||
| .wy-menu-vertical li.toctree-l2.current li.toctree-l3>a:hover, .wy-menu-vertical li.toctree-l3.current li.toctree-l4>a:hover { | ||
| background-color: #c9c9c9; | ||
| } | ||
|
|
||
| .wy-nav-content { | ||
| max-width: unset; | ||
| } | ||
|
|
||
| .wy-nav-top { | ||
| background-color: #fafafa; | ||
| color: #34383b; | ||
| } | ||
|
|
||
| .wy-nav-top a { | ||
| color: #34383b; | ||
| } | ||
| /* | ||
| .wy-side-nav-search a { | ||
| color: #0772de; | ||
| } | ||
|
|
||
| .wy-side-nav-search a:hover { | ||
| color: #05498f; | ||
| } */ | ||
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # Writing HTML templates | ||
|
|
||
| If you want more control over HTML generation over ReadTheDocs theme. See https://github.com/readthedocs/sphinx_rtd_theme/tree/master/sphinx_rtd_theme for specific templates you may wish to override. It can be fully overriden or partially (just extend the default template and only use the block you wish to change). | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| {%- extends "sphinx_rtd_theme/layout.html" %} | ||
|
|
||
| {% block sidebartitle %} | ||
| <a href="{{ pathto(master_doc) }}"> | ||
|
|
||
| {%- if logo %} | ||
| {#- Not strictly valid HTML, but it's the only way to display/scale | ||
| it properly, without weird scripting or heaps of work | ||
| #} | ||
| {%- if sphinx_version_info < (4, 0) -%} | ||
| <img src="{{ pathto('_static/' + logo, 1) }}" class="logo" alt="{{ _('Logo') }}"/> | ||
| {%- else %} | ||
| <img src="{{ logo_url }}" class="logo" alt="{{ _('Logo') }}"/> | ||
| {%- endif %} | ||
| {%- endif %} | ||
| </a> | ||
|
|
||
| <!-- {%- if theme_display_version %} | ||
| {%- set nav_version = version %} | ||
| {%- if READTHEDOCS and current_version %} | ||
| {%- set nav_version = current_version %} | ||
| {%- endif %} | ||
| {%- if nav_version %} | ||
| <div class="version"> | ||
| {{ nav_version }} | ||
| </div> | ||
| {%- endif %} | ||
| {%- endif %} --> | ||
|
|
||
| {%- include "searchbox.html" %} | ||
| {% endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: This creates too many words per line, which is hard to read. https://baymard.com/blog/line-length-readability . I'm going to remove this block unless there are heavy objections.