_chatrooms.scss 18 KB

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