_core.scss 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700
  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. &:hover {
  281. color: var(--link-hover-color);
  282. text-decoration: none;
  283. text-shadow: none;
  284. }
  285. &.fa, &.far, &.fas {
  286. color: var(--subdued-color);
  287. &:hover {
  288. color: var(--gray-color);
  289. }
  290. }
  291. }
  292. svg {
  293. border-radius: var(--chatbox-border-radius);
  294. }
  295. .fa, .far, .fas {
  296. color: var(--subdued-color);
  297. }
  298. .fa:hover, .far:hover, .fas:hover {
  299. color: var(--gray-color);
  300. }
  301. q {
  302. quotes: "“" "”" "‘" "’";
  303. &.reason {
  304. display: block;
  305. }
  306. }
  307. q:before {
  308. content: open-quote;
  309. }
  310. q:after {
  311. content: close-quote;
  312. }
  313. .helptext {
  314. font-size: var(--font-size-tiny);
  315. color: var(--text-color-lighten-15-percent);
  316. }
  317. .selected {
  318. color: var(--link-color) !important;
  319. }
  320. .circle {
  321. border-radius: 50%;
  322. }
  323. .badge {
  324. line-height: 1;
  325. font-weight: normal;
  326. font-size: 90%;
  327. }
  328. .btn {
  329. font-weight: normal;
  330. color: #fff;
  331. .fa, .far, .fas {
  332. color: #fff;
  333. margin-right: 0.5em;
  334. &.only-icon {
  335. margin-right: 0;
  336. }
  337. }
  338. }
  339. .no-text-select {
  340. -webkit-touch-callout: none;
  341. user-select: none;
  342. }
  343. @keyframes colorchange-chatmessage {
  344. 0% {background-color: rgba(141, 216, 174, 1);}
  345. 25% {background-color: rgba(141, 216, 174, 0.75);}
  346. 50% {background-color: rgba(141, 216, 174, 0.5);}
  347. 75% {background-color: rgba(141, 216, 174, 0.25);}
  348. 100% {background-color: transparent;}
  349. }
  350. @-webkit-keyframes colorchange-chatmessage {
  351. 0% {background-color: rgba(141, 216, 174, 1);}
  352. 25% {background-color: rgba(141, 216, 174, 0.75);}
  353. 50% {background-color: rgba(141, 216, 174, 0.5);}
  354. 75% {background-color: rgba(141, 216, 174, 0.25);}
  355. 100% {background-color: transparent;}
  356. }
  357. @keyframes colorchange-chatmessage-muc {
  358. 0% {background-color: rgba(255, 181, 162, 1);}
  359. 25% {background-color: rgba(255, 181, 162, 0.75);}
  360. 50% {background-color: rgba(255, 181, 162, 0.5);}
  361. 75% {background-color: rgba(255, 181, 162, 0.25);}
  362. 100% {background-color: transparent;}
  363. }
  364. @-webkit-keyframes colorchange-chatmessage-muc {
  365. 0% {background-color: rgba(255, 181, 162, 1);}
  366. 25% {background-color: rgba(255, 181, 162, 0.75);}
  367. 50% {background-color: rgba(255, 181, 162, 0.5);}
  368. 75% {background-color: rgba(255, 181, 162, 0.25);}
  369. 100% {background-color: transparent;}
  370. }
  371. @keyframes fadein {
  372. 0% { opacity: 0 }
  373. 100% { opacity: 1 }
  374. }
  375. @-webkit-keyframes fadein {
  376. 0% { opacity: 0 }
  377. 100% { opacity: 1 }
  378. }
  379. @-webkit-keyframes fadeOut {
  380. 0% { opacity: 1; visibility: visible; }
  381. 100% { opacity: 0; visibility: hidden; }
  382. }
  383. @keyframes fadeOut {
  384. 0% { opacity: 1; visibility: visible; }
  385. 100% { opacity: 0; visibility: hidden; }
  386. }
  387. .fade-in {
  388. @include fade-in;
  389. }
  390. .visible {
  391. opacity:0; /* make things invisible upon start */
  392. animation-name: fadein;
  393. animation-fill-mode: forwards;
  394. animation-duration: 500ms;
  395. animation-timing-function: ease;
  396. }
  397. .hidden {
  398. opacity: 0 !important;
  399. display: none !important;
  400. }
  401. .fade-out {
  402. animation-duration: 0.5s;
  403. animation-fill-mode: forwards;
  404. animation-name: fadeOut;
  405. animation-timing-function: ease-in-out;
  406. }
  407. .collapsed {
  408. height: 0 !important;
  409. overflow: hidden !important;
  410. padding: 0 !important;
  411. }
  412. .locked {
  413. padding-right: 22px;
  414. }
  415. @keyframes spin {
  416. from {
  417. transform: rotate(0deg);
  418. }
  419. to {
  420. transform: rotate(359deg);
  421. }
  422. }
  423. .spinner {
  424. animation: spin 2s infinite, linear;
  425. width: 1em;
  426. display: block;
  427. text-align: center;
  428. padding: 0.5em 0;
  429. font-size: 24px;
  430. }
  431. .left {
  432. float: left;
  433. }
  434. .right {
  435. float: right;
  436. }
  437. .centered {
  438. text-align: center;
  439. display: block;
  440. margin: auto;
  441. }
  442. .hor_centered {
  443. text-align: center;
  444. display: block;
  445. margin: 0 auto;
  446. clear: both;
  447. }
  448. .error {
  449. color: var(--error-color);
  450. }
  451. .info {
  452. color: var(--info-color);
  453. }
  454. .reg-feedback {
  455. font-size: 85%;
  456. margin-bottom: 1em;
  457. }
  458. .reg-feedback,
  459. #converse-login .conn-feedback {
  460. display: block;
  461. text-align: center;
  462. width: 100%;
  463. }
  464. .avatar {
  465. border-radius: var(--avatar-border-radius);
  466. border: var(--avatar-border);
  467. background-color: var(--avatar-background-color);
  468. }
  469. .avatar-autocomplete {
  470. margin-right: 0.5em;
  471. vertical-align: middle;
  472. }
  473. .activated {
  474. display: block !important;
  475. }
  476. .form-help {
  477. color: var(--subdued-color);
  478. font-size: 90%;
  479. }
  480. .form-control--labeled {
  481. margin-top: 0.5em;
  482. }
  483. .nav-pills .nav-link.active,
  484. .nav-pills .show > .nav-link {
  485. background-color: var(--primary-color);
  486. }
  487. .list-group-item.active {
  488. background-color: var(--primary-color);
  489. border-color: var(--primary-color-dark);
  490. }
  491. .badge {
  492. text-shadow: none;
  493. color: white;
  494. }
  495. .badge-light {
  496. color: var(--text-color);
  497. }
  498. .btn-primary, .button-primary, .badge-primary {
  499. background-color: var(--primary-color);
  500. border-color: transparent;
  501. &:focus, &:hover, &:active {
  502. background-color: var(--primary-color-dark) !important;
  503. border-color: transparent !important;
  504. }
  505. }
  506. .btn--transparent {
  507. background: transparent;
  508. border: none;
  509. }
  510. .btn-circle {
  511. width: 30px;
  512. height: 30px;
  513. text-align: center;
  514. padding: 0.5em 0;
  515. font-size: var(--font-size-small);
  516. line-height: 1.428571429;
  517. border-radius: 50%;
  518. }
  519. .btn {
  520. &.fa {
  521. color: white !important;
  522. }
  523. }
  524. .badge-groupchat {
  525. background-color: var(--chatroom-badge-color);
  526. border-color: transparent;
  527. &:hover {
  528. background-color: var(--chatroom-badge-hover-color);
  529. border-color: transparent;
  530. }
  531. &.active {
  532. background-color: var(--chatroom-badge-hover-color) !important;
  533. border-color: transparent !important;
  534. }
  535. }
  536. .btn-info, .badge-info {
  537. background-color: var(--primary-color);
  538. border-color: var(--primary-color);
  539. &:hover {
  540. background-color: var(--primary-color-dark);
  541. border-color: var(--primary-color-dark);
  542. }
  543. }
  544. .button-cancel,
  545. .btn-secondary, .badge-secondary {
  546. color: white;
  547. background-color: var(--secondary-color);
  548. border-color: var(--secondary-color);
  549. &:hover {
  550. background-color: var(--secondary-color-dark);
  551. border-color: var(--secondary-color-dark);
  552. }
  553. }
  554. .btn-warning {
  555. color: white;
  556. background-color: var(--warning-color);
  557. border-color: var(--warning-color);
  558. &:hover {
  559. color: white;
  560. background-color: var(--warning-color-dark);
  561. border-color: var(--warning-color-dark)
  562. }
  563. }
  564. .btn-danger {
  565. color: white;
  566. background-color: var(--danger-color);
  567. border-color: var(--danger-color) !important;
  568. &:hover {
  569. background-color: var(--danger-color-dark);
  570. border-color: var(--danger-color-dark);
  571. }
  572. }
  573. }
  574. @media screen and (max-width: 575px) {
  575. body {
  576. .converse-brand {
  577. font-size: 3.75em;
  578. }
  579. }
  580. #conversejs:not(.converse-embedded) {
  581. .chatbox {
  582. .chat-body {
  583. border-radius: var(--chatbox-border-radius);
  584. }
  585. }
  586. .flyout {
  587. border-radius: var(--chatbox-border-radius);
  588. }
  589. }
  590. }
  591. @media screen and (min-width: 576px) {
  592. #conversejs .offset-sm-2 {
  593. margin-left: 16.666667%;
  594. }
  595. }
  596. @media screen and (min-width: 768px) {
  597. #conversejs .offset-md-2 {
  598. margin-left: 16.666667%;
  599. }
  600. #conversejs .offset-md-3 {
  601. margin-left: 25%;
  602. }
  603. }
  604. @media screen and (min-width: 992px) {
  605. #conversejs .offset-lg-2 {
  606. margin-left: 16.666667%;
  607. }
  608. #conversejs .offset-lg-3 {
  609. margin-left: 25%;
  610. }
  611. }
  612. @media screen and (min-width: 1200px) {
  613. #conversejs .offset-xl-2 {
  614. margin-left: 16.666667%;
  615. }
  616. }
  617. @media screen and (max-height: 450px) {
  618. #conversejs {
  619. left: 0;
  620. }
  621. }