_core.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  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. }
  243. .selected {
  244. color: var(--link-color) !important;
  245. }
  246. .circle {
  247. border-radius: 50%;
  248. }
  249. .badge {
  250. line-height: 1;
  251. font-weight: normal;
  252. font-size: 90%;
  253. }
  254. .btn {
  255. font-family: var(--heading-font);
  256. font-weight: normal;
  257. color: #fff;
  258. .fa, .far, .fas {
  259. color: #fff;
  260. margin-right: 0.5em;
  261. }
  262. }
  263. .no-text-select {
  264. -webkit-touch-callout: none;
  265. @include user-select(none);
  266. }
  267. @keyframes colorchange-chatmessage {
  268. 0% {background-color: rgba(141, 216, 174, 1);}
  269. 25% {background-color: rgba(141, 216, 174, 0.75);}
  270. 50% {background-color: rgba(141, 216, 174, 0.5);}
  271. 75% {background-color: rgba(141, 216, 174, 0.25);}
  272. 100% {background-color: transparent;}
  273. }
  274. @-webkit-keyframes colorchange-chatmessage {
  275. 0% {background-color: rgba(141, 216, 174, 1);}
  276. 25% {background-color: rgba(141, 216, 174, 0.75);}
  277. 50% {background-color: rgba(141, 216, 174, 0.5);}
  278. 75% {background-color: rgba(141, 216, 174, 0.25);}
  279. 100% {background-color: transparent;}
  280. }
  281. @keyframes colorchange-chatmessage-muc {
  282. 0% {background-color: rgba(255, 181, 162, 1);}
  283. 25% {background-color: rgba(255, 181, 162, 0.75);}
  284. 50% {background-color: rgba(255, 181, 162, 0.5);}
  285. 75% {background-color: rgba(255, 181, 162, 0.25);}
  286. 100% {background-color: transparent;}
  287. }
  288. @-webkit-keyframes colorchange-chatmessage-muc {
  289. 0% {background-color: rgba(255, 181, 162, 1);}
  290. 25% {background-color: rgba(255, 181, 162, 0.75);}
  291. 50% {background-color: rgba(255, 181, 162, 0.5);}
  292. 75% {background-color: rgba(255, 181, 162, 0.25);}
  293. 100% {background-color: transparent;}
  294. }
  295. @keyframes fadein {
  296. 0% { opacity: 0 }
  297. 100% { opacity: 1 }
  298. }
  299. @-webkit-keyframes fadein {
  300. 0% { opacity: 0 }
  301. 100% { opacity: 1 }
  302. }
  303. @-webkit-keyframes fadeOut {
  304. 0% { opacity: 1; visibility: visible; }
  305. 100% { opacity: 0; visibility: hidden; }
  306. }
  307. @keyframes fadeOut {
  308. 0% { opacity: 1; visibility: visible; }
  309. 100% { opacity: 0; visibility: hidden; }
  310. }
  311. .fade-in {
  312. @include fade-in;
  313. }
  314. .visible {
  315. opacity:0; /* make things invisible upon start */
  316. @include animation-name(fadein);
  317. @include animation-fill-mode(forwards);
  318. @include animation-duration(500ms);
  319. @include animation-timing-function(ease);
  320. }
  321. .hidden {
  322. opacity: 0 !important;
  323. display: none !important;
  324. }
  325. .fade-out {
  326. animation-duration: 1s;
  327. animation-fill-mode: forwards;
  328. animation-name: fadeOut;
  329. animation-timing-function: ease-in-out;
  330. }
  331. .collapsed {
  332. height: 0 !important;
  333. overflow: hidden !important;
  334. padding: 0 !important;
  335. }
  336. .locked {
  337. padding-right: 22px;
  338. }
  339. @include keyframes(spin) {
  340. from {
  341. @include transform(rotate(0deg));
  342. }
  343. to {
  344. @include transform(rotate(359deg));
  345. }
  346. }
  347. .spinner {
  348. @include animation(spin 2s infinite, linear);
  349. display: block;
  350. text-align: center;
  351. margin: 2em;
  352. font-size: 24px;
  353. }
  354. .left {
  355. float: left;
  356. }
  357. .right {
  358. float: right;
  359. }
  360. .centered {
  361. text-align: center;
  362. display: block;
  363. margin: auto;
  364. }
  365. .hor_centered {
  366. text-align: center;
  367. display: block;
  368. margin: 0 auto;
  369. clear: both;
  370. }
  371. .error {
  372. color: var(--error-color);
  373. }
  374. .info {
  375. color: var(--info-color);
  376. }
  377. .reg-feedback {
  378. font-size: 85%;
  379. margin-bottom: 1em;
  380. }
  381. .reg-feedback,
  382. #converse-login .conn-feedback {
  383. display: block;
  384. text-align: center;
  385. width: 100%;
  386. }
  387. .avatar {
  388. border-radius: 10%;
  389. border: 1px solid lightgrey;
  390. background: white;
  391. }
  392. .activated {
  393. display: block !important;
  394. }
  395. .btn-primary, .button-primary, .badge-primary {
  396. color: white;
  397. background-color: var(--primary-color);
  398. }
  399. .btn-info, .badge-info {
  400. color: white;
  401. background-color: var(--link-color);
  402. }
  403. .btn-secondary, .badge-secondary {
  404. color: white;
  405. background-color: var(--secondary-color);
  406. }
  407. .button-cancel {
  408. color: white;
  409. background-color: var(--text-color);
  410. }
  411. .btn-warning {
  412. color: white;
  413. background-color: var(--warning-color);
  414. }
  415. .chat-textarea-chatbox-selected {
  416. border: 1px solid #578308;
  417. margin: 0;
  418. }
  419. .chat-textarea-chatroom-selected {
  420. border: 2px solid var(--link-color);
  421. margin: 0;
  422. }
  423. }
  424. @media screen and (max-width: 575px) {
  425. body {
  426. .converse-brand {
  427. font-size: 3.75em;
  428. }
  429. }
  430. #conversejs:not(.converse-embedded) {
  431. .chatbox {
  432. .chat-body {
  433. border-radius: var(--chatbox-border-radius);
  434. }
  435. }
  436. .flyout {
  437. border-radius: var(--chatbox-border-radius);
  438. }
  439. }
  440. }
  441. @media screen and (min-width: 576px) {
  442. #conversejs .offset-sm-2 {
  443. margin-left: 16.666667%;
  444. }
  445. }
  446. @media screen and (min-width: 768px) {
  447. #conversejs .offset-md-2 {
  448. margin-left: 16.666667%;
  449. }
  450. #conversejs .offset-md-3 {
  451. margin-left: 25%;
  452. }
  453. }
  454. @media screen and (min-width: 992px) {
  455. #conversejs .offset-lg-2 {
  456. margin-left: 16.666667%;
  457. }
  458. #conversejs .offset-lg-3 {
  459. margin-left: 25%;
  460. }
  461. }
  462. @media screen and (min-width: 1200px) {
  463. #conversejs .offset-xl-2 {
  464. margin-left: 16.666667%;
  465. }
  466. }
  467. @media screen and (max-height: 450px) {
  468. #conversejs {
  469. left: 0;
  470. }
  471. }