_chatrooms.scss 16 KB

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