_controlbox.scss 14 KB

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