mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
5b0a8f157d
- Updating DnD to use Sortable instead of draggable/dropppable (updating deps as well). - much simpler logic for DnD - Remove LESS for now since it's a bit yet overkill - fix moveFrame function
117 lines
2.0 KiB
CSS
117 lines
2.0 KiB
CSS
|
|
.preview-list-wrapper {
|
|
overflow-y: scroll;
|
|
overflow-x: hidden;
|
|
height: 100%;
|
|
}
|
|
|
|
.preview-list {
|
|
list-style-type: none;
|
|
padding-right: 7px;
|
|
}
|
|
|
|
.preview-tile {
|
|
position: relative;
|
|
border: #444 3px solid;
|
|
border-radius: 3px;
|
|
margin: 5px 0;
|
|
}
|
|
|
|
.preview-tile:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.preview-tile:hover {
|
|
border: #999 3px solid;
|
|
}
|
|
|
|
.preview-tile .tile-overlay {
|
|
z-index: 10;
|
|
position: absolute;
|
|
background-color: rgba(0, 0, 0, 0.3);
|
|
opacity: 0;
|
|
height: 30px;
|
|
width: 30px;
|
|
border: none;
|
|
}
|
|
|
|
.preview-tile:hover .tile-overlay {
|
|
opacity: 1.0;
|
|
}
|
|
|
|
.tile-overlay.tile-count {
|
|
display: block;
|
|
opacity: 0.5;
|
|
border-bottom-right-radius: 3px;
|
|
top: 0;
|
|
left: 0;
|
|
font-size: 14px;
|
|
line-height: 30px;
|
|
color: white;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
cursor: default;
|
|
}
|
|
|
|
.preview-tile .tile-overlay.delete-frame-action {
|
|
background-image: url(../img/garbage.png);
|
|
background-repeat: no-repeat;
|
|
top: 0;
|
|
right: 0;
|
|
border-bottom-left-radius: 3px;
|
|
height: 30px;
|
|
width: 30px;
|
|
background-position: 5px 5px;
|
|
background-size: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.preview-tile .tile-overlay.duplicate-frame-action {
|
|
bottom: 0;
|
|
right: 0;
|
|
border-bottom-left-radius: 3px;
|
|
background-image: url(../img/duplicate.png);
|
|
background-repeat: no-repeat;
|
|
background-position: 5px 5px;
|
|
background-size: 20px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.preview-tile .tile-overlay.dnd-action {
|
|
bottom: 0;
|
|
left: 0;
|
|
border-top-right-radius: 3px;
|
|
background-image: url(../img/dragndrop.png);
|
|
background-repeat: no-repeat;
|
|
background-position: 5px 5px;
|
|
background-size: 20px;
|
|
cursor: move;
|
|
}
|
|
|
|
.preview-tile.selected {
|
|
border-color: gold;
|
|
}
|
|
|
|
.preview-tile.selected:after {
|
|
content: " ";
|
|
position: absolute;
|
|
top: 38px;
|
|
right: -15px;
|
|
border: transparent 4px solid;
|
|
border-left-color: gold;
|
|
border-width: 6px;
|
|
border-style: solid;
|
|
}
|
|
|
|
|
|
/**
|
|
* Drag n drop styles.
|
|
*/
|
|
|
|
.preview-tile-drop-proxy {
|
|
border: 3px dashed gold;
|
|
height: 90px;
|
|
border-radius: 9px;
|
|
background-color: rgba(255, 215,0, 0.2);
|
|
}
|