_chatrooms.scss 17 KB

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