2
0

_core.scss 16 KB

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