_core.scss 15 KB

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