a munch adventure
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 

496 рядки
6.7 KiB

  1. html, body, .scene {
  2. min-height: 100%;
  3. height: 100%;
  4. color: #eee;
  5. background-color: #000;
  6. font-family: sans-serif;
  7. margin: 0px;
  8. }
  9. body {
  10. position: fixed;
  11. top: 0px;
  12. width: 100%;
  13. }
  14. .hidden-scene {
  15. display: none;
  16. }
  17. .hidden-modal {
  18. display: none;
  19. }
  20. a {
  21. color: #8888FF;
  22. text-decoration: none;
  23. }
  24. a:visited {
  25. color: #8888DD;
  26. }
  27. a:hover {
  28. color: #AAAAEE;
  29. }
  30. a:hover {
  31. text-shadow: 0px 0px 5px #eeeeff;
  32. text-decoration: none;
  33. }
  34. #pick {
  35. text-align: center;
  36. }
  37. #pick-blurb {
  38. font-size: 24px;
  39. }
  40. #game-select {
  41. user-select: none;
  42. font-size: 32px;
  43. background-color: #111;
  44. color: #eee;
  45. border: 1px solid #333;
  46. width: 200px;
  47. height: 50px;
  48. }
  49. #start-button {
  50. user-select: none;
  51. width: 200px;
  52. height: 100px;
  53. background-color: #111;
  54. border: 1px solid #333;
  55. font-size: 48px;
  56. color: #eee;
  57. }
  58. #tags-header {
  59. font-size: 36px;
  60. }
  61. .tag {
  62. font-size: 24px;
  63. }
  64. .modal {
  65. position: fixed;
  66. z-index: 1;
  67. height: 100%;
  68. width: 100%;
  69. left: 0;
  70. top: 0;
  71. background-color: rgba(0,0,0,0.5);
  72. text-align: center;
  73. display: flex;
  74. justify-content: center;
  75. align-content: center;
  76. align-items: center;
  77. }
  78. .modal-content {
  79. display: flex;
  80. flex-direction: column;
  81. justify-content: center;
  82. align-content: center;
  83. position: relative;
  84. flex-wrap: nowrap;
  85. text-align: center;
  86. width: 25%;
  87. padding: 100px;
  88. background-color: rgba(0, 0, 0, 0.9);
  89. }
  90. .menu-header {
  91. width: 100%;
  92. height: 75px;
  93. font-size: 48px;
  94. }
  95. .menu-button {
  96. width: 100%;
  97. height: 50px;
  98. background-color: #111;
  99. border: 1px solid #333;
  100. font-size: 24px;
  101. color: #eee;
  102. }
  103. @media (max-aspect-ratio: 1/1) {
  104. .modal-content {
  105. width: 75%;
  106. height: 75%;
  107. }
  108. .menu-button {
  109. height: 10%;
  110. font-size: 5vw;
  111. }
  112. }
  113. @media (min-aspect-ratio: 1/1) {
  114. #info-area {
  115. height: 60%;
  116. }
  117. #control-area {
  118. height: 40%;
  119. }
  120. }
  121. .menu-button:active {
  122. background-color: #222;
  123. }
  124. .menu-button:focus {
  125. outline: 0px;
  126. }
  127. .menu-slider {
  128. background: #555;
  129. width: 100%;
  130. height: 50px;
  131. }
  132. .menu-label {
  133. width: 100%;
  134. height: 25px;
  135. font-size: 36px;
  136. }
  137. #info-area {
  138. position: relative;
  139. display: flex;
  140. }
  141. @media (max-aspect-ratio: 1/1) {
  142. #info-area {
  143. height: 50%;
  144. }
  145. #control-area {
  146. height: 50%;
  147. flex-direction: column;
  148. }
  149. }
  150. @media (min-aspect-ratio: 1/1) {
  151. #info-area {
  152. height: 60%;
  153. }
  154. #control-area {
  155. height: 40%;
  156. }
  157. }
  158. #log {
  159. background: #000000;
  160. flex: 4;
  161. padding: 25px;
  162. font-size: 24px;
  163. max-width: 50%;
  164. overflow: auto;
  165. }
  166. #log > div:not(last-child) {
  167. color: #ddd;
  168. }
  169. #log > div:last-child {
  170. margin-top: 16pt;
  171. color: #fff;
  172. }
  173. .sidebar {
  174. background: rgba(255, 255, 255, 0.1);
  175. padding: 25px;
  176. flex: 1;
  177. display: flex;
  178. flex-direction: column;
  179. font-size: 24px;
  180. }
  181. #game-menu {
  182. margin: 10px;
  183. background: rgba(255,255,255,0.07);
  184. flex: 2;
  185. }
  186. .game-menu-button {
  187. height: 100%;
  188. width: 100%;
  189. user-select: none;
  190. background-color: #111;
  191. border: 1px solid #333;
  192. font-size: 48px;
  193. color: #eee;
  194. }
  195. #world-info {
  196. margin: 10px 0px;
  197. padding: 10px;
  198. background: rgba(255,255,255,0.07);
  199. flex: 5;
  200. }
  201. #player-info {
  202. margin: 10px 0px;
  203. padding: 10px;
  204. background: rgba(255,255,255,0.07);
  205. flex: 5;
  206. }
  207. .stat-bar-holder {
  208. user-select: none;
  209. position: relative;
  210. width: 100%;
  211. height: 30px;
  212. background-color: rgba(0, 0, 0, 1);
  213. }
  214. .stat-bar-label {
  215. width: 100%;
  216. position: absolute;
  217. text-align: center;
  218. z-index: 1;
  219. text-shadow: 2px 2px 1px black,
  220. -2px 2px 1px black,
  221. 2px -2px 1px black,
  222. -2px -2px 1px black,
  223. 2px 0 1px black,
  224. -2px 0 1px black,
  225. 0 -2px 1px black,
  226. 0 -2px 1px black;
  227. }
  228. .stat-bar {
  229. position: absolute;
  230. width: 50%;
  231. height: 30px;
  232. }
  233. .info-header {
  234. font-size: 36px;
  235. text-align: center;
  236. }
  237. #control-area {
  238. display: flex;
  239. }
  240. @media (min-aspect-ratio: 1/1) {
  241. #actions {
  242. flex-wrap: wrap;
  243. }
  244. }
  245. #actions {
  246. position: relative;
  247. flex-direction: column;
  248. flex-wrap: wrap;
  249. align-items: center;
  250. display: flex;
  251. padding: 25px;
  252. font-size: 24px;
  253. background: rgba(255, 255, 255, 0.1);
  254. max-height: 100%;
  255. }
  256. .action-button {
  257. flex: 0 0 50px;
  258. width: 250px;
  259. background-color: #888;
  260. color: #eee;
  261. margin: 5px;
  262. font-size: 16pt;
  263. }
  264. #desc {
  265. padding: 25px;
  266. font-size: 18px;
  267. background: rgba(255, 255, 255, 0.15);
  268. }
  269. @media (min-aspect-ratio: 1/1) {
  270. #desc {
  271. flex: 0.5;
  272. }
  273. #actions {
  274. flex: 0.5;
  275. }
  276. #moves {
  277. max-width: 600pt;
  278. }
  279. }
  280. @media (max-aspect-ratio: 1/1) {
  281. #desc {
  282. flex: 0.3;
  283. }
  284. #actions {
  285. flex: 0.5;
  286. }
  287. }
  288. #moves {
  289. padding: 25px;
  290. position: relative;
  291. background: rgba(255, 255, 255, 0.1);
  292. flex: 1;
  293. }
  294. #move-holder {
  295. width: 90%;
  296. height: 90%;
  297. position: absolute;
  298. top: 5%;
  299. left: 50%;
  300. transform: translate(-50%, 0);
  301. display: grid;
  302. grid-template-columns: auto auto auto;
  303. grid-template-rows: auto auto auto auto;
  304. column-gap: 8pt;
  305. row-gap: 8pt;
  306. }
  307. .move-button {
  308. user-select: none;
  309. background-color: #888;
  310. color: #eee;
  311. border-radius: 5px;
  312. font-size: 24px;
  313. }
  314. #move-up-left {
  315. grid-column-start: 1;
  316. }
  317. #move-up {
  318. grid-column-start: 2;
  319. }
  320. #move-up-right {
  321. grid-column-start: 3;
  322. }
  323. #move-left {
  324. grid-column-start: 1;
  325. }
  326. #move-right {
  327. grid-column-start: 3;
  328. }
  329. #move-down-left {
  330. grid-column-start: 1;
  331. }
  332. #move-down {
  333. grid-column-start: 2;
  334. }
  335. #move-down-right {
  336. grid-column-start: 3;
  337. }
  338. #move-ascend {
  339. grid-column-start: 1;
  340. }
  341. #move-descend {
  342. grid-column-start: 3;
  343. }
  344. .move-button:focus {
  345. outline: 0px;
  346. }
  347. .disabled {
  348. background-color: #444;
  349. border: none;
  350. }
  351. .missing {
  352. background-color: #444;
  353. color: #aaa !important;
  354. }
  355. #area-name {
  356. margin: 10px 0px;
  357. padding: 10px;
  358. background: rgba(255,255,255,0.07);
  359. font-size: 36px;
  360. }
  361. #area-desc {
  362. margin: 10px 0px;
  363. padding: 10px;
  364. background: rgba(255,255,255,0.07);
  365. }
  366. #log::-webkit-scrollbar {
  367. width: 3px;
  368. height: 2px;
  369. }
  370. #log::-webkit-scrollbar-button {
  371. width: 0px;
  372. height: 0px;
  373. }
  374. #log::-webkit-scrollbar-thumb {
  375. background: #e1e1e1;
  376. border: 0px none #ffffff;
  377. border-radius: 50px;
  378. }
  379. #log::-webkit-scrollbar-thumb:hover {
  380. background: #ffffff;
  381. }
  382. #log::-webkit-scrollbar-thumb:active {
  383. background: #000000;
  384. }
  385. #log::-webkit-scrollbar-track {
  386. background: #666666;
  387. border: 0px none #ffffff;
  388. border-radius: 50px;
  389. }
  390. #log::-webkit-scrollbar-track:hover {
  391. background: #666666;
  392. }
  393. #log::-webkit-scrollbar-track:active {
  394. background: #333333;
  395. }
  396. #log::-webkit-scrollbar-corner {
  397. background: transparent;
  398. }
  399. #story-info {
  400. display: flex;
  401. flex-direction: column;
  402. }
  403. .tooltip {
  404. position: relative;
  405. }
  406. .tooltip::before {
  407. content: attr(data-tooltip);
  408. position: absolute;
  409. display: none;
  410. background: gray;
  411. top: -20pt;
  412. left: 50%;
  413. color: #eee;
  414. border-radius: 5pt;
  415. pointer-events: none;
  416. transform: translate(-50%, 0);
  417. }
  418. .tooltip:hover::before {
  419. display: inline-block;
  420. }