Skip to content

Commit

Permalink
Some style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Einar Egilsson committed Aug 30, 2011
1 parent e5f6990 commit 9ef693c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
18 changes: 11 additions & 7 deletions chrome/js/settings.js
Expand Up @@ -97,7 +97,12 @@ $(document).ready(function() {
}
ev.preventDefault();
});


$('#redirect-list li div a.edit').live('click', function(ev) {
var redirect = $(this.parentNode.parentNode).data('redirect');
$('#redirect-form').show();
ev.preventDefault();
});

databind();
$('#import').click(importRedirects);
Expand All @@ -112,13 +117,12 @@ $(document).ready(function() {

bindConfig();
prefs.addListener({ changedPrefs:bindConfig});
var moving = false;

function drag() {

}

var movingElement = null;
$('li').mousedown(function() {
$('li').mousedown(function(ev) {
if (ev.target && ev.target.tagName == 'A') {
return;
}
$(this).css('background', '-moz-linear-gradient(top, #aac, #99b)');
$('#redirect-list').css('cursor', 'move');
movingElement = this;
Expand Down
8 changes: 4 additions & 4 deletions chrome/settings.html
Expand Up @@ -4,7 +4,7 @@
<title>Redirector Extension Settings</title>
<style type="text/css">
body {
font-family: Helvetica, Georgia, Arial, sans-serif;
font-family: Tahoma, Arial, sans-serif;
font-size:10pt;
min-height:100%;
background:-moz-linear-gradient(top, #bcd, #fff);
Expand All @@ -15,7 +15,7 @@
margin:0;
padding:0;
}
h1 { text-align:center; color:#555; text-shadow:0px 0px 15px white; font-size:34pt; padding:0px; margin:20px 0px 0px 0px; }
h1 { font-family: ; text-align:center; color:#555; text-shadow:0px 0px 15px white; font-size:34pt; padding:0px; margin:20px 0px 0px 0px; letter-spacing:2px; }
label { display:table-cell; }
input { display:table-cell; }
li { margin:0; padding:5px; border-top: dotted 1px grey;}
Expand All @@ -34,15 +34,15 @@
box-shadow: 0px 0px 2px grey;
text-shadow: 1px 1px 1px white;
}
#config { display:none; }
#config { display:none; position:fixed; margin:auto;}
button { border:solid 1px grey; border-radius:4px; background:-moz-linear-gradient(top, #ccc, #fff); cursor:pointer;}
h5 { text-align:center; margin:0px; padding-left:130px; }
.pattern, .redirectTo { color:blue; font-style:italic;}
.exampleUrl, .redirectResult { color:blue; }
#redirect-list li:nth-child(odd) { background:-moz-linear-gradient(top, #ddf, #cce); }
#redirect-list li:nth-child(even) { background-color:#fff; }
#redirect-form div { display:table-row; }
#redirect-form { display:none; }
#redirect-form { display:none; position:fixed; margin:0 auto; }
</style>
<script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="js/settings.js"></script>
Expand Down

0 comments on commit 9ef693c

Please sign in to comment.