_chatrooms.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464
  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: var(--text-color);
  27. }
  28. }
  29. }
  30. }
  31. .chat-head-chatroom {
  32. background-color: var(--chatroom-head-color);
  33. .chatroom-description {
  34. color: var(--chatroom-head-color-lighten-25-percent);
  35. font-size: var(--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: var(--chat-head-text-color);
  50. &.button-on:before {
  51. color: var(--chatroom-head-color);
  52. }
  53. }
  54. }
  55. }
  56. .chatbox-btn {
  57. &.button-on:before {
  58. color: var(--chatroom-head-color);
  59. }
  60. }
  61. .chat-title {
  62. .chatroom-jid {
  63. font-size: var(--font-size-small);
  64. }
  65. }
  66. }
  67. .chatroom {
  68. width: var(--chatroom-width);
  69. @media screen and (max-height: $mobile-landscape-height){
  70. width: var(--mobile-chat-width);
  71. }
  72. @media screen and (max-width: $mobile-portrait-length) {
  73. width: var(--mobile-chat-width);
  74. }
  75. .box-flyout {
  76. overflow-y: hidden;
  77. background-color: var(--chatroom-head-color);
  78. width: 100%;
  79. @media screen and (max-height: $mobile-landscape-height) {
  80. height: var(--mobile-chat-height);
  81. width: var(--mobile-chat-width);
  82. height: 100vh;
  83. }
  84. @media screen and (max-width: $mobile-portrait-length) {
  85. height: var(--mobile-chat-height);
  86. width: var(--mobile-chat-width);
  87. height: 100vh;
  88. }
  89. .chatroom-body {
  90. flex-direction: row;
  91. flex-flow: nowrap;
  92. border-bottom-radius: var(--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: var(--chatroom-head-color);
  103. }
  104. .chat-info {
  105. color: var(--chatroom-head-color);
  106. line-height: normal;
  107. &.badge {
  108. color: var(--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: var(--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 var(--text-color);
  138. border-bottom-right-radius: var(--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: var(--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: var(--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: var(--font-size-tiny);
  183. }
  184. &.occupant {
  185. cursor: pointer;
  186. .occupant-nick-badge {
  187. display: flex;
  188. justify-content: space-between;
  189. flex-wrap: wrap;
  190. .occupant-badges {
  191. display: flex;
  192. justify-content: flex-end;
  193. flex-wrap: wrap;
  194. flex-direction: row;
  195. span {
  196. margin-right: 0.25rem;
  197. }
  198. }
  199. }
  200. div.row.no-gutters {
  201. flex-wrap: nowrap;
  202. min-height: 1.5em;
  203. }
  204. .badge {
  205. margin-bottom: 0.125rem;
  206. }
  207. .occupant-status {
  208. display: inline-block;
  209. margin: 0 0.5em 0.125em 0;
  210. width: 0.5em;
  211. height: 0.5em;
  212. &.occupant-online,
  213. &.occupant-chat {
  214. background-color: #1A9707;
  215. }
  216. &.occupant-dnd {
  217. background-color: red;
  218. }
  219. &.occupant-away {
  220. background-color: darkorange;
  221. }
  222. &.occupant-xa {
  223. background-color: orange;
  224. }
  225. &.occupant-offline {
  226. background-color: darkgrey;
  227. }
  228. }
  229. }
  230. }
  231. }
  232. }
  233. .chatroom-form-container {
  234. background-color: white;
  235. border-bottom-left-radius: var(--chatbox-border-radius);
  236. border-bottom-right-radius: var(--chatbox-border-radius);
  237. border: 0;
  238. color: var(--text-color);
  239. font-size: var(--font-size);
  240. height: 100%;
  241. width: 100%;
  242. overflow-y: auto;
  243. .validation-message {
  244. font-size: 90%;
  245. color: var(--error-color);
  246. }
  247. input[type=button],
  248. input[type=submit] {
  249. margin: 0 0.5em;
  250. }
  251. .button-primary {
  252. background-color: var(--chatroom-head-color);
  253. }
  254. }
  255. }
  256. }
  257. .sendXMPPMessage {
  258. .chat-toolbar {
  259. background-color: white;
  260. border-top: 4px solid var(--chatroom-head-color);
  261. color: var(--chatroom-head-color);
  262. .fas, .fas:hover,
  263. .far, .far:hover,
  264. .fa, .fa:hover {
  265. color: var(--chatroom-head-color);
  266. }
  267. }
  268. .chat-textarea {
  269. border-bottom-right-radius: 0;
  270. &.correcting {
  271. background-color: var(--chatroom-head-color-lighten-30-percent);
  272. }
  273. }
  274. .send-button {
  275. background-color: var(--chatroom-head-color);
  276. }
  277. }
  278. .room-invite {
  279. padding-bottom: 1em;
  280. .invited-contact {
  281. margin: -1px 0 0 -1px;
  282. width: 100%;
  283. border: 1px solid #999;
  284. }
  285. }
  286. }
  287. }
  288. /* ******************* Overlay styles *************************** */
  289. #conversejs.converse-overlayed {
  290. .chatbox {
  291. &.chatroom {
  292. .chatroom-features {
  293. display: none !important;
  294. }
  295. min-width: var(--chatroom-width) !important;
  296. width: var(--chatroom-width);
  297. .box-flyout {
  298. min-width: var(--chatroom-width) !important;
  299. width: var(--chatroom-width);
  300. }
  301. .chatbox-title {
  302. @include make-col(7);
  303. .chatroom-description {
  304. font-size: 80%;
  305. }
  306. }
  307. .chatbox-buttons {
  308. @include make-col(5);
  309. }
  310. .chatroom-body {
  311. .occupants {
  312. .occupants-heading {
  313. padding: 0;
  314. }
  315. .chatroom-features {
  316. .feature {
  317. font-size: var(--font-size-tiny);
  318. }
  319. }
  320. ul {
  321. .occupant {
  322. .occupant-nick-badge {
  323. .occupant-badges {
  324. display: none;
  325. }
  326. }
  327. .occupant-status {
  328. margin-top: 6px;
  329. }
  330. }
  331. }
  332. }
  333. .chat-area {
  334. min-width: var(--overlayed-chat-width);
  335. }
  336. }
  337. .sendXMPPMessage {
  338. .chat-toolbar {
  339. li {
  340. .toolbar-menu {
  341. min-width: 280px;
  342. }
  343. }
  344. }
  345. }
  346. }
  347. }
  348. }
  349. #conversejs.converse-fullscreen {
  350. .chatroom {
  351. .box-flyout {
  352. .chatbox-title {
  353. @include make-col(9);
  354. }
  355. .chatbox-buttons {
  356. @include make-col(3);
  357. }
  358. }
  359. }
  360. }
  361. @include media-breakpoint-down(sm) {
  362. #conversejs:not(.converse-embedded) {
  363. .chatroom {
  364. width: 100vw !important;
  365. .box-flyout {
  366. .chatbox-navback {
  367. @include make-col(2);
  368. }
  369. .chatbox-title {
  370. @include make-col(7);
  371. }
  372. .chatbox-buttons {
  373. @include make-col(3);
  374. }
  375. }
  376. }
  377. }
  378. }
  379. #conversejs.converse-fullscreen,
  380. #conversejs.converse-mobile {
  381. .chatroom {
  382. .box-flyout {
  383. background-color: var(--chatroom-head-color);
  384. border: var(--flyout-padding) solid var(--chatroom-head-color);
  385. border-top: 0.8em solid var(--chatroom-head-color);
  386. width: 100%;
  387. .chatbox-title {
  388. .chatroom-description {
  389. font-size: 70%;
  390. }
  391. }
  392. .chatroom-body {
  393. border-top-radius: var(--chatbox-border-radius);
  394. .chatroom-form-container {
  395. border-radius: var(--chatbox-border-radius);
  396. }
  397. .chat-area {
  398. border-top-left-radius: var(--chatbox-border-radius);
  399. .chat-content {
  400. border-top-left-radius: var(--chatbox-border-radius);
  401. }
  402. &.full {
  403. .new-msgs-indicator {
  404. max-width: 100%;
  405. }
  406. }
  407. }
  408. .occupants {
  409. border-top-right-radius: var(--chatbox-border-radius);
  410. padding: var(--occupants-padding);
  411. .occupants-heading {
  412. font-size: var(--font-size-large);
  413. }
  414. ul {
  415. &.occupant-list {
  416. li {
  417. font-size: var(--font-size-small);
  418. }
  419. }
  420. }
  421. }
  422. }
  423. }
  424. .room-invite {
  425. span {
  426. .invited-contact {
  427. margin: 0 0 0.5em -1px;
  428. }
  429. }
  430. }
  431. }
  432. }