_chatrooms.scss 16 KB

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