Permalink
Browse files

Minor fixes to markup

  • Loading branch information...
1 parent 25db4ed commit 9162b6aac95c37de54c6f38a763ae9df03700578 @daleharvey committed Aug 15, 2011
Showing with 15 additions and 16 deletions.
  1. +8 −10 _attachments/css/main.css
  2. +5 −4 _attachments/index.html
  3. +2 −2 _attachments/js/mobile.futon.js
View
@@ -130,8 +130,7 @@ input[type=submit], input[type=button], .button {
-moz-transition: all 0.5s ease-in-out;
}
-header {
- z-index:4;
+#header {
width:100%;
display:block;
background:#222;
@@ -232,7 +231,7 @@ li a, li > span {
.plain_btn {
position:absolute;
}
-header h1 {
+#header h1 {
color:white;
text-align:center;
margin:0px 70px;
@@ -273,17 +272,16 @@ option {
}
.home {
+ display:block;
position:absolute;
top:10px;
left:15px;
-}
-.home.plain_btn {
- padding: 0 5px;
-}
-
-.home img {
- height:24px;
height:24px;
+ width:24px;
+ background:url(../img/favicon.png) no-repeat;
+ background-size:100%;
+ overflow:hidden;
+ text-indent:-999px;
}
#document {
View
@@ -12,11 +12,11 @@
<body>
- <header>
- <a href="#" class="home"><img src="./img/favicon.png" /></a>
- <h1 id="title">CouchDB</h1>
+ <div id="header">
+ <a href="#" class="home">couch</a>
+ <h1 id="title">Mobile Futon</h1>
<div id="user" class="plain_btn">&nbsp;</div>
- </header>
+ </div>
<div id="content"></div>
@@ -267,6 +267,7 @@ <h1 id="title">CouchDB</h1>
<script type="text/html" id="databases_tpl">
+ <a href="#" class="home">couch</a>
<ul id="db_list">
<li class="header">Databases</li>
{{#databases}}
@@ -19,9 +19,9 @@ function makeLinksFast($dom) {
$("a", $dom).each(function() {
var link = this;
new google.ui.FastButton(link, function(e) {
+ document.location = link.getAttribute('href');
e.stopPropagation();
e.preventDefault();
- document.location = link.getAttribute('href');
});
});
}
@@ -99,7 +99,7 @@ var MobileFuton = (function () {
function isCouchApp(ddoc, max) {
- var url = '/' + ddoc.database + '/' + ddoc.ddoc + '/index.html';
+ var url = '/' + ddoc.database + '/' + ddoc.ddoc + '/index.hml';
var complete = function(xhr) {
completed++;

0 comments on commit 9162b6a

Please sign in to comment.