less copy protection, more size visualization
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

156 lines
2.5 KiB

  1. @import url('https://fonts.googleapis.com/css?family=Coda&display=swap');
  2. html {
  3. height: 100%;
  4. overflow-x: hidden;
  5. overflow-y: hidden;
  6. color: #eee;
  7. }
  8. body {
  9. background: #111;
  10. display: flex;
  11. flex-direction: column;
  12. align-items: center;
  13. justify-content: flex-start;
  14. height: 100%;
  15. width: 100%;
  16. font-family: 'Coda', cursive;
  17. }
  18. .entity-box {
  19. position: absolute;
  20. --height: 100px;
  21. max-height: var(--height);
  22. height: var(--height);
  23. text-align: center;
  24. -webkit-user-drag: none;
  25. -khtml-user-drag: none;
  26. -moz-user-drag: none;
  27. -o-user-drag: none;
  28. transform: translate(-50%, -100%);
  29. pointer-events: none;
  30. }
  31. .entity-image {
  32. position: absolute;
  33. height: 100%;
  34. pointer-events: auto;
  35. -webkit-user-drag: none;
  36. -khtml-user-drag: none;
  37. -moz-user-drag: none;
  38. -o-user-drag: none;
  39. }
  40. .entity-name {
  41. position: absolute;
  42. top: -25%;
  43. left: 50%;
  44. font-size: 24px;
  45. pointer-events: none
  46. }
  47. .selected {
  48. filter: drop-shadow(0px 0px 15px gold);
  49. }
  50. #main-area {
  51. display: flex;
  52. min-width: 100vw;
  53. height: 100%;
  54. flex-direction: row;
  55. }
  56. #options {
  57. flex: 1 0 15vw;
  58. display: flex;
  59. justify-content: start;
  60. flex-direction: column;
  61. background: #444;
  62. }
  63. .options-row {
  64. display: flex;
  65. text-align: center;
  66. }
  67. @media (max-aspect-ratio: 1/1) {
  68. .options-row {
  69. flex-direction: column;
  70. }
  71. .options-row > .options-field-numeric {
  72. width: 100%;
  73. }
  74. .options-row > .options-field-unit {
  75. width: 100%;
  76. }
  77. }
  78. .options-header {
  79. text-align: center;
  80. font-size: 24pt;
  81. margin-top: 10px;
  82. margin-bottom: 10px;
  83. }
  84. #entities {
  85. position: relative;
  86. user-select: none;
  87. }
  88. #world {
  89. flex: 9 0 85vw;
  90. min-height: 90vh;
  91. max-height: 90vh;
  92. overflow: hidden;
  93. }
  94. #menubar {
  95. display: flex;
  96. flex-direction: row;
  97. justify-content: center;
  98. align-items: center;
  99. min-height: 10vh;
  100. min-width: 100vw;
  101. background: #222;
  102. }
  103. .menu-item {
  104. font-size: 24px;
  105. color: #ccc;
  106. margin: 20px;
  107. }
  108. #display {
  109. width: 100%;
  110. height: 100%;
  111. background: #333;
  112. }
  113. #options .options-label {
  114. flex: 0 1;
  115. width: 100%;
  116. font-size: 150%;
  117. }
  118. .options-label {
  119. text-align: center;
  120. }
  121. .options-row .options-field-numeric {
  122. flex: 2;
  123. font-size: 150%;
  124. }
  125. .options-row .options-field-unit {
  126. flex: 1;
  127. font-size: 150%;
  128. }
  129. body #test-canvas {
  130. position: fixed;
  131. top: 100vh;
  132. }