_chatrooms.scss 18 KB

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