_controlbox.scss 15 KB

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