Permalink
Browse files

Updated styles

  • Loading branch information...
sbstjn committed Oct 9, 2011
1 parent 37af04d commit 0826cc3bcacf0036b76d75b7709d5f719268b582
Showing with 25 additions and 10 deletions.
  1. +16 −0 static/less-1.1.3.min.js
  2. BIN static/load.gif
  3. +3 −6 static/script.js
  4. +6 −4 static/styles.less
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
Binary file not shown.
View
@@ -1,18 +1,15 @@
function triggerCancelEvent(curThis, value) {
$(curThis).html(value);
$(curThis).removeClass('isActive');
-
$(curThis).click(function(e2) { hasClicked(this, e2); });
}
function triggerSaveEvent(curThis, newValue) {
+ $(curThis).html($(curThis).find('input')).append($('<img src="/load.gif" class="loader" />'));
$.post("/update/" + $(curThis).attr('id'), { data: newValue},
function(data) {
$(curThis).removeClass('isActive');
- $(curThis).html(data);
- }
- );
-
+ $(curThis).html(data); } );
$(curThis).click(function(e2) { hasClicked(this, e2); });
}
@@ -46,7 +43,7 @@ $(document).ready(function() {
$('.canEdit').each(function() {
$(this).click(function(e) {
e.stopImmediatePropagation();
- hasClicked(this, e);
+ hasClicked(this, e);
});
});
});
View
@@ -1,17 +1,19 @@
+@colorFont: #36393D;
+
table { -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; border-spacing: 0px; }
.canEdit { cursor: pointer; }
td { padding-top: 0px }
.canEdit input { font-family: 'Varela Round', sans-serif; font-size: 14px; font-weight: normal; padding: 0 0 0 2px; margin: 0px; border: 0px; background-color: #CCC; }
-body { background-color: #EEEEEE; color: #36393D; font-family: 'Varela Round', sans-serif; font-size: 12px; font-weight: normal; margin: 30px; }
+body { background-color: #EEEEEE; color: @colorFont; font-family: 'Varela Round', sans-serif; font-size: 12px; font-weight: normal; margin: 30px; }
a { text-decoration: none; color: #bf1010; }
a:hover { text-decoration: underline; }
.desc { font-weight: bold; vertical-align: top; font-size: 14px; font-weight: normal; }
.content { font-size: 14px; font-weight: normal; }
.content ul { list-style-type: none; margin: 0; padding: 0; }
.content ul li { margin: 0; padding: 0; }
.docsNav { font-size: 14px; font-weight: normal; }
+.key, .desc { color: #999; padding-right: 25px; }
.docsNav td { padding-top: 15px; padding-bottom: 25px; }
-.key { color: #999; padding-right: 25px; }
-tr:hover .key { color: #36393D; }
+tr:hover .key { color: @colorFont; }
table.array td.noRightMargin { padding-right: 2px; }
-.desc { padding-right: 25px; }
+.loader { position: relative; top: 1px; left: 7px; }

0 comments on commit 0826cc3

Please sign in to comment.