_chatrooms.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  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. #room-details-modal {
  10. .features-list {
  11. margin-left: 1em;
  12. }
  13. }
  14. .chatroom-features {
  15. width: 100%;
  16. .features-list {
  17. padding-top: 0;
  18. .feature {
  19. width: 100%;
  20. margin-right: 0.5em;
  21. padding-right: 0;
  22. font-size: 1em;
  23. cursor: help;
  24. .fa {
  25. margin-right: 0.5em;
  26. color: $text-color;
  27. }
  28. }
  29. }
  30. }
  31. .chat-head-chatroom {
  32. background-color: $chatroom-head-color;
  33. .chatroom-description {
  34. color: lighten($chatroom-head-color, 25%);
  35. font-size: $font-size;
  36. font-size: 70%;
  37. margin-top: 3px;
  38. overflow-y: hidden;
  39. overflow: hidden;
  40. text-overflow: ellipsis;
  41. white-space: nowrap;
  42. a {
  43. color: white;
  44. }
  45. }
  46. a, a:visited, a:hover, a:not([href]):not([tabindex]) {
  47. &.chatbox-btn {
  48. &.fa {
  49. color: $chat-head-text-color;
  50. &.button-on:before {
  51. color: $chatroom-head-color;
  52. }
  53. }
  54. }
  55. }
  56. .chatbox-btn {
  57. &.button-on:before {
  58. color: $chatroom-head-color;
  59. }
  60. }
  61. .chat-title {
  62. .chatroom-jid {
  63. font-size: $font-size-small;
  64. }
  65. }
  66. }
  67. .chatroom {
  68. width: $chatroom-width;
  69. @media screen and (max-height: $mobile-landscape-height){
  70. width: $mobile-chat-width;
  71. }
  72. @media screen and (max-width: $mobile-portrait-length) {
  73. width: $mobile-chat-width;
  74. }
  75. .box-flyout {
  76. overflow-y: hidden;
  77. background-color: $chatroom-head-color;
  78. width: 100%;
  79. @media screen and (max-height: $mobile-landscape-height) {
  80. height: $mobile-chat-height;
  81. width: $mobile-chat-width;
  82. height: 100vh;
  83. }
  84. @media screen and (max-width: $mobile-portrait-length) {
  85. height: $mobile-chat-height;
  86. width: $mobile-chat-width;
  87. height: 100vh;
  88. }
  89. .chatroom-body {
  90. flex-direction: row;
  91. flex-flow: nowrap;
  92. @include border-bottom-radius($chatbox-border-radius);
  93. background-color: white;
  94. border-top: 0;
  95. width: 100%;
  96. overflow: hidden;
  97. .row {
  98. flex-direction: row;
  99. }
  100. .chat-topic {
  101. font-weight: bold;
  102. color: $chatroom-head-color;
  103. }
  104. .chat-info {
  105. color: $chatroom-head-color;
  106. line-height: normal;
  107. &.badge {
  108. color: $chat-head-text-color;
  109. }
  110. }
  111. .disconnect-container {
  112. margin: 1em;
  113. width: 100%;
  114. h3.disconnect-msg {
  115. padding-bottom: 1em;
  116. }
  117. }
  118. .chat-area {
  119. display: flex;
  120. flex-direction: column;
  121. word-wrap: break-word;
  122. .new-msgs-indicator {
  123. background-color: $chatroom-head-color;
  124. }
  125. .chat-content {
  126. height: 100%;
  127. }
  128. }
  129. .occupants {
  130. display: flex;
  131. flex-direction: column;
  132. justify-content: space-between;
  133. overflow-x: hidden;
  134. overflow-y: hidden;
  135. vertical-align: top;
  136. background-color: white;
  137. border-left: 1px solid $text-color;
  138. border-bottom-right-radius: $chatbox-border-radius;
  139. padding: 0.5em;
  140. .occupants-header {
  141. display: flex;
  142. flex-direction: column;
  143. .hide-occupants {
  144. align-self: flex-end;
  145. cursor: pointer;
  146. }
  147. }
  148. .occupants-heading {
  149. font-family: $heading-font;
  150. }
  151. .awesomplete {
  152. ul {
  153. padding: 0;
  154. li {
  155. padding: .5em;
  156. }
  157. }
  158. }
  159. ul {
  160. padding: 0.5em 0 0 0;
  161. margin-bottom: 0.5em;
  162. overflow-x: hidden;
  163. overflow-y: auto;
  164. list-style: none;
  165. &.occupant-list {
  166. overflow-y: auto;
  167. flex-basis: 0;
  168. flex-grow: 1;
  169. border-bottom: 1px solid lightgrey;
  170. }
  171. li {
  172. cursor: default;
  173. display: block;
  174. font-size: $font-size-small;
  175. overflow: hidden;
  176. padding: 0.25em 0.25em 0.25em 0;
  177. text-overflow: ellipsis;
  178. .fa {
  179. margin-right: 0.5em;
  180. }
  181. &.feature {
  182. font-size: $font-size-tiny;
  183. }
  184. &.occupant {
  185. cursor: pointer;
  186. div.row.no-gutters {
  187. flex-wrap: nowrap;
  188. min-height: 1.5em;
  189. }
  190. .badge {
  191. margin-bottom: 0.125rem;
  192. }
  193. .occupant-status {
  194. display: inline-block;
  195. margin: 0 0.5em 0.125em 0;
  196. width: 0.5em;
  197. height: 0.5em;
  198. &.occupant-online,
  199. &.occupant-chat {
  200. background-color: #1A9707;
  201. }
  202. &.occupant-dnd {
  203. background-color: red;
  204. }
  205. &.occupant-away {
  206. background-color: darkorange;
  207. }
  208. &.occupant-xa {
  209. background-color: orange;
  210. }
  211. &.occupant-offline {
  212. background-color: darkgrey;
  213. }
  214. }
  215. }
  216. }
  217. }
  218. }
  219. .chatroom-form-container {
  220. background-color: white;
  221. border-bottom-left-radius: $chatbox-border-radius;
  222. border-bottom-right-radius: $chatbox-border-radius;
  223. border: 0;
  224. color: $text-color;
  225. font-size: $font-size;
  226. height: 100%;
  227. width: 100%;
  228. overflow-y: auto;
  229. .validation-message {
  230. font-size: 90%;
  231. color: $error-color;
  232. }
  233. input[type=button],
  234. input[type=submit] {
  235. margin: 0 0.5em;
  236. }
  237. .button-primary {
  238. background-color: $chatroom-head-color;
  239. }
  240. }
  241. }
  242. }
  243. .sendXMPPMessage {
  244. .chat-toolbar {
  245. background-color: white;
  246. border-top: 4px solid $chatroom-head-color;
  247. color: $chatroom-head-color;
  248. .fas, .fas:hover,
  249. .far, .far:hover,
  250. .fa, .fa:hover {
  251. color: $chatroom-head-color;
  252. }
  253. }
  254. .chat-textarea {
  255. border-bottom-right-radius: 0;
  256. &.correcting {
  257. background-color: lighten($chatroom-head-color, 30%);
  258. }
  259. }
  260. .send-button {
  261. background-color: $chatroom-head-color;
  262. }
  263. }
  264. .room-invite {
  265. padding-bottom: 1em;
  266. .invited-contact {
  267. margin: -1px 0 0 -1px;
  268. width: 100%;
  269. border: 1px solid #999;
  270. }
  271. }
  272. }
  273. }
  274. /* ******************* Overlay styles *************************** */
  275. #conversejs.converse-overlayed {
  276. .chatbox {
  277. &.chatroom {
  278. min-width: $chatroom-width !important;
  279. width: $chatroom-width;
  280. .box-flyout {
  281. min-width: $chatroom-width !important;
  282. width: $chatroom-width;
  283. }
  284. .chatbox-title {
  285. @include make-col(7);
  286. .chatroom-description {
  287. font-size: 80%;
  288. }
  289. }
  290. .chatbox-buttons {
  291. @include make-col(5);
  292. }
  293. .chatroom-body {
  294. .occupants {
  295. .occupants-heading {
  296. padding: 0;
  297. }
  298. .chatroom-features {
  299. .feature {
  300. font-size: $font-size-tiny;
  301. }
  302. }
  303. }
  304. .chat-area {
  305. min-width: $overlayed-chat-width;
  306. }
  307. }
  308. .sendXMPPMessage {
  309. .chat-toolbar {
  310. li {
  311. .toolbar-menu {
  312. min-width: 280px;
  313. }
  314. }
  315. }
  316. }
  317. }
  318. }
  319. }
  320. #conversejs.converse-fullscreen {
  321. .chatroom {
  322. .box-flyout {
  323. .chatbox-title {
  324. @include make-col(9);
  325. }
  326. .chatbox-buttons {
  327. @include make-col(3);
  328. }
  329. }
  330. }
  331. }
  332. @include media-breakpoint-down(sm) {
  333. #conversejs:not(.converse-embedded) {
  334. .chatroom {
  335. width: 100vw !important;
  336. .box-flyout {
  337. .chatbox-navback {
  338. @include make-col(2);
  339. }
  340. .chatbox-title {
  341. @include make-col(7);
  342. }
  343. .chatbox-buttons {
  344. @include make-col(3);
  345. }
  346. }
  347. }
  348. }
  349. }
  350. #conversejs.converse-fullscreen,
  351. #conversejs.converse-mobile {
  352. .chatroom {
  353. .box-flyout {
  354. background-color: $chatroom-head-color;
  355. border: $flyout-padding solid $chatroom-head-color;
  356. border-top: 0.8em solid $chatroom-head-color;
  357. width: 100%;
  358. .chatbox-title {
  359. .chatroom-description {
  360. font-size: 70%;
  361. }
  362. }
  363. .chatroom-body {
  364. @include border-top-radius($chatbox-border-radius);
  365. .chatroom-form-container {
  366. border-radius: $chatbox-border-radius;
  367. }
  368. .chat-area {
  369. border-top-left-radius: $chatbox-border-radius;
  370. .chat-content {
  371. border-top-left-radius: $chatbox-border-radius;
  372. }
  373. &.full {
  374. max-width: 100%;
  375. .new-msgs-indicator {
  376. max-width: 100%;
  377. }
  378. }
  379. }
  380. .occupants {
  381. border-top-right-radius: $chatbox-border-radius;;
  382. padding: $occupants-padding;
  383. .occupants-heading {
  384. font-size: $font-size-large;
  385. }
  386. ul {
  387. &.occupant-list {
  388. li {
  389. font-size: $font-size-small;
  390. }
  391. }
  392. }
  393. }
  394. }
  395. }
  396. .room-invite {
  397. span {
  398. .invited-contact {
  399. margin: 0 0 0.5em -1px;
  400. }
  401. }
  402. }
  403. }
  404. }