From df596e752f0f3a368074cd243211aa46083d982a Mon Sep 17 00:00:00 2001 From: Ed Ward Date: Tue, 26 Feb 2019 11:43:27 +0100 Subject: [PATCH] CSS simplification (no visual change hopefully) --- build.py | 10 ++--- onepage-template.txt | 2 +- page-template.txt | 51 +++++++++++---------- source/css/app.css | 104 +------------------------------------------ 4 files changed, 32 insertions(+), 135 deletions(-) diff --git a/build.py b/build.py index dbe5448..ddfdfa3 100755 --- a/build.py +++ b/build.py @@ -312,15 +312,15 @@ def FixInternalLinks(links, content, title): # looking at currently # def BuildList(lst, fs, pagePos, cList): - content = '\n\n
\n' + content = '\n\n
\n' + content = content + '\n' return content diff --git a/onepage-template.txt b/onepage-template.txt index 750369d..215e536 100644 --- a/onepage-template.txt +++ b/onepage-template.txt @@ -20,7 +20,7 @@ {% tree %} - +
diff --git a/page-template.txt b/page-template.txt index aa10395..06dd49d 100644 --- a/page-template.txt +++ b/page-template.txt @@ -18,35 +18,34 @@
-
-

The Ardour Manual

- +

The Ardour Manual

- {% tree %} + + + {% tree %} -
diff --git a/source/css/app.css b/source/css/app.css index 5abbe55..9da882f 100644 --- a/source/css/app.css +++ b/source/css/app.css @@ -33,9 +33,6 @@ ul.inside li, ol.inside li { bottom: 0; left: 0; width: 20em; -} - -#tree-inner { padding: 1em 1em 2em 1.5em; } @@ -45,10 +42,6 @@ ul.inside li, ol.inside li { font-weight: normal; } -#tree dl { - margin-left: 1em; -} - #tree ul { padding-left: 1em; list-style-type: none; @@ -58,26 +51,6 @@ ul.inside li, ol.inside li { border-bottom: none; } -#tree dd.other { - display: none; -} - -#tree .level-1, -#tree .parent, -#tree .child, -#tree .parent *, -#tree .child * { - display: inherit; - color: inherit; -} - -#tree dd.child-1, -#tree .child-2, -#tree .child-3, -#tree .child-4 { - display: none; -} - #tree a { display: inline !important; font-size: 0.88em; @@ -102,6 +75,7 @@ ul.inside li, ol.inside li { #content { padding: 1em 2em 2ex 21em; margin-left: 0; + line-height: 2em; } #content-main { @@ -109,16 +83,6 @@ ul.inside li, ol.inside li { padding-left: .5em; } - -#content p, -#content li, -#content dt, -#content dd, -#content td, -#content th{ - line-height: 2em; -} - #content h1, #content h2, #content h3, @@ -159,14 +123,12 @@ ul.inside li, ol.inside li { border-bottom: 1px solid #eee; } -#content table, -#content table.dl { +#content table { width:100%; margin: 1em 0; padding: 0; font-weight: normal; text-align: left; - line-height: 2ex; } #content table tr { @@ -225,54 +187,6 @@ ul.inside li, ol.inside li { width: 100%; } -#content dl -{ - float:none; - clear:both; - width:100%; - margin: 1em 0; - padding: 0; - display:inline-block; -} - -#content dl:after { - content:' '; - display:block; - clear:both; -} - -#content dt, -#content dd { - border-top: 2px solid #eee; - float: left; - margin: 0; - padding: .5em; - font-weight: normal; -} - -#content dt { - clear: left; - width: 25%; -} - -#content dd { - width: 65%; -} - -#content dt.sub1 { - padding-left: 2em; -} - -#content dt.sub2 { - padding-left: 4em; -} - -#content dt:first-child, -#content dd:nth-child(2) { - border-top: none; -} - - #content figure { display: table; } @@ -312,20 +226,6 @@ ul.inside li, ol.inside li { clear: both; } -.multicol2 { - width: 48%; - float:left; - padding:0 0 0 2%; - margin:0; -} - -.multicol3 { - width: 31%; - float:left; - padding:0 0 0 2%; - margin:0; -} - kbd { display: inline-block; min-width: 1em;