e292b17c3e95

Add floating search field to the right
[view raw] [browse files]
author theaspect@gmail.com
date Tue, 21 May 2013 01:25:26 +0800
parents 0c5a7b4e6613
children 207f7e9a3d73
branches/tags (none)
files templates/markdown/bookmarks.tmpl templates/markdown/branches.tmpl templates/markdown/changelog.tmpl templates/markdown/changeset.tmpl templates/markdown/error.tmpl templates/markdown/fileannotate.tmpl templates/markdown/filediff.tmpl templates/markdown/filelog.tmpl templates/markdown/filerevision.tmpl templates/markdown/graph.tmpl templates/markdown/help.tmpl templates/markdown/helptopics.tmpl templates/markdown/manifest.tmpl templates/markdown/notfound.tmpl templates/markdown/search.tmpl templates/markdown/shortlog.tmpl templates/markdown/summary.tmpl templates/markdown/tags.tmpl templates/static/markdown.css templates/static/tmf.css

Changes

diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/bookmarks.tmpl
--- a/templates/markdown/bookmarks.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/bookmarks.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -8,7 +8,9 @@
 <div id="top"><span>TMF</span> <span class="hg">Hg</span></div>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Bookmarks</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Bookmarks</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/branches.tmpl
--- a/templates/markdown/branches.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/branches.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -8,7 +8,9 @@
 <div id="top"><span>TMF</span> <span class="hg">Hg</span></div>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Branches</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Branches</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/changelog.tmpl
--- a/templates/markdown/changelog.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/changelog.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -8,7 +8,9 @@
 <div id="top"><span>TMF</span> <span class="hg">Hg</span></div>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / changelog</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / changelog</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/changeset.tmpl
--- a/templates/markdown/changeset.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/changeset.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -7,7 +7,9 @@
 <body>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / files</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / files</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/error.tmpl
--- a/templates/markdown/error.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/error.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -7,7 +7,9 @@
 <body>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Not found: {repo|escape}</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Not found: {repo|escape}</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/fileannotate.tmpl
--- a/templates/markdown/fileannotate.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/fileannotate.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -7,7 +7,9 @@
 <body>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / annotate</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / annotate</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/filediff.tmpl
--- a/templates/markdown/filediff.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/filediff.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -7,7 +7,9 @@
 <body>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file diff</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file diff</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/filelog.tmpl
--- a/templates/markdown/filelog.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/filelog.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -7,7 +7,9 @@
 <body>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revisions</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revisions</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/filerevision.tmpl
--- a/templates/markdown/filerevision.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/filerevision.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -7,7 +7,9 @@
 <body>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revision</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revision</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/graph.tmpl
--- a/templates/markdown/graph.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/graph.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -9,7 +9,9 @@
 <div id="top"><span>TMF</span> <span class="hg">Hg</span></div>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / graph</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / graph</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/help.tmpl
--- a/templates/markdown/help.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/help.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -7,7 +7,9 @@
 <body>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Help</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Help</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/helptopics.tmpl
--- a/templates/markdown/helptopics.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/helptopics.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -7,7 +7,9 @@
 <body>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Help</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Help</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/manifest.tmpl
--- a/templates/markdown/manifest.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/manifest.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -8,7 +8,9 @@
 <div id="top"><span>TMF</span> <span class="hg">Hg</span></div>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / files</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / files</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/notfound.tmpl
--- a/templates/markdown/notfound.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/notfound.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -7,7 +7,9 @@
 <body>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Not found: {repo|escape}</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Not found: {repo|escape}</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/search.tmpl
--- a/templates/markdown/search.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/search.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -7,7 +7,9 @@
 <body>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / search</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / search</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/shortlog.tmpl
--- a/templates/markdown/shortlog.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/shortlog.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -8,7 +8,9 @@
 <div id="top"><span>TMF</span> <span class="hg">Hg</span></div>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / shortlog</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / shortlog</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/summary.tmpl
--- a/templates/markdown/summary.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/summary.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -8,7 +8,9 @@
 <div id="top"><span>TMF</span> <span class="hg">Hg</span></div>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / summary / {readmefilename}</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / summary / {readmefilename}</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/markdown/tags.tmpl
--- a/templates/markdown/tags.tmpl	Mon May 20 23:41:14 2013 +0800
+++ b/templates/markdown/tags.tmpl	Tue May 21 01:25:26 2013 +0800
@@ -8,7 +8,9 @@
 <div id="top"><span>TMF</span> <span class="hg">Hg</span></div>
 <div id="container">
     <div class="page-header">
-        <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Tags</h1>
+        <div>
+            <h1><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / Tags</h1>
+        </div>
 
         <form action="{url}log">
             {sessionvars%hiddenformentry}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/static/markdown.css
--- a/templates/static/markdown.css	Mon May 20 23:41:14 2013 +0800
+++ b/templates/static/markdown.css	Tue May 21 01:25:26 2013 +0800
@@ -50,10 +50,9 @@
   }
 
   div.page-header form {
-    position: absolute;
-    margin-bottom: 2px;
-    bottom: 0;
-    right: 20px;
+    float: right;
+    width: 270px;
+    margin-top: 18px;
   }
   div.page-header form label {
     color: #DDD;
@@ -515,4 +514,4 @@
 	margin-top: 25px;
 	margin-left: 25px;
 	color: #aaa;
-}
\ No newline at end of file
+}
diff -r 0c5a7b4e6613 -r e292b17c3e95 templates/static/tmf.css
--- a/templates/static/tmf.css	Mon May 20 23:41:14 2013 +0800
+++ b/templates/static/tmf.css	Tue May 21 01:25:26 2013 +0800
@@ -63,8 +63,15 @@
 	margin: 0;
 }
 
+div.page-header > div {
+	width: 100%;
+	margin-right: -270px;
+	float: left;
+}
+
 div.page-header h1 {
 	color: #4e8ab2;
+	margin-right: 270px;
 }
 
 div.page-header h1 a {
@@ -72,7 +79,7 @@
 }
 
 div.page-header dl.search {
-	display: none;
+
 }
 
 div.page-header .filename {
@@ -285,4 +292,4 @@
 
 div#readme  article h1{
 	margin-bottom: 10px;
-}
\ No newline at end of file
+}