Docs: Fix page width exceeding the viewport
authorMick Semb Wever <mck@apache.org>
Sun, 6 Jan 2019 20:48:10 +0000 (07:48 +1100)
committerMick Semb Wever <mck@apache.org>
Sun, 6 Jan 2019 20:48:10 +0000 (07:48 +1100)
Closes #175 #176

 patch by Sahal Sajjad, Stefan Podkowinski; reviewed by Stefan Podkowinski, Mick Semb Wever for CASSANDRA-14065

doc/source/_static/extra.css
doc/source/_theme/cassandra_theme/layout.html

index fd3573f..715e2a8 100644 (file)
@@ -50,3 +50,10 @@ div#wipwarning {
     padding: 10px 30px;
     margin-bottom: 30px;
 }
+.content-container{
+    padding-right: 15px;
+    padding-left: 15px;
+    margin-right: auto;
+    margin-left: auto;
+    width:100%;
+}
index c7c2bff..186e043 100644 (file)
@@ -39,7 +39,7 @@ extra-footer: '
 ---
 <div class="container-fluid">
   <div class="row">
-    <div class="col-md-2">
+    <div class="col-md-3">
       <div class="doc-navigation">
         <div class="doc-menu" role="navigation">
           <div class="navbar-header">
@@ -73,7 +73,7 @@ extra-footer: '
     </div>
     <div class="col-md-8">
       <div class="content doc-content">
-        <div class="container">
+        <div class="content-container">
           {% block body %}{% endblock %}
 
           {% if next or prev %}
@@ -89,7 +89,5 @@ extra-footer: '
         </div>
       </div>
     </div>
-    <div class="col-md-2">
-    </div>
   </div>
 </div>