_core.scss 16 KB

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