287 lines
5.6 KiB
CSS
287 lines
5.6 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
text-decoration: none;
|
|
}
|
|
|
|
body {
|
|
background: black;
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
}
|
|
|
|
.div-hammer-container {
|
|
display: flex;
|
|
position: fixed;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
|
|
|
|
.tools {
|
|
position: relative;
|
|
background: #2e2e2e;
|
|
padding: 8px;
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 8px;
|
|
z-index: 2;
|
|
}
|
|
|
|
.tools button {
|
|
height: 100%;
|
|
border: none;
|
|
outline: none;
|
|
padding: 4px;
|
|
z-index: 2;
|
|
cursor: pointer;
|
|
width: 42px;
|
|
height: 42px;
|
|
position: relative;
|
|
background: #575757;
|
|
}
|
|
|
|
.tools button:hover {
|
|
background: #555555;
|
|
box-shadow: inset 0px 0px 0px 2.5px #6b6b6b;
|
|
}
|
|
.tools button.select {
|
|
background: #868686;
|
|
box-shadow: inset 0px 0px 0px 2.5px #353535;
|
|
}
|
|
.tools button img {
|
|
width: 32px;
|
|
height: 32px;
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
.tools button span {
|
|
display: none;
|
|
position: absolute;
|
|
top: 50px;
|
|
left: 0;
|
|
white-space: nowrap;
|
|
background: #2b2b2b;
|
|
padding: 4px;
|
|
color: #e4e4e4;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.tools button:hover span {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.tools hr {
|
|
height: 100%;
|
|
width: 1px;
|
|
border: none;
|
|
border-radius: 0;
|
|
background-color: white;
|
|
}
|
|
|
|
|
|
.div-container-map {
|
|
position: relative;
|
|
flex-direction: row;
|
|
display: flex;
|
|
flex: 1 0 0;
|
|
gap: 0;
|
|
}
|
|
|
|
.div-container-map .container-tiles {
|
|
position: relative;
|
|
padding: 16px;
|
|
|
|
width: calc(350px - 16px * 2);
|
|
min-width: 350px;
|
|
background: #222222;
|
|
}
|
|
|
|
.div-container-map .container-tiles .div-scroll-tiles {
|
|
width: 100%;
|
|
height: 500px;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
align-items: flex-start;
|
|
justify-items: flex-start;
|
|
justify-content: flex-start;
|
|
align-content: flex-start;
|
|
overflow: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.div-container-map .container-tiles .div-scroll-tiles:empty::after {
|
|
content: "Add a tileSheet to your scene";
|
|
position: absolute;
|
|
color: #777;
|
|
font-style: italic;
|
|
padding: 1rem;
|
|
text-align: center;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
body {
|
|
--sb-track-color: #222222;
|
|
--sb-thumb-color: #adadad;
|
|
--sb-size: 14px;
|
|
}
|
|
|
|
.div-container-map .container-tiles .div-scroll-tiles::-webkit-scrollbar {
|
|
width: var(--sb-size)
|
|
}
|
|
|
|
.div-container-map .container-tiles .div-scroll-tiles::-webkit-scrollbar-track {
|
|
background: var(--sb-track-color);
|
|
border-radius: 1px;
|
|
}
|
|
|
|
.div-container-map .container-tiles .div-scroll-tiles::-webkit-scrollbar-thumb {
|
|
background: var(--sb-thumb-color);
|
|
border-radius: 1px;
|
|
|
|
}
|
|
|
|
@supports not selector(::-webkit-scrollbar) {
|
|
.div-container-map .container-tiles .div-scroll-tiles {
|
|
scrollbar-color: var(--sb-thumb-color) var(--sb-track-color);
|
|
}
|
|
}
|
|
|
|
.div-container-map .container-tiles .div-scroll-tiles img {
|
|
width: calc(100% / 5);
|
|
aspect-ratio: 1 / 1;
|
|
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
.div-container-map .container-tiles .div-scroll-tiles img:hover {
|
|
box-shadow: inset 0px 0px 0px 2.5px #6b6b6b;
|
|
opacity: .8;
|
|
background: #424242;
|
|
}
|
|
|
|
.div-container-map .container-tiles .div-scroll-tiles img:active {
|
|
box-shadow: inset 0px 0px 0px 2.5px #888888;
|
|
background: #5a5a5a;
|
|
}
|
|
|
|
.div-container-map .div-container-view {
|
|
flex: 1 0 0;
|
|
display: flex;
|
|
position: relative;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
canvas {
|
|
position: relative;
|
|
image-rendering: pixelated;
|
|
flex: 1 0 0;
|
|
background: url(/src/assets/images/bg.png);
|
|
background-size: 16px;
|
|
background-repeat: repeat;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.div-canvas-container {
|
|
flex: 1 0 0;
|
|
display: flex;
|
|
}
|
|
|
|
.div-container-map .div-container-view .div-console {
|
|
background-color: black;
|
|
flex: 1 0 0;
|
|
display: flex;
|
|
position: relative;
|
|
flex-direction: column;
|
|
outline: none;
|
|
max-height: 350px;
|
|
overflow: hidden;
|
|
overflow-y: auto;
|
|
padding: 8px;
|
|
color: white;
|
|
}
|
|
|
|
.div-container-map .div-container-view .div-console img {
|
|
width: 50px;
|
|
image-rendering: pixelated;
|
|
}
|
|
|
|
.div-container-map .div-container-view .div-console:empty::after {
|
|
content: "Oh no, meow… the catsole is empti~ :3";
|
|
position: absolute;
|
|
color: #777;
|
|
font-style: italic;
|
|
padding: 1rem;
|
|
text-align: center;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
body {
|
|
--sb-track-console-color: #000000;
|
|
--sb-thumb-console-color: rgb(255, 255, 255);
|
|
--sb-size-console: 14px;
|
|
}
|
|
|
|
.div-container-map .div-container-view .div-console::-webkit-scrollbar {
|
|
width: var(--sb-size-console)
|
|
}
|
|
|
|
.div-container-map .div-container-view .div-console::-webkit-scrollbar-track {
|
|
background: var(--sb-track-console-color);
|
|
border-radius: 1px;
|
|
}
|
|
|
|
.div-container-map .div-container-view .div-console::-webkit-scrollbar-thumb {
|
|
background: var(--sb-thumb-console-color);
|
|
border-radius: 1px;
|
|
|
|
}
|
|
|
|
.nodisplay {
|
|
display: none !important;
|
|
}
|
|
|
|
.progress-bar {
|
|
position: fixed;
|
|
pointer-events: none;
|
|
user-select: none;
|
|
background-color: rgb(19, 19, 19);
|
|
width: 100%;
|
|
height: 25px;
|
|
left: 0;
|
|
z-index: 2;
|
|
bottom: 0;
|
|
}
|
|
|
|
.progress-bar .progress {
|
|
width: 0%;
|
|
height: 100%;
|
|
position: absolute;
|
|
left: 0;
|
|
transition: width 300ms linear;
|
|
top: 0;
|
|
background: rgb(114, 114, 255);
|
|
}
|
|
|
|
button:disabled {
|
|
cursor: not-allowed;
|
|
opacity: .5;
|
|
} |