Non-overlapping up/down buttons

Fixed dimensions and margins for up/down arrows.
This commit is contained in:
Andrea Rendine
2015-06-13 13:30:09 +02:00
committed by Blake Grotewold
parent 8306f155f1
commit 93649307f6
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -258,7 +258,7 @@ div.button div.cooldown {
.upBtn, .dnBtn, .upManyBtn, .dnManyBtn {
position: absolute;
width: 14px;
height: 15px;
height: 12px;
cursor: pointer;
}
@@ -288,7 +288,7 @@ div.button div.cooldown {
content: " ";
height: 0;
width: 0;
bottom: 4px;
bottom: 2px;
}
.upBtn:after, .upManyBtn:after {
@@ -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
+1 -1
View File
@@ -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);
}