]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/_themes: fix the styling of section header and list items 40615/head
authorKefu Chai <kchai@redhat.com>
Tue, 6 Apr 2021 11:30:28 +0000 (19:30 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 6 Apr 2021 13:38:01 +0000 (21:38 +0800)
in the latest document generated from RtD, the section headers are now
in <section> tags instead of <div class="section">, so update the css
accordingly.

also tweak the style of the list items in unordered list to be the same
as it was.

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/_themes/ceph/static/ceph.css_t

index 86343bea3603e5ed6fedcc6fa0be69f2560e624f..cedcce8ea80288055e3b2ff389a896bc2895b41d 100644 (file)
@@ -41,12 +41,12 @@ body {
   font-size: 0.9em;
 }
 
-div.section h1,
-div.section h2,
-div.section h3,
-div.section h4,
-div.section h5,
-div.section h6 {
+section h1,
+section h2,
+section h3,
+section h4,
+section h5,
+section h6 {
   font-weight: normal;
   margin: 30px 0px 10px 0px;
   padding: 5px 0 5px 10px;
@@ -54,16 +54,16 @@ div.section h6 {
   text-transform: uppercase;
 }
 
-div.section h1 {
+section h1 {
   border-top: 20px solid white; margin-top: 0;
 }
 
-div.section h1 { font-family: Titillium Web; font-size: 200%; background-color: #99DAE3;}
-div.section h2 { font-family: Titillium Web; font-size: 150%; background-color: #B2E3EA; }
-div.section h3 { font-family: Titillium Web; font-size: 120%; background-color: #CCECF1; }
-div.section h4 { font-family: Helvetica, Arial, sans-serif; font-size: 110%; background-color: #CCECF1; }
-div.section h5 { font-family: Helvetica, Arial, sans-serif; font-size: 100%; background-color: #CCECF1; }
-div.section h6 { font-family: Helvetica, Arial, sans-serif; font-size: 100%; background-color: #CCECF1; }
+section h1 { font-family: Titillium Web; font-size: 200%; background-color: #99DAE3;}
+section h2 { font-family: Titillium Web; font-size: 150%; background-color: #B2E3EA; }
+section h3 { font-family: Titillium Web; font-size: 120%; background-color: #CCECF1; }
+section h4 { font-family: Helvetica, Arial, sans-serif; font-size: 110%; background-color: #CCECF1; }
+section h5 { font-family: Helvetica, Arial, sans-serif; font-size: 100%; background-color: #CCECF1; }
+section h6 { font-family: Helvetica, Arial, sans-serif; font-size: 100%; background-color: #CCECF1; }
 
 /* nature theme */
 div.highlight {
@@ -137,6 +137,11 @@ html.writer-html5 .rst-content table.docutils th,
   margin-top: 1em;
 }
 
+.rst-content section ul li {
+  list-style: disc;
+  margin-left: 24px;
+}
+
 /* versions */
 .injected .rst-versions.rst-badge {
   left: 0;