light.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. button {
  2. color: #555;
  3. background-color: #ddd;
  4. border: 0px;
  5. padding: 5px 8px;
  6. text-transform: uppercase;
  7. cursor: pointer;
  8. outline: none;
  9. }
  10. button:hover {
  11. background-color: #fff;
  12. }
  13. button.selected {
  14. background-color: #fff;
  15. }
  16. input, textarea {
  17. border: 1px solid transparent;
  18. color: #444;
  19. }
  20. input.Number {
  21. color: #08f!important;
  22. font-size: 12px;
  23. border: 0px;
  24. padding: 2px;
  25. cursor: col-resize;
  26. }
  27. select {
  28. color: #666;
  29. background-color: #ddd;
  30. border: 0px;
  31. text-transform: uppercase;
  32. cursor: pointer;
  33. outline: none;
  34. }
  35. select:hover {
  36. background-color: #fff;
  37. }
  38. /* UI */
  39. #viewport {
  40. position: absolute;
  41. top: 32px;
  42. left: 0;
  43. right: 300px;
  44. bottom: 0;
  45. }
  46. #viewport #info {
  47. text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
  48. pointer-events: none;
  49. }
  50. #script {
  51. position: absolute;
  52. top: 32px;
  53. left: 0;
  54. right: 300px;
  55. bottom: 0;
  56. opacity: 0.9;
  57. }
  58. #player {
  59. position: absolute;
  60. top: 32px;
  61. left: 0;
  62. right: 300px;
  63. bottom: 0;
  64. }
  65. #menubar {
  66. position: absolute;
  67. width: 100%;
  68. height: 32px;
  69. background: #eee;
  70. padding: 0;
  71. margin: 0;
  72. right: 0;
  73. top: 0;
  74. }
  75. #menubar .menu {
  76. float: left;
  77. cursor: pointer;
  78. padding-right: 8px;
  79. }
  80. #menubar .menu.right {
  81. float: right;
  82. cursor: auto;
  83. padding-right: 0;
  84. text-align: right;
  85. }
  86. #menubar .menu .title {
  87. display: inline-block;
  88. color: #888;
  89. margin: 0;
  90. padding: 8px;
  91. line-height: 16px;
  92. }
  93. #menubar .menu .options {
  94. position: fixed;
  95. display: none;
  96. padding: 5px 0;
  97. background: #eee;
  98. width: 150px;
  99. max-height: calc(100% - 80px);
  100. overflow: auto;
  101. }
  102. #menubar .menu:hover .options {
  103. display: block;
  104. }
  105. #menubar .menu .options hr {
  106. border-color: #ddd;
  107. }
  108. #menubar .menu .options .option {
  109. color: #666;
  110. background-color: transparent;
  111. padding: 5px 10px;
  112. margin: 0 !important;
  113. }
  114. #menubar .menu .options .option:hover {
  115. color: #fff;
  116. background-color: #08f;
  117. }
  118. #menubar .menu .options .option:active {
  119. color: #666;
  120. background: transparent;
  121. }
  122. #menubar .menu .options .inactive {
  123. color: #bbb;
  124. background-color: transparent;
  125. padding: 5px 10px;
  126. margin: 0 !important;
  127. }
  128. #sidebar {
  129. position: absolute;
  130. right: 0;
  131. top: 32px;
  132. bottom: 0;
  133. width: 300px;
  134. background: #eee;
  135. overflow: auto;
  136. }
  137. #sidebar * {
  138. vertical-align: middle;
  139. }
  140. #sidebar .Panel {
  141. color: #888;
  142. padding: 10px;
  143. border-top: 1px solid #ccc;
  144. }
  145. #sidebar .Panel.collapsed {
  146. margin-bottom: 0;
  147. }
  148. #sidebar .Row {
  149. min-height: 20px;
  150. margin-bottom: 10px;
  151. }
  152. #tabs {
  153. background-color: #ddd;
  154. border-top: 1px solid #ccc;
  155. }
  156. #tabs span {
  157. color: #aaa;
  158. border-right: 1px solid #ccc;
  159. padding: 10px;
  160. }
  161. #tabs span.selected {
  162. color: #888;
  163. background-color: #eee;
  164. }
  165. #toolbar {
  166. position: absolute;
  167. left: calc(50% - 290px); /* ( ( 100% - 300px ) / 2.0 ) - 140px */
  168. width: 280px;
  169. bottom: 16px;
  170. height: 32px;
  171. background: #eee;
  172. color: #333;
  173. }
  174. #toolbar * {
  175. vertical-align: middle;
  176. }
  177. #toolbar .Panel {
  178. padding: 4px;
  179. color: #888;
  180. }
  181. #toolbar button {
  182. margin-right: 6px;
  183. line-height: 14px;
  184. height: 24px;
  185. }
  186. .Outliner {
  187. color: #444;
  188. background-color: #fff;
  189. padding: 0;
  190. width: 100%;
  191. height: 140px;
  192. font-size: 12px;
  193. cursor: default;
  194. overflow: auto;
  195. outline: none !important;
  196. }
  197. .Outliner .option {
  198. padding: 4px;
  199. color: #666;
  200. white-space: nowrap;
  201. }
  202. .Outliner .option:hover {
  203. background-color: rgba(0,0,0,0.02);
  204. }
  205. .Outliner .option.active {
  206. background-color: rgba(0,0,0,0.04);
  207. }
  208. /* */
  209. @media all and ( max-width: 600px ) {
  210. #menubar .menu .options {
  211. max-height: calc(100% - 372px);
  212. }
  213. #menubar .menu.right {
  214. display: none;
  215. }
  216. #viewport {
  217. left: 0;
  218. right: 0;
  219. top: 32px;
  220. height: calc(100% - 352px);
  221. }
  222. #script {
  223. left: 0;
  224. right: 0;
  225. top: 32px;
  226. height: calc(100% - 352px);
  227. }
  228. #player {
  229. left: 0;
  230. right: 0;
  231. top: 32px;
  232. height: calc(100% - 352px);
  233. }
  234. #sidebar {
  235. left: 0;
  236. width: 100%;
  237. top: calc(100% - 320px);
  238. bottom: 0;
  239. }
  240. #toolbar {
  241. left: calc(50% - 140px);
  242. width: 280px;
  243. top: 52px;
  244. }
  245. }