_chatrooms.scss 9.7 KB

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