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.
 
 
 
 

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