|
- @import url('https://fonts.googleapis.com/css?family=Coda&display=swap');
-
- html {
- height: 100%;
- overflow-x: hidden;
- overflow-y: hidden;
- color: #eee;
- }
-
- body {
- background: #111;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: flex-start;
- height: 100%;
- width: 100%;
- font-family: 'Coda', cursive;
- }
-
- .entity-box {
- position: absolute;
- --height: 100px;
- max-height: var(--height);
- height: var(--height);
- text-align: center;
- -webkit-user-drag: none;
- -khtml-user-drag: none;
- -moz-user-drag: none;
- -o-user-drag: none;
- pointer-events: none;
- }
-
- .entity-image {
- position: absolute;
- height: 100%;
- pointer-events: auto;
- -webkit-user-drag: none;
- -khtml-user-drag: none;
- -moz-user-drag: none;
- -o-user-drag: none;
- transform: translate(-50%, -100%);
- }
-
- .entity-name {
- position: absolute;
- top: -100%;
- left: 0%;
- transform: translate(-50%, -36px);
- font-size: 24px;
- pointer-events: none
- }
-
- .entity-box.selected > img {
- filter: drop-shadow(0px 0px 5px gold);
- }
-
- .entity-box:not(.selected) > img{
- filter: drop-shadow(0px 0px 2px white);
- }
-
- #main-area {
- display: flex;
- min-width: 100vw;
- height: 100%;
- flex-direction: row;
- }
-
- #options {
- flex: 1 0 15vw;
- display: flex;
- justify-content: start;
- flex-direction: column;
- background: #444;
- }
-
- .options-row {
- display: flex;
- text-align: center;
- max-width: 15vw;
- }
-
- @media (max-aspect-ratio: 1/1) {
- .options-row {
- flex-direction: column;
- }
-
- .options-row > .options-field-numeric {
- width: 100%;
- }
-
- .options-row > .options-field-unit {
- width: 100%;
- }
- }
-
- .options-header {
- text-align: center;
- font-size: 24pt;
- margin-top: 10px;
- margin-bottom: 10px;
- }
-
-
- #entities {
- position: relative;
- user-select: none;
- }
-
- #world {
- flex: 9 0 85vw;
- min-height: 85vh;
- max-height: 85vh;
- overflow: hidden;
- }
-
- #menubar {
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- min-height: 10vh;
- min-width: 100vw;
- background: #222;
- }
-
- .menu-item {
- font-size: 24px;
- color: #ccc;
- margin: 20px;
- }
-
- #display {
- width: 100%;
- height: 100%;
- background: #333;
- }
-
- #options .options-label {
- flex: 0 1;
- width: 100%;
- font-size: 150%;
- }
-
- .options-label {
- text-align: center;
- }
-
- .options-row .options-field-numeric {
- flex: 2;
- width: 100%;
- font-size: 150%;
- }
-
- .options-row .options-field-text {
- flex: 1;
- width: 100%;
- font-size: 150%;
- }
-
- .options-row .options-field-unit {
- flex: 1;
- width: 100%;
- font-size: 150%;
- }
-
- body #test-canvas {
- position: fixed;
- top: 100vh;
- }
-
- .bottom-name {
- text-align: center;
- position: fixed;
- width: 75px;
- height: 50px;
- transform: translate(-50%, 0%);
- }
|