_controlbox.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587
  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. padding: 0;
  196. margin: 0.75em 0;
  197. font-size: 1.1em;
  198. text-transform: uppercase;
  199. }
  200. .controlbox-heading__btn {
  201. cursor: pointer;
  202. align-self: flex-start;
  203. font-size: 1.1em;
  204. padding: 0;
  205. margin: 0.75em 0 0.75em 0.75em;
  206. &.fa-vcard {
  207. margin-top: 1em;
  208. }
  209. }
  210. }
  211. .dropdown {
  212. a {
  213. width: 143px;
  214. display: inline-block;
  215. }
  216. li {
  217. list-style: none;
  218. padding-left: 0;
  219. }
  220. dd {
  221. ul {
  222. padding: 0;
  223. list-style: none;
  224. position: absolute;
  225. left: 0;
  226. top: 0;
  227. width: 100%;
  228. z-index: 21;
  229. background-color: var(--light-background-color);
  230. li:hover {
  231. background-color: var(--highlight-color);
  232. }
  233. }
  234. }
  235. dd.search-xmpp {
  236. height: 0;
  237. .contact-form-container {
  238. position: absolute;
  239. z-index: 22;
  240. form {
  241. box-shadow: 1px 4px 10px 1px rgba(0, 0, 0, 0.4);
  242. background-color: white;
  243. }
  244. }
  245. li:hover {
  246. background-color: var(--light-background-color);
  247. }
  248. }
  249. dt a span {
  250. cursor: pointer;
  251. display: block;
  252. padding: 4px 7px 0 5px;
  253. }
  254. }
  255. .controlbox-panes {
  256. height: 100%;
  257. overflow-y: auto;
  258. background-color: white;
  259. }
  260. .controlbox-pane {
  261. background-color: white;
  262. border: 0;
  263. font-size: var(--font-size);
  264. left: 0;
  265. text-align: left;
  266. overflow-x: hidden;
  267. padding: 1em 0 1em 0;
  268. .controlbox-padded {
  269. padding-left: 1em;
  270. padding-right: 1em;
  271. }
  272. .add-converse-contact {
  273. margin: 0 0 0.75em 0;
  274. }
  275. .chatbox-btn {
  276. margin: 0;
  277. }
  278. .switch-form {
  279. text-align: center;
  280. padding: 2em 0;
  281. p {
  282. margin-top: 0.5em;
  283. }
  284. }
  285. dd {
  286. margin-left: 0;
  287. margin-bottom: 0;
  288. &.odd {
  289. background-color: #DCEAC5;
  290. }
  291. }
  292. }
  293. .add-xmpp-contact {
  294. padding: 1em 0.5em;
  295. input {
  296. margin: 0 0 1rem;
  297. width: 100%;
  298. }
  299. button {
  300. width: 100%;
  301. }
  302. }
  303. }
  304. .toggle-controlbox {
  305. text-align: center;
  306. background-color: var(--link-color);
  307. border-top-left-radius: var(--button-border-radius);
  308. border-top-right-radius: var(--button-border-radius);
  309. color: #0a0a0a;
  310. float: right;
  311. height: 100%;
  312. margin: 0 var(--chat-gutter);
  313. padding: 1em;
  314. span {
  315. color: var(--inverse-link-color);
  316. }
  317. }
  318. }
  319. #conversejs.converse-overlayed {
  320. #controlbox {
  321. order: -1;
  322. min-width: var(--controlbox-width) !important;
  323. width: var(--controlbox-width);
  324. .box-flyout {
  325. min-width: var(--controlbox-width) !important;
  326. width: var(--controlbox-width);
  327. }
  328. .login-trusted {
  329. white-space: nowrap;
  330. font-size: 90%;
  331. }
  332. #converse-login-trusted {
  333. margin-top: 0.5em;
  334. }
  335. &:not(.logged-out) {
  336. .controlbox-head {
  337. height: 15px;
  338. }
  339. }
  340. .brand-heading-container {
  341. width: 100%;
  342. }
  343. .controlbox-head {
  344. display: flex;
  345. flex-direction: row-reverse;
  346. flex-wrap: nowrap;
  347. justify-content: space-between;
  348. .brand-heading {
  349. color: var(--text-color);
  350. font-size: 2em;
  351. }
  352. .chatbox-btn {
  353. color: var(--controlbox-head-color);
  354. margin: 0;
  355. }
  356. }
  357. #converse-register, #converse-login {
  358. @include make-col(12);
  359. padding-bottom: 0;
  360. }
  361. #converse-register {
  362. .button-cancel {
  363. font-size: 90%;
  364. }
  365. }
  366. .controlbox-panes {
  367. border-radius: var(--chatbox-border-radius);
  368. }
  369. }
  370. }
  371. #conversejs.converse-fullscreen,
  372. #conversejs.converse-mobile {
  373. #controlbox {
  374. @include make-col-ready();
  375. @include media-breakpoint-up(md) {
  376. @include make-col(4);
  377. }
  378. @include media-breakpoint-up(lg) {
  379. @include make-col(3);
  380. }
  381. @include media-breakpoint-up(xl) {
  382. @include make-col(2);
  383. }
  384. &.logged-out {
  385. @include make-col(12);
  386. }
  387. margin: 0;
  388. .controlbox-pane {
  389. border-radius: 0;
  390. }
  391. .flyout {
  392. border-radius: 0;
  393. }
  394. #converse-login-panel {
  395. border-radius: 0;
  396. .converse-form {
  397. padding: 3em 2em 3em;
  398. }
  399. }
  400. .toggle-register-login {
  401. line-height: var(--line-height-huge);
  402. }
  403. .brand-heading-container {
  404. @include make-col(12);
  405. margin-bottom: 1em;
  406. text-align: center;
  407. .brand-heading {
  408. font-size: 150%;
  409. font-size: 600%;
  410. padding: 0.7em 0 0 0;
  411. opacity: 0.8;
  412. color: var(--brand-heading-color);
  413. }
  414. .brand-subtitle {
  415. font-size: 90%;
  416. padding: 0.5em;
  417. }
  418. @media screen and (max-width: $mobile-portrait-length) {
  419. .brand-heading {
  420. font-size: 400%;
  421. }
  422. }
  423. }
  424. &.logged-out {
  425. @include make-col(12);
  426. @include fade-in;
  427. width: 100%;
  428. .box-flyout {
  429. width: 100%;
  430. }
  431. }
  432. .box-flyout {
  433. border: 0;
  434. width: 100%;
  435. z-index: 1;
  436. background-color: var(--controlbox-head-color);
  437. .controlbox-head {
  438. display: none;
  439. }
  440. }
  441. #converse-register, #converse-login {
  442. @include make-col-ready();
  443. @include make-col(8);
  444. @include make-col-offset(2);
  445. @include media-breakpoint-up(sm) {
  446. @include make-col(8);
  447. @include make-col-offset(2);
  448. }
  449. @include media-breakpoint-up(md) {
  450. @include make-col(8);
  451. @include make-col-offset(2);
  452. }
  453. @include media-breakpoint-up(lg) {
  454. @include make-col(6);
  455. @include make-col-offset(3);
  456. }
  457. .title, .instructions {
  458. margin: 1em 0;
  459. }
  460. input[type=submit],
  461. input[type=button] {
  462. width: auto;
  463. }
  464. }
  465. }
  466. }
  467. @include media-breakpoint-down(sm) {
  468. #conversejs:not(.converse-embedded) {
  469. left: 0;
  470. right: 0;
  471. padding-left: env(safe-area-inset-left);
  472. padding-right: env(safe-area-inset-right);
  473. .converse-chatboxes {
  474. margin: 0 !important;
  475. flex-direction: row !important;
  476. justify-content: space-between;
  477. .converse-chatroom {
  478. font-size: 14px;
  479. }
  480. .chatbox {
  481. .box-flyout {
  482. margin-left: 15px; // Counteracts Bootstrap margins, but
  483. // not clear why needed...
  484. left: 0;
  485. bottom: 0;
  486. border-radius: 0;
  487. width: 100vw !important;
  488. height: 100vh !important;
  489. }
  490. }
  491. #controlbox {
  492. width: 100vw !important;
  493. .box-flyout {
  494. width: 100vw !important;
  495. height: 100vh !important;
  496. }
  497. .sidebar {
  498. display: block;
  499. }
  500. }
  501. &.sidebar-open {
  502. .chatbox:not(#controlbox) {
  503. display: none;
  504. }
  505. #controlbox {
  506. .controlbox-pane {
  507. display: block;
  508. }
  509. }
  510. }
  511. }
  512. }
  513. #conversejs.converse-overlayed {
  514. .converse-chatboxes {
  515. .chatbox {
  516. .box-flyout {
  517. margin-left: 30px; // Counteracts Bootstrap margins, but
  518. // not clear why needed...
  519. }
  520. }
  521. }
  522. }
  523. }