2
0

_core.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466
  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-heading {
  39. font-family: $heading-font;
  40. font-size: 6em;
  41. font-weight: normal;
  42. .icon-conversejs {
  43. font-size: 60%;
  44. }
  45. }
  46. #conversejs {
  47. bottom: 0;
  48. height: 100%;
  49. position: fixed;
  50. padding-left: env(safe-area-inset-left);
  51. padding-right: env(safe-area-inset-right);
  52. color: $text-color;
  53. font-family: "Helvetica", "Arial", sans-serif;
  54. font-size: $font-size;
  55. direction: ltr;
  56. z-index: 1031; // One more than bootstrap navbar
  57. &.converse-overlayed {
  58. > .row {
  59. flex-direction: row-reverse;
  60. }
  61. }
  62. &.converse-fullscreen {
  63. .converse-chatboxes {
  64. width: 100vw;
  65. right: 15px; // Hack due to padding added by bootstrap
  66. }
  67. }
  68. .brand-heading {
  69. font-family: $heading-font;
  70. .icon-conversejs {
  71. font-size: 80%;
  72. }
  73. }
  74. .popover {
  75. position: fixed;
  76. }
  77. .converse-chatboxes {
  78. z-index: 1031; // One more than bootstrap navbar
  79. position: fixed;
  80. bottom: 0;
  81. height: 3em;
  82. right: 0;
  83. }
  84. ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  85. color: $subdued-color;
  86. }
  87. ::-moz-placeholder { /* Firefox 19+ */
  88. color: $subdued-color;
  89. }
  90. :-ms-input-placeholder { /* IE 10+ */
  91. color: $subdued-color;
  92. }
  93. :-moz-placeholder { /* Firefox 18- */
  94. color: $subdued-color;
  95. }
  96. ::placeholder {
  97. color: $subdued-color;
  98. }
  99. ::selection {
  100. background-color: $highlight-color;
  101. }
  102. ::-moz-selection {
  103. background-color: $highlight-color;
  104. }
  105. @media screen and (max-width: $mobile-portrait-length) {
  106. margin: 0;
  107. right: 10px;
  108. left: 10px;
  109. bottom: 5px;
  110. }
  111. @media screen and (max-height: $mobile-landscape-height) {
  112. margin: 0;
  113. right: 10px;
  114. left: 10px;
  115. bottom: 5px;
  116. }
  117. ul li { height: auto; }
  118. div, span, h1, h2, h3, h4, h5, h6, p, blockquote,
  119. pre, a, em, img, strong, dl, dt, dd, ol, ul, li,
  120. fieldset, form, legend, table, caption, tbody,
  121. tfoot, thead, tr, th, td, article, aside, canvas, details,
  122. embed, figure, figcaption, footer, header, hgroup, menu,
  123. nav, output, ruby, section, summary, time, mark, audio, video {
  124. margin: 0;
  125. padding: 0;
  126. border: 0;
  127. font: inherit;
  128. vertical-align: baseline;
  129. }
  130. textarea,
  131. input[type=submit], input[type=button],
  132. input[type=text], input[type=password],
  133. button {
  134. font-size: $font-size;
  135. padding: 0.25em;
  136. min-height: 0;
  137. }
  138. strong {
  139. font-weight: 700;
  140. }
  141. ol, ul {
  142. list-style: none;
  143. }
  144. li {
  145. height: 10px;
  146. }
  147. ul, ol, dl {
  148. font: inherit;
  149. margin: 0;
  150. }
  151. a, a:visited, a:hover, a:not([href]):not([tabindex]) {
  152. text-decoration: none;
  153. color: $link-color;
  154. text-shadow: none;
  155. &.fa {
  156. color: $subdued-color;
  157. &:hover {
  158. color: $gray-color;
  159. }
  160. }
  161. }
  162. canvas {
  163. border-radius: $chatbox-border-radius;
  164. }
  165. .fa {
  166. color: $subdued-color;
  167. }
  168. .fa:hover {
  169. color: $gray-color;
  170. }
  171. .modal {
  172. background-color: rgba(0, 0, 0, 0.4);
  173. .modal-body {
  174. p {
  175. padding: 0.25rem 0;
  176. }
  177. }
  178. }
  179. .selected {
  180. color: $link-color !important;
  181. }
  182. .circle {
  183. border-radius: 50%;
  184. }
  185. .sidebar {
  186. display: none;
  187. width: 50px;
  188. height: 100vh;
  189. padding: 1rem 0;
  190. background-color: $controlbox-head-color;
  191. color: white;
  192. text-align: center;
  193. .chatbox-btn {
  194. float: none;
  195. margin: 0;
  196. font-size: 1.35em;
  197. &.fa-vcard {
  198. margin-top: 1em;
  199. }
  200. }
  201. .bottom {
  202. position: absolute;
  203. bottom: 1em;
  204. }
  205. }
  206. .badge {
  207. line-height: 1;
  208. font-weight: normal;
  209. font-size: 90%;
  210. }
  211. .fa {
  212. font: normal normal normal 14px/1 ConverseFontAwesome;
  213. display: inline-block;
  214. font-size: inherit;
  215. text-rendering: auto;
  216. -webkit-font-smoothing: antialiased;
  217. -moz-osx-font-smoothing: grayscale;
  218. }
  219. .btn {
  220. font-family: $heading-font;
  221. font-weight: normal;
  222. color: #fff;
  223. .fa {
  224. color: #fff;
  225. margin-right: 0.5em;
  226. }
  227. }
  228. .no-text-select {
  229. -webkit-touch-callout: none;
  230. @include user-select(none);
  231. }
  232. @keyframes colorchange-chatmessage {
  233. 0% {background-color: rgba(141, 216, 174, 1);}
  234. 25% {background-color: rgba(141, 216, 174, 0.75);}
  235. 50% {background-color: rgba(141, 216, 174, 0.5);}
  236. 75% {background-color: rgba(141, 216, 174, 0.25);}
  237. 100% {background-color: transparent;}
  238. }
  239. @-webkit-keyframes colorchange-chatmessage {
  240. 0% {background-color: rgba(141, 216, 174, 1);}
  241. 25% {background-color: rgba(141, 216, 174, 0.75);}
  242. 50% {background-color: rgba(141, 216, 174, 0.5);}
  243. 75% {background-color: rgba(141, 216, 174, 0.25);}
  244. 100% {background-color: transparent;}
  245. }
  246. @keyframes colorchange-chatmessage-muc {
  247. 0% {background-color: rgba(255, 181, 162, 1);}
  248. 25% {background-color: rgba(255, 181, 162, 0.75);}
  249. 50% {background-color: rgba(255, 181, 162, 0.5);}
  250. 75% {background-color: rgba(255, 181, 162, 0.25);}
  251. 100% {background-color: transparent;}
  252. }
  253. @-webkit-keyframes colorchange-chatmessage-muc {
  254. 0% {background-color: rgba(255, 181, 162, 1);}
  255. 25% {background-color: rgba(255, 181, 162, 0.75);}
  256. 50% {background-color: rgba(255, 181, 162, 0.5);}
  257. 75% {background-color: rgba(255, 181, 162, 0.25);}
  258. 100% {background-color: transparent;}
  259. }
  260. @keyframes fadein {
  261. 0% { opacity: 0 }
  262. 100% { opacity: 1 }
  263. }
  264. @-webkit-keyframes fadein {
  265. 0% { opacity: 0 }
  266. 100% { opacity: 1 }
  267. }
  268. .fade-in {
  269. @include fade-in;
  270. }
  271. .visible {
  272. opacity:0; /* make things invisible upon start */
  273. @include animation-name(fadein);
  274. @include animation-fill-mode(forwards);
  275. @include animation-duration(500ms);
  276. @include animation-timing-function(ease);
  277. }
  278. .hidden {
  279. opacity: 0 !important;
  280. display: none !important;
  281. }
  282. .collapsed {
  283. height: 0 !important;
  284. overflow: hidden !important;
  285. padding: 0 !important;
  286. }
  287. .locked {
  288. padding-right: 22px;
  289. }
  290. @include keyframes(spin) {
  291. from {
  292. @include transform(rotate(0deg));
  293. }
  294. to {
  295. @include transform(rotate(359deg));
  296. }
  297. }
  298. .spinner {
  299. @include animation(spin 2s infinite, linear);
  300. display: block;
  301. text-align: center;
  302. margin: 2em;
  303. font-size: 24px;
  304. }
  305. .left {
  306. float: left;
  307. }
  308. .right {
  309. float: right;
  310. }
  311. .centered {
  312. text-align: center;
  313. display: block;
  314. margin: auto;
  315. }
  316. .hor_centered {
  317. text-align: center;
  318. display: block;
  319. margin: 0 auto;
  320. clear: both;
  321. }
  322. .error {
  323. color: $error-color;
  324. }
  325. .info {
  326. color: $info-color;
  327. }
  328. .reg-feedback {
  329. font-size: 85%;
  330. margin-bottom: 1em;
  331. }
  332. .reg-feedback,
  333. #converse-login .conn-feedback {
  334. display: block;
  335. text-align: center;
  336. width: 100%;
  337. }
  338. .avatar {
  339. border-radius: 10%;
  340. border: 1px solid lightgrey;
  341. }
  342. .activated {
  343. display: block !important;
  344. }
  345. .button-primary {
  346. color: white;
  347. background-color: $primary-color;
  348. }
  349. .button-secondary {
  350. color: white;
  351. background-color: $secondary-color;
  352. }
  353. .button-cancel {
  354. color: white;
  355. background-color: $text-color;
  356. }
  357. .chat-textarea-chatbox-selected {
  358. border: 1px solid #578308;
  359. margin: 0;
  360. }
  361. .chat-textarea-chatroom-selected {
  362. border: 2px solid $link-color;
  363. margin: 0;
  364. }
  365. }
  366. @media screen and (max-width: 575px) {
  367. body {
  368. .converse-brand-heading {
  369. font-size: 3.75em;
  370. }
  371. }
  372. #conversejs:not(.converse-embedded) {
  373. .chatbox {
  374. .chat-body {
  375. border-radius: $chatbox-border-radius;
  376. }
  377. }
  378. .flyout {
  379. border-radius: $chatbox-border-radius;
  380. }
  381. }
  382. }
  383. @media screen and (min-width: 576px) {
  384. #conversejs .offset-sm-2 {
  385. margin-left: 16.666667%;
  386. }
  387. }
  388. @media screen and (min-width: 768px) {
  389. #conversejs .offset-md-2 {
  390. margin-left: 16.666667%;
  391. }
  392. #conversejs .offset-md-3 {
  393. margin-left: 25%;
  394. }
  395. }
  396. @media screen and (min-width: 992px) {
  397. #conversejs .offset-lg-2 {
  398. margin-left: 16.666667%;
  399. }
  400. #conversejs .offset-lg-3 {
  401. margin-left: 25%;
  402. }
  403. }
  404. @media screen and (min-width: 1200px) {
  405. #conversejs .offset-xl-2 {
  406. margin-left: 16.666667%;
  407. }
  408. }
  409. @media screen and (max-height: 450px) {
  410. #conversejs {
  411. left: 0;
  412. }
  413. }