a munch adventure
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

511 lignes
7.0 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. margin: 10px 0px;
  201. padding: 10px;
  202. background: rgba(255,255,255,0.07);
  203. flex: 5;
  204. }
  205. #player-info {
  206. margin: 10px 0px;
  207. padding: 10px;
  208. background: rgba(255,255,255,0.07);
  209. flex: 5;
  210. }
  211. .stat-bar-holder {
  212. user-select: none;
  213. position: relative;
  214. width: 100%;
  215. height: 30px;
  216. background-color: rgba(0, 0, 0, 1);
  217. }
  218. .stat-bar-label {
  219. width: 100%;
  220. position: absolute;
  221. text-align: center;
  222. z-index: 1;
  223. text-shadow: 2px 2px 1px black,
  224. -2px 2px 1px black,
  225. 2px -2px 1px black,
  226. -2px -2px 1px black,
  227. 2px 0 1px black,
  228. -2px 0 1px black,
  229. 0 -2px 1px black,
  230. 0 -2px 1px black;
  231. }
  232. .stat-bar {
  233. position: absolute;
  234. width: 50%;
  235. height: 30px;
  236. }
  237. .info-header {
  238. font-size: 36px;
  239. text-align: center;
  240. }
  241. #control-area {
  242. display: flex;
  243. }
  244. @media (min-aspect-ratio: 1/1) {
  245. #actions {
  246. flex-wrap: wrap;
  247. }
  248. }
  249. #actions {
  250. position: relative;
  251. flex-direction: column;
  252. flex-wrap: wrap;
  253. align-items: center;
  254. display: flex;
  255. padding: 25px;
  256. font-size: 24px;
  257. background: rgba(255, 255, 255, 0.1);
  258. max-height: 100%;
  259. }
  260. .action-button {
  261. flex: 0 0 50px;
  262. width: 250px;
  263. background-color: #888;
  264. color: #eee;
  265. margin: 5px;
  266. font-size: 16pt;
  267. }
  268. #desc {
  269. padding: 25px;
  270. font-size: 18px;
  271. background: rgba(255, 255, 255, 0.15);
  272. }
  273. @media (min-aspect-ratio: 1/1) {
  274. #desc {
  275. flex: 0.5;
  276. }
  277. #actions {
  278. flex: 0.5;
  279. }
  280. #moves {
  281. max-width: 600pt;
  282. }
  283. }
  284. @media (max-aspect-ratio: 1/1) {
  285. #desc {
  286. flex: 0.3;
  287. }
  288. #actions {
  289. flex: 0.5;
  290. }
  291. }
  292. #moves {
  293. padding: 25px;
  294. position: relative;
  295. background: rgba(255, 255, 255, 0.1);
  296. flex: 1;
  297. }
  298. #move-holder {
  299. width: 90%;
  300. height: 90%;
  301. position: absolute;
  302. top: 5%;
  303. left: 50%;
  304. transform: translate(-50%, 0);
  305. display: grid;
  306. grid-template-columns: auto auto auto;
  307. grid-template-rows: auto auto auto auto;
  308. column-gap: 8pt;
  309. row-gap: 8pt;
  310. }
  311. .move-button {
  312. user-select: none;
  313. background-color: #888;
  314. color: #eee;
  315. border-radius: 5px;
  316. font-size: 24px;
  317. }
  318. #move-up-left {
  319. grid-column-start: 1;
  320. }
  321. #move-up {
  322. grid-column-start: 2;
  323. }
  324. #move-up-right {
  325. grid-column-start: 3;
  326. }
  327. #move-left {
  328. grid-column-start: 1;
  329. }
  330. #move-right {
  331. grid-column-start: 3;
  332. }
  333. #move-down-left {
  334. grid-column-start: 1;
  335. }
  336. #move-down {
  337. grid-column-start: 2;
  338. }
  339. #move-down-right {
  340. grid-column-start: 3;
  341. }
  342. #move-ascend {
  343. grid-column-start: 1;
  344. }
  345. #move-descend {
  346. grid-column-start: 3;
  347. }
  348. .move-button:focus {
  349. outline: 0px;
  350. }
  351. .disabled {
  352. background-color: #444;
  353. border: none;
  354. }
  355. .missing {
  356. background-color: #444;
  357. color: #aaa !important;
  358. }
  359. #area-name {
  360. margin: 10px 0px;
  361. padding: 10px;
  362. background: rgba(255,255,255,0.07);
  363. font-size: 36px;
  364. }
  365. #area-desc {
  366. margin: 10px 0px;
  367. padding: 10px;
  368. background: rgba(255,255,255,0.07);
  369. }
  370. #area-info {
  371. margin: 10px 0px;
  372. padding: 10px;
  373. background: rgba(255,255,255,0.07);
  374. flex: 5;
  375. }
  376. #log::-webkit-scrollbar {
  377. width: 3px;
  378. height: 2px;
  379. }
  380. #log::-webkit-scrollbar-button {
  381. width: 0px;
  382. height: 0px;
  383. }
  384. #log::-webkit-scrollbar-thumb {
  385. background: #e1e1e1;
  386. border: 0px none #ffffff;
  387. border-radius: 50px;
  388. }
  389. #log::-webkit-scrollbar-thumb:hover {
  390. background: #ffffff;
  391. }
  392. #log::-webkit-scrollbar-thumb:active {
  393. background: #000000;
  394. }
  395. #log::-webkit-scrollbar-track {
  396. background: #666666;
  397. border: 0px none #ffffff;
  398. border-radius: 50px;
  399. }
  400. #log::-webkit-scrollbar-track:hover {
  401. background: #666666;
  402. }
  403. #log::-webkit-scrollbar-track:active {
  404. background: #333333;
  405. }
  406. #log::-webkit-scrollbar-corner {
  407. background: transparent;
  408. }
  409. #story-info {
  410. display: grid;
  411. align-items: center;
  412. grid-template-columns: repeat(1, minmax(240px, 1fr));
  413. }
  414. .tooltip {
  415. position: relative;
  416. }
  417. .tooltip::before {
  418. content: attr(data-tooltip);
  419. position: absolute;
  420. display: none;
  421. background: gray;
  422. left: 50%;
  423. top: 0%;
  424. transform: translate(48pt, -100%);
  425. padding: 5pt;
  426. color: #eee;
  427. border-radius: 5pt;
  428. pointer-events: none;
  429. }
  430. .tooltip:hover::before {
  431. display: inline-block;
  432. }