2
0

_core.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642
  1. @mixin fade-in {
  2. opacity: 0; /* make things invisible upon start */
  3. animation-name: fadein;
  4. animation-fill-mode: forwards;
  5. animation-duration: 0.75s;
  6. animation-timing-function: ease;
  7. }
  8. body.converse-fullscreen {
  9. margin: 0;
  10. background-color: var(--global-background-color);
  11. }
  12. #conversejs-bg {
  13. .converse-brand {
  14. display: flex;
  15. justify-content: space-between;
  16. margin-top: 15vh;
  17. animation-name: fadein;
  18. animation-fill-mode: forwards;
  19. animation-duration: 5s;
  20. animation-timing-function: ease;
  21. }
  22. .converse-brand__padding {
  23. @include make-col-ready();
  24. @include media-breakpoint-up(md) {
  25. @include make-col(4);
  26. }
  27. @include media-breakpoint-up(lg) {
  28. @include make-col(3);
  29. }
  30. @include media-breakpoint-up(xl) {
  31. @include make-col(2);
  32. }
  33. padding: 0;
  34. }
  35. .converse-brand__heading {
  36. @include make-col-ready();
  37. @include media-breakpoint-up(md) {
  38. font-size: 4em;
  39. @include make-col(8);
  40. }
  41. @include media-breakpoint-up(lg) {
  42. font-size: 5em;
  43. @include make-col(9);
  44. }
  45. @include media-breakpoint-up(xl) {
  46. font-size: 6em;
  47. @include make-col(10);
  48. }
  49. padding: 0;
  50. display: flex;
  51. justify-content: center;
  52. margin: auto;
  53. svg {
  54. margin-top: 0.3em;
  55. }
  56. }
  57. .converse-brand__text {
  58. color: #ffffff;
  59. font-family: var(--branding-font);
  60. font-weight: normal;
  61. text-align: center;
  62. font-size: 140%;
  63. margin-left: 0.2em;
  64. .byline {
  65. margin: 0;
  66. font-family: var(--heading-font);
  67. font-size: 0.3em;
  68. opacity: 0.55;
  69. margin-bottom: 2em;
  70. margin-left: -2.7em;
  71. word-spacing: 5px;
  72. }
  73. }
  74. }
  75. #conversejs-bg, #conversejs {
  76. .subdued {
  77. opacity: 0.35;
  78. }
  79. }
  80. #conversejs {
  81. bottom: 0;
  82. height: 100%;
  83. position: fixed;
  84. padding-left: env(safe-area-inset-left);
  85. padding-right: env(safe-area-inset-right);
  86. color: var(--text-color);
  87. font-family: var(--normal-font);
  88. font-size: var(--font-size);
  89. direction: ltr;
  90. z-index: 1031; // One more than bootstrap navbar
  91. textarea:disabled {
  92. background-color: #EEE !important;
  93. }
  94. .nopadding {
  95. padding: 0 !important;
  96. }
  97. &.converse-overlayed {
  98. > .row {
  99. flex-direction: row-reverse;
  100. }
  101. }
  102. &.converse-fullscreen,
  103. &.converse-mobile {
  104. .converse-chatboxes {
  105. width: 100vw;
  106. left: -15px; // Hack due to padding added by bootstrap
  107. }
  108. }
  109. &.converse-overlayed {
  110. height: 3em;
  111. }
  112. &.converse-embedded {
  113. box-sizing: border-box;
  114. *, *:before, *:after {
  115. box-sizing: border-box;
  116. }
  117. bottom: auto;
  118. height: 100%; // When embedded, it fills the containing element
  119. position: relative;
  120. right: auto;
  121. width: 100%;
  122. }
  123. .brand-heading-container {
  124. text-align: center;
  125. }
  126. .brand-heading {
  127. display: inline-flex;
  128. flex-direction: row;
  129. align-items: flex-start;
  130. font-family: var(--branding-font);
  131. color: var(--link-color);
  132. margin-bottom: 1em;
  133. .brand-name {
  134. color: var(--link-color);
  135. display: flex;
  136. flex-direction: column;
  137. align-items: center;
  138. margin-top: -0.5em;
  139. }
  140. .brand-name__text {
  141. font-size: 120%;
  142. vertical-align: text-bottom;
  143. }
  144. .converse-svg-logo {
  145. color: var(--link-color);
  146. height: 1.5em;
  147. margin-right: 0.25em;
  148. margin-bottom: -0.25em;
  149. .cls-1 {
  150. isolation: isolate;
  151. }
  152. .cls-2 {
  153. opacity: 0.5;
  154. mix-blend-mode: multiply;
  155. }
  156. .cls-3 {
  157. fill: var(--link-color);
  158. }
  159. .cls-4 {
  160. fill: var(--link-color);
  161. }
  162. }
  163. }
  164. .brand-heading--inverse {
  165. .converse-svg-logo {
  166. margin-bottom: 0em;
  167. margin-top: -0.2em;
  168. }
  169. .byline {
  170. margin: 0;
  171. font-family: var(--heading-font);
  172. font-size: 0.25em;
  173. opacity: 0.55;
  174. margin-left: -7em;
  175. word-spacing: 5px;
  176. }
  177. }
  178. .popover {
  179. position: fixed;
  180. }
  181. .converse-chatboxes {
  182. z-index: 1031; // One more than bootstrap navbar
  183. position: fixed;
  184. bottom: 0;
  185. right: 0;
  186. }
  187. ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  188. color: var(--subdued-color);
  189. }
  190. ::-moz-placeholder { /* Firefox 19+ */
  191. color: var(--subdued-color);
  192. }
  193. :-ms-input-placeholder { /* IE 10+ */
  194. color: var(--subdued-color);
  195. }
  196. :-moz-placeholder { /* Firefox 18- */
  197. color: var(--subdued-color);
  198. }
  199. ::placeholder {
  200. color: var(--subdued-color);
  201. }
  202. ::selection {
  203. background-color: var(--highlight-color);
  204. }
  205. ::-moz-selection {
  206. background-color: var(--highlight-color);
  207. }
  208. @media screen and (max-width: $mobile-portrait-length) {
  209. margin: 0;
  210. right: 10px;
  211. left: 10px;
  212. bottom: 5px;
  213. }
  214. @media screen and (max-height: $mobile-landscape-height) {
  215. margin: 0;
  216. right: 10px;
  217. left: 10px;
  218. bottom: 5px;
  219. }
  220. ul li { height: auto; }
  221. div, span, h1, h2, h3, h4, h5, h6, p, blockquote,
  222. pre, a, em, img, strong, dl, dt, dd, ol, ul, li,
  223. fieldset, form, legend, table, caption, tbody,
  224. tfoot, thead, tr, th, td, article, aside, details,
  225. embed, figure, figcaption, footer, header, hgroup, menu,
  226. nav, output, ruby, section, summary, time, mark, audio, video {
  227. margin: 0;
  228. padding: 0;
  229. border: 0;
  230. font: inherit;
  231. vertical-align: baseline;
  232. }
  233. textarea,
  234. input[type=submit], input[type=button],
  235. input[type=text], input[type=password],
  236. button {
  237. font-size: var(--font-size);
  238. min-height: 0;
  239. }
  240. strong {
  241. font-weight: 700;
  242. }
  243. em {
  244. font-style: italic;
  245. }
  246. ol, ul {
  247. list-style: none;
  248. }
  249. li {
  250. height: 10px;
  251. }
  252. ul, ol, dl {
  253. font: inherit;
  254. margin: 0;
  255. }
  256. a {
  257. cursor: pointer;
  258. }
  259. a, a:visited, a:not([href]):not([tabindex]) {
  260. text-decoration: none;
  261. color: var(--link-color);
  262. text-shadow: none;
  263. &:hover {
  264. color: var(--link-color-darken-20-percent);
  265. text-decoration: none;
  266. text-shadow: none;
  267. }
  268. &.fa, &.far, &.fas {
  269. color: var(--subdued-color);
  270. &:hover {
  271. color: var(--gray-color);
  272. }
  273. }
  274. }
  275. svg {
  276. border-radius: var(--chatbox-border-radius);
  277. }
  278. .fa, .far, .fas {
  279. color: var(--subdued-color);
  280. }
  281. .fa:hover, .far:hover, .fas:hover {
  282. color: var(--gray-color);
  283. }
  284. .modal {
  285. background-color: rgba(0, 0, 0, 0.4);
  286. .modal-body {
  287. p {
  288. padding: 0.25rem 0;
  289. }
  290. }
  291. .modal-footer {
  292. justify-content: flex-start;
  293. }
  294. }
  295. .selected {
  296. color: var(--link-color) !important;
  297. }
  298. .circle {
  299. border-radius: 50%;
  300. }
  301. .badge {
  302. line-height: 1;
  303. font-weight: normal;
  304. font-size: 90%;
  305. }
  306. .btn {
  307. font-weight: normal;
  308. color: #fff;
  309. .fa, .far, .fas {
  310. color: #fff;
  311. margin-right: 0.5em;
  312. }
  313. }
  314. .no-text-select {
  315. -webkit-touch-callout: none;
  316. user-select: none;
  317. }
  318. @keyframes colorchange-chatmessage {
  319. 0% {background-color: rgba(141, 216, 174, 1);}
  320. 25% {background-color: rgba(141, 216, 174, 0.75);}
  321. 50% {background-color: rgba(141, 216, 174, 0.5);}
  322. 75% {background-color: rgba(141, 216, 174, 0.25);}
  323. 100% {background-color: transparent;}
  324. }
  325. @-webkit-keyframes colorchange-chatmessage {
  326. 0% {background-color: rgba(141, 216, 174, 1);}
  327. 25% {background-color: rgba(141, 216, 174, 0.75);}
  328. 50% {background-color: rgba(141, 216, 174, 0.5);}
  329. 75% {background-color: rgba(141, 216, 174, 0.25);}
  330. 100% {background-color: transparent;}
  331. }
  332. @keyframes colorchange-chatmessage-muc {
  333. 0% {background-color: rgba(255, 181, 162, 1);}
  334. 25% {background-color: rgba(255, 181, 162, 0.75);}
  335. 50% {background-color: rgba(255, 181, 162, 0.5);}
  336. 75% {background-color: rgba(255, 181, 162, 0.25);}
  337. 100% {background-color: transparent;}
  338. }
  339. @-webkit-keyframes colorchange-chatmessage-muc {
  340. 0% {background-color: rgba(255, 181, 162, 1);}
  341. 25% {background-color: rgba(255, 181, 162, 0.75);}
  342. 50% {background-color: rgba(255, 181, 162, 0.5);}
  343. 75% {background-color: rgba(255, 181, 162, 0.25);}
  344. 100% {background-color: transparent;}
  345. }
  346. @keyframes fadein {
  347. 0% { opacity: 0 }
  348. 100% { opacity: 1 }
  349. }
  350. @-webkit-keyframes fadein {
  351. 0% { opacity: 0 }
  352. 100% { opacity: 1 }
  353. }
  354. @-webkit-keyframes fadeOut {
  355. 0% { opacity: 1; visibility: visible; }
  356. 100% { opacity: 0; visibility: hidden; }
  357. }
  358. @keyframes fadeOut {
  359. 0% { opacity: 1; visibility: visible; }
  360. 100% { opacity: 0; visibility: hidden; }
  361. }
  362. .fade-in {
  363. @include fade-in;
  364. }
  365. .visible {
  366. opacity:0; /* make things invisible upon start */
  367. animation-name: fadein;
  368. animation-fill-mode: forwards;
  369. animation-duration: 500ms;
  370. animation-timing-function: ease;
  371. }
  372. .hidden {
  373. opacity: 0 !important;
  374. display: none !important;
  375. }
  376. .fade-out {
  377. animation-duration: 0.5s;
  378. animation-fill-mode: forwards;
  379. animation-name: fadeOut;
  380. animation-timing-function: ease-in-out;
  381. }
  382. .collapsed {
  383. height: 0 !important;
  384. overflow: hidden !important;
  385. padding: 0 !important;
  386. }
  387. .locked {
  388. padding-right: 22px;
  389. }
  390. @keyframes spin {
  391. from {
  392. transform: rotate(0deg);
  393. }
  394. to {
  395. transform: rotate(359deg);
  396. }
  397. }
  398. .spinner {
  399. animation: spin 2s infinite, linear;
  400. width: 1em;
  401. display: block;
  402. text-align: center;
  403. padding: 0.5em 0;
  404. font-size: 24px;
  405. }
  406. .left {
  407. float: left;
  408. }
  409. .right {
  410. float: right;
  411. }
  412. .centered {
  413. text-align: center;
  414. display: block;
  415. margin: auto;
  416. }
  417. .hor_centered {
  418. text-align: center;
  419. display: block;
  420. margin: 0 auto;
  421. clear: both;
  422. }
  423. .error {
  424. color: var(--error-color);
  425. }
  426. .info {
  427. color: var(--info-color);
  428. }
  429. .reg-feedback {
  430. font-size: 85%;
  431. margin-bottom: 1em;
  432. }
  433. .reg-feedback,
  434. #converse-login .conn-feedback {
  435. display: block;
  436. text-align: center;
  437. width: 100%;
  438. }
  439. .avatar {
  440. border-radius: var(--avatar-border-radius);
  441. border: var(--avatar-border);
  442. background-color: var(--avatar-background-color);
  443. }
  444. .activated {
  445. display: block !important;
  446. }
  447. .nav-pills .nav-link.active,
  448. .nav-pills .show > .nav-link {
  449. background-color: var(--primary-color);
  450. }
  451. .list-group-item.active {
  452. background-color: var(--primary-color);
  453. border-color: var(--primary-color-dark);
  454. }
  455. .badge {
  456. text-shadow: none;
  457. color: white;
  458. }
  459. .badge-light {
  460. color: var(--text-color);
  461. }
  462. .btn-primary, .button-primary, .badge-primary {
  463. background-color: var(--primary-color);
  464. border-color: transparent;
  465. &:hover {
  466. background-color: var(--primary-color-dark);
  467. border-color: transparent;
  468. }
  469. &.active {
  470. background-color: var(--primary-color-dark) !important;
  471. border-color: transparent !important;
  472. }
  473. }
  474. .badge-groupchat {
  475. background-color: var(--chatroom-badge-color);
  476. border-color: transparent;
  477. &:hover {
  478. background-color: var(--chatroom-badge-hover-color);
  479. border-color: transparent;
  480. }
  481. &.active {
  482. background-color: var(--chatroom-badge-hover-color) !important;
  483. border-color: transparent !important;
  484. }
  485. }
  486. .btn-info, .badge-info {
  487. background-color: var(--primary-color);
  488. border-color: var(--primary-color);
  489. &:hover {
  490. background-color: var(--primary-color-dark);
  491. border-color: var(--primary-color-dark);
  492. }
  493. }
  494. .button-cancel,
  495. .btn-secondary, .badge-secondary {
  496. color: white;
  497. background-color: var(--secondary-color);
  498. border-color: var(--secondary-color);
  499. &:hover {
  500. background-color: var(--secondary-color-dark);
  501. border-color: var(--secondary-color-dark);
  502. }
  503. }
  504. .btn-warning {
  505. color: white;
  506. background-color: var(--warning-color);
  507. border-color: var(--warning-color);
  508. &:hover {
  509. color: white;
  510. background-color: var(--warning-color-dark);
  511. border-color: var(--warning-color-dark)
  512. }
  513. }
  514. .btn-danger {
  515. color: white;
  516. background-color: var(--danger-color);
  517. border-color: var(--danger-color) !important;
  518. &:hover {
  519. background-color: var(--danger-color-dark);
  520. border-color: var(--danger-color-dark);
  521. }
  522. }
  523. }
  524. @media screen and (max-width: 575px) {
  525. body {
  526. .converse-brand {
  527. font-size: 3.75em;
  528. }
  529. }
  530. #conversejs:not(.converse-embedded) {
  531. .chatbox {
  532. .chat-body {
  533. border-radius: var(--chatbox-border-radius);
  534. }
  535. }
  536. .flyout {
  537. border-radius: var(--chatbox-border-radius);
  538. }
  539. }
  540. }
  541. @media screen and (min-width: 576px) {
  542. #conversejs .offset-sm-2 {
  543. margin-left: 16.666667%;
  544. }
  545. }
  546. @media screen and (min-width: 768px) {
  547. #conversejs .offset-md-2 {
  548. margin-left: 16.666667%;
  549. }
  550. #conversejs .offset-md-3 {
  551. margin-left: 25%;
  552. }
  553. }
  554. @media screen and (min-width: 992px) {
  555. #conversejs .offset-lg-2 {
  556. margin-left: 16.666667%;
  557. }
  558. #conversejs .offset-lg-3 {
  559. margin-left: 25%;
  560. }
  561. }
  562. @media screen and (min-width: 1200px) {
  563. #conversejs .offset-xl-2 {
  564. margin-left: 16.666667%;
  565. }
  566. }
  567. @media screen and (max-height: 450px) {
  568. #conversejs {
  569. left: 0;
  570. }
  571. }