aboutsummaryrefslogtreecommitdiff
path: root/docs/_static/style.css
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-05-29 09:34:21 -0400
committerRapptz <[email protected]>2020-12-18 21:18:52 -0500
commite648cfbcad5853df75d7e9d7118ce793ea142b3a (patch)
tree11fde74c8a847e7ca2d1d5c24b370681084794ec /docs/_static/style.css
parentAdd dark theme for codeblocks (diff)
downloaddiscord.py-e648cfbcad5853df75d7e9d7118ce793ea142b3a.tar.xz
discord.py-e648cfbcad5853df75d7e9d7118ce793ea142b3a.zip
First pass at centering content for large displays
Diffstat (limited to 'docs/_static/style.css')
-rw-r--r--docs/_static/style.css19
1 files changed, 18 insertions, 1 deletions
diff --git a/docs/_static/style.css b/docs/_static/style.css
index d9084b4f..bafb9f3c 100644
--- a/docs/_static/style.css
+++ b/docs/_static/style.css
@@ -124,7 +124,7 @@ img[src$="snake_dark.svg"] {
display: none;
}
:root[data-theme="dark"] img[src$="snake_dark.svg"] {
- display: initial;
+ display: inherit;
}
body {
@@ -818,3 +818,20 @@ div.code-block-caption {
}
}
+@media screen and (min-width: 1200px) {
+ .main-grid {
+ /* 62.5% width => multiple of 5/8 content */
+ /* sidebar takes up 20% of the inner area */
+ grid-template-columns: repeat(16, 1fr);
+ grid-template-areas:
+ "s s h h h h h h h h h h h h h h"
+ "s s . . . c c c c c c c c . . ."
+ "s s f f f f f f f f f f f f f f"
+ }
+
+ main img {
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+ }
+}