/structure.css
body {
background-color: black;
color: white;
margin: 0;
font: 16px "Modern DOS 437";
}
.full {
width: 100vw;
height: 100vh;
}
.hflex {
display: flex;
flex-direction: row;
}
.vflex {
display: flex;
flex-direction: column;
}
.cflex {
display: flex;
justify-content: center;
align-items: center;
}
.flex-auto {
flex: auto;
}
.hidden {
display: none;
}
.visible {
display: initial;
}
#map-container {
position: relative;
border: 1px solid green;
width: 320px;
height: 320px;
overflow: hidden;
}
#mapview {
transform: perspective(400px) translateY(-10px) scale(1.2) rotateX(35deg);
display: flex;
flex-direction: column;
}
#mapview > div {
display: flex;
}
#mapview .map-cell {
display: flex;
box-sizing: border-box;
width: 34px;
height: 34px;
border-radius: 5px;
justify-content: center;
align-items: center;
font-size: 28px;
margin: 1px;
position: relative;
}
.edit-mode #mapview .map-cell {
border: 1px solid #0A0;
}
#mapview .map-cell.blocked-n {
border-top: 3px solid cyan;
}
#mapview .map-cell.blocked-e {
border-right: 3px solid cyan;
}
#mapview .map-cell.blocked-s {
border-bottom: 3px solid cyan;
}
#mapview .map-cell.blocked-w {
border-left: 3px solid cyan;
}
#mapview .map-cell.navigable {
background-color: #555;
}
#coords {
position: absolute;
top: 6px;
left: 4px;
}
#visual {
border: 1px solid blue;
}
#text {
border: 1px solid yellow;
padding: 16px;
}
.editor-container {
position: fixed;
left: 0;
top: 0;
width: 100vw;
height: 100vh;
}
.editor-container .box {
width: 800px;
height: 600px;
margin-top: calc(50vh - 300px);
margin-left: calc(50vw - 400px);
border: 3px double white;
padding: 16px;
background-color: black;
}
.editor-container textarea[name="description"] {
height: 80px;
}
#cell-editor-container .events {
margin-left: 16px;
overflow-y: auto;
width: 320px;
}
#event-list > div {
border-left: 1px solid white;
border-bottom: 1px solid white;
padding: 0 0 24px 12px;
margin: 0 0 8px 4px;
}
#event-list textarea[name="script"] {
height: 200px;
}
h1 {
font-size: 32px;
font-weight: normal;
color: #00FF00;
margin: 0;
}
h2 {
font-size: 16px;
font-weight: normal;
color: #00FF00;
}
h3 {
color: #00FF00;
font-size: 16px;
font-weight: bold;
}
h1:first-child, h2:first-child, h3:first-child {
margin-top: 0;
}
input {
background-color: black;
color: white;
border: none;
border-bottom: 1px solid white;
font: 16px "Modern DOS 437";
}
textarea, select {
background-color: black;
color: white;
border: 1px solid white;
padding: 8px 4px;
margin: 7px 3px;
font: 16px "Modern DOS 437";
}
button {
padding: 8px 4px 8px 6px;
margin: 7px 3px;
background-color: black;
color: white;
border: 1px solid white;
font: 16px "Modern DOS 437";
}
button:active {
margin: 0;
padding: 15px 8px;
background-color: white;
color: black;
}
#actions {
margin: 16px;
}
#actions button {
width: calc(25% - 8px);
margin: 4px;
padding: 4px;
}
#actions button:hover, #actions button:focus {
width: calc(25% - 6px);
border: 3px double white;
margin: 3px;
padding: 3px;
}
#actions button:active {
background-color: white;
color: black;
}