You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

421 lines
5.7 KiB

  1. @import "../../../css/colors.less";
  2. @pad: 8px;
  3. @btnSize: 64px;
  4. .uiMessages {
  5. position: absolute;
  6. left: 10px;
  7. bottom: 10px;
  8. width: 480px;
  9. pointer-events: none;
  10. display: flex;
  11. flex-direction: column;
  12. .filters {
  13. display: none;
  14. width: 100%;
  15. flex-wrap: wrap;
  16. .filter {
  17. height: 100%;
  18. background-color: @blackC;
  19. float: left;
  20. color: @blackA;
  21. margin-right: 10px;
  22. margin-bottom: 10px;
  23. padding: 5px 10px;
  24. cursor: pointer;
  25. &:hover {
  26. background-color: @blackB;
  27. color: @grayD;
  28. }
  29. &.active {
  30. background-color: @blackB;
  31. color: @blueB;
  32. &:hover {
  33. background-color: @blackA;
  34. color: @grayB;
  35. }
  36. }
  37. }
  38. }
  39. .list {
  40. overflow-y: hidden;
  41. width: 100%;
  42. max-height: 320px;
  43. .list-message {
  44. display: none;
  45. width: 100%;
  46. padding: 5px 10px;
  47. color: white;
  48. filter: drop-shadow(0px -2px 0px @blackD)
  49. drop-shadow(0px 2px 0px @blackD)
  50. drop-shadow(2px 0px 0px @blackD)
  51. drop-shadow(-2px 0px 0px @blackD);
  52. -moz-filter: drop-shadow(0px -2px 0px @blackD)
  53. drop-shadow(0px 2px 0px @blackD)
  54. drop-shadow(2px 0px 0px @blackD)
  55. drop-shadow(-2px 0px 0px @blackD);
  56. word-wrap: break-word;
  57. line-height: 18px;
  58. &.q {
  59. color: @grayB;
  60. }
  61. &.q0 {
  62. color: @white;
  63. }
  64. &.q1 {
  65. color: @greenB;
  66. }
  67. a,
  68. &.q2 {
  69. color: @blueB;
  70. }
  71. &.q3 {
  72. color: @purpleA;
  73. }
  74. &.q4 {
  75. color: @orangeA;
  76. }
  77. &.color-green {
  78. color: @green;
  79. }
  80. &.color-red {
  81. color: @red;
  82. }
  83. &.color-cyan {
  84. color: @blueA;
  85. }
  86. &.color-tealC {
  87. color: @tealC;
  88. }
  89. }
  90. &.rep .rep {
  91. display: block;
  92. }
  93. &.chat .chat {
  94. display: block;
  95. }
  96. &.info .info {
  97. display: block;
  98. }
  99. &.loot .loot {
  100. display: block;
  101. }
  102. }
  103. .bottom {
  104. display: none;
  105. .channelPicker {
  106. min-width: 100px;
  107. color: 1;
  108. display: flex;
  109. justify-content: center;
  110. align-items: center;
  111. color: @white;
  112. background-color: @blueC;
  113. cursor: pointer;
  114. padding: 0px 10px;
  115. &:after {
  116. content: '▾';
  117. margin-left: 10px;
  118. }
  119. &:hover {
  120. background-color: @blueD;
  121. }
  122. }
  123. .el {
  124. flex: 1;
  125. width: 100%;
  126. color: @white;
  127. &.textbox.message {
  128. display: none;
  129. background-color: @gray;
  130. text-align: left;
  131. padding: 5px 10px;
  132. }
  133. }
  134. &.time {
  135. display: flex;
  136. align-items: center;
  137. padding-left: 10px;
  138. background-color: transparent;
  139. height: 35px;
  140. color: @white;
  141. text-align: left;
  142. filter: drop-shadow(0px -2px 0px @blackD)
  143. drop-shadow(0px 2px 0px @blackD)
  144. drop-shadow(2px 0px 0px @blackD)
  145. drop-shadow(-2px 0px 0px @blackD);
  146. -moz-filter: drop-shadow(0px -2px 0px @blackD)
  147. drop-shadow(0px 2px 0px @blackD)
  148. drop-shadow(2px 0px 0px @blackD)
  149. drop-shadow(-2px 0px 0px @blackD);
  150. }
  151. &.channelOptions {
  152. display: none;
  153. flex-direction: column;
  154. position: absolute;
  155. left: 0px;
  156. bottom: 0px;
  157. min-width: 100px;
  158. .option {
  159. height: 35px;
  160. display: flex;
  161. justify-content: center;
  162. align-items: center;
  163. color: @grayB;
  164. background-color: @blackA;
  165. cursor: pointer;
  166. padding: 0px 10px;
  167. &:after {
  168. content: attr(shortcut);
  169. margin-left: 10px;
  170. color: @grayC;
  171. }
  172. &:hover,
  173. &.selected {
  174. background-color: @grayD;
  175. color: @white;
  176. }
  177. }
  178. }
  179. }
  180. &.typing {
  181. box-shadow: 0 -2px 0 @black, 0 2px 0 @black, 2px 0 0 @black, -2px 0 0 @black;
  182. pointer-events: all;
  183. .filters {
  184. pointer-events: all;
  185. display: flex;
  186. }
  187. .list {
  188. overflow-y: auto;
  189. background-color: @darkGray;
  190. .list-message {
  191. filter: none;
  192. }
  193. }
  194. .bottom {
  195. display: flex;
  196. .el.textbox {
  197. &.message:not(.input) {
  198. display: block;
  199. }
  200. }
  201. }
  202. .time {
  203. display: none;
  204. }
  205. .channelOptions {
  206. display: none;
  207. &.active {
  208. display: flex;
  209. }
  210. }
  211. }
  212. &.active {
  213. .list-message {
  214. opacity: 1 !important;
  215. }
  216. }
  217. &.picking {
  218. &:before {
  219. position: absolute;
  220. content: '';
  221. left: 0px;
  222. top: 0px;
  223. width: 100%;
  224. height: 100%;
  225. background-color: @blackD;
  226. opacity: 0.7;
  227. }
  228. }
  229. }
  230. .mobile .uiMessages {
  231. padding: 0px;
  232. pointer-events: all;
  233. .btnClose.active {
  234. float: right;
  235. margin-right: 0px;
  236. padding: 5px 20px;
  237. color: @redA;
  238. }
  239. input {
  240. display: none;
  241. }
  242. .filters {
  243. margin-bottom: 0px;
  244. flex-shrink: 0;
  245. background-color: @darkGray;
  246. }
  247. .list {
  248. height: 100%;
  249. max-height: 100%;
  250. }
  251. &.typing {
  252. left: 0px;
  253. top: 0px;
  254. width: 100%;
  255. height: 100%;
  256. background-color: fade(@darkGray, 90%);
  257. display: flex;
  258. flex-direction: column;
  259. z-index: 999999998;
  260. .channelPicker {
  261. display: none;
  262. }
  263. .channelOptions {
  264. z-index: 999999999;
  265. }
  266. .bottom {
  267. .input {
  268. display: block;
  269. height: 26px;
  270. flex-shrink: 0;
  271. }
  272. }
  273. .el.textbox.message:not(.input),.time {
  274. display: none;
  275. }
  276. .keyboard {
  277. display: flex;
  278. flex-direction: row;
  279. flex-wrap: wrap;
  280. background-color: @blackC;
  281. justify-content: center;
  282. align-items: center;
  283. height: 140px;
  284. flex-shrink: 0;
  285. .key {
  286. flex: 1;
  287. background-color: @blackA;
  288. color: @white;
  289. padding: 8px 10px;
  290. text-align: center;
  291. &.special {
  292. color: @orangeA;
  293. }
  294. &.hidden {
  295. color: @blackC;
  296. }
  297. &.space {
  298. flex: 5;
  299. }
  300. }
  301. .newline {
  302. width: 100%;
  303. }
  304. .gap {
  305. width: 5%;
  306. flex-shrink: 0;
  307. }
  308. }
  309. }
  310. &:not(.typing) {
  311. top: 10px;
  312. right: 84px;
  313. left: auto;
  314. bottom: auto;
  315. width: @btnSize;
  316. height: @btnSize;
  317. background-color: fade(@darkGray, 90%);
  318. &:after {
  319. content: '';
  320. position: absolute;
  321. left: 0px;
  322. top: 0px;
  323. background: url('../../../images/uiIcons.png');
  324. background-position: -0px -128px;
  325. width: @btnSize;
  326. height: @btnSize;
  327. }
  328. > * {
  329. display: none;
  330. }
  331. }
  332. }