_core.scss 15 KB

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