_page.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. .error {
  2. padding: 0.5em;
  3. background-color: #d6a3a7;
  4. color: #780100;
  5. &:before {
  6. content: "ERROR: ";
  7. font-weight: bold;
  8. }
  9. }
  10. .unselectable {
  11. -moz-user-select: -moz-none;
  12. -khtml-user-select: none;
  13. -webkit-user-select: none;
  14. -o-user-select: none;
  15. user-select: none;
  16. &:hover {
  17. cursor: default;
  18. }
  19. }
  20. .scrollbar {
  21. overflow: auto;
  22. &::-webkit-scrollbar-track {
  23. -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  24. background-color: #F5F5F5;
  25. }
  26. &::-webkit-scrollbar {
  27. width: 6px;
  28. background-color: #F5F5F5;
  29. }
  30. &::-webkit-scrollbar-thumb {
  31. background-color: #000000;
  32. }
  33. }
  34. .header {
  35. font-weight: bold;
  36. font-variant: small-caps;
  37. font-size: 1.1rem;
  38. }
  39. .alignRight {
  40. text-align: right;
  41. }
  42. .alignCenter {
  43. text-align: center;
  44. }
  45. // The next two rules fix blur fucking up status line borders with white shit
  46. body {
  47. background-color: #000;
  48. }
  49. #mainPage {
  50. background-color: #fff;
  51. }
  52. #mainPage, .topBottomFlex {
  53. position: absolute;
  54. left: 0px;
  55. top: 0px;
  56. width: 100%;
  57. height: 100%;
  58. display: flex;
  59. flex-direction: column;
  60. flex-wrap: nowrap;
  61. justify-content: flex-start;
  62. align-content: stretch;
  63. align-items: flex-start;
  64. }
  65. .leftRightFlex {
  66. display: flex;
  67. flex-direction: row;
  68. flex-wrap: nowrap;
  69. justify-content: flex-start;
  70. align-content: stretch;
  71. align-items: flex-start;
  72. }
  73. #mainPage {
  74. color: $mainFontColor;
  75. font-family: $mainFont;
  76. }
  77. #statusLine, .noshrinkFlex {
  78. flex: 0 0 auto;
  79. align-self: stretch;
  80. height: auto;
  81. overflow: visible;
  82. position: relative;
  83. }
  84. #statusLine {
  85. background-color: rgba(0,0,0, $dark0);
  86. color: $statusColor;
  87. font-family: $fixedWidthFont;
  88. white-space: nowrap;
  89. padding: 0.4rem;
  90. }
  91. .statusColumnRight {
  92. margin-left: auto;
  93. }
  94. .statusColumnCenter {
  95. margin-left: auto;
  96. margin-right: auto;
  97. }
  98. .statusColumnDivider {
  99. border-right: #fff solid 1px;
  100. margin-left: 0.5rem;
  101. margin-right: 0.5rem;
  102. }
  103. #gameContainer, .growingFlex {
  104. flex: 1 1 auto;
  105. align-self: stretch;
  106. position: relative;
  107. }
  108. #leftWindow, #centerWindow, #rightWindow {
  109. flex: 1 0 auto;
  110. align-self: auto;
  111. flex-grow: 1;
  112. min-width: 10rem;
  113. position: relative;
  114. background-color: #fff;
  115. }
  116. #centerWindow {
  117. max-width: 60%;
  118. flex: 1 1 auto;
  119. flex-grow: 4;
  120. }
  121. #windowContainer {
  122. display: flex;
  123. flex-direction: row;
  124. flex-wrap: nowrap;
  125. justify-content: flex-start;
  126. align-content: stretch;
  127. align-items: stretch;
  128. height: 100%;
  129. width: 100%;
  130. position: absolute;
  131. }
  132. #currentTurn {
  133. overflow-x: hidden;
  134. overflow-y: scroll;
  135. min-height: 100px;
  136. background: linear-gradient(to bottom, rgba(0,0,0, $dark4) 75%,rgba(0,0,0, $dark3) 100%);
  137. }
  138. #currentTurn > * {
  139. animation: fadein 1s;
  140. }
  141. @keyframes fadein {
  142. from { opacity: 0; }
  143. to { opacity: 1; }
  144. }
  145. #leftWindow {
  146. background: linear-gradient(to right, rgba(0,0,0, $dark1) 0%, rgba(0,0,0, $dark2) 50%,rgba(0,0,0, $dark3) 100%);
  147. }
  148. #appearanceTab {
  149. overflow: auto;
  150. //background: linear-gradient(to right, rgba(0,0,0, $dark1) 0%, rgba(0,0,0, $dark2) 50%,rgba(0,0,0, $dark3) 100%);
  151. padding: 0.8rem;
  152. //padding-top: 200px;
  153. }
  154. #inventoryTab {
  155. overflow-y: auto;
  156. flex-shrink: 1;
  157. //overflow: hidden;
  158. //background: linear-gradient(to left, rgba(0,0,0, $dark1) 0%, rgba(0,0,0, $dark2) 50%,rgba(0,0,0, $dark3) 100%);
  159. }
  160. #currentRoomTab {
  161. overflow: hidden;
  162. background: linear-gradient(to bottom, rgba(0,0,0, $dark3) 75%,rgba(0,0,0, $dark4) 100%);
  163. padding: 0.8rem;
  164. }
  165. #hyperlinksTab {
  166. background: rgba(0,0,0, $dark4);
  167. text-indent: 1em;
  168. }
  169. #mainPage.mobile #fakeparserTab {
  170. display: none;
  171. }
  172. #fakeparserTab {
  173. overflow: visible;
  174. background: rgba(0,0,0, $dark4);
  175. padding: 0.8rem;
  176. font-family: $fixedWidthFont;
  177. &:before {
  178. content: ">";
  179. }
  180. }
  181. #currentCommand, #fakeParserThingy {
  182. font-weight: bold;
  183. }
  184. #fakeParserThingy {
  185. animation: blinker 0.9s cubic-bezier(.5, 0, 1, 1) infinite alternate;
  186. }
  187. @keyframes blinker { to { opacity: 0; } }
  188. #rememberedRoomsTab, #mapTab {
  189. overflow-y: auto;
  190. background: linear-gradient(to bottom left, rgba(0,0,0, $dark1) 0%, rgba(0,0,0, $dark2) 50%,rgba(0,0,0, $dark3) 100%);
  191. padding: 0.8rem;
  192. }
  193. #sceneAnimation {
  194. display: none;
  195. width: 200px;
  196. height: 200px;
  197. position: fixed;
  198. bottom: 0px;
  199. left: 50%;
  200. margin-left: -100px;
  201. z-index: 1;
  202. pointer-events: none;
  203. }
  204. #mainPage.turn #sceneAnimation {
  205. display: block;
  206. }
  207. .sceneAnimation {
  208. display: block;
  209. position: absolute;
  210. top: 50%;
  211. left: 50%;
  212. }
  213. // #mainPage.mobile
  214. #roomExitsHolder {
  215. @extend .noshrinkFlex;
  216. background: linear-gradient(to top left, rgba(0,0,0, $dark1) 0%, rgba(0,0,0, $dark2) 50%,rgba(0,0,0, $dark3) 100%);
  217. padding: 2ex;
  218. padding-top: 0px;
  219. }
  220. #exitsTab {
  221. overflow: hidden;
  222. background-color: rgba(0,0,0, $dark4);
  223. padding: 0.8rem;
  224. }