Commits

Kenneth Love committed ffadd97

made firefox look correct

  • Participants
  • Parent commits 22edb6f

Comments (0)

Files changed (3)

File static/css/style.css

       color-stop(1, rgb(220,220,220))
   );
   background: -moz-linear-gradient(
-      center bottom,
+      center top,
       rgb(255,255,255) 0%,
       rgb(250,250,250) 50%,
       rgb(220,220,220) 100%
 #masthead {
   overflow:hidden;
   padding:10px;
+  -moz-box-shadow:0 2px 4px rgba(0,0,0,0.4);
   -webkit-box-shadow:0 2px 4px rgba(0,0,0,0.4);
+  box-shadow:0 2px 4px rgba(0,0,0,0.4);
 }
   #logo {
     background:url('../img/logo-small.png') top left no-repeat;
     color-stop(0.15, rgb(204, 204, 204)),
     color-stop(1, rgb(204, 204, 204))
   );
+  background: -moz-linear-gradient(
+      center top,
+      rgb(150,150,150) 0%,
+      rgb(204,204,204) 15%,
+      rgb(204,204,204) 100%
+  );
   padding:10px;
+  -moz-box-shadow:0 2px 4px rgba(0,0,0,0.4);
   -webkit-box-shadow:0 2px 4px rgba(0,0,0,0.4);
 }
   #switch_db fieldset {
   background:#999;
   color:#fff;
   list-style:none;
+  -moz-box-shadow:0 2px 4px rgba(0,0,0,0.4);
   -webkit-box-shadow:0 2px 4px rgba(0,0,0,0.4);
 }
   #flashes li { padding:5px 10px; }
     border:1px solid rgba(30,30,30,0.5);
     width:100%;
   }
+
+  #controls {
+    position:relative;
+    width:100%;
+  }
   input[type=submit] {
     background:url('../img/check.png') center center no-repeat;
     border:none;
   #refresh, #delete {
     background:url('../img/reload.png') center center no-repeat;
     display:block;
-    float:right;
     height:28px;
+    position:absolute;
+    right:0;
     text-indent:-99999px;
     width:24px;
   }
 
   #delete {
     background:url('../img/delete.png') center center no-repeat;
-    height:28px;
-    margin-right:220px;
+    left:50%;
+    margin-left:-14px;
     width:28px;
   }
     

File static/js/redbeard.js

     });
 }
 
-jQuery(window).hashchange(function() {
+$(window).hashchange(function() {
     var hash = window.location.hash.replace('#', '');
     if (hash != '') {
         var link = '/key/' + hash;

File templates/key.html

 	<form action="{{ url_for('save', key=key) }}" method="post" 
 		id="key">
 		<textarea name="value" cols="60" rows="20">{{ output }}</textarea>
-		<br>
-		<a id="refresh" href="{{ url_for('key', key=key) }}" title="refresh">refresh</a>
-		<a id="delete" href="{{ url_for('delete', key=key) }}" title="delete">delete</a>
-		<input type="submit" value="save" title="save">
+		<div id="controls">
+			<a id="refresh" href="{{ url_for('key', key=key) }}" title="refresh">refresh</a>
+			<a id="delete" href="{{ url_for('delete', key=key) }}" title="delete">delete</a>
+			<input type="submit" value="save" title="save">
+		</div>
 	</form>
 </article>
 
 				},
 				dataType: "json",
 				success: function(data) {
-					console.log(data);
 					$(this).find("textarea").val(data['value']);
 					$("<li>").text(data['flash']).appendTo(flashes);
 				}