2
0

_core.scss 15 KB

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