_chatrooms.scss 17 KB

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