2
0

_controlbox.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  1. #conversejs {
  2. .set-xmpp-status, .xmpp-status, .roster-contacts {
  3. .fa-circle {
  4. color: $green;
  5. }
  6. .fa-minus-circle {
  7. color: $red
  8. }
  9. .fa-dot-circle-o {
  10. color: $orange,
  11. }
  12. .fa-circle-o {
  13. color: $subdued-color;
  14. }
  15. .fa-times-circle {
  16. color: $subdued-color;
  17. }
  18. }
  19. .room-info {
  20. font-size: $font-size-small;
  21. font-style: normal;
  22. font-weight: normal;
  23. li.room-info {
  24. display: block;
  25. margin-left: 5px;
  26. }
  27. p.room-info {
  28. line-height: $line-height;
  29. margin: 0;
  30. display: block;
  31. white-space: normal;
  32. }
  33. }
  34. div.room-info {
  35. padding: 0.3em 0;
  36. clear: left;
  37. width: 100%;
  38. }
  39. #converse-modals {
  40. .set-xmpp-status {
  41. margin: 1em;
  42. .custom-control-label {
  43. margin-top: 0.25em;
  44. }
  45. }
  46. }
  47. #controlbox {
  48. .box-flyout {
  49. background-color: white;
  50. }
  51. margin-right: 3*$chat-gutter;
  52. &.logged-out {
  53. .box-flyout {
  54. .controlbox-pane {
  55. overflow-y: auto;
  56. }
  57. }
  58. }
  59. form.search-xmpp-contact {
  60. margin: 0;
  61. padding-left: 5px;
  62. padding: 0 0 5px 5px;
  63. input {
  64. width: 8em;
  65. }
  66. }
  67. .msgs-indicator {
  68. margin-right: 0.5em;
  69. }
  70. a.subscribe-to-user {
  71. padding-left: 2em;
  72. font-weight: bold;
  73. }
  74. #converse-register {
  75. @include fade-in;
  76. background: white;
  77. .title {
  78. font-weight: bold;
  79. }
  80. .info {
  81. color: green;
  82. font-size: 90%;
  83. margin: 1.5em 0;
  84. }
  85. .form-errors {
  86. color: $error-color;
  87. margin: 1em 0;
  88. }
  89. .provider-title {
  90. font-size: $font-size-huge;
  91. margin: 0;
  92. }
  93. .provider-score {
  94. width: 178px;
  95. margin-bottom: 8px;
  96. }
  97. .form-help .url {
  98. font-weight: bold;
  99. color: $link-color;
  100. }
  101. .input-group {
  102. display: table;
  103. margin: auto;
  104. width: 100%;
  105. span {
  106. overflow-x: hidden;
  107. text-overflow: ellipsis;
  108. max-width: 110px;
  109. }
  110. span, input[name=username] {
  111. display: table-cell;
  112. text-align: left;
  113. }
  114. }
  115. .instructions {
  116. color: gray;
  117. font-size: 85%;
  118. &:hover {
  119. color: $text-color;
  120. }
  121. }
  122. }
  123. .conn-feedback {
  124. color: $controlbox-head-color;
  125. &.error {
  126. color: $error-color;
  127. }
  128. p {
  129. padding-bottom: 1em;
  130. &.feedback-subject.error {
  131. font-weight: bold;
  132. }
  133. }
  134. }
  135. .brand-heading-container {
  136. .brand-heading {
  137. text-align: center;
  138. }
  139. .brand-name {
  140. font-size: 120%;
  141. }
  142. }
  143. #converse-login-panel, #converse-register-panel {
  144. padding-top: 0;
  145. padding-bottom: 0;
  146. }
  147. #converse-login-panel {
  148. flex-direction: column;
  149. .brand-heading {
  150. color: $global-background-color;
  151. }
  152. }
  153. .toggle-register-login {
  154. font-weight: bold;
  155. }
  156. .oauth-login {
  157. margin-left: 0;
  158. color: $text-color;
  159. .icon-social:before {
  160. font-size: $font-size-large;
  161. }
  162. }
  163. .controlbox-pane {
  164. .userinfo {
  165. padding-bottom: 1em;
  166. .username {
  167. margin-left: 0.5em;
  168. overflow: hidden;
  169. text-overflow: ellipsis;
  170. }
  171. .profile {
  172. margin-bottom: 0.75em;
  173. }
  174. }
  175. }
  176. #chatrooms {
  177. padding: 0;
  178. .add-chatroom {
  179. input[type=button],
  180. input[type=submit],
  181. input[type=text] {
  182. width: 100%;
  183. }
  184. margin: 0;
  185. padding: 0;
  186. }
  187. }
  188. .controlbox-section {
  189. margin: 1em 0 0 0;
  190. .controlbox-heading {
  191. font-family: $heading-font;
  192. margin: 0 0 0.5em 0;
  193. text-transform: uppercase;
  194. }
  195. }
  196. .dropdown {
  197. a {
  198. width: 143px;
  199. display: inline-block;
  200. }
  201. li {
  202. list-style: none;
  203. padding-left: 0;
  204. }
  205. dd {
  206. ul {
  207. padding: 0;
  208. list-style: none;
  209. position: absolute;
  210. left: 0;
  211. top: 0;
  212. width: 100%;
  213. z-index: 21;
  214. background-color: $light-background-color;
  215. li:hover {
  216. background-color: $highlight-color;
  217. }
  218. }
  219. }
  220. dd.search-xmpp {
  221. height: 0;
  222. .contact-form-container {
  223. position: absolute;
  224. z-index: 22;
  225. form {
  226. box-shadow: 1px 4px 10px 1px rgba(0, 0, 0, 0.4);
  227. background-color: white;
  228. }
  229. }
  230. li:hover {
  231. background-color: $light-background-color;
  232. }
  233. }
  234. dt a span {
  235. cursor: pointer;
  236. display: block;
  237. padding: 4px 7px 0 5px;
  238. }
  239. }
  240. .controlbox-panes {
  241. height: 100%;
  242. overflow-y: auto;
  243. background-color: white;
  244. }
  245. .controlbox-pane {
  246. background-color: white;
  247. border: 0;
  248. font-size: $font-size;
  249. left: 0;
  250. text-align: left;
  251. overflow-x: hidden;
  252. padding: 1em 0 1em 0;
  253. .controlbox-padded {
  254. padding-left: 1em;
  255. padding-right: 1em;
  256. }
  257. .add-converse-contact {
  258. margin: 0 0 0.75em 0;
  259. }
  260. .chatbox-btn {
  261. margin: 0;
  262. }
  263. .switch-form {
  264. padding: 2em 0;
  265. p {
  266. margin-top: 0.5em;
  267. }
  268. }
  269. dd {
  270. margin-left: 0;
  271. margin-bottom: 0;
  272. &.odd {
  273. background-color: #DCEAC5;
  274. }
  275. }
  276. }
  277. .add-xmpp-contact {
  278. padding: 1em 0.5em;
  279. input {
  280. margin: 0 0 1rem;
  281. width: 100%;
  282. }
  283. button {
  284. width: 100%;
  285. }
  286. }
  287. }
  288. .toggle-controlbox {
  289. text-align: center;
  290. background-color: $link-color;
  291. border-top-left-radius: $button-border-radius;
  292. border-top-right-radius: $button-border-radius;
  293. color: #0a0a0a;
  294. float: right;
  295. height: 100%;
  296. margin: 0 $chat-gutter;
  297. padding: 1em;
  298. span {
  299. color: $inverse-link-color;
  300. }
  301. }
  302. }
  303. @include media-breakpoint-down(sm) {
  304. #conversejs:not(.converse-embedded) {
  305. left: 0;
  306. right: 0;
  307. padding-left: env(safe-area-inset-left);
  308. padding-right: env(safe-area-inset-right);
  309. .converse-chatboxes {
  310. margin: 0 !important;
  311. flex-direction: row !important;
  312. justify-content: space-between;
  313. .converse-chatroom {
  314. font-size: 14px;
  315. }
  316. .chatbox {
  317. .box-flyout {
  318. top: -100vh;
  319. margin-left: 15px; // Counteracts Bootstrap margins, but
  320. // not clear why needed...
  321. left: 0;
  322. bottom: 0;
  323. border-radius: 0;
  324. width: 100vw !important;
  325. height: 100vh !important;
  326. }
  327. }
  328. #controlbox {
  329. order: 0;
  330. .box-flyout {
  331. width: 100vw !important;
  332. height: 100vh !important;
  333. }
  334. .sidebar {
  335. display: block;
  336. }
  337. }
  338. &.sidebar-open {
  339. .chatbox:not(#controlbox) {
  340. display: none;
  341. }
  342. #controlbox {
  343. .controlbox-pane {
  344. display: block;
  345. }
  346. }
  347. }
  348. }
  349. }
  350. }
  351. #conversejs:not(.converse-fullscreen) {
  352. #controlbox {
  353. order: -1;
  354. min-width: $controlbox-width !important;
  355. width: $controlbox-width;
  356. .box-flyout {
  357. min-width: $controlbox-width !important;
  358. width: $controlbox-width;
  359. }
  360. &:not(.logged-out) {
  361. .controlbox-head {
  362. height: 15px;
  363. }
  364. }
  365. .controlbox-head {
  366. display: flex;
  367. flex-direction: row-reverse;
  368. flex-wrap: nowrap;
  369. justify-content: space-between;
  370. .brand-heading {
  371. @include make-col-ready();
  372. @include make-col(8);
  373. color: $text-color;
  374. font-size: 2em;
  375. }
  376. .chatbox-btn {
  377. color: $controlbox-head-color;
  378. margin: 0;
  379. }
  380. }
  381. #converse-register, #converse-login {
  382. @include make-col(12);
  383. padding-bottom: 0;
  384. }
  385. #converse-register {
  386. .button-cancel {
  387. font-size: 90%;
  388. }
  389. }
  390. .controlbox-panes {
  391. border-radius: $chatbox-border-radius;
  392. }
  393. }
  394. }