/win/nacl/nethack.css

https://github.com/kaladron/nethack-nacl · CSS · 342 lines · 285 code · 57 blank · 0 comment · 0 complexity · 5efdaebc8b19921581f02666a815b742 MD5 · raw file

  1. @font-face {
  2. font-family: 'Inconsolata';
  3. font-style: normal;
  4. font-weight: 700;
  5. src: local('Inconsolata Bold'), local('Inconsolata-Bold'), url(fonts/inconsolata/v6/AIed271kqQlcIRSOnQH0yTqR_3kx9_hJXbbyU8S6IN0.woff) format('woff');
  6. }
  7. @font-face {
  8. font-family: 'Inconsolata';
  9. font-style: normal;
  10. font-weight: 400;
  11. src: local('Inconsolata'), url(fonts/inconsolata/v6/BjAYBlHtW3CJxDcjzrnZCIbN6UDyHWBl620a-IRfuBk.woff) format('woff');
  12. }
  13. body {
  14. padding: 0;
  15. margin: 0;
  16. }
  17. pre {
  18. font-family: Inconsolata;
  19. -webkit-user-select: text;
  20. }
  21. x-modal {
  22. z-index: 1000;
  23. -webkit-user-select: none;
  24. }
  25. x-modal h1 {
  26. margin: 0;
  27. font-family: sans-serif;
  28. font-size: 1.25em;
  29. text-align: center;
  30. }
  31. x-overlay {
  32. z-index: 999;
  33. background: none;
  34. }
  35. #listener {
  36. width: 0;
  37. height: 0;
  38. }
  39. .header {
  40. z-index: 1;
  41. position: fixed;
  42. background-color: rgba(207, 212, 208, .5);
  43. color: rgba(207, 212, 208, 0);
  44. left: 50%;
  45. right: 50%;
  46. margin-left: -20%;
  47. margin-right: -20%;
  48. padding: 2px;
  49. height: 3px;
  50. overflow: hidden;
  51. border-bottom-left-radius: 10px;
  52. border-bottom-right-radius: 10px;
  53. -webkit-user-select: none;
  54. -webkit-transition-property: height, color, background-color;
  55. -webkit-transition-duration: 150ms;
  56. -webkit-transition-timing-function: linear;
  57. }
  58. .header-initial {
  59. height: 1.5em;
  60. background-color: rgba(207, 212, 208, 1);
  61. color: black;
  62. }
  63. .header:hover {
  64. height: 1.5em;
  65. background-color: rgba(207, 212, 208, 1);
  66. color: black;
  67. -webkit-transition-property: height, color, background-color;
  68. -webkit-transition-duration: 150ms;
  69. -webkit-transition-timing-function: linear;
  70. }
  71. .header a {
  72. color: inherit;
  73. }
  74. .header a:visited {
  75. color: inherit;
  76. }
  77. .header ul {
  78. text-align: center;
  79. list-style-type: none;
  80. margin: 0;
  81. padding: 0;
  82. }
  83. .header ul li {
  84. display: inline-block;
  85. }
  86. .header ul li::after { content: ' | ' }
  87. .header ul li:last-child::after { content: '' }
  88. .tile-fixedwidth {
  89. font-family: Inconsolata;
  90. white-space: pre;
  91. }
  92. #tile-gamecanvas {
  93. background-image: url('mapbg.png');
  94. }
  95. #tile-gamescreen {
  96. position: fixed;
  97. padding: 0;
  98. margin: 0;
  99. height: 100%;
  100. width: 100%;
  101. overflow: hidden;
  102. display: table;
  103. background-color: #cfd4d0;
  104. -webkit-user-select: none;
  105. }
  106. .tile-hidden {
  107. visibility: hidden;
  108. }
  109. .tile-statchange {
  110. font-weight: bold;
  111. }
  112. .tile-extcmdbutton {
  113. width: 20em;
  114. }
  115. #tile-menu ul {
  116. list-style-type: none;
  117. display: block;
  118. margin: 0;
  119. padding: 0;
  120. }
  121. #tile-menu ul li {
  122. display: inline-block;
  123. margin-left: 5px;
  124. margin-right: 5px;
  125. cursor: default;
  126. font-family: sans-serif;
  127. }
  128. #tile-menu > ul > li > ul {
  129. display: none;
  130. }
  131. #tile-menu > ul > li:hover > ul {
  132. border: 1px solid #ccc;
  133. display: block;
  134. position: absolute;
  135. background-color: #cfd4d0;
  136. box-shadow: 2px 2px 1px rgba(0,0,0,.3), -2px 0px 1px rgba(0,0,0,.3);
  137. }
  138. #tile-menu > ul > li > ul > li {
  139. display: block;
  140. margin-top: 2px;
  141. margin-bottom: 2px;
  142. padding-left: 1em;
  143. padding-right: 1em;
  144. }
  145. .tile-win-buttonbox {
  146. margin: 3px;
  147. }
  148. .tile-menutable > tr:nth-child(odd) {
  149. background-color:#eee;
  150. }
  151. .tile-menutable th {
  152. text-align: left;
  153. font-family: sans-serif;
  154. }
  155. .tile-menutable td {
  156. padding-left: 3px;
  157. padding-right: 3px;
  158. }
  159. .tile-menutable {
  160. border-spacing: 0;
  161. cursor: default;
  162. width: 100%;
  163. }
  164. .tile-menutable-selected {
  165. background-color: #4b6983 !important;
  166. color: white !important;
  167. }
  168. .tile-menuitem-accel {
  169. font-weight: bold;
  170. }
  171. .tile-menuitem:hover {
  172. background-color: #aba698;
  173. }
  174. .tile-menuwin-img {
  175. min-height: 16px; /* TILE_SQUARE */
  176. height: 16px;
  177. width: 16px;
  178. background-image: url('x11tiles.png');
  179. }
  180. #tile-plinewin {
  181. display: table-cell;
  182. vertical-align: top;
  183. background-color: white;
  184. overflow-y: scroll;
  185. -webkit-user-select: text;
  186. }
  187. #tile-plinecontent {
  188. height: 1em;
  189. min-height: 1em;
  190. }
  191. #tile-plinewin p {
  192. margin: 0;
  193. padding: 0;
  194. }
  195. #tile-toppart {
  196. display: table;
  197. width: 100%;
  198. border: 1px solid black;
  199. }
  200. #textwindow {
  201. height: 10em;
  202. width: 60%;
  203. overflow-y: scroll;
  204. }
  205. #map {
  206. background-image: url('mapbg.png');
  207. }
  208. #popup {
  209. display: none;
  210. position: fixed;
  211. background: rgba(0,0,0,0.5);
  212. z-index: 1;
  213. top: 0px;
  214. left: 0px;
  215. margin: 0;
  216. padding: 0;
  217. }
  218. #gnomelikeBorderBox {
  219. border: 3px solid black;
  220. position: absolute;
  221. }
  222. #tile-status {
  223. width: 541px;
  224. background-color: #cfd4d0;
  225. text-align: center;
  226. }
  227. .tile-table {
  228. display: table;
  229. table-layout: fixed;
  230. width: 100%;
  231. margin: 0;
  232. padding: 0;
  233. }
  234. .tile-cell {
  235. vertical-align: top;
  236. display: table-cell;
  237. margin: 0;
  238. padding: 0;
  239. }
  240. #tile-cell-inventbox {
  241. max-height: 212px;
  242. max-width: 141px;
  243. width: 141px;
  244. height: 212px;
  245. vertical-align: middle;
  246. padding: 3px;
  247. }
  248. #tile-inventbox {
  249. background-image: url('equip.png');
  250. min-height: 212px;
  251. min-width: 141px;
  252. padding: 0;
  253. margin: 0;
  254. box-shadow: 2px 2px 1px rgba(0,0,0,.3), -2px 0px 1px rgba(0,0,0,.3);
  255. }
  256. #tile-status h1 {
  257. margin: 0;
  258. padding: 0;
  259. }
  260. #tile-status h2 {
  261. margin: 0;
  262. padding: 0;
  263. }
  264. #tile-status ul {
  265. display: table;
  266. list-style-type: none;
  267. margin: 0;
  268. padding: 0;
  269. width: 100%;
  270. }
  271. #tile-status ul li {
  272. display: table-cell;
  273. }
  274. .tile-dialog {
  275. background-color: white;
  276. border: 1px solid rgba(0,0,0,.6);
  277. padding: 1em;
  278. box-shadow: 0 0 1em rgba(0,0,0,.3);
  279. max-height: 80%;
  280. overflow-y: auto;
  281. }
  282. .tile-scrollarea {
  283. max-height: 80%;
  284. overflow-y: auto;
  285. }