_core.scss 15 KB

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