2
0

_chatrooms.scss 18 KB

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