_chatrooms.scss 17 KB

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