web: Add style sheet.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 16 Jun 2020 19:36:36 +0000 (21:36 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 22 Sep 2020 19:28:31 +0000 (21:28 +0200)
The style sheet configures different background colors for even and
odd numbered lines of the API summary. This visual aid should make
the document easier to follow.

web/header.html

index 0dfffa6..a497428 100644 (file)
@@ -5,6 +5,30 @@
        <meta http-equiv='Content-Type' content='text/html; charset=utf-8'>
        <title>OSL - the object storage layer library</title>
        <link rel="shortcut icon" href="osl.ico">
+       <style type='text/css'>
+               body {
+                       color: #000;
+                       background-color: #fff;
+                       text-align: justify;
+                       padding: 0px 30px 0px 25px;
+               }
+               p {
+                       text-align: justify;
+               }
+               .toc tr:nth-child(odd) {
+                       background-color: #ccc;
+               }
+               .toc tr:nth-child(even) {
+                       background-color: #ddd;
+               }
+               .toc table {
+                       margin: 5px;
+                       border: solid;
+               }
+               .toc td {
+                       padding: 12px;
+               }
+       </style>
 </head>
 
 <body>