_chatrooms.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. #converse-embedded-chat,
  2. #conversejs {
  3. .add-chatroom {
  4. input[type="submit"],
  5. input[type="button"] {
  6. margin: 0.3em 0;
  7. }
  8. }
  9. .chat-head-chatroom {
  10. background-color: $chatroom-head-color;
  11. .chatroom-topic {
  12. white-space: nowrap;
  13. overflow-y: hidden;
  14. text-overflow: ellipsis;
  15. }
  16. a, a:visited, a:hover, a:not([href]):not([tabindex]) {
  17. &.chatbox-btn {
  18. &.fa {
  19. color: $chat-head-text-color;
  20. &.button-on:before {
  21. color: $chatroom-head-color;
  22. }
  23. }
  24. }
  25. }
  26. .chatbox-btn {
  27. &.button-on:before {
  28. color: $chatroom-head-color;
  29. }
  30. }
  31. .chat-title {
  32. color: $chatroom-color-lightest;
  33. .chatroom-name {
  34. color: white;
  35. }
  36. .chatroom-jid {
  37. font-size: $font-size-small;
  38. }
  39. .chatroom-description {
  40. color: white;
  41. font-size: 80%;
  42. font-style: italic;
  43. overflow: hidden;
  44. text-overflow: ellipsis;
  45. white-space: nowrap;
  46. margin: 0.3em 0;
  47. }
  48. }
  49. }
  50. .chatroom {
  51. width: $chatroom-width;
  52. @media screen and (max-height: $mobile-landscape-height){
  53. width: $mobile-chat-width;
  54. }
  55. @media screen and (max-width: $mobile-portrait-length) {
  56. width: $mobile-chat-width;
  57. }
  58. .box-flyout {
  59. overflow-y: hidden;
  60. background-color: $chatroom-head-color;
  61. width: 100%;
  62. @media screen and (max-height: $mobile-landscape-height) {
  63. height: $mobile-chat-height;
  64. width: $mobile-chat-width;
  65. height: 100vh;
  66. }
  67. @media screen and (max-width: $mobile-portrait-length) {
  68. height: $mobile-chat-height;
  69. width: $mobile-chat-width;
  70. height: 100vh;
  71. }
  72. .chatroom-body {
  73. flex-direction: row;
  74. flex-flow: nowrap;
  75. @include border-bottom-radius($chatbox-border-radius);
  76. background-color: white;
  77. border-top: 0;
  78. width: 100%;
  79. overflow: hidden;
  80. .row {
  81. flex-direction: row;
  82. }
  83. .chat-topic {
  84. font-weight: bold;
  85. color: $chatroom-head-color;
  86. }
  87. .chat-info {
  88. color: $chatroom-head-color;
  89. line-height: normal;
  90. &.badge {
  91. color: $chat-head-text-color;
  92. }
  93. }
  94. .mentioned {
  95. font-weight: bold;
  96. }
  97. .chat-message {
  98. &.onload {
  99. animation: colorchange-chatmessage-muc 1s;
  100. -webkit-animation: colorchange-chatmessage-muc 1s;
  101. }
  102. .chat-msg-them {
  103. color: $chatroom-message-them-color;
  104. canvas {
  105. background: $red;
  106. }
  107. }
  108. .chat-msg-me {
  109. canvas {
  110. background: $light-blue;
  111. }
  112. }
  113. }
  114. .disconnect-msg {
  115. padding: 2em 2em 0 2em;
  116. }
  117. .chat-area {
  118. display: flex;
  119. flex-direction: column;
  120. word-wrap: break-word;
  121. min-width: $chat-width;
  122. .new-msgs-indicator {
  123. background-color: $chatroom-head-color;
  124. max-width: 70%;
  125. }
  126. .chat-content {
  127. height: 100%;
  128. padding: 0.5em;
  129. }
  130. &.full {
  131. min-width: 100%;
  132. .new-msgs-indicator {
  133. min-width: 100%;
  134. }
  135. }
  136. }
  137. .occupants {
  138. display: flex;
  139. flex-direction: column;
  140. justify-content: space-between;
  141. overflow-x: hidden;
  142. overflow-y: hidden;
  143. vertical-align: top;
  144. background-color: white;
  145. border-left: 1px solid $text-color;
  146. border-bottom-right-radius: $chatbox-border-radius;
  147. padding: 0.5em;
  148. .occupants-heading {
  149. padding: 0.3em 0;
  150. font-weight: bold;
  151. }
  152. .chatroom-features {
  153. width: 100%;
  154. .feature {
  155. float: left;
  156. margin-right: 0.5em;
  157. padding-right: 0;
  158. font-size: 1em;
  159. cursor: help;
  160. }
  161. }
  162. .awesomplete {
  163. ul {
  164. padding: 0;
  165. li {
  166. padding: .5em;
  167. }
  168. }
  169. }
  170. ul {
  171. padding: 0.5em 0 0 0;
  172. margin-bottom: 0.5em;
  173. overflow-x: hidden;
  174. overflow-y: auto;
  175. list-style: none;
  176. &.occupant-list {
  177. overflow-y: auto;
  178. flex-basis: 0;
  179. flex-grow: 1;
  180. }
  181. &.features-list {
  182. padding-top: 0;
  183. .feature {
  184. width: 100%;
  185. .fa {
  186. color: $text-color;
  187. }
  188. }
  189. }
  190. li {
  191. cursor: default;
  192. display: block;
  193. font-size: $font-size-small;
  194. overflow: hidden;
  195. padding: 0.2em 0.5em 0.2em 0;
  196. text-overflow: ellipsis;
  197. white-space: nowrap;
  198. .fa {
  199. margin-right: 0.5em;
  200. }
  201. &.feature {
  202. font-size: $font-size-tiny;
  203. }
  204. &.occupant {
  205. cursor: pointer;
  206. .occupant-status {
  207. display: inline-block;
  208. margin-right: 0.5em;
  209. width: 0.5em;
  210. height: 0.5em;
  211. &.occupant-online,
  212. &.occupant-chat {
  213. background-color: #1A9707;
  214. }
  215. &.occupant-dnd {
  216. background-color: red;
  217. }
  218. &.occupant-away {
  219. background-color: darkorange;
  220. }
  221. &.occupant-xa {
  222. background-color: orange;
  223. }
  224. }
  225. }
  226. &.moderator {
  227. color: $moderator-color;
  228. }
  229. &.visitor {
  230. color: $visitor-color;
  231. }
  232. }
  233. }
  234. }
  235. .chatroom-form-container {
  236. background-color: white;
  237. border-bottom-left-radius: $chatbox-border-radius;
  238. border-bottom-right-radius: $chatbox-border-radius;
  239. border: 0;
  240. color: $text-color;
  241. font-size: $font-size;
  242. height: 289px;
  243. width: 100%;
  244. overflow-y: auto;
  245. position: absolute;
  246. .validation-message {
  247. font-size: 90%;
  248. color: $error-color;
  249. }
  250. .chatroom-form {
  251. margin-top: 2em;
  252. label,
  253. input[type=text] {
  254. display: block;
  255. }
  256. }
  257. input[type=button],
  258. input[type=submit] {
  259. margin: 0 0.5em;
  260. }
  261. .button-primary {
  262. background-color: $chatroom-head-color;
  263. }
  264. }
  265. }
  266. }
  267. .sendXMPPMessage {
  268. .chat-toolbar {
  269. background-color: white;
  270. border-top: 8px solid $chatroom-head-color;
  271. color: $chatroom-head-color;
  272. .fa, .fa:hover {
  273. color: $chatroom-head-color;
  274. }
  275. }
  276. .chat-textarea {
  277. border-bottom-right-radius: 0;
  278. }
  279. .send-button {
  280. background-color: $chatroom-head-color;
  281. }
  282. }
  283. .room-invite {
  284. .invited-contact {
  285. margin: -1px 0 0 -1px;
  286. width: 100%;
  287. border: 1px solid #999;
  288. }
  289. }
  290. }
  291. }
  292. @media screen and (max-width: 767px) {
  293. #conversejs {
  294. .chatbox {
  295. .box-flyout {
  296. .chatroom-body {
  297. .chat-area {
  298. }
  299. }
  300. }
  301. }
  302. }
  303. }