[mm-common] Avoid using pixels as a unit in the style sheet



commit 59e11eb41e5ef860cd5bb12131fab601583f1624
Author: Daniel Elstner <danielk openismus com>
Date:   Thu Sep 3 11:01:51 2009 +0200

    Avoid using pixels as a unit in the style sheet
    
    * util/doxygen.css: Use unit 'em' instead of 'px' where feasible.
    Merge or split blocks where appropriate to streamline the CSS.

 util/doxygen.css |   74 +++++++++++++++++++++++++----------------------------
 1 files changed, 35 insertions(+), 39 deletions(-)
---
diff --git a/util/doxygen.css b/util/doxygen.css
index 56783f5..12227d5 100644
--- a/util/doxygen.css
+++ b/util/doxygen.css
@@ -26,6 +26,7 @@ address img {
 
 h1 {
   font-size: 150%;
+  line-height: 120%;
   text-align: center;
 }
 
@@ -45,6 +46,10 @@ caption {
   font-weight: bold;
 }
 
+p, dl {
+  margin: 0.75em 0;
+}
+
 .center {
   text-align: center;
 }
@@ -55,8 +60,8 @@ div.qindex {
   background-color: #E8EEF2;
   border: 1px solid #84B0C7;
   text-align: center;
-  margin: 2px;
-  padding: 2px;
+  margin: 0.2em;
+  padding: 0.2em;
 }
 
 a {
@@ -73,16 +78,12 @@ a:hover {
   text-decoration: underline;
 }
 
-a.qindex {
-  font-weight: bold;
-}
-
-a.el {
+a.el, a.qindex {
   font-weight: bold;
 }
 
 dl.el {
-  margin-left: -1cm;
+  margin-left: -1.5em;
 }
 
 code, .fragment {
@@ -90,35 +91,29 @@ code, .fragment {
 }
 
 pre.fragment {
-  border: 1px solid #AAAAFF;
   background-color: #EEEEFF;
+  border: 1px solid #AAAAFF;
   padding: 0.5em;
-  margin: 4px 8px 4px 2px;
+  margin: 0.375em 0.75em 0.375em 0.2em;
 }
 
 div.ah {
   background-color: #000000;
-  font-weight: bold;
   color: #FFFFFF;
-  margin-bottom: 3px;
-  margin-top: 3px
-}
-
-.indexkey {
   font-weight: bold;
-  background-color: #E8EEF2;
-  border: 1px solid #CCCCCC;
-  margin: 2px 0px 2px 0;
-  padding: 2px 10px;
+  margin: 0.2em 0;
 }
 
-.indexvalue {
+.indexkey, .indexvalue {
   background-color: #E8EEF2;
   border: 1px solid #CCCCCC;
-  padding: 2px 10px;
-  margin: 2px 0px;
+  margin: 0.2em 0;
+  padding: 0.2em 0.75em;
 }
 
+.indexkey {
+  font-weight: bold;
+}
 .memlist {
   background-color: #F0F0F0;
 }
@@ -165,12 +160,12 @@ hr {
 .memTemplItemLeft, .memTemplItemRight, .memTemplParams {
   background-color: #FAFAFA;
   border: none;
-  margin: 4px;
-  padding: 1px 0 0 8px;
+  margin: 0.375em;
+  padding: 0.125em 0 0 0.75em;
 }
 
 .mdescLeft, .mdescRight {
-  padding: 0px 8px 4px 8px;
+  padding: 0 0.75em 0.375em;
   color: #555555;
 }
 
@@ -186,25 +181,26 @@ hr {
   color: #606060;
   font-size: 90%;
   font-weight: normal;
-  margin-left: 3px;
+  margin-left: 0.2em;
 }
 
 .memnav {
   background-color: #E8EEF2;
   border: 1px solid #84B0C7;
   text-align: center;
-  margin: 2px;
-  margin-right: 15px;
-  padding: 2px;
+  margin: 0.2em 1em 0.2em 0;
+  padding: 0.2em;
 }
 
 .memitem {
+  margin: 0.25em 0;
   padding: 0;
 }
 
 .memname {
   white-space: nowrap;
   font-weight: bold;
+  line-height: 120%;
 }
 
 .memproto, .memdoc {
@@ -215,20 +211,20 @@ hr {
   padding: 0;
   background-color: #D5E1E8;
   font-weight: bold;
-  -webkit-border-top-left-radius: 8px;
-  -webkit-border-top-right-radius: 8px;
-  -moz-border-radius-topleft: 8px;
-  -moz-border-radius-topright: 8px;
+  -webkit-border-top-left-radius: 1ex;
+  -webkit-border-top-right-radius: 1ex;
+  -moz-border-radius-topleft: 1ex;
+  -moz-border-radius-topright: 1ex;
 }
 
 .memdoc {
-  padding: 2px 5px;
+  padding: 0.2em 0.5em;
   background-color: #EEF3F5;
   border-top-width: 0;
-  -webkit-border-bottom-left-radius: 8px;
-  -webkit-border-bottom-right-radius: 8px;
-  -moz-border-radius-bottomleft: 8px;
-  -moz-border-radius-bottomright: 8px;
+  -webkit-border-bottom-left-radius: 1ex;
+  -webkit-border-bottom-right-radius: 1ex;
+  -moz-border-radius-bottomleft: 1ex;
+  -moz-border-radius-bottomright: 1ex;
 }
 
 .paramkey {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]