mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Grid spacing: css nits, remove unused variable, string case fix
This commit is contained in:
parent
3e450c3d77
commit
779761628e
@ -73,11 +73,35 @@
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.settings-item-grid-size .size-picker-option {
|
||||
.grid-spacing-container .size-picker-option[data-size='1'] {
|
||||
padding: 7px;
|
||||
}
|
||||
.grid-spacing-container .size-picker-option[data-size='2'] {
|
||||
padding: 6px;
|
||||
}
|
||||
.grid-spacing-container .size-picker-option[data-size='4'] {
|
||||
padding: 5px;
|
||||
}
|
||||
.grid-spacing-container .size-picker-option[data-size='8'] {
|
||||
padding: 4px;
|
||||
}
|
||||
.grid-spacing-container .size-picker-option[data-size='16'] {
|
||||
padding: 3px;
|
||||
}
|
||||
.grid-spacing-container .size-picker-option[data-size='32'] {
|
||||
padding: 2px;
|
||||
}
|
||||
.grid-spacing-container .size-picker-option[data-size='64'] {
|
||||
padding: 1px;
|
||||
}
|
||||
|
||||
.settings-item-grid-size .size-picker-option,
|
||||
.settings-item-grid-spacing .size-picker-option {
|
||||
border-color: #888;
|
||||
}
|
||||
|
||||
.settings-item-grid-size .size-picker-option:not(.selected):hover {
|
||||
.settings-item-grid-size .size-picker-option:not(.selected):hover,
|
||||
.settings-item-grid-spacing .size-picker-option:not(.selected):hover {
|
||||
border-color: white;
|
||||
}
|
||||
|
||||
|
@ -333,7 +333,6 @@
|
||||
displayContext.scale(1 / z, 1 / z);
|
||||
|
||||
var drawOrClear;
|
||||
var drawing = true;
|
||||
if (gridColor === Constants.TRANSPARENT_COLOR) {
|
||||
drawOrClear = displayContext.clearRect.bind(displayContext);
|
||||
} else {
|
||||
|
@ -20,8 +20,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="settings-item settings-item-grid-spacing">
|
||||
<label>Grid Spacing</label>
|
||||
<div class="grid-spacing-container spacing-picker-container">
|
||||
<label>Grid spacing</label>
|
||||
<div class="grid-spacing-container size-picker-container">
|
||||
<div class="size-picker-option"
|
||||
title="1px" rel="tooltip" data-placement="top" data-size="1"></div>
|
||||
<div class="size-picker-option"
|
||||
|
Loading…
Reference in New Issue
Block a user