236 lines
3.7 KiB
CSS

:root {
color-scheme: dark;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
height: 100vh;
background-color: #333;
}
main {
display: flex;
flex-direction: row;
height: 100vh;
padding: 32px;
gap: 32px;
}
.section-header {
background-color: #bdbdbd;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border: 1px solid #222;
padding: 4px;
padding-left: 8px;
font-family: sans-serif;
color: #424242;
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
}
section {
border-radius: 8px;
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
background-color: black;
}
section canvas {
margin-left: auto;
margin-right: auto;
}
section *:last-child {
border-bottom-left-radius: 8px;
border-bottom-right-radius: 8px;
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
flex: 1;
}
div#buttons {
width: 100%;
display: flex;
flex-wrap: wrap;
flex: row;
gap: 5px;
}
div#buttons > * {
flex: 1;
}
div#buttons button {
width: 100%;
white-space: nowrap;
}
.column {
display: flex;
flex-direction: column;
gap: 5px;
justify-content: space-evenly;
align-items: flex-start;
gap: 32px;
flex: 1;
min-width: 0;
}
#canvas-area {
background-color: black;
aspect-ratio: 480 / 360;
width: 100%;
}
#console-section {
min-height: 0;
flex: 0 1 100%;
}
#console {
display: flex;
flex-direction: column;
overflow-y: hidden;
}
#console pre {
color: white;
background-color: black;
margin: 0;
width: 100%;
overflow-wrap: break-word;
word-break: break-all;
font-size: 1rem;
padding: 4px 8px;
flex: 1;
overflow-y: auto;
}
#console pre {
width: 100%;
white-space: pre-wrap;
}
#console input {
width: 100%;
margin: 0;
outline: none;
padding: none;
color: white;
border: none;
background-color: #222;
padding: 4px 8px;
font-family: monospace;
font-size: 1rem;
flex-grow: 0;
}
#editor-area {
width: 100%;
overflow-y: auto;
}
#editor {
margin: 0;
width: 100%;
height: 100%;
font-size: 16px;
}
#editor * {
border-radius: 0;
box-shadow: none;
}
.dropdown-wrapper {
position: relative;
}
.dropdown-content {
display: none;
background-color: white;
position: absolute;
top: 100%;
left: 0;
right: 0;
border-radius: 4px;
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
}
.dropdown-option {
padding: 5px 10px;
font-family: sans-serif;
color: #424242;
font-size: 0.8rem;
cursor: pointer;
}
.dropdown-option:hover {
background-color: #eee;
}
button {
background-color: #087aaf;
border: none;
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
padding: 8px 16px;
border-radius: 8px;
cursor: pointer;
transition-duration: 200ms;
}
.dropdown-wrapper:has(.active) button,
button:active {
background-color: #065275;
}
button:hover {
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.2);
}
footer {
position: absolute;
bottom: 1px;
left: 1px;
}
#sprite-editor-area {
line-height: 0;
}
#sprite-editor-preview {
background-color: #1d2021;
max-height: 450px;
object-fit: contain;
width: 100%;
border-radius: 0px;
padding-block: 32px;
}
#sprite-editor-list {
list-style: none;
padding: 1rem;
margin: 0;
}
#sprite-editor-list .delete-button {
background-color: #c83e4d;
padding: 0.25rem 0.75rem;
}
#sprite-editor-list .delete-button:hover {
background-color: #9f2d3a;
}
#sprite-editor-list .delete-button:active {
background-color: #7f242f;
}
#sprite-editor-list p:first-child {
margin-top: 0;
}