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.

315 lines
5.7 KiB

  1. #chats {
  2. position: fixed;
  3. bottom: -2px;
  4. right: 0;
  5. padding-right: 0.5em;
  6. z-index: 3;
  7. overflow-x: auto;
  8. white-space: nowrap;
  9. overflow-y: hidden;
  10. max-width: 100%;
  11. pointer-events: none;
  12. }
  13. #chats .filler {
  14. width: 200px;
  15. height: 0;
  16. background-color: red;
  17. display: inline-block;
  18. }
  19. #chats .chat {
  20. white-space: normal;
  21. display: inline-block;
  22. position: relative;
  23. bottom: 0;
  24. overflow: hidden;
  25. margin-left: 0.5em;
  26. pointer-events: auto;
  27. box-shadow: 0 0 0.5em rgba(0, 0, 0, 0.4);
  28. }
  29. #chats .chat .panel {
  30. display: none;
  31. }
  32. #chats .chat .tab {
  33. background-color: #272727;
  34. color: white;
  35. }
  36. #chats .chat .tab .name {
  37. max-width: 11em;
  38. overflow: hidden;
  39. text-overflow: ellipsis;
  40. white-space: nowrap;
  41. }
  42. #chats .chat .tab.alert .name {
  43. display: relative;
  44. padding-right: 2.5em;
  45. }
  46. #chats .chat .tab.alert .name:before {
  47. content: "";
  48. width: 2em;
  49. height: 2em;
  50. display: block;
  51. background-image: url(img/envelope.png);
  52. background-repeat: no-repeat;
  53. background-position: center center;
  54. color: white;
  55. float: right;
  56. background-color: #D92727;
  57. margin-left: 0.5em;
  58. margin-right: -2.5em;
  59. z-index: 3;
  60. }
  61. #chats .chat .tab:hover {
  62. background-color: #333;
  63. }
  64. #chats .chat .tab .name {
  65. line-height: 2em;
  66. padding-right: 0.5em;
  67. }
  68. #chats .chat .tab .name img {
  69. float: left;
  70. margin-right: 0.5em;
  71. height: 2em;
  72. width: 2em;
  73. }
  74. #chats .chat .tab:hover {
  75. cursor: pointer;
  76. }
  77. #chats .chat .panel {
  78. background-color: white;
  79. width: 18em;
  80. }
  81. #chats .chat .panel .head {
  82. background-color: #272727;
  83. height: 2em;
  84. padding-left: 0.5em;
  85. }
  86. #chats .chat .panel .head span.chatbutton {
  87. width: 0px;
  88. height: 0px;
  89. display: block;
  90. background-position: center center;
  91. background-repeat: no-repeat;
  92. padding: 1em;
  93. float: right;
  94. }
  95. #chats .chat .panel .head span.chatbutton:hover {
  96. background-color: #333;
  97. }
  98. #chats .chat .panel .head span.chatbutton.cross {
  99. background-image: url(img/cross.png);
  100. }
  101. #chats .chat .panel .head span.chatbutton.arrow {
  102. background-image: url(img/arrow.png);
  103. }
  104. #chats .chat .panel .head a.name {
  105. padding-right: 0.5em;
  106. line-height: 2em;
  107. display: inline-block;
  108. margin: 0px;
  109. width: 120px;
  110. overflow: hidden;
  111. text-overflow: ellipsis;
  112. white-space: nowrap;
  113. }
  114. #chats .chat .panel .head:hover {
  115. cursor: pointer;
  116. }
  117. #chats .chat .panel .head > * {
  118. color: white;
  119. }
  120. #chats .chat .panel .head a:hover {
  121. text-decoration: underline;
  122. }
  123. #chats .chat .panel .head img {
  124. margin-right: 0.5em;
  125. float: left;
  126. height: 2em;
  127. width: 2em;
  128. }
  129. #chats .chat .panel .messages {
  130. background-color: white;
  131. max-height: 16em;
  132. overflow: auto;
  133. min-height: 3em;
  134. border: 1px solid #888;
  135. border-top: 0px;
  136. border-bottom: 0px;
  137. }
  138. #chats .chat .panel .text {
  139. overflow: hidden;
  140. border: 1px solid #888;
  141. min-height: 2.2em;
  142. }
  143. #chats .chat .panel .text textarea {
  144. width: 100%;
  145. border: 0px;
  146. padding: 0.2em;
  147. overflow: auto;
  148. background-color: white;
  149. resize: none;
  150. font-size: 1em;
  151. height: 1.5em;
  152. overflow-y: hidden;
  153. }
  154. #chats .chat .panel .text textarea:focus {
  155. border: 0px;
  156. }
  157. #chats .chat .panel .messages .message {
  158. line-height: 1.5em;
  159. margin: 0.5em;
  160. padding-top: 0.5em;
  161. word-wrap: break-word;
  162. font-size: 0.9em;
  163. position: relative;
  164. border-top: 1px solid #DDD;
  165. clear: both;
  166. }
  167. #chats .chat .panel .messages .message .content:not(.html) {
  168. white-space: pre-wrap;
  169. }
  170. #chats .chat .panel .messages .message img.avatar {
  171. float: left;
  172. margin-right: 0.5em;
  173. margin-bottom: 0.5em;
  174. width: 28px;
  175. height: 28px;
  176. }
  177. #chats .chat .panel .messages .message:first-child {
  178. border-top: 0;
  179. margin-top: 0;
  180. }
  181. #chats .chat .panel .messages .message.me {
  182. }
  183. #chats .chat .panel .messages .message.own {
  184. color: blue;
  185. }
  186. #chats .chat .panel .messages .message.crypt {
  187. background-image: url(img/locked.png);
  188. background-position: 2.5em 0.6em;
  189. background-repeat: no-repeat;
  190. text-indent: 1.3em;
  191. }
  192. #chats .chat .panel .messages .message.composing {
  193. background-image: url(img/pencil.png);
  194. background-position: 0em 0.6em;
  195. background-repeat: no-repeat;
  196. text-indent: 1.5em;
  197. }
  198. #chats .chat .panel .messages .message.presence {
  199. color: black;
  200. font-weight: bold;
  201. }
  202. #chats .chat .panel .messages .message span.date {
  203. position: absolute;
  204. top: -0.8em;
  205. color: #777;
  206. background-color: white;
  207. right: 0;
  208. font-size: 0.9em;
  209. display: none;
  210. }
  211. #chats .chat .panel .messages .message:hover span.date {
  212. display: inline-block;
  213. }
  214. /* Muc */
  215. #chats .muc .panel {
  216. width: 28em;
  217. }
  218. #chats .muc .panel .head a.name {
  219. width: 80%;
  220. }
  221. #chats .muc .tab .name {
  222. padding-left: 0.5em;
  223. }
  224. #chats .muc .panel .messages {
  225. height: 16em;
  226. }
  227. #chats .muc .panel .messages .message img.avatar {
  228. display: none;
  229. }
  230. #chats .muc .list {
  231. width: 8em;
  232. height: 16em;
  233. float: right;
  234. border-right: 1px solid #888;
  235. overflow-y: auto;
  236. overflow-x: hidden;
  237. }
  238. #chats .muc .panel .messages .message span.ressource {
  239. font-weight: bold;
  240. }
  241. #chats .muc .list ul {
  242. list-style-type: none;
  243. }
  244. #chats .muc .list ul li {
  245. line-height: 1.5em;
  246. padding: 0 0.5em;
  247. white-space: nowrap;
  248. overflow: hidden;
  249. text-overflow: ellipsis;
  250. }
  251. #chats .muc .panel:after {
  252. content: "";
  253. display: block;
  254. clear: both;
  255. }
  256. /* Muc color */
  257. #chats .muc .purple { color: #442178; }
  258. #chats .muc .wine { color: #800033; }
  259. #chats .muc .yellow { color: #DEC41C; }
  260. #chats .muc .orange { color: #FC8F12; }
  261. #chats .muc .green { color: #6FCC43; }
  262. #chats .muc .red { color: #D92727; }
  263. #chats .muc .blue { color: #162D50; }