Skip to content

Commit

Permalink
Non-overlapping up/down buttons
Browse files Browse the repository at this point in the history
Fixed dimensions and margins for up/down arrows.
  • Loading branch information
AndySky21 authored and groteworld committed Jun 27, 2015
1 parent 8306f15 commit 9364930
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ div.button div.cooldown {
.upBtn, .dnBtn, .upManyBtn, .dnManyBtn {
position: absolute;
width: 14px;
height: 15px;
height: 12px;
cursor: pointer;
}

Expand Down Expand Up @@ -288,7 +288,7 @@ div.button div.cooldown {
content: " ";
height: 0;
width: 0;
bottom: 4px;
bottom: 2px;
}

.upBtn:after, .upManyBtn:after {
Expand Down Expand Up @@ -318,7 +318,7 @@ div.button div.cooldown {
content: " ";
height: 0;
width: 0;
top: 4px;
top: 2px;
}

/* Overall size of buttons controlled by this style
Expand Down
2 changes: 1 addition & 1 deletion script/outside.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ var Outside = {
$('<span>').text(num).appendTo(val);

if(key != 'gatherer') {
$('<div>').addClass('upManyBtn').appendTo(val).click([10], Outside.increaseWorker);
$('<div>').addClass('upBtn').appendTo(val).click([1], Outside.increaseWorker);
$('<div>').addClass('dnBtn').appendTo(val).click([1], Outside.decreaseWorker);
$('<div>').addClass('upManyBtn').appendTo(val).click([10], Outside.increaseWorker);
$('<div>').addClass('dnManyBtn').appendTo(val).click([10], Outside.decreaseWorker);
}

Expand Down

0 comments on commit 9364930

Please sign in to comment.