2
0

_chatrooms.scss 17 KB

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