_chatrooms.scss 16 KB

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