[llvm] c681ea6 - [Docs] Fix large vertical space at top of pages (#81599)

via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 16 03:19:15 PST 2024


Author: J. Ryan Stinnett
Date: 2024-02-16T11:19:10Z
New Revision: c681ea6623082324bcf3f7e1966495ce01817c59

URL: https://github.com/llvm/llvm-project/commit/c681ea6623082324bcf3f7e1966495ce01817c59
DIFF: https://github.com/llvm/llvm-project/commit/c681ea6623082324bcf3f7e1966495ce01817c59.diff

LOG: [Docs] Fix large vertical space at top of pages (#81599)

This fixes a large vertical blank space at the top of the page that was caused
by the floating sidebar.

Added: 
    

Modified: 
    llvm/docs/_themes/llvm-theme/static/llvm-theme.css

Removed: 
    


################################################################################
diff  --git a/llvm/docs/_themes/llvm-theme/static/llvm-theme.css b/llvm/docs/_themes/llvm-theme/static/llvm-theme.css
index 4b04e0cbaccfd3..0fc5b261dbd057 100644
--- a/llvm/docs/_themes/llvm-theme/static/llvm-theme.css
+++ b/llvm/docs/_themes/llvm-theme/static/llvm-theme.css
@@ -26,6 +26,7 @@ body {
     border: 1px solid #aaa;
     margin: 0px 80px 0px 80px;
     min-width: 740px;
+    position: relative;
 }
 
 div.logo {
@@ -94,9 +95,11 @@ div.sphinxsidebar {
     margin: 0;
     padding: 0.5em 15px 15px 0;
     width: 210px;
-    float: right;
     font-size: 1em;
     text-align: left;
+    float: none;
+    position: absolute;
+    right: 0;
 }
 
 div.sphinxsidebar h3, div.sphinxsidebar h4 {


        


More information about the llvm-commits mailing list