]> Shamusworld >> Repos - ardour-manual/commitdiff
CSS simplification (no visual change hopefully)
authorEd Ward <edwsaintesprit@hotmail.com>
Tue, 26 Feb 2019 10:43:27 +0000 (11:43 +0100)
committerLen Ovens <len@ovenwerks.net>
Tue, 26 Feb 2019 16:36:33 +0000 (08:36 -0800)
build.py
onepage-template.txt
page-template.txt
source/css/app.css

index dbe5448e56bdf85a8b9c42ddd07a9a3e586e59ec..ddfdfa3ed612eebf1750cb15de852dd2a5a64e38 100755 (executable)
--- 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<dl>\n'
+       content = '\n\n<ul>\n'
 
        for i in range(len(lst)):
                curPos = lst[i]
-               nextPos = lst[i + 1] if i + 1 < len(lst)  else len(fs)
+               nextPos = lst[i + 1] if i + 1 < len(lst) else len(fs)
 
                active = ' class=active' if curPos == pagePos else ''
                menuTitle = fs[curPos]['menu_title'] if 'menu_title' in fs[curPos] else fs[curPos]['title']
-               content = content + '<dt' + active + '><a href="/' + fs[curPos]['filename'] + '/">' + menuTitle + '</a></dt><dd' + active + '>'
+               content = content + '<li' + active + '><a href="/' + fs[curPos]['filename'] + '/">' + menuTitle + '</a></li>'
 
                # If the current page is our page, and it has children, enumerate them
                if curPos == pagePos:
@@ -332,9 +332,7 @@ def BuildList(lst, fs, pagePos, cList):
                elif (pagePos > curPos) and (pagePos < nextPos):
                        content = content + BuildList(cList[curPos], fs, pagePos, cList)
 
-               content = content + '</dd>\n'
-
-       content = content + '</dl>\n'
+       content = content + '</ul>\n'
 
        return content
 
index 750369d07ec5bac8476c6004086c4237c5cf761a..215e536b8aab05e404b984c9c0bb2942703a37a9 100644 (file)
@@ -20,7 +20,7 @@
 
                                {% tree %}
 
-                       </div> <!-- navbar -->
+                       </div> <!-- tree -->
 
                        <div class="span12" id="content">
                                <div id="content-main">
index aa103955b3992aa89dc87e1b8230740abbe7c5af..06dd49d2d20076bbedaf8bfd68173a9a242b06f1 100644 (file)
        <div class="container-fluid">
                <div class="row-fluid">
                        <div id="tree">
-                               <div id="tree-inner">
-                                       <h1 class="title"><a href="/"><img class="img-responsive" src="/images/logo.png" alt="The Ardour Manual" /></a></h1>
-
-                                       <form id="custom-search-form" class="navbar-form" method="post" action="https://duckduckgo.com">
-                                               <div class="input-group">
-                                                       <input type="text" class="form-control" placeholder="Search &hellip;" name="q">
-                                                       <span class="input-group-btn">
-                                                               <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
-                                                               <button class="btn btn-default" type="button" onclick="window.location.href='/ardourmanual.html'"><span class="glyphicon glyphicon-book" aria-hidden="true"></span></button>
-                                                       </span>
-                                               </div>
-                                               <input type="hidden" name="sites" value="manual.ardour.org"><!-- domain -->
-                                               <input type="hidden" name="kh" value="1"> <!--HTTPS on/off -->
-                                               <input type="hidden" name="kl" value="wt-wt"> <!--region wt-wt = no region/worldwide -->
-                                               <input type="hidden" name="kg" value="p"> <!--get [g] vs post [p] -->
-                                               <input type="hidden" name="k7" value="w"> <!-- background colour -->
-                                               <input type="hidden" name="kj" value="#212a30"> <!-- results page header colour -->
-                                               <input type="hidden" name="kx" value="#59acd4"> <!-- URLs colour -->
-                                               <input type="hidden" name="k1" value="-1"> <!-- adverts on/off -->
-                                               <input type="hidden" name="k9" value="#59acd4"> <!-- links colour -->
-                                               <input type="hidden" name="kaa" value="#2d586c"> <!-- visited links colour -->
-                                               <input type="hidden" name="kae" value="#cc0000"> <!-- theme [changes result titles] colour -->
-                                               <input type="hidden" name="ka" value="junge"> <!-- link font -->
-                                               <input type="hidden" name="kt" value="junge"> <!-- text font -->
-                                       </form>
-
-                                       {% tree %}
-
-                               </div> <!-- tree-inner -->
+
+                               <h1 class="title"><a href="/"><img class="img-responsive" src="/images/logo.png" alt="The Ardour Manual" /></a></h1>
+
+                               <form id="custom-search-form" class="navbar-form" method="post" action="https://duckduckgo.com">
+                                       <div class="input-group">
+                                               <input type="text" class="form-control" placeholder="Search &hellip;" name="q">
+                                               <span class="input-group-btn">
+                                                       <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
+                                                       <button class="btn btn-default" type="button" onclick="window.location.href='/ardourmanual.html'"><span class="glyphicon glyphicon-book" aria-hidden="true"></span></button>
+                                               </span>
+                                       </div>
+                                       <input type="hidden" name="sites" value="manual.ardour.org"><!-- domain -->
+                                       <input type="hidden" name="kh" value="1"> <!--HTTPS on/off -->
+                                       <input type="hidden" name="kl" value="wt-wt"> <!--region wt-wt = no region/worldwide -->
+                                       <input type="hidden" name="kg" value="p"> <!--get [g] vs post [p] -->
+                                       <input type="hidden" name="k7" value="w"> <!-- background colour -->
+                                       <input type="hidden" name="kj" value="#212a30"> <!-- results page header colour -->
+                                       <input type="hidden" name="kx" value="#59acd4"> <!-- URLs colour -->
+                                       <input type="hidden" name="k1" value="-1"> <!-- adverts on/off -->
+                                       <input type="hidden" name="k9" value="#59acd4"> <!-- links colour -->
+                                       <input type="hidden" name="kaa" value="#2d586c"> <!-- visited links colour -->
+                                       <input type="hidden" name="kae" value="#cc0000"> <!-- theme [changes result titles] colour -->
+                                       <input type="hidden" name="ka" value="junge"> <!-- link font -->
+                                       <input type="hidden" name="kt" value="junge"> <!-- text font -->
+                               </form>
+
+                               {% tree %}
+
                        </div> <!-- tree -->
 
                        <div class="span12" id="content">
index 5abbe55abe3dfe7301c0dd04096c679b3c6d9db2..9da882f7ba4bcafe294556f2e3c22fb9e7217dc6 100644 (file)
@@ -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;