_core.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  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: $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: $font-size-small;
  88. width: 50%;
  89. margin: auto;
  90. text-align: center;
  91. a {
  92. text-decoration: none;
  93. color: lighten($chatroom-head-color, 25%);
  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: $text-color;
  103. font-family: "Helvetica", "Arial", sans-serif;
  104. font-size: $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: $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: $subdued-color;
  142. }
  143. ::-moz-placeholder { /* Firefox 19+ */
  144. color: $subdued-color;
  145. }
  146. :-ms-input-placeholder { /* IE 10+ */
  147. color: $subdued-color;
  148. }
  149. :-moz-placeholder { /* Firefox 18- */
  150. color: $subdued-color;
  151. }
  152. ::placeholder {
  153. color: $subdued-color;
  154. }
  155. ::selection {
  156. background-color: $highlight-color;
  157. }
  158. ::-moz-selection {
  159. background-color: $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: $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: $link-color;
  213. text-shadow: none;
  214. &:hover {
  215. color: darken($link-color, 20%);
  216. text-decoration: none;
  217. text-shadow: none;
  218. }
  219. &.fa, &.far, &.fas {
  220. color: $subdued-color;
  221. &:hover {
  222. color: $gray-color;
  223. }
  224. }
  225. }
  226. canvas {
  227. border-radius: $chatbox-border-radius;
  228. }
  229. .fa, .far, .fas {
  230. color: $subdued-color;
  231. }
  232. .fa:hover, .far:hover, .fas:hover {
  233. color: $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: $link-color !important;
  245. }
  246. .circle {
  247. border-radius: 50%;
  248. }
  249. .sidebar {
  250. display: none;
  251. width: 50px;
  252. height: 100vh;
  253. padding: 1rem 0;
  254. background-color: $controlbox-head-color;
  255. color: white;
  256. text-align: center;
  257. .chatbox-btn {
  258. float: none;
  259. margin: 0;
  260. font-size: 1.35em;
  261. &.fa-vcard {
  262. margin-top: 1em;
  263. }
  264. }
  265. .bottom {
  266. position: absolute;
  267. bottom: 1em;
  268. }
  269. }
  270. .badge {
  271. line-height: 1;
  272. font-weight: normal;
  273. font-size: 90%;
  274. }
  275. .btn {
  276. font-family: $heading-font;
  277. font-weight: normal;
  278. color: #fff;
  279. .fa, .far, .fas {
  280. color: #fff;
  281. margin-right: 0.5em;
  282. }
  283. }
  284. .no-text-select {
  285. -webkit-touch-callout: none;
  286. @include user-select(none);
  287. }
  288. @keyframes colorchange-chatmessage {
  289. 0% {background-color: rgba(141, 216, 174, 1);}
  290. 25% {background-color: rgba(141, 216, 174, 0.75);}
  291. 50% {background-color: rgba(141, 216, 174, 0.5);}
  292. 75% {background-color: rgba(141, 216, 174, 0.25);}
  293. 100% {background-color: transparent;}
  294. }
  295. @-webkit-keyframes colorchange-chatmessage {
  296. 0% {background-color: rgba(141, 216, 174, 1);}
  297. 25% {background-color: rgba(141, 216, 174, 0.75);}
  298. 50% {background-color: rgba(141, 216, 174, 0.5);}
  299. 75% {background-color: rgba(141, 216, 174, 0.25);}
  300. 100% {background-color: transparent;}
  301. }
  302. @keyframes colorchange-chatmessage-muc {
  303. 0% {background-color: rgba(255, 181, 162, 1);}
  304. 25% {background-color: rgba(255, 181, 162, 0.75);}
  305. 50% {background-color: rgba(255, 181, 162, 0.5);}
  306. 75% {background-color: rgba(255, 181, 162, 0.25);}
  307. 100% {background-color: transparent;}
  308. }
  309. @-webkit-keyframes colorchange-chatmessage-muc {
  310. 0% {background-color: rgba(255, 181, 162, 1);}
  311. 25% {background-color: rgba(255, 181, 162, 0.75);}
  312. 50% {background-color: rgba(255, 181, 162, 0.5);}
  313. 75% {background-color: rgba(255, 181, 162, 0.25);}
  314. 100% {background-color: transparent;}
  315. }
  316. @keyframes fadein {
  317. 0% { opacity: 0 }
  318. 100% { opacity: 1 }
  319. }
  320. @-webkit-keyframes fadein {
  321. 0% { opacity: 0 }
  322. 100% { opacity: 1 }
  323. }
  324. @-webkit-keyframes fadeOut {
  325. 0% { opacity: 1; visibility: visible; }
  326. 100% { opacity: 0; visibility: hidden; }
  327. }
  328. @keyframes fadeOut {
  329. 0% { opacity: 1; visibility: visible; }
  330. 100% { opacity: 0; visibility: hidden; }
  331. }
  332. .fade-in {
  333. @include fade-in;
  334. }
  335. .visible {
  336. opacity:0; /* make things invisible upon start */
  337. @include animation-name(fadein);
  338. @include animation-fill-mode(forwards);
  339. @include animation-duration(500ms);
  340. @include animation-timing-function(ease);
  341. }
  342. .hidden {
  343. opacity: 0 !important;
  344. display: none !important;
  345. }
  346. .fade-out {
  347. animation-duration: 1s;
  348. animation-fill-mode: forwards;
  349. animation-name: fadeOut;
  350. animation-timing-function: ease-in-out;
  351. }
  352. .collapsed {
  353. height: 0 !important;
  354. overflow: hidden !important;
  355. padding: 0 !important;
  356. }
  357. .locked {
  358. padding-right: 22px;
  359. }
  360. @include keyframes(spin) {
  361. from {
  362. @include transform(rotate(0deg));
  363. }
  364. to {
  365. @include transform(rotate(359deg));
  366. }
  367. }
  368. .spinner {
  369. @include animation(spin 2s infinite, linear);
  370. display: block;
  371. text-align: center;
  372. margin: 2em;
  373. font-size: 24px;
  374. }
  375. .left {
  376. float: left;
  377. }
  378. .right {
  379. float: right;
  380. }
  381. .centered {
  382. text-align: center;
  383. display: block;
  384. margin: auto;
  385. }
  386. .hor_centered {
  387. text-align: center;
  388. display: block;
  389. margin: 0 auto;
  390. clear: both;
  391. }
  392. .error {
  393. color: $error-color;
  394. }
  395. .info {
  396. color: $info-color;
  397. }
  398. .reg-feedback {
  399. font-size: 85%;
  400. margin-bottom: 1em;
  401. }
  402. .reg-feedback,
  403. #converse-login .conn-feedback {
  404. display: block;
  405. text-align: center;
  406. width: 100%;
  407. }
  408. .avatar {
  409. border-radius: 10%;
  410. border: 1px solid lightgrey;
  411. background: white;
  412. }
  413. .activated {
  414. display: block !important;
  415. }
  416. .button-primary {
  417. color: white;
  418. background-color: $primary-color;
  419. }
  420. .button-secondary {
  421. color: white;
  422. background-color: $secondary-color;
  423. }
  424. .button-cancel {
  425. color: white;
  426. background-color: $text-color;
  427. }
  428. .chat-textarea-chatbox-selected {
  429. border: 1px solid #578308;
  430. margin: 0;
  431. }
  432. .chat-textarea-chatroom-selected {
  433. border: 2px solid $link-color;
  434. margin: 0;
  435. }
  436. }
  437. @media screen and (max-width: 575px) {
  438. body {
  439. .converse-brand {
  440. font-size: 3.75em;
  441. }
  442. }
  443. #conversejs:not(.converse-embedded) {
  444. .chatbox {
  445. .chat-body {
  446. border-radius: $chatbox-border-radius;
  447. }
  448. }
  449. .flyout {
  450. border-radius: $chatbox-border-radius;
  451. }
  452. }
  453. }
  454. @media screen and (min-width: 576px) {
  455. #conversejs .offset-sm-2 {
  456. margin-left: 16.666667%;
  457. }
  458. }
  459. @media screen and (min-width: 768px) {
  460. #conversejs .offset-md-2 {
  461. margin-left: 16.666667%;
  462. }
  463. #conversejs .offset-md-3 {
  464. margin-left: 25%;
  465. }
  466. }
  467. @media screen and (min-width: 992px) {
  468. #conversejs .offset-lg-2 {
  469. margin-left: 16.666667%;
  470. }
  471. #conversejs .offset-lg-3 {
  472. margin-left: 25%;
  473. }
  474. }
  475. @media screen and (min-width: 1200px) {
  476. #conversejs .offset-xl-2 {
  477. margin-left: 16.666667%;
  478. }
  479. }
  480. @media screen and (max-height: 450px) {
  481. #conversejs {
  482. left: 0;
  483. }
  484. }