Browse Source

Merge pull request #3084 from Calinou/fix-rst-versions-centering

Fix the Read the Docs version selector not being centered
Rémi Verschelde 5 years ago
parent
commit
5be47995e5
1 changed files with 7 additions and 0 deletions
  1. 7 0
      _static/css/custom.css

+ 7 - 0
_static/css/custom.css

@@ -559,6 +559,13 @@ code,
     background-color: var(--navbar-current-background-color);
 }
 
+@media only screen and (min-width: 768px) {
+    .rst-versions {
+        /* Required to center the page on wide displays */
+        left: inherit;
+    }
+}
+
 .rst-versions a,
 .rst-versions .rst-current-version,
 .rst-versions .rst-current-version .fa,