_controlbox.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  1. #conversejs {
  2. .oauth-providers {
  3. text-align: center;
  4. .oauth-provider {
  5. margin: 1em 0;
  6. .oauth-login {
  7. margin-left: 0;
  8. color: var(--link-color);
  9. font-size: var(--font-size-large);
  10. &:hover {
  11. color: var(--link-color-darken-20-percent);
  12. }
  13. i {
  14. color: var(--link-color);
  15. font-size: var(--font-size-huge);
  16. margin-right: 0.5em;
  17. }
  18. }
  19. }
  20. }
  21. .set-xmpp-status,
  22. .xmpp-status,
  23. .roster-contacts {
  24. .chat-status--online {
  25. color: var(--chat-status-online);
  26. }
  27. .chat-status--busy {
  28. color: var(--chat-status-busy);
  29. }
  30. .chat-status--away {
  31. color: var(--chat-status-away);
  32. }
  33. .far.fa-circle,
  34. .fa-times-circle {
  35. color: var(--subdued-color);
  36. }
  37. }
  38. .room-info {
  39. font-size: var(--font-size-small);
  40. font-style: normal;
  41. font-weight: normal;
  42. li.room-info {
  43. display: block;
  44. margin-left: 5px;
  45. }
  46. p.room-info {
  47. line-height: var(--line-height);
  48. margin: 0;
  49. display: block;
  50. white-space: normal;
  51. }
  52. }
  53. div.room-info {
  54. padding: 0.3em 0;
  55. clear: left;
  56. width: 100%;
  57. }
  58. #controlbox {
  59. .open-rooms-toggle, .open-rooms-toggle .fa {
  60. color: var(--chatroom-head-color) !important;
  61. &:hover {
  62. color: var(--chatroom-head-color-dark) !important;
  63. }
  64. }
  65. .box-flyout {
  66. background-color: white;
  67. }
  68. margin-right: calc(3 * var(--chat-gutter));
  69. &.logged-out {
  70. .box-flyout {
  71. .controlbox-pane {
  72. overflow-y: auto;
  73. }
  74. }
  75. }
  76. form.search-xmpp-contact {
  77. margin: 0;
  78. padding-left: 5px;
  79. padding: 0 0 5px 5px;
  80. input {
  81. width: 8em;
  82. }
  83. }
  84. .msgs-indicator {
  85. margin-right: 0.5em;
  86. }
  87. a.subscribe-to-user {
  88. padding-left: 2em;
  89. font-weight: bold;
  90. }
  91. #converse-register {
  92. @include fade-in;
  93. background: white;
  94. .title {
  95. font-weight: bold;
  96. }
  97. .info {
  98. color: green;
  99. font-size: 90%;
  100. margin: 1.5em 0;
  101. }
  102. .form-errors {
  103. color: var(--error-color);
  104. margin: 1em 0;
  105. }
  106. .provider-title {
  107. font-size: var(--font-size-huge);
  108. margin: 0;
  109. }
  110. .provider-score {
  111. width: 178px;
  112. margin-bottom: 8px;
  113. }
  114. .form-help .url {
  115. font-weight: bold;
  116. color: var(--link-color);
  117. }
  118. .input-group {
  119. display: table;
  120. margin: auto;
  121. width: 100%;
  122. span {
  123. overflow-x: hidden;
  124. text-overflow: ellipsis;
  125. max-width: 110px;
  126. }
  127. span, input[name=username] {
  128. display: table-cell;
  129. text-align: left;
  130. }
  131. }
  132. .instructions {
  133. color: gray;
  134. font-size: 85%;
  135. &:hover {
  136. color: var(--text-color);
  137. }
  138. }
  139. }
  140. .conn-feedback {
  141. color: var(--controlbox-head-color);
  142. &.error {
  143. color: var(--error-color);
  144. }
  145. p {
  146. padding-bottom: 1em;
  147. &.feedback-subject.error {
  148. font-weight: bold;
  149. }
  150. }
  151. }
  152. .brand-heading-container {
  153. .brand-heading {
  154. text-align: center;
  155. }
  156. .brand-name {
  157. font-size: 120%;
  158. }
  159. }
  160. #converse-login-panel, #converse-register-panel {
  161. padding-top: 0;
  162. padding-bottom: 0;
  163. }
  164. #converse-login-panel {
  165. flex-direction: column;
  166. .brand-heading {
  167. color: var(--global-background-color);
  168. }
  169. }
  170. .toggle-register-login {
  171. font-weight: bold;
  172. }
  173. .controlbox-pane {
  174. .userinfo {
  175. padding-bottom: 1em;
  176. .username {
  177. margin-left: 0.5em;
  178. overflow: hidden;
  179. text-overflow: ellipsis;
  180. }
  181. .profile {
  182. margin-bottom: 0.75em;
  183. }
  184. }
  185. }
  186. #chatrooms {
  187. padding: 0;
  188. .add-chatroom {
  189. input[type=button],
  190. input[type=submit],
  191. input[type=text] {
  192. width: 100%;
  193. }
  194. margin: 0;
  195. padding: 0;
  196. }
  197. }
  198. .controlbox-section {
  199. .controlbox-heading {
  200. font-family: var(--heading-font);
  201. color: var(--controlbox-heading-color);
  202. font-weight: var(--controlbox-heading-font-weight);
  203. padding: 0;
  204. font-size: 1.1em;
  205. line-height: 1.1em;
  206. text-transform: uppercase;
  207. }
  208. .controlbox-heading--groupchats {
  209. color: var(--chatroom-head-color);
  210. }
  211. .controlbox-heading--contacts {
  212. color: var(--chat-head-color-dark);
  213. }
  214. .controlbox-heading__btn {
  215. cursor: pointer;
  216. font-size: 1em;
  217. padding: 0;
  218. margin: var(--controlbox-heading-top-margin) 0 var(--inline-action-margin) 0;
  219. min-width: 25px;
  220. text-align: center;
  221. &.fa-vcard {
  222. margin-top: 1em;
  223. }
  224. }
  225. }
  226. .dropdown {
  227. a {
  228. width: 143px;
  229. display: inline-block;
  230. }
  231. li {
  232. list-style: none;
  233. padding-left: 0;
  234. }
  235. dd {
  236. ul {
  237. padding: 0;
  238. list-style: none;
  239. position: absolute;
  240. left: 0;
  241. top: 0;
  242. width: 100%;
  243. z-index: 21;
  244. background-color: var(--light-background-color);
  245. li:hover {
  246. background-color: var(--highlight-color);
  247. }
  248. }
  249. }
  250. dd.search-xmpp {
  251. height: 0;
  252. .contact-form-container {
  253. position: absolute;
  254. z-index: 22;
  255. form {
  256. box-shadow: 1px 4px 10px 1px rgba(0, 0, 0, 0.4);
  257. background-color: white;
  258. }
  259. }
  260. li:hover {
  261. background-color: var(--light-background-color);
  262. }
  263. }
  264. dt a span {
  265. cursor: pointer;
  266. display: block;
  267. padding: 4px 7px 0 5px;
  268. }
  269. }
  270. .controlbox-panes {
  271. height: 100%;
  272. overflow-y: auto;
  273. background-color: var(--controlbox-pane-background-color);
  274. }
  275. .controlbox-subtitle {
  276. font-size: 90%;
  277. padding: 0.5em;
  278. text-align: right;
  279. }
  280. .controlbox-pane {
  281. background-color: var(--controlbox-pane-background-color);
  282. border: 0;
  283. font-size: var(--font-size);
  284. left: 0;
  285. text-align: left;
  286. overflow-x: hidden;
  287. padding: 1em 0 1em 0;
  288. .controlbox-padded {
  289. padding-left: 1em;
  290. padding-right: 1em;
  291. align-items: center;
  292. line-height: normal;
  293. .change-status {
  294. min-width: 25px;
  295. text-align: center;
  296. }
  297. }
  298. .add-converse-contact {
  299. margin: 0 0 0.75em 0;
  300. }
  301. .chatbox-btn {
  302. margin: 0;
  303. }
  304. .switch-form {
  305. text-align: center;
  306. padding: 2em 0;
  307. p {
  308. margin-top: 0.5em;
  309. }
  310. }
  311. dd {
  312. margin-left: 0;
  313. margin-bottom: 0;
  314. &.odd {
  315. background-color: #DCEAC5;
  316. }
  317. }
  318. }
  319. .add-xmpp-contact {
  320. padding: 1em 0.5em;
  321. input {
  322. margin: 0 0 1rem;
  323. width: 100%;
  324. }
  325. button {
  326. width: 100%;
  327. }
  328. }
  329. }
  330. .toggle-controlbox {
  331. text-align: center;
  332. background-color: var(--link-color);
  333. border-top-left-radius: var(--button-border-radius);
  334. border-top-right-radius: var(--button-border-radius);
  335. color: #0a0a0a;
  336. float: right;
  337. height: 100%;
  338. margin: 0 var(--chat-gutter);
  339. padding: 1em;
  340. span {
  341. color: var(--inverse-link-color);
  342. }
  343. }
  344. }
  345. #conversejs.converse-overlayed {
  346. #controlbox {
  347. order: -1;
  348. min-width: var(--controlbox-width) !important;
  349. width: var(--controlbox-width);
  350. .box-flyout {
  351. min-width: var(--controlbox-width) !important;
  352. width: var(--controlbox-width);
  353. }
  354. .login-trusted {
  355. white-space: nowrap;
  356. font-size: 90%;
  357. }
  358. #converse-login-trusted {
  359. margin-top: 0.5em;
  360. }
  361. &:not(.logged-out) {
  362. .controlbox-head {
  363. height: 15px;
  364. }
  365. }
  366. .brand-heading-container {
  367. width: 100%;
  368. }
  369. .controlbox-head {
  370. display: flex;
  371. flex-direction: row-reverse;
  372. flex-wrap: nowrap;
  373. justify-content: space-between;
  374. .brand-heading {
  375. color: var(--text-color);
  376. font-size: 2em;
  377. }
  378. .chatbox-btn {
  379. color: var(--controlbox-head-color);
  380. margin: 0;
  381. }
  382. }
  383. #converse-register, #converse-login {
  384. @include make-col(12);
  385. padding-bottom: 0;
  386. }
  387. #converse-register {
  388. .button-cancel {
  389. font-size: 90%;
  390. }
  391. }
  392. .controlbox-panes {
  393. border-radius: var(--chatbox-border-radius);
  394. }
  395. }
  396. }
  397. #conversejs.converse-fullscreen,
  398. #conversejs.converse-mobile {
  399. #controlbox {
  400. @include make-col-ready();
  401. @include media-breakpoint-up(md) {
  402. @include make-col(4);
  403. }
  404. @include media-breakpoint-up(lg) {
  405. @include make-col(3);
  406. }
  407. @include media-breakpoint-up(xl) {
  408. @include make-col(2);
  409. }
  410. &.logged-out {
  411. @include make-col(12);
  412. }
  413. margin: 0;
  414. .controlbox-pane {
  415. border-radius: 0;
  416. }
  417. .flyout {
  418. border-radius: 0;
  419. }
  420. #converse-login-panel {
  421. border-radius: 0;
  422. .converse-form {
  423. padding: 3em 2em 3em;
  424. }
  425. }
  426. .toggle-register-login {
  427. line-height: var(--line-height-huge);
  428. }
  429. .brand-heading-container {
  430. @include make-col(12);
  431. margin-bottom: 1em;
  432. text-align: center;
  433. .brand-heading {
  434. font-size: 150%;
  435. font-size: 600%;
  436. padding: 0.7em 0 0 0;
  437. opacity: 0.8;
  438. color: var(--brand-heading-color);
  439. }
  440. .brand-subtitle {
  441. font-size: 90%;
  442. padding: 0.5em;
  443. }
  444. @media screen and (max-width: $mobile-portrait-length) {
  445. .brand-heading {
  446. font-size: 400%;
  447. }
  448. }
  449. }
  450. &.logged-out {
  451. @include make-col(12);
  452. @include fade-in;
  453. width: 100%;
  454. .box-flyout {
  455. width: 100%;
  456. }
  457. }
  458. .box-flyout {
  459. border: 0;
  460. width: 100%;
  461. z-index: 1;
  462. background-color: var(--controlbox-head-color);
  463. .controlbox-head {
  464. display: none;
  465. }
  466. }
  467. #converse-register, #converse-login {
  468. @include make-col-ready();
  469. @include make-col(8);
  470. @include make-col-offset(2);
  471. @include media-breakpoint-up(sm) {
  472. @include make-col(8);
  473. @include make-col-offset(2);
  474. }
  475. @include media-breakpoint-up(md) {
  476. @include make-col(8);
  477. @include make-col-offset(2);
  478. }
  479. @include media-breakpoint-up(lg) {
  480. @include make-col(6);
  481. @include make-col-offset(3);
  482. }
  483. .title, .instructions {
  484. margin: 1em 0;
  485. }
  486. input[type=submit],
  487. input[type=button] {
  488. width: auto;
  489. }
  490. }
  491. }
  492. }
  493. @include media-breakpoint-down(sm) {
  494. #conversejs:not(.converse-embedded) {
  495. left: 0;
  496. right: 0;
  497. padding-left: env(safe-area-inset-left);
  498. padding-right: env(safe-area-inset-right);
  499. .converse-chatboxes {
  500. margin: 0 !important;
  501. flex-direction: row !important;
  502. justify-content: space-between;
  503. .converse-chatroom {
  504. font-size: 14px;
  505. }
  506. .chatbox {
  507. .box-flyout {
  508. margin-left: 15px; // Counteracts Bootstrap margins, but
  509. // not clear why needed...
  510. left: 0;
  511. bottom: 0;
  512. border-radius: 0;
  513. width: 100vw !important;
  514. height: 100vh !important;
  515. }
  516. }
  517. #controlbox {
  518. width: 100vw !important;
  519. .box-flyout {
  520. width: 100vw !important;
  521. height: 100vh !important;
  522. }
  523. .sidebar {
  524. display: block;
  525. }
  526. }
  527. &.sidebar-open {
  528. .chatbox:not(#controlbox) {
  529. display: none;
  530. }
  531. #controlbox {
  532. .controlbox-pane {
  533. display: block;
  534. }
  535. }
  536. }
  537. }
  538. }
  539. #conversejs.converse-overlayed {
  540. .converse-chatboxes {
  541. .chatbox {
  542. .box-flyout {
  543. margin-left: 30px; // Counteracts Bootstrap margins, but
  544. // not clear why needed...
  545. }
  546. }
  547. }
  548. }
  549. }