_core.scss 10.0 KB

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