_chatrooms.scss 17 KB

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