mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
Non-overlapping up/down buttons
Fixed dimensions and margins for up/down arrows.
This commit is contained in:
committed by
Blake Grotewold
parent
8306f155f1
commit
93649307f6
+3
-3
@@ -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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user