_chatrooms.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  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. margin-bottom: 0.5em;
  174. padding-left: 0;
  175. }
  176. .chatroom-features {
  177. display: var(--occupants-features-display);
  178. }
  179. .suggestion-box{
  180. ul {
  181. padding: 0;
  182. li {
  183. padding: 0.5em;
  184. }
  185. }
  186. }
  187. ul {
  188. padding: 0;
  189. margin-bottom: 0.5em;
  190. overflow-x: hidden;
  191. overflow-y: auto;
  192. list-style: none;
  193. &.occupant-list {
  194. overflow-y: auto;
  195. flex-basis: 0;
  196. flex-grow: 1;
  197. border-bottom: var(--occupants-border-bottom);
  198. }
  199. li {
  200. cursor: default;
  201. display: block;
  202. font-size: var(--font-size-small);
  203. overflow: hidden;
  204. padding: 0.25em 0.25em 0.25em 0;
  205. text-overflow: ellipsis;
  206. .fa {
  207. margin-right: 0.5em;
  208. }
  209. &.feature {
  210. font-size: var(--font-size-tiny);
  211. }
  212. &.occupant {
  213. cursor: pointer;
  214. .occupant-nick-badge {
  215. display: flex;
  216. justify-content: space-between;
  217. flex-wrap: wrap;
  218. .occupant-badges {
  219. display: flex;
  220. justify-content: flex-end;
  221. flex-wrap: wrap;
  222. flex-direction: row;
  223. span {
  224. margin-right: 0.25rem;
  225. }
  226. }
  227. }
  228. div.row.no-gutters {
  229. flex-wrap: nowrap;
  230. min-height: 1.5em;
  231. }
  232. .badge {
  233. margin-bottom: 0.125rem;
  234. }
  235. .occupant-status {
  236. display: inline-block;
  237. margin: 0 0.5em 0.125em 0;
  238. width: 0.5em;
  239. height: 0.5em;
  240. &.occupant-online,
  241. &.occupant-chat {
  242. background-color: #1A9707;
  243. }
  244. &.occupant-dnd {
  245. background-color: red;
  246. }
  247. &.occupant-away {
  248. background-color: darkorange;
  249. }
  250. &.occupant-xa {
  251. background-color: orange;
  252. }
  253. &.occupant-offline {
  254. background-color: darkgrey;
  255. }
  256. }
  257. }
  258. }
  259. }
  260. }
  261. .chatroom-form-container {
  262. background-color: white;
  263. border-bottom-left-radius: var(--chatbox-border-radius);
  264. border-bottom-right-radius: var(--chatbox-border-radius);
  265. border: 0;
  266. color: var(--text-color);
  267. font-size: var(--font-size);
  268. height: 100%;
  269. width: 100%;
  270. overflow-y: auto;
  271. .validation-message {
  272. font-size: 90%;
  273. color: var(--error-color);
  274. }
  275. input[type=button],
  276. input[type=submit] {
  277. margin: 0 0.5em;
  278. }
  279. .button-primary {
  280. background-color: var(--chatroom-head-button-color);
  281. }
  282. }
  283. }
  284. }
  285. .sendXMPPMessage {
  286. .suggestion-box__results--above {
  287. bottom: 4.5em;
  288. }
  289. .chat-toolbar {
  290. background-color: white;
  291. border-top: var(--message-input-border-top);
  292. color: var(--message-input-color);
  293. .fas, .fas:hover,
  294. .far, .far:hover,
  295. .fa, .fa:hover {
  296. color: var(--message-input-color);
  297. }
  298. }
  299. .chat-textarea {
  300. &:active, &:focus{
  301. outline-color: var(--chatroom-head-color);
  302. }
  303. border-bottom-right-radius: 0;
  304. &.correcting {
  305. background-color: var(--chatroom-correcting-color);
  306. }
  307. }
  308. .send-button {
  309. background-color: var(--message-input-color);
  310. }
  311. }
  312. .room-invite {
  313. .invited-contact {
  314. margin: -1px 0 0 -1px;
  315. width: 100%;
  316. border: 1px solid #999;
  317. }
  318. }
  319. }
  320. }
  321. /* ******************* Overlay styles *************************** */
  322. #conversejs.converse-overlayed {
  323. .chatbox {
  324. &.chatroom {
  325. .chatroom-features {
  326. display: none !important;
  327. }
  328. min-width: var(--chatroom-width) !important;
  329. width: var(--chatroom-width);
  330. .box-flyout {
  331. min-width: var(--chatroom-width) !important;
  332. width: var(--chatroom-width);
  333. }
  334. .chatbox-title {
  335. @include make-col(7);
  336. .chatroom-description {
  337. font-size: 80%;
  338. }
  339. }
  340. .chatbox-buttons {
  341. @include make-col(5);
  342. }
  343. .chatroom-body {
  344. .occupants {
  345. .occupants-heading {
  346. padding: 0;
  347. }
  348. .occupant-list {
  349. border-bottom: none;
  350. }
  351. .chatroom-features {
  352. .feature {
  353. font-size: var(--font-size-tiny);
  354. }
  355. }
  356. ul {
  357. .occupant {
  358. .occupant-nick-badge {
  359. .occupant-badges {
  360. display: none;
  361. }
  362. }
  363. .occupant-status {
  364. margin-top: 6px;
  365. }
  366. }
  367. }
  368. }
  369. .chat-area {
  370. min-width: var(--overlayed-chat-width);
  371. }
  372. }
  373. .sendXMPPMessage {
  374. .chat-toolbar {
  375. li {
  376. .toolbar-menu {
  377. min-width: 280px;
  378. }
  379. }
  380. }
  381. }
  382. }
  383. }
  384. }
  385. #conversejs.converse-fullscreen {
  386. .chatroom {
  387. .box-flyout {
  388. .chatbox-title {
  389. @include make-col(9);
  390. }
  391. .chatbox-buttons {
  392. @include make-col(3);
  393. }
  394. }
  395. }
  396. }
  397. @include media-breakpoint-down(sm) {
  398. #conversejs:not(.converse-embedded) {
  399. .chatroom {
  400. width: 100vw !important;
  401. .box-flyout {
  402. .chatbox-navback {
  403. @include make-col(2);
  404. }
  405. .chatbox-title {
  406. @include make-col(7);
  407. }
  408. .chatbox-buttons {
  409. @include make-col(3);
  410. }
  411. }
  412. }
  413. }
  414. }
  415. #conversejs.converse-fullscreen,
  416. #conversejs.converse-mobile {
  417. .chatroom {
  418. .box-flyout {
  419. background-color: var(--chatroom-head-color);
  420. border: var(--flyout-padding) solid var(--chatroom-head-color);
  421. border-top: 0.8em solid var(--chatroom-head-color);
  422. width: 100%;
  423. .chatbox-title {
  424. .chatroom-description {
  425. font-size: 70%;
  426. }
  427. }
  428. .chatroom-body {
  429. border-top-radius: var(--chatbox-border-radius);
  430. .chatroom-form-container {
  431. border-radius: var(--chatbox-border-radius);
  432. }
  433. .chat-area {
  434. border-top-left-radius: var(--chatbox-border-radius);
  435. .chat-content {
  436. border-top-left-radius: var(--chatbox-border-radius);
  437. }
  438. &.full {
  439. .new-msgs-indicator {
  440. max-width: 100%;
  441. }
  442. }
  443. }
  444. .occupants {
  445. border-top-right-radius: var(--chatbox-border-radius);
  446. padding: var(--occupants-padding);
  447. .occupants-heading {
  448. font-size: var(--font-size-large);
  449. }
  450. ul {
  451. &.occupant-list {
  452. li {
  453. font-size: var(--font-size-small);
  454. }
  455. }
  456. }
  457. }
  458. }
  459. }
  460. .room-invite {
  461. span {
  462. .invited-contact {
  463. margin: 0 0 0.5em -1px;
  464. }
  465. }
  466. }
  467. }
  468. }
  469. @include media-breakpoint-up(md) {
  470. .chatroom {
  471. .box-flyout {
  472. .occupants {
  473. .occupants-header {
  474. .hide-occupants {
  475. display: none;
  476. }
  477. }
  478. }
  479. }
  480. }
  481. }