/src/style.css
body {
background-color: black;
color: white;
font-family: monospace;
font-size: 14px;
}
button {
border: 1px solid white;
background-color: black;
color: white;
margin: 2px;
}
button.active {
background-color: white;
color: black;
}
.spacer {
flex: auto;
}
.app {
display: flex;
flex-flow: column;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
.global-actions {
display: flex;
flex-flow: row wrap;
flex: none;
width: 104px;
}
.global-actions button {
width: 48px;
height: 48px;
}
.editor {
display: flex;
flex-flow: row;
flex: auto;
}
.tools1 {
display: flex;
flex-flow: column;
}
.drawing-tools {
display: flex;
flex-flow: row wrap;
width: 104px;
}
.drawing-tools button {
width: 48px;
height: 48px;
}
.preview {
display: flex;
justify-content: center;
}
.preview canvas {
margin: 8px;
}
.viewport {
flex: auto;
display: flex;
justify-content: center;
}
.viewport canvas#pixelEditor {
margin: 4px;
border: 1px solid white;
width: calc(100vh - 10px);
height: calc(100vh - 10px);
}
.tools2 {
display: flex;
flex-flow: column;
}
.palette-switch {
display: flex;
flex-flow: row;
}
.palette-switch button {
width: 48px;
height: 32px;
}
#palette-id {
width: 96px;
padding: 4px 0;
font-family: monospace;
font-size: 12px;
text-align: center;
}
.palette {
display: flex;
flex-flow: column wrap;
width: 104px;
flex: auto;
}
.palette .swatch {
width: 50%;
height: 12.5%;
}
.palette .swatch.selected {
border: 4px solid white;
width: calc(50% - 8px);
height: calc(12.5% - 8px);
}
.transparent-selector {
display: flex;
flex-flow: row;
width: 104px;
}
.transparent-selector button {
width: 48px;
height: 48px;
}
.debug {
display: none;
flex: none;
}
.dialog {
position: absolute;
width: 50%;
min-width: 320px;
max-width: 480px;
height: 50%;
min-height: 160px;
left: 0;
top: 0;
right: 0;
bottom: 0;
margin: auto;
background-color: black;
border: 2px solid white;
padding: 8px;
display: flex;
flex-flow: column;
}
.dialog h2 {
margin: 0 0 8px 0;
font-size: 16px;
}
.dialog .content {
flex: auto;
overflow: auto;
}
.dialog .controls {
text-align: right;
}
.dialog .controls buttons {
margin: 0;
}
#dialog-select-size .content {
position: relative;
}
#dialog-select-size .content button {
position: absolute;
}
#dialog-colorpicker .content {
display: flex;
flex-flow: row;
}
#colorpicker-color {
width: 96px;
}
.colorpicker-values {
display: flex;
flex-flow: column;
}
#save-fail-image {
width: 128px;
height: 128px;
}
#saver, #loader {
width: 0;
height: 0;
display: none;
}