UNPKG

war3-model-docs

Version:

Warcraft 3 model parser, generator, convertor and previewer

80 lines (68 loc) 1.16 kB
html, body { height: 100%; } body { display: flex; flex-direction: column; margin: 0; font: 16px sans-serif; } .container { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 300px; margin: 20px; padding: 20px; border: 3px dashed #aaa; border-radius: 10px; } .container_drag { border-color: #444; } .label { position: absolute; display: flex; align-items: center; justify-content: center; left: 0; top: 0; width: 100%; height: 100%; font-size: 120%; } .editor { display: none; width: 100%; flex: 1 1 auto; flex-direction: column; min-height: 0; } .editor-elem { flex: 1 1 auto; min-height: 0; } .save { display: none; margin-top: 10px; padding: 10px; background: #5ec25e; color: #fff; font-size: 120%; border: none; border-radius: 3px; cursor: pointer; } .save:hover { background: #62cf62; } .container_with-data .label { display: none; } .container_with-data .editor { display: flex; } .container_with-data .save { display: block; }