_core.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  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. .dropdown-item {
  179. padding: 0.5rem 1rem;
  180. .fa {
  181. margin-right: 0.75rem;
  182. }
  183. &:active, &.selected {
  184. color: white !important;
  185. background-color: var(--list-item-open-color);
  186. .fa {
  187. color: white !important;
  188. }
  189. }
  190. }
  191. .popover {
  192. position: fixed;
  193. }
  194. .converse-chatboxes {
  195. z-index: 1031; // One more than bootstrap navbar
  196. position: fixed;
  197. bottom: 0;
  198. right: 0;
  199. }
  200. ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  201. color: var(--subdued-color);
  202. }
  203. ::-moz-placeholder { /* Firefox 19+ */
  204. color: var(--subdued-color);
  205. }
  206. :-ms-input-placeholder { /* IE 10+ */
  207. color: var(--subdued-color);
  208. }
  209. :-moz-placeholder { /* Firefox 18- */
  210. color: var(--subdued-color);
  211. }
  212. ::placeholder {
  213. color: var(--subdued-color);
  214. }
  215. ::selection {
  216. background-color: var(--highlight-color);
  217. }
  218. ::-moz-selection {
  219. background-color: var(--highlight-color);
  220. }
  221. @media screen and (max-width: $mobile-portrait-length) {
  222. margin: 0;
  223. right: 10px;
  224. left: 10px;
  225. bottom: 5px;
  226. }
  227. @media screen and (max-height: $mobile-landscape-height) {
  228. margin: 0;
  229. right: 10px;
  230. left: 10px;
  231. bottom: 5px;
  232. }
  233. ul li { height: auto; }
  234. div, span, h1, h2, h3, h4, h5, h6, p, blockquote,
  235. pre, a, em, img, strong, dl, dt, dd, ol, ul, li,
  236. fieldset, form, legend, table, caption, tbody,
  237. tfoot, thead, tr, th, td, article, aside, details,
  238. embed, figure, figcaption, footer, header, hgroup, menu,
  239. nav, output, ruby, section, summary, time, mark, audio, video {
  240. margin: 0;
  241. padding: 0;
  242. border: 0;
  243. font: inherit;
  244. vertical-align: baseline;
  245. }
  246. textarea,
  247. input[type=submit], input[type=button],
  248. input[type=text], input[type=password],
  249. button {
  250. font-size: var(--font-size);
  251. min-height: 0;
  252. }
  253. strong {
  254. font-weight: 700;
  255. }
  256. em {
  257. font-style: italic;
  258. }
  259. ol, ul {
  260. list-style: none;
  261. }
  262. li {
  263. height: 10px;
  264. }
  265. ul, ol, dl {
  266. font: inherit;
  267. margin: 0;
  268. }
  269. a {
  270. cursor: pointer;
  271. }
  272. a, a:visited, a:not([href]):not([tabindex]) {
  273. text-decoration: none;
  274. color: var(--link-color);
  275. text-shadow: none;
  276. &:hover {
  277. color: var(--link-hover-color);
  278. text-decoration: none;
  279. text-shadow: none;
  280. }
  281. &.fa, &.far, &.fas {
  282. color: var(--subdued-color);
  283. &:hover {
  284. color: var(--gray-color);
  285. }
  286. }
  287. }
  288. svg {
  289. border-radius: var(--chatbox-border-radius);
  290. }
  291. .fa, .far, .fas {
  292. color: var(--subdued-color);
  293. }
  294. .fa:hover, .far:hover, .fas:hover {
  295. color: var(--gray-color);
  296. }
  297. q {
  298. quotes: "“" "”" "‘" "’";
  299. &.reason {
  300. display: block;
  301. }
  302. }
  303. q:before {
  304. content: open-quote;
  305. }
  306. q:after {
  307. content: close-quote;
  308. }
  309. .helptext {
  310. font-size: var(--font-size-tiny);
  311. color: var(--text-color-lighten-15-percent);
  312. }
  313. .selected {
  314. color: var(--link-color) !important;
  315. }
  316. .circle {
  317. border-radius: 50%;
  318. }
  319. .badge {
  320. line-height: 1;
  321. font-weight: normal;
  322. font-size: 90%;
  323. }
  324. .btn {
  325. font-weight: normal;
  326. color: #fff;
  327. .fa, .far, .fas {
  328. color: #fff;
  329. margin-right: 0.5em;
  330. &.only-icon {
  331. margin-right: 0;
  332. }
  333. }
  334. }
  335. .no-text-select {
  336. -webkit-touch-callout: none;
  337. user-select: none;
  338. }
  339. @keyframes colorchange-chatmessage {
  340. 0% {background-color: rgba(141, 216, 174, 1);}
  341. 25% {background-color: rgba(141, 216, 174, 0.75);}
  342. 50% {background-color: rgba(141, 216, 174, 0.5);}
  343. 75% {background-color: rgba(141, 216, 174, 0.25);}
  344. 100% {background-color: transparent;}
  345. }
  346. @-webkit-keyframes colorchange-chatmessage {
  347. 0% {background-color: rgba(141, 216, 174, 1);}
  348. 25% {background-color: rgba(141, 216, 174, 0.75);}
  349. 50% {background-color: rgba(141, 216, 174, 0.5);}
  350. 75% {background-color: rgba(141, 216, 174, 0.25);}
  351. 100% {background-color: transparent;}
  352. }
  353. @keyframes colorchange-chatmessage-muc {
  354. 0% {background-color: rgba(255, 181, 162, 1);}
  355. 25% {background-color: rgba(255, 181, 162, 0.75);}
  356. 50% {background-color: rgba(255, 181, 162, 0.5);}
  357. 75% {background-color: rgba(255, 181, 162, 0.25);}
  358. 100% {background-color: transparent;}
  359. }
  360. @-webkit-keyframes colorchange-chatmessage-muc {
  361. 0% {background-color: rgba(255, 181, 162, 1);}
  362. 25% {background-color: rgba(255, 181, 162, 0.75);}
  363. 50% {background-color: rgba(255, 181, 162, 0.5);}
  364. 75% {background-color: rgba(255, 181, 162, 0.25);}
  365. 100% {background-color: transparent;}
  366. }
  367. @keyframes fadein {
  368. 0% { opacity: 0 }
  369. 100% { opacity: 1 }
  370. }
  371. @-webkit-keyframes fadein {
  372. 0% { opacity: 0 }
  373. 100% { opacity: 1 }
  374. }
  375. @-webkit-keyframes fadeOut {
  376. 0% { opacity: 1; visibility: visible; }
  377. 100% { opacity: 0; visibility: hidden; }
  378. }
  379. @keyframes fadeOut {
  380. 0% { opacity: 1; visibility: visible; }
  381. 100% { opacity: 0; visibility: hidden; }
  382. }
  383. .fade-in {
  384. @include fade-in;
  385. }
  386. .visible {
  387. opacity:0; /* make things invisible upon start */
  388. animation-name: fadein;
  389. animation-fill-mode: forwards;
  390. animation-duration: 500ms;
  391. animation-timing-function: ease;
  392. }
  393. .hidden {
  394. opacity: 0 !important;
  395. display: none !important;
  396. }
  397. .fade-out {
  398. animation-duration: 0.5s;
  399. animation-fill-mode: forwards;
  400. animation-name: fadeOut;
  401. animation-timing-function: ease-in-out;
  402. }
  403. .collapsed {
  404. height: 0 !important;
  405. overflow: hidden !important;
  406. padding: 0 !important;
  407. }
  408. .locked {
  409. padding-right: 22px;
  410. }
  411. @keyframes spin {
  412. from {
  413. transform: rotate(0deg);
  414. }
  415. to {
  416. transform: rotate(359deg);
  417. }
  418. }
  419. .spinner {
  420. animation: spin 2s infinite, linear;
  421. width: 1em;
  422. display: block;
  423. text-align: center;
  424. padding: 0.5em 0;
  425. font-size: 24px;
  426. }
  427. .left {
  428. float: left;
  429. }
  430. .right {
  431. float: right;
  432. }
  433. .centered {
  434. text-align: center;
  435. display: block;
  436. margin: auto;
  437. }
  438. .hor_centered {
  439. text-align: center;
  440. display: block;
  441. margin: 0 auto;
  442. clear: both;
  443. }
  444. .error {
  445. color: var(--error-color);
  446. }
  447. .info {
  448. color: var(--info-color);
  449. }
  450. .reg-feedback {
  451. font-size: 85%;
  452. margin-bottom: 1em;
  453. }
  454. .reg-feedback,
  455. #converse-login .conn-feedback {
  456. display: block;
  457. text-align: center;
  458. width: 100%;
  459. }
  460. .avatar {
  461. border-radius: var(--avatar-border-radius);
  462. border: var(--avatar-border);
  463. background-color: var(--avatar-background-color);
  464. }
  465. .avatar-autocomplete {
  466. margin-right: 0.5em;
  467. vertical-align: middle;
  468. }
  469. .activated {
  470. display: block !important;
  471. }
  472. .nav-pills .nav-link.active,
  473. .nav-pills .show > .nav-link {
  474. background-color: var(--primary-color);
  475. }
  476. .list-group-item.active {
  477. background-color: var(--primary-color);
  478. border-color: var(--primary-color-dark);
  479. }
  480. .badge {
  481. text-shadow: none;
  482. color: white;
  483. }
  484. .badge-light {
  485. color: var(--text-color);
  486. }
  487. .btn-primary, .button-primary, .badge-primary {
  488. background-color: var(--primary-color);
  489. border-color: transparent;
  490. &:hover {
  491. background-color: var(--primary-color-dark);
  492. border-color: transparent;
  493. }
  494. &.active {
  495. background-color: var(--primary-color-dark) !important;
  496. border-color: transparent !important;
  497. }
  498. }
  499. .btn--transparent {
  500. background: transparent;
  501. border: none;
  502. }
  503. .btn-circle {
  504. width: 30px;
  505. height: 30px;
  506. text-align: center;
  507. padding: 0.5em 0;
  508. font-size: var(--font-size-small);
  509. line-height: 1.428571429;
  510. border-radius: 50%;
  511. }
  512. .btn {
  513. &.fa {
  514. color: white !important;
  515. }
  516. }
  517. .badge-groupchat {
  518. background-color: var(--chatroom-badge-color);
  519. border-color: transparent;
  520. &:hover {
  521. background-color: var(--chatroom-badge-hover-color);
  522. border-color: transparent;
  523. }
  524. &.active {
  525. background-color: var(--chatroom-badge-hover-color) !important;
  526. border-color: transparent !important;
  527. }
  528. }
  529. .btn-info, .badge-info {
  530. background-color: var(--primary-color);
  531. border-color: var(--primary-color);
  532. &:hover {
  533. background-color: var(--primary-color-dark);
  534. border-color: var(--primary-color-dark);
  535. }
  536. }
  537. .button-cancel,
  538. .btn-secondary, .badge-secondary {
  539. color: white;
  540. background-color: var(--secondary-color);
  541. border-color: var(--secondary-color);
  542. &:hover {
  543. background-color: var(--secondary-color-dark);
  544. border-color: var(--secondary-color-dark);
  545. }
  546. }
  547. .btn-warning {
  548. color: white;
  549. background-color: var(--warning-color);
  550. border-color: var(--warning-color);
  551. &:hover {
  552. color: white;
  553. background-color: var(--warning-color-dark);
  554. border-color: var(--warning-color-dark)
  555. }
  556. }
  557. .btn-danger {
  558. color: white;
  559. background-color: var(--danger-color);
  560. border-color: var(--danger-color) !important;
  561. &:hover {
  562. background-color: var(--danger-color-dark);
  563. border-color: var(--danger-color-dark);
  564. }
  565. }
  566. }
  567. @media screen and (max-width: 575px) {
  568. body {
  569. .converse-brand {
  570. font-size: 3.75em;
  571. }
  572. }
  573. #conversejs:not(.converse-embedded) {
  574. .chatbox {
  575. .chat-body {
  576. border-radius: var(--chatbox-border-radius);
  577. }
  578. }
  579. .flyout {
  580. border-radius: var(--chatbox-border-radius);
  581. }
  582. }
  583. }
  584. @media screen and (min-width: 576px) {
  585. #conversejs .offset-sm-2 {
  586. margin-left: 16.666667%;
  587. }
  588. }
  589. @media screen and (min-width: 768px) {
  590. #conversejs .offset-md-2 {
  591. margin-left: 16.666667%;
  592. }
  593. #conversejs .offset-md-3 {
  594. margin-left: 25%;
  595. }
  596. }
  597. @media screen and (min-width: 992px) {
  598. #conversejs .offset-lg-2 {
  599. margin-left: 16.666667%;
  600. }
  601. #conversejs .offset-lg-3 {
  602. margin-left: 25%;
  603. }
  604. }
  605. @media screen and (min-width: 1200px) {
  606. #conversejs .offset-xl-2 {
  607. margin-left: 16.666667%;
  608. }
  609. }
  610. @media screen and (max-height: 450px) {
  611. #conversejs {
  612. left: 0;
  613. }
  614. }