Files
2024-05-17 22:29:44 +02:00

168 lines
2.8 KiB
CSS

:root {
--background-color: #f9f9f9;
--text-color: #343434;
--text-faint-color: #777f89;
--button-normal-color: #2b314c;
--button-hover-color: #444451;
--button-active-color: #171721;
--button-text-color: #fefefe;
}
/* GENERAL LAYOUT. */
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: sans-serif;
}
.content {
display: flex;
flex-direction: row;
align-items: flex-start;
gap: 24px;
padding: 16px 24px;
}
.credits {
position: absolute;
right: 0;
bottom: 0;
background: var(--background-color);
border-radius: 4px 0 0 0;
color: var(--text-faint-color);
font-size: 12px;
padding: 2px 4px;
text-align: right;
}
/* TOOLBAR STYLING. */
.toolbar {
display: flex;
flex-direction: column;
gap: 12px;
}
.toolbar h3 {
margin: 0;
}
.toolbar-item {
display: flex;
flex-direction: column;
gap: 4px;
}
.toolbar-item label {
cursor: pointer;
font-size: 14px;
}
.toolbar-item input[type=file] {
cursor: pointer;
}
.toolbar-item button {
background: var(--button-normal-color);
border: none;
color: var(--button-text-color);
cursor: pointer;
font-size: 12px;
font-weight: 600;
padding: 6px 12px;
border-radius: 4px;
transition: background 0.3s;
}
.toolbar-item button:hover {
background: var(--button-hover-color);
}
.toolbar-item button:active {
background: var(--button-active-color);
}
.toolbar-item--oneline {
flex-direction: row;
align-items: center;
}
.toolbar-item--oneline label {
flex: 1;
}
.toolbar-item-controls {
display: flex;
gap: 8px;
}
.toolbar-item-controls :first-child {
flex: 1;
}
.toolbar-item-controls button {
font-size: 10px;
padding: 4px 8px;
}
.toolbar-filename-label {
color: var(--text-faint-color);
cursor: help;
font-size: 12px;
text-align: right;
}
/* EDITOR AREA STYLING. */
.editor {
display: flex;
flex-direction: column;
gap: 8px;
}
.editor-hint {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
gap: 4px;
font-size: 14px;
}
/* CANVAS STYLING. */
.canvas-container {
width: 960px;
height: 540px;
max-height: 540px;
aspect-ratio: 16 / 9;
}
.canvas-container > canvas {
width: 100%;
height: 100%;
}
/* MEDIA QUERIES FOR RESPONSIVENESS. */
@media (max-width: 768px) {
.content {
flex-direction: column;
align-items: stretch;
}
.toolbar {
flex-direction: row;
flex-wrap: wrap;
gap: 8px;
}
.toolbar-item {
flex: 1 1 100%;
}
.toolbar-item--oneline {
flex-direction: column;
align-items: flex-start;
}
}