Skip to content
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

Documentation theme updates #1548

Merged
merged 6 commits into from
Feb 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 10 additions & 12 deletions docs/_static/custom.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
.wy-nav-content {
max-width: 51.5em;
padding: 1em;
}

#virtualenv img {
margin-bottom: 6px;
}

/* override table width restrictions */
/* Allow table content to wrap around */
.wy-table-responsive table th, .wy-table-responsive table td {
/* !important prevents the common CSS stylesheets from
overriding this as on RTD they are loaded after this stylesheet */
/* !important because RTD has conflicting stylesheets */
white-space: normal !important;
padding: 6px !important;
padding: 8px 6px !important;
}

.wy-table-responsive {
overflow: visible !important;
.wy-table-responsive table {
width: calc(100% + 3em);
margin-left: 20px !important;
}

.rst-content table.docutils td ol {
Expand All @@ -35,10 +34,7 @@ div[class*="highlight-"] {
margin-bottom: 12px;
}

table {
margin-left: 20px !important;
}

/* Tweak whitespace on the release history page */
#release-history p {
margin-bottom: 0;
margin-top: 0;
Expand All @@ -60,6 +56,8 @@ table {
margin-bottom: 12px;
}

/* Reduce whitespace on the inline-code snippets and add softer corners */
.rst-content code {
padding: 2px;
padding: 2px 3px;
border-radius: 3px;
}
2 changes: 2 additions & 0 deletions docs/changelog/1548.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fine tune the documentation layout: default width of theme, allow tables to wrap around, soft corners for code snippets
- by :user:`pradyunsg`.