_page.scss 4.6 KB

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