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.
 
 
 
 

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