Permalink
Browse files

whitespace changes: made css codings style more consistent

  • Loading branch information...
selfthinker committed Mar 24, 2012
1 parent 397ce8b commit f66c39553acde6478e81ec682c35a7eaee2526f5
Showing with 316 additions and 106 deletions.
  1. +125 −45 css/basic.css
  2. +41 −14 css/content.css
  3. +34 −13 css/design.css
  4. +64 −20 css/print.css
  5. +52 −14 css/rtl.css
View
@@ -12,7 +12,8 @@ html {
overflow-x: auto;
overflow-y: scroll;
}
-html, body {
+html,
+body {
background-color: __background__;
color: __text__;
margin: 0;
@@ -26,8 +27,14 @@ body {
/*____________ headers ____________*/
-h1, h2, h3, h4, h5, h6,
-caption, legend {
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+caption,
+legend {
font-family: Constantia, Utopia, Lucidabright, Lucida, Georgia, "Nimbus Roman No9 L", serif;
font-weight: bold;
color: __text_neu__;
@@ -37,19 +44,45 @@ caption, legend {
clear: left; /* ideally 'both', but problems with toc */
}
-h1 { font-size: 2.25em; margin: 0 0 0.444em; }
-h2 { font-size: 1.5em; margin: 0 0 0.666em; }
-h3 { font-size: 1.125em; margin: 0 0 0.888em; }
-h4 { font-size: 1em; margin: 0 0 1.0em; }
-h5 { font-size: .875em; margin: 0 0 1.1428em; }
-h6 { font-size: .75em; margin: 0 0 1.333em; }
+h1 {
+ font-size: 2.25em;
+ margin: 0 0 0.444em;
+}
+h2 {
+ font-size: 1.5em;
+ margin: 0 0 0.666em;
+}
+h3 {
+ font-size: 1.125em;
+ margin: 0 0 0.888em;
+}
+h4 {
+ font-size: 1em;
+ margin: 0 0 1.0em;
+}
+h5 {
+ font-size: .875em;
+ margin: 0 0 1.1428em;
+}
+h6 {
+ font-size: .75em;
+ margin: 0 0 1.333em;
+}
/* bottom margin = 1 / font-size */
/*____________ basic margins and paddings ____________*/
-p, ul, ol, dl, pre, table,
-hr, blockquote, fieldset, address {
+p,
+ul,
+ol,
+dl,
+pre,
+table,
+hr,
+blockquote,
+fieldset,
+address {
margin: 0 0 1.4em 0; /* bottom margin = line-height */
padding: 0;
}
@@ -59,16 +92,15 @@ div {
padding: 0;
}
-p, dt, dd, td, th, li {
-}
-
/*____________ lists ____________*/
-ul, ol {
+ul,
+ol {
padding: 0 0 0 1.5em;
}
-li, dd {
+li,
+dd {
padding: 0;
margin: 0 0 0 1.5em;
}
@@ -78,21 +110,37 @@ dt {
padding: 0;
}
-li ul, li ol, li dl,
-dl ul, dl ol, dl dl {
+li ul,
+li ol,
+li dl,
+dl ul,
+dl ol,
+dl dl {
margin-bottom: 0;
padding: 0;
}
li li {
font-size: 100%;
}
-ul { list-style: disc outside; }
-ol { list-style: decimal outside; }
-ol ol { list-style-type: lower-alpha; }
-ol ol ol { list-style-type: upper-roman; }
-ol ol ol ol { list-style-type: upper-alpha; }
-ol ol ol ol ol { list-style-type: lower-roman; }
+ul {
+ list-style: disc outside;
+}
+ol {
+ list-style: decimal outside;
+}
+ol ol {
+ list-style-type: lower-alpha;
+}
+ol ol ol {
+ list-style-type: upper-roman;
+}
+ol ol ol ol {
+ list-style-type: upper-alpha;
+}
+ol ol ol ol ol {
+ list-style-type: lower-roman;
+}
/*____________ tables ____________*/
@@ -110,7 +158,8 @@ caption {
margin: 0 0 .3em;
}
-th, td {
+th,
+td {
padding: .3em .5em;
margin: 0;
vertical-align: top;
@@ -127,19 +176,25 @@ th {
a {
}
-a:link, a:visited {
+a:link,
+a:visited {
text-decoration: none;
color: #00c; /* §colour */
}
-a:link:hover, a:visited:hover,
-a:link:focus, a:visited:focus,
-a:link:active, a:visited:active {
+a:link:hover,
+a:visited:hover,
+a:link:focus,
+a:visited:focus,
+a:link:active,
+a:visited:active {
text-decoration: underline;
}
-a:link:focus, a:visited:focus {
+a:link:focus,
+a:visited:focus {
outline: 1px dotted;
}
-a:link:active, a:visited:active {
+a:link:active,
+a:visited:active {
color: #c00; /* §colour */
}
@@ -154,7 +209,8 @@ img {
font-style: italic;
}
-img, object {
+img,
+object {
max-width: 100%;
}
@@ -167,13 +223,17 @@ hr {
clear: both;
}
-acronym, abbr {
+acronym,
+abbr {
cursor: help;
border-bottom: 1px dotted;
font-style: normal;
}
-pre, code, samp, kbd {
+pre,
+code,
+samp,
+kbd {
font-family: Consolas, "Andale Mono WT", "Andale Mono", "Bitstream Vera Sans Mono", "Nimbus Mono L", Monaco, "Courier New", monospace;
/* same font stack should be used for ".dokuwiki table.diff td" in _diff.css */
font-size: 1em;
@@ -190,11 +250,13 @@ blockquote {
border: solid __border__;
border-width: 0 0 0 .25em;
}
-q:before, q:after {
+q:before,
+q:after {
content: '';
}
-sub, sup {
+sub,
+sup {
font-size: .8em;
line-height: 1;
}
@@ -224,30 +286,48 @@ label {
vertical-align: middle;
cursor: pointer;
}
-input, textarea, button,
-select, optgroup, option {
+input,
+textarea,
+button,
+select,
+optgroup,
+option {
font: inherit;
color: inherit;
/* background-color destroys button look */
line-height: 1;
margin: 0;
vertical-align: middle;
}
-input[type=text], input[type=password], textarea {
+input[type=text],
+input[type=password],
+textarea {
padding: .1em;
}
-input[type=radio], input[type=checkbox], input.check {
+input[type=radio],
+input[type=checkbox],
+input.check {
padding: 0;
}
-input[type=submit], input.button, button {
+input[type=submit],
+input.button,
+button {
cursor: pointer;
}
-input[disabled], button[disabled],
-input[readonly], button[readonly] {
+input[disabled],
+button[disabled],
+input[readonly],
+button[readonly] {
cursor: auto;
}
-optgroup { font-style: italic; font-weight: bold; }
-option { font-style: normal; font-weight: normal; }
+optgroup {
+ font-style: italic;
+ font-weight: bold;
+}
+option {
+ font-style: normal;
+ font-weight: normal;
+}
/*____________ general classes ____________*/
View
@@ -8,27 +8,54 @@
/*____________ section indenting ____________
-.dokuwiki.page h1 {margin-left: 0;}
-.dokuwiki.page h2 {margin-left: .666em;}
-.dokuwiki.page h3 {margin-left: 1.776em;}
-.dokuwiki.page h4 {margin-left: 3em;}
-.dokuwiki.page h5 {margin-left: 4.5712em;}
-.dokuwiki.page div.level1 {margin-left: 0;}
-.dokuwiki.page div.level2 {margin-left: 1em;}
-.dokuwiki.page div.level3 {margin-left: 2em;}
-.dokuwiki.page div.level4 {margin-left: 3em;}
-.dokuwiki.page div.level5 {margin-left: 4em;}
+.dokuwiki.page h1 {
+ margin-left: 0;
+}
+.dokuwiki.page div.level1 {
+ margin-left: 0;
+}
+.dokuwiki.page h2 {
+ margin-left: .666em;
+}
+.dokuwiki.page div.level2 {
+ margin-left: 1em;
+}
+.dokuwiki.page h3 {
+ margin-left: 1.776em;
+}
+.dokuwiki.page div.level3 {
+ margin-left: 2em;
+}
+.dokuwiki.page h4 {
+ margin-left: 3em;
+}
+.dokuwiki.page div.level4 {
+ margin-left: 3em;
+}
+.dokuwiki.page h5 {
+ margin-left: 4.5712em;
+}
+.dokuwiki.page div.level5 {
+ margin-left: 4em;
+}
*/
/* hx margin-left = (1 / font-size) * .levelx-margin */
/*____________ images ____________*/
/* embedded images (styles are already partly set in DokuWiki's lib/styles/all.css) */
-.dokuwiki img.media { }
-.dokuwiki img.medialeft { margin: .5em 1.5em .5em 0; }
-.dokuwiki img.mediaright { margin: .5em 0 .5em 1.5em; }
-.dokuwiki img.mediacenter { margin: .5em auto; }
+.dokuwiki img.media {
+}
+.dokuwiki img.medialeft {
+ margin: .5em 1.5em .5em 0;
+}
+.dokuwiki img.mediaright {
+ margin: .5em 0 .5em 1.5em;
+}
+.dokuwiki img.mediacenter {
+ margin: .5em auto;
+}
/*____________ tables ____________*/
Oops, something went wrong.

0 comments on commit f66c395

Please sign in to comment.