_core.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  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.reset {
  9. margin: 0;
  10. }
  11. @font-face {
  12. font-family: 'Converse-js';
  13. src: url($font-path + 'icomoon.eot?wvi0ht');
  14. src: url($font-path + 'icomoon.eot?wvi0ht#iefix') format('embedded-opentype'),
  15. url($font-path + 'icomoon.ttf?wvi0ht') format('truetype'),
  16. url($font-path + 'icomoon.woff?wvi0ht') format('woff'),
  17. url($font-path + 'icomoon.svg?wvi0ht#icomoon') format('svg');
  18. font-weight: normal;
  19. font-style: normal;
  20. }
  21. .icon-conversejs {
  22. padding-right: 0.5em;
  23. font-family: 'Converse-js';
  24. font-size: 80%;
  25. speak: none;
  26. font-style: normal;
  27. font-weight: normal;
  28. font-variant: normal;
  29. text-transform: none;
  30. line-height: 1;
  31. /* Better Font Rendering =========== */
  32. -webkit-font-smoothing: antialiased;
  33. -moz-osx-font-smoothing: grayscale;
  34. }
  35. .icon-conversejs:before {
  36. content: "\e600";
  37. }
  38. .converse-brand {
  39. display: flex;
  40. justify-content: space-between;
  41. @include animation-name(fadein);
  42. @include animation-fill-mode(forwards);
  43. @include animation-duration(750ms);
  44. @include animation-timing-function(ease);
  45. }
  46. .converse-brand__padding {
  47. @include make-col-ready();
  48. @include media-breakpoint-up(md) {
  49. @include make-col(4);
  50. }
  51. @include media-breakpoint-up(lg) {
  52. @include make-col(3);
  53. }
  54. @include media-breakpoint-up(xl) {
  55. @include make-col(2);
  56. }
  57. padding: 0;
  58. }
  59. .converse-brand__heading {
  60. @include make-col-ready();
  61. @include media-breakpoint-up(md) {
  62. font-size: 4em;
  63. @include make-col(8);
  64. }
  65. @include media-breakpoint-up(lg) {
  66. font-size: 5em;
  67. @include make-col(9);
  68. }
  69. @include media-breakpoint-up(xl) {
  70. font-size: 6em;
  71. @include make-col(10);
  72. }
  73. padding: 0;
  74. }
  75. .converse-brand__text {
  76. font-family: var(--heading-font);
  77. font-weight: normal;
  78. width: 50%;
  79. margin: auto;
  80. margin-top: 10%;
  81. text-align: center;
  82. .icon-conversejs {
  83. font-size: 60%;
  84. }
  85. }
  86. .converse-brand__byline {
  87. font-size: var(--font-size-small);
  88. width: 50%;
  89. margin: auto;
  90. text-align: center;
  91. a {
  92. text-decoration: none;
  93. color: var(--chatroom-head-color-lighten-25-percent);
  94. }
  95. }
  96. #conversejs {
  97. bottom: 0;
  98. height: 100%;
  99. position: fixed;
  100. padding-left: env(safe-area-inset-left);
  101. padding-right: env(safe-area-inset-right);
  102. color: var(--text-color);
  103. font-family: "Helvetica", "Arial", sans-serif;
  104. font-size: var(--font-size);
  105. direction: ltr;
  106. z-index: 1031; // One more than bootstrap navbar
  107. .nopadding {
  108. padding: 0 !important;
  109. }
  110. &.converse-overlayed {
  111. > .row {
  112. flex-direction: row-reverse;
  113. }
  114. }
  115. &.converse-fullscreen,
  116. &.converse-mobile {
  117. .converse-chatboxes {
  118. width: 100vw;
  119. left: -15px; // Hack due to padding added by bootstrap
  120. }
  121. }
  122. &.converse-overlayed {
  123. height: 3em;
  124. }
  125. .brand-heading {
  126. font-family: var(--heading-font);
  127. .icon-conversejs {
  128. font-size: 80%;
  129. }
  130. }
  131. .popover {
  132. position: fixed;
  133. }
  134. .converse-chatboxes {
  135. z-index: 1031; // One more than bootstrap navbar
  136. position: fixed;
  137. bottom: 0;
  138. right: 0;
  139. }
  140. ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  141. color: var(--subdued-color);
  142. }
  143. ::-moz-placeholder { /* Firefox 19+ */
  144. color: var(--subdued-color);
  145. }
  146. :-ms-input-placeholder { /* IE 10+ */
  147. color: var(--subdued-color);
  148. }
  149. :-moz-placeholder { /* Firefox 18- */
  150. color: var(--subdued-color);
  151. }
  152. ::placeholder {
  153. color: var(--subdued-color);
  154. }
  155. ::selection {
  156. background-color: var(--highlight-color);
  157. }
  158. ::-moz-selection {
  159. background-color: var(--highlight-color);
  160. }
  161. @media screen and (max-width: $mobile-portrait-length) {
  162. margin: 0;
  163. right: 10px;
  164. left: 10px;
  165. bottom: 5px;
  166. }
  167. @media screen and (max-height: $mobile-landscape-height) {
  168. margin: 0;
  169. right: 10px;
  170. left: 10px;
  171. bottom: 5px;
  172. }
  173. ul li { height: auto; }
  174. div, span, h1, h2, h3, h4, h5, h6, p, blockquote,
  175. pre, a, em, img, strong, dl, dt, dd, ol, ul, li,
  176. fieldset, form, legend, table, caption, tbody,
  177. tfoot, thead, tr, th, td, article, aside, canvas, details,
  178. embed, figure, figcaption, footer, header, hgroup, menu,
  179. nav, output, ruby, section, summary, time, mark, audio, video {
  180. margin: 0;
  181. padding: 0;
  182. border: 0;
  183. font: inherit;
  184. vertical-align: baseline;
  185. }
  186. textarea,
  187. input[type=submit], input[type=button],
  188. input[type=text], input[type=password],
  189. button {
  190. font-size: var(--font-size);
  191. padding: 0.25em;
  192. min-height: 0;
  193. }
  194. strong {
  195. font-weight: 700;
  196. }
  197. em {
  198. font-style: italic;
  199. }
  200. ol, ul {
  201. list-style: none;
  202. }
  203. li {
  204. height: 10px;
  205. }
  206. ul, ol, dl {
  207. font: inherit;
  208. margin: 0;
  209. }
  210. a, a:visited, a:not([href]):not([tabindex]) {
  211. text-decoration: none;
  212. color: var(--link-color);
  213. text-shadow: none;
  214. &:hover {
  215. color: var(--link-color-darken-20-percent);
  216. text-decoration: none;
  217. text-shadow: none;
  218. }
  219. &.fa, &.far, &.fas {
  220. color: var(--subdued-color);
  221. &:hover {
  222. color: var(--gray-color);
  223. }
  224. }
  225. }
  226. canvas {
  227. border-radius: var(--chatbox-border-radius);
  228. }
  229. .fa, .far, .fas {
  230. color: var(--subdued-color);
  231. }
  232. .fa:hover, .far:hover, .fas:hover {
  233. color: var(--gray-color);
  234. }
  235. .modal {
  236. background-color: rgba(0, 0, 0, 0.4);
  237. .modal-body {
  238. p {
  239. padding: 0.25rem 0;
  240. }
  241. }
  242. .modal-footer {
  243. justify-content: flex-start;
  244. }
  245. }
  246. .selected {
  247. color: var(--link-color) !important;
  248. }
  249. .circle {
  250. border-radius: 50%;
  251. }
  252. .badge {
  253. line-height: 1;
  254. font-weight: normal;
  255. font-size: 90%;
  256. }
  257. .btn {
  258. font-family: var(--heading-font);
  259. font-weight: normal;
  260. color: #fff;
  261. .fa, .far, .fas {
  262. color: #fff;
  263. margin-right: 0.5em;
  264. }
  265. }
  266. .no-text-select {
  267. -webkit-touch-callout: none;
  268. @include user-select(none);
  269. }
  270. @keyframes colorchange-chatmessage {
  271. 0% {background-color: rgba(141, 216, 174, 1);}
  272. 25% {background-color: rgba(141, 216, 174, 0.75);}
  273. 50% {background-color: rgba(141, 216, 174, 0.5);}
  274. 75% {background-color: rgba(141, 216, 174, 0.25);}
  275. 100% {background-color: transparent;}
  276. }
  277. @-webkit-keyframes colorchange-chatmessage {
  278. 0% {background-color: rgba(141, 216, 174, 1);}
  279. 25% {background-color: rgba(141, 216, 174, 0.75);}
  280. 50% {background-color: rgba(141, 216, 174, 0.5);}
  281. 75% {background-color: rgba(141, 216, 174, 0.25);}
  282. 100% {background-color: transparent;}
  283. }
  284. @keyframes colorchange-chatmessage-muc {
  285. 0% {background-color: rgba(255, 181, 162, 1);}
  286. 25% {background-color: rgba(255, 181, 162, 0.75);}
  287. 50% {background-color: rgba(255, 181, 162, 0.5);}
  288. 75% {background-color: rgba(255, 181, 162, 0.25);}
  289. 100% {background-color: transparent;}
  290. }
  291. @-webkit-keyframes colorchange-chatmessage-muc {
  292. 0% {background-color: rgba(255, 181, 162, 1);}
  293. 25% {background-color: rgba(255, 181, 162, 0.75);}
  294. 50% {background-color: rgba(255, 181, 162, 0.5);}
  295. 75% {background-color: rgba(255, 181, 162, 0.25);}
  296. 100% {background-color: transparent;}
  297. }
  298. @keyframes fadein {
  299. 0% { opacity: 0 }
  300. 100% { opacity: 1 }
  301. }
  302. @-webkit-keyframes fadein {
  303. 0% { opacity: 0 }
  304. 100% { opacity: 1 }
  305. }
  306. @-webkit-keyframes fadeOut {
  307. 0% { opacity: 1; visibility: visible; }
  308. 100% { opacity: 0; visibility: hidden; }
  309. }
  310. @keyframes fadeOut {
  311. 0% { opacity: 1; visibility: visible; }
  312. 100% { opacity: 0; visibility: hidden; }
  313. }
  314. .fade-in {
  315. @include fade-in;
  316. }
  317. .visible {
  318. opacity:0; /* make things invisible upon start */
  319. @include animation-name(fadein);
  320. @include animation-fill-mode(forwards);
  321. @include animation-duration(500ms);
  322. @include animation-timing-function(ease);
  323. }
  324. .hidden {
  325. opacity: 0 !important;
  326. display: none !important;
  327. }
  328. .fade-out {
  329. animation-duration: 1s;
  330. animation-fill-mode: forwards;
  331. animation-name: fadeOut;
  332. animation-timing-function: ease-in-out;
  333. }
  334. .collapsed {
  335. height: 0 !important;
  336. overflow: hidden !important;
  337. padding: 0 !important;
  338. }
  339. .locked {
  340. padding-right: 22px;
  341. }
  342. @include keyframes(spin) {
  343. from {
  344. @include transform(rotate(0deg));
  345. }
  346. to {
  347. @include transform(rotate(359deg));
  348. }
  349. }
  350. .spinner {
  351. @include animation(spin 2s infinite, linear);
  352. width: 1em;
  353. display: block;
  354. text-align: center;
  355. margin: 2em;
  356. font-size: 24px;
  357. }
  358. .left {
  359. float: left;
  360. }
  361. .right {
  362. float: right;
  363. }
  364. .centered {
  365. text-align: center;
  366. display: block;
  367. margin: auto;
  368. }
  369. .hor_centered {
  370. text-align: center;
  371. display: block;
  372. margin: 0 auto;
  373. clear: both;
  374. }
  375. .error {
  376. color: var(--error-color);
  377. }
  378. .info {
  379. color: var(--info-color);
  380. }
  381. .reg-feedback {
  382. font-size: 85%;
  383. margin-bottom: 1em;
  384. }
  385. .reg-feedback,
  386. #converse-login .conn-feedback {
  387. display: block;
  388. text-align: center;
  389. width: 100%;
  390. }
  391. .avatar {
  392. border-radius: 10%;
  393. border: 1px solid lightgrey;
  394. background: white;
  395. }
  396. .activated {
  397. display: block !important;
  398. }
  399. .nav-pills .nav-link.active,
  400. .nav-pills .show > .nav-link {
  401. background-color: var(--primary-color);
  402. }
  403. .list-group-item.active {
  404. background-color: var(--primary-color);
  405. border-color: var(--primary-color-dark);
  406. }
  407. .btn-primary, .button-primary, .badge-primary {
  408. color: white;
  409. background-color: var(--primary-color);
  410. border-color: transparent;
  411. &:hover {
  412. background-color: var(--primary-color-dark);
  413. border-color: transparent;
  414. }
  415. &.active {
  416. background-color: var(--primary-color-dark) !important;
  417. border-color: transparent !important;
  418. }
  419. }
  420. .btn-info, .badge-info {
  421. color: white;
  422. background-color: var(--primary-color);
  423. border-color: var(--primary-color);
  424. &:hover {
  425. background-color: var(--primary-color-dark);
  426. border-color: var(--primary-color-dark);
  427. }
  428. }
  429. .button-cancel,
  430. .btn-secondary, .badge-secondary {
  431. color: white;
  432. background-color: var(--secondary-color);
  433. border-color: var(--secondary-color);
  434. &:hover {
  435. background-color: var(--secondary-color-dark);
  436. border-color: var(--secondary-color-dark);
  437. }
  438. }
  439. .btn-warning {
  440. color: white;
  441. background-color: var(--warning-color);
  442. border-color: var(--warning-color);
  443. &:hover {
  444. color: white;
  445. background-color: var(--warning-color-dark);
  446. border-color: var(--warning-color-dark)
  447. }
  448. }
  449. .btn-danger {
  450. color: white;
  451. background-color: var(--danger-color);
  452. border-color: var(--danger-color) !important;
  453. &:hover {
  454. background-color: var(--danger-color-dark);
  455. border-color: var(--danger-color-dark);
  456. }
  457. }
  458. .chat-textarea-chatbox-selected {
  459. border: 1px solid #578308;
  460. margin: 0;
  461. }
  462. .chat-textarea-chatroom-selected {
  463. border: 2px solid var(--link-color);
  464. margin: 0;
  465. }
  466. }
  467. @media screen and (max-width: 575px) {
  468. body {
  469. .converse-brand {
  470. font-size: 3.75em;
  471. }
  472. }
  473. #conversejs:not(.converse-embedded) {
  474. .chatbox {
  475. .chat-body {
  476. border-radius: var(--chatbox-border-radius);
  477. }
  478. }
  479. .flyout {
  480. border-radius: var(--chatbox-border-radius);
  481. }
  482. }
  483. }
  484. @media screen and (min-width: 576px) {
  485. #conversejs .offset-sm-2 {
  486. margin-left: 16.666667%;
  487. }
  488. }
  489. @media screen and (min-width: 768px) {
  490. #conversejs .offset-md-2 {
  491. margin-left: 16.666667%;
  492. }
  493. #conversejs .offset-md-3 {
  494. margin-left: 25%;
  495. }
  496. }
  497. @media screen and (min-width: 992px) {
  498. #conversejs .offset-lg-2 {
  499. margin-left: 16.666667%;
  500. }
  501. #conversejs .offset-lg-3 {
  502. margin-left: 25%;
  503. }
  504. }
  505. @media screen and (min-width: 1200px) {
  506. #conversejs .offset-xl-2 {
  507. margin-left: 16.666667%;
  508. }
  509. }
  510. @media screen and (max-height: 450px) {
  511. #conversejs {
  512. left: 0;
  513. }
  514. }