2
0

_chatrooms.scss 17 KB

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