]> gitweb.factorcode.org Git - factor.git/commitdiff
webapps: using nav html element, cleanup
authorJohn Benediktsson <mrjbq7@gmail.com>
Fri, 5 Aug 2022 23:42:20 +0000 (16:42 -0700)
committerJohn Benediktsson <mrjbq7@gmail.com>
Fri, 5 Aug 2022 23:42:20 +0000 (16:42 -0700)
14 files changed:
extra/parser-combinators/parser-combinators.html
extra/webapps/blogs/blogs-common.xml
extra/webapps/help/help.factor
extra/webapps/help/search.xml
extra/webapps/pastebin/pastebin-common.xml
extra/webapps/planet/planet-common.xml
extra/webapps/todo/todo.xml
extra/webapps/user-admin/user-admin.xml
extra/webapps/wee-url/wee-url.xml
extra/webapps/wiki/page-common.xml
extra/webapps/wiki/wiki-common.xml
extra/webapps/wiki/wiki-contents.css
extra/webapps/wiki/wiki.css
extra/websites/concatenative/page.css

index 6d449130d0c1efda5e86c29ae6e708f722f86fcd..3c7a0f25c3f845caa84ee6f0dda31585aa34edd6 100644 (file)
@@ -335,8 +335,9 @@ factored a little, looks quite readable:</p>
   ( 3 ) "40+2" expression call lcar .
         =&gt; [[ "" 42 ]]
 </pre>
-<p class="footer">
+<footer>
 News and updates to this software can be obtained from the authors
 weblog: <a href="http://radio.weblogs.com/0102385">Chris Double</a>.</p>
-<p id="copyright">Copyright (c) 2004, Chris Double. All Rights Reserved.</p>
+<p id="copyright">Copyright (c) 2004, Chris Double. All Rights Reserved.
+</footer>
 </body> </html>
index 1beddd68463eabbaf7a785594192c4b6530734e0..30a53564170087e04ca7d0d9c57c6b08cef30e63 100644 (file)
@@ -2,34 +2,34 @@
 
 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
 
-       <t:atom t:href="$blogs/posts.atom">Recent Posts</t:atom>
+    <t:atom t:href="$blogs/posts.atom">Recent Posts</t:atom>
 
-       <t:style t:include="resource:extra/webapps/blogs/blogs.css" />
+    <t:style t:include="resource:extra/webapps/blogs/blogs.css" />
 
-       <div class="navbar">
-       <div class="navrow">
+    <nav>
+    <div class="navrow">
 
-               <t:a t:href="$blogs/">All Posts</t:a>
-               <t:a t:href="$blogs/by">My Posts</t:a>
-               <t:a t:href="$blogs/new-post">New Post</t:a>
+        <t:a t:href="$blogs/">All Posts</t:a>
+        <t:a t:href="$blogs/by">My Posts</t:a>
+        <t:a t:href="$blogs/new-post">New Post</t:a>
 
-               <t:if t:code="furnace.auth:logged-in?">
+        <t:if t:code="furnace.auth:logged-in?">
 
-                       <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
-                               <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
-                       </t:if>
+            <t:if t:code="furnace.auth.features.edit-profile:allow-edit-profile?">
+                <t:a t:href="$realm/edit-profile" t:aside="begin">Edit Profile</t:a>
+            </t:if>
 
-                       <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
+            <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
 
-               </t:if>
+        </t:if>
 
-       </div>
-       </div>
+    </div>
+    </nav>
 
-       <div class="page">
-       <h1><t:write-title /></h1>
+    <div class="page">
+    <h1><t:write-title /></h1>
 
-       <t:call-next-template />
-       </div>
+    <t:call-next-template />
+    </div>
 
 </t:chloe>
index 73066f5ec7446e30395f34dd6a9cabd8ec4dd940..79c789ed02218eb891d3de54bbb78ee629f6397c 100644 (file)
@@ -33,7 +33,7 @@ TUPLE: help-webapp < dispatcher ;
                     [ vocab-apropos ?links "vocabs" set-value ] tri
                 ] with-directory
             ] unless-empty not "empty" set-value
-            help-navbar "navbar" set-value
+            help-nav "nav" set-value
 
             { help-webapp "search" } <chloe-content>
         ] >>display
index b64b49ecbda22c0485b5b48a88ef2384717e7be8..6446b8e80017bbf1af060fdcc6e2c999c0ca295f 100644 (file)
@@ -6,7 +6,7 @@
     <t:style t:include="resource:extra/webapps/help/search.css" />
     <t:script t:include="resource:extra/webapps/help/search.js" />
 
-    <t:html t:name="navbar"/>
+    <t:html t:name="nav"/>
 
     <div class="page">
 
@@ -57,7 +57,7 @@
     </div>
 
     <br />
-    <div class="footer">
+    <footer>
     <p>
     This documentation was generated offline from a
     <code>load-all</code> image.  If you want, you can also
@@ -66,7 +66,7 @@
     the <a href="https://factorcode.org">Factor website</a>
     for more information.
     </p>
-    </div>
+    </footer>
 
     </div>
 
index 852ac433b05bf22626ffae4f0497871d2e25444e..44d0859875827f73ca357c61b502b76faa2b561c 100644 (file)
@@ -6,7 +6,7 @@
 
        <t:style t:include="resource:extra/webapps/pastebin/pastebin.css" />
 
-    <div class="navbar">
+    <nav>
     <div class="navrow">
         <a href="https://factorcode.org"><img src="https://factorcode.org/favicon.ico" width="24" height="24" /></a>
 
@@ -22,7 +22,7 @@
             <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
         </t:if>
     </div>
-    </div>
+    </nav>
 
     <div class="page">
         <h1><t:write-title /></h1>
index 0a49452d887bcbc1fc15ff2c55d158f31b34e5c0..bb8aafd8742c62dc06ba1f3c44f475727d081ce7 100644 (file)
@@ -4,7 +4,7 @@
 
        <t:style t:include="resource:extra/webapps/planet/planet.css" />
 
-       <div class="navbar">
+    <nav>
        <div class="navrow">
                <a href="https://factorcode.org"><img src="https://factorcode.org/favicon.ico" width="24" height="24" /></a>
 
@@ -20,7 +20,7 @@
                        <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
         </t:if>
        </div>
-       </div>
+       </nav>
 
     <div class="page">
        <h1><t:write-title /></h1>
index 39578084d9b6ba1df82479648ca54d2816812282..d74e93972dd4d5e900bb8ca24bc4e73f34fa9474 100644 (file)
@@ -10,7 +10,7 @@
 
     <body>
 
-       <div class="navbar">
+    <nav>
        <div class="navrow">
                <t:a t:href="$todo-list/list">List Items</t:a>
                <t:a t:href="$todo-list/new">Add Item</t:a>
@@ -21,7 +21,7 @@
 
                <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
        </div>
-       </div>
+       </nav>
 
        <div class="page">
        <h1><t:write-title /></h1>
index 1144f8eec64d2b42b7e0ecad8a0583e913a4b7c0..3c0f937d08fec2a11980258da21e2f7c67682d3f 100644 (file)
@@ -2,7 +2,7 @@
 
 <t:chloe xmlns:t="http://factorcode.org/chloe/1.0">
 
-       <div class="navbar">
+    <nav>
                <t:a t:href="$user-admin">List Users</t:a>
                <t:a t:href="$user-admin/new">Add User</t:a>
 
@@ -11,7 +11,7 @@
                </t:if>
 
                <t:button t:action="$login-realm/logout" t:aside="begin" class="link-button link">Logout</t:button>
-       </div>
+       </nav>
 
        <h1><t:write-title /></h1>
 
index 98d1095ed67f9855e53d3962cee432072dfd7a7d..df0a6c8c08aa1ac89ecd4f4702f2475073d3cb56 100644 (file)
@@ -4,7 +4,7 @@
 
        <t:title>WeeURL!</t:title>
 
-       <div class="navbar"><t:a t:href="$wee-url">Shorten URL</t:a></div>
+       <nav><t:a t:href="$wee-url">Shorten URL</t:a></nav>
 
        <h1><t:write-title /></h1>
 
index 072df30e8a10908c3607aae31f06b2f22edf9d23..42291693cfa51b33a66b749f2a229572edf218c0 100644 (file)
@@ -8,13 +8,13 @@
 
        <t:call-next-template />
 
-       <div class="navbar">
+    <nav>
        <div class="navrow">
                <t:a t:href="$wiki/view" t:rest="title">Latest</t:a>
                <t:a t:href="$wiki/revisions" t:rest="title">Revisions</t:a>
                <t:a t:href="$wiki/edit" t:rest="title" rel="nofollow">Edit</t:a>
                <t:button t:action="$wiki/delete" t:for="title" class="link-button link">Delete</t:button>
        </div>
-       </div>
+       </nav>
 
 </t:chloe>
index 92ec99ab9fc8bfd232031198232640c4f43da339..95732bf6f1f892132b35e80fdae7d1380e707b73 100644 (file)
@@ -33,7 +33,7 @@
 
     <div id="right">
 
-        <div class="navbar">
+        <nav>
         <div class="navrow">
 
             <t:if t:value="contents">
@@ -56,7 +56,7 @@
             </t:if>
 
         </div>
-        </div>
+        </nav>
 
         <div class="page">
             <h1 class="title"><t:write-title /></h1>
         </div>
 
         <t:if t:value="footer">
-            <div class="footer">
+            <footer>
                 <t:bind t:name="footer">
                     <t:farkup t:name="content" t:no-follow="true" />
                 </t:bind>
-            </div>
+            </footer>
         </t:if>
 
     </div>
index 1dc461827da33828c6750c3fa150859617d8eac0..552942d52857a07414b804709f36e1c04028b867 100644 (file)
@@ -9,7 +9,7 @@
     margin-left: 200px;
 }
 
-.navbar img {
+nav img {
     margin: -15px;
     margin-top: -19px;
     margin-right: 0px;
@@ -31,7 +31,7 @@
         margin-left: 0;
     }
 
-    .navbar img {
+    nav img {
         display: inline;
     }
 }
index d8ce628ab5440f787f56e5de1272c22a38f44d1d..81746b44fffe5eb8d06acda66119d5006f6de8c3 100644 (file)
@@ -72,7 +72,7 @@
     padding-bottom: 15px;
 }
 
-.page .navbar {
+.page nav {
     margin-left: -15px;
     margin-right: -15px;
     margin-bottom: -15px;
index 0eb11ac4e0aac6043cced875fc4fe1441aa94de2..c420456f7a154f8abe6b16bbffadda94c6adf272 100644 (file)
@@ -51,7 +51,8 @@ a:hover, .link:hover { text-decoration: underline; }
 .inline {
     display: inline;
 }
-.navbar {
+
+nav {
     border-bottom: 1px solid #ccc;
     background-color: #f5f5f5;
 }
@@ -98,11 +99,11 @@ a:hover, .link:hover { text-decoration: underline; }
         color: #8ab4f8;
     }
 
-    .page .navbar {
+    .page nav {
         border-top: 1px solid #666;
     }
 
-    .navbar {
+    nav {
         background-color: #373e48;
         border-bottom: 1px solid #666;
     }