a munch adventure
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 

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