2
0

_core.scss 14 KB

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