xmpp.chapril.org-conversejs/sass/_core.scss

543 lines
12 KiB
SCSS
Raw Normal View History

@mixin fade-in {
2018-01-04 13:10:35 +01:00
opacity: 0; /* make things invisible upon start */
@include animation-name(fadein);
@include animation-fill-mode(forwards);
2018-01-04 13:10:35 +01:00
@include animation-duration(0.75s);
@include animation-timing-function(ease);
}
body.reset {
margin: 0;
}
@font-face {
font-family: 'Converse-js';
src: url($font-path + 'icomoon.eot?wvi0ht');
src: url($font-path + 'icomoon.eot?wvi0ht#iefix') format('embedded-opentype'),
url($font-path + 'icomoon.ttf?wvi0ht') format('truetype'),
url($font-path + 'icomoon.woff?wvi0ht') format('woff'),
url($font-path + 'icomoon.svg?wvi0ht#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
.icon-conversejs {
2018-05-14 13:27:10 +02:00
padding-right: 0.5em;
font-family: 'Converse-js';
2018-05-14 13:27:10 +02:00
font-size: 80%;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-conversejs:before {
content: "\e600";
}
2018-09-06 21:03:23 +02:00
.converse-brand {
display: flex;
justify-content: space-between;
}
.converse-brand__padding {
@include make-col-ready();
@include media-breakpoint-up(md) {
@include make-col(4);
}
@include media-breakpoint-up(lg) {
@include make-col(3);
}
@include media-breakpoint-up(xl) {
@include make-col(2);
}
padding: 0;
}
.converse-brand__heading {
@include make-col-ready();
@include media-breakpoint-up(md) {
font-size: 4em;
@include make-col(8);
}
@include media-breakpoint-up(lg) {
font-size: 5em;
@include make-col(9);
}
@include media-breakpoint-up(xl) {
font-size: 6em;
@include make-col(10);
}
padding: 0;
}
.converse-brand__text {
2018-05-14 13:27:10 +02:00
font-family: $heading-font;
font-weight: normal;
2018-09-06 21:03:23 +02:00
width: 50%;
margin: auto;
margin-top: 10%;
text-align: center;
2018-05-14 13:27:10 +02:00
.icon-conversejs {
font-size: 60%;
}
}
2018-09-06 21:03:23 +02:00
.converse-brand__byline {
font-size: $font-size-small;
width: 50%;
margin: auto;
text-align: center;
a {
text-decoration: none;
color: lighten($chatroom-head-color, 25%);
}
}
2018-05-14 13:27:10 +02:00
#conversejs {
bottom: 0;
height: 100%;
position: fixed;
2018-01-29 15:03:10 +01:00
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
color: $text-color;
font-family: "Helvetica", "Arial", sans-serif;
font-size: $font-size;
direction: ltr;
z-index: 1031; // One more than bootstrap navbar
.nopadding {
padding: 0 !important;
}
&.converse-overlayed {
> .row {
flex-direction: row-reverse;
}
}
2018-06-01 12:37:14 +02:00
&.converse-fullscreen,
&.converse-mobile {
.converse-chatboxes {
width: 100vw;
2018-07-20 14:07:33 +02:00
left: -15px; // Hack due to padding added by bootstrap
}
}
2018-06-01 12:37:14 +02:00
&.converse-overlayed {
height: 3em;
}
2018-05-14 13:27:10 +02:00
.brand-heading {
font-family: $heading-font;
.icon-conversejs {
font-size: 80%;
}
}
.popover {
position: fixed;
}
.converse-chatboxes {
2018-03-25 11:38:22 +02:00
z-index: 1031; // One more than bootstrap navbar
position: fixed;
bottom: 0;
right: 0;
}
::-webkit-input-placeholder { /* Chrome/Opera/Safari */
color: $subdued-color;
}
::-moz-placeholder { /* Firefox 19+ */
color: $subdued-color;
}
:-ms-input-placeholder { /* IE 10+ */
color: $subdued-color;
}
:-moz-placeholder { /* Firefox 18- */
color: $subdued-color;
}
::placeholder {
color: $subdued-color;
}
::selection {
background-color: $highlight-color;
}
::-moz-selection {
background-color: $highlight-color;
}
@media screen and (max-width: $mobile-portrait-length) {
margin: 0;
right: 10px;
left: 10px;
bottom: 5px;
}
@media screen and (max-height: $mobile-landscape-height) {
margin: 0;
right: 10px;
left: 10px;
bottom: 5px;
}
ul li { height: auto; }
div, span, h1, h2, h3, h4, h5, h6, p, blockquote,
pre, a, em, img, strong, dl, dt, dd, ol, ul, li,
fieldset, form, legend, table, caption, tbody,
tfoot, thead, tr, th, td, article, aside, canvas, details,
embed, figure, figcaption, footer, header, hgroup, menu,
nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font: inherit;
vertical-align: baseline;
}
textarea,
input[type=submit], input[type=button],
input[type=text], input[type=password],
button {
font-size: $font-size;
padding: 0.25em;
min-height: 0;
}
strong {
font-weight: 700;
}
em {
font-style: italic;
}
ol, ul {
list-style: none;
}
li {
height: 10px;
}
ul, ol, dl {
font: inherit;
margin: 0;
}
2018-06-12 17:01:10 +02:00
a, a:visited, a:not([href]):not([tabindex]) {
text-decoration: none;
color: $link-color;
text-shadow: none;
2018-06-12 17:01:10 +02:00
&:hover {
color: darken($link-color, 20%);
text-decoration: none;
text-shadow: none;
}
2018-09-04 11:39:27 +02:00
&.fa, &.far, &.fas {
color: $subdued-color;
&:hover {
color: $gray-color;
}
}
}
canvas {
2018-01-27 10:07:54 +01:00
border-radius: $chatbox-border-radius;
}
2018-09-04 11:39:27 +02:00
.fa, .far, .fas {
color: $subdued-color;
}
2018-09-04 11:39:27 +02:00
.fa:hover, .far:hover, .fas:hover {
color: $gray-color;
}
2018-03-05 18:43:43 +01:00
.modal {
background-color: rgba(0, 0, 0, 0.4);
.modal-body {
p {
padding: 0.25rem 0;
}
}
2018-03-05 18:43:43 +01:00
}
2018-02-19 16:05:29 +01:00
.selected {
color: $link-color !important;
}
.circle {
border-radius: 50%;
}
2018-03-05 18:43:43 +01:00
.sidebar {
display: none;
width: 50px;
height: 100vh;
2018-01-26 20:50:11 +01:00
padding: 1rem 0;
background-color: $controlbox-head-color;
color: white;
text-align: center;
.chatbox-btn {
float: none;
margin: 0;
font-size: 1.35em;
&.fa-vcard {
margin-top: 1em;
}
}
.bottom {
position: absolute;
bottom: 1em;
}
}
.badge {
line-height: 1;
font-weight: normal;
font-size: 90%;
}
.btn {
2018-05-14 13:27:10 +02:00
font-family: $heading-font;
font-weight: normal;
color: #fff;
2018-09-04 11:39:27 +02:00
.fa, .far, .fas {
color: #fff;
margin-right: 0.5em;
}
}
.no-text-select {
-webkit-touch-callout: none;
@include user-select(none);
}
2016-11-30 10:45:43 +01:00
@keyframes colorchange-chatmessage {
0% {background-color: rgba(141, 216, 174, 1);}
25% {background-color: rgba(141, 216, 174, 0.75);}
50% {background-color: rgba(141, 216, 174, 0.5);}
75% {background-color: rgba(141, 216, 174, 0.25);}
100% {background-color: transparent;}
}
@-webkit-keyframes colorchange-chatmessage {
0% {background-color: rgba(141, 216, 174, 1);}
25% {background-color: rgba(141, 216, 174, 0.75);}
50% {background-color: rgba(141, 216, 174, 0.5);}
75% {background-color: rgba(141, 216, 174, 0.25);}
100% {background-color: transparent;}
}
@keyframes colorchange-chatmessage-muc {
0% {background-color: rgba(255, 181, 162, 1);}
25% {background-color: rgba(255, 181, 162, 0.75);}
50% {background-color: rgba(255, 181, 162, 0.5);}
75% {background-color: rgba(255, 181, 162, 0.25);}
100% {background-color: transparent;}
}
@-webkit-keyframes colorchange-chatmessage-muc {
0% {background-color: rgba(255, 181, 162, 1);}
25% {background-color: rgba(255, 181, 162, 0.75);}
50% {background-color: rgba(255, 181, 162, 0.5);}
75% {background-color: rgba(255, 181, 162, 0.25);}
100% {background-color: transparent;}
}
2016-11-30 10:45:43 +01:00
@keyframes fadein {
0% { opacity: 0 }
100% { opacity: 1 }
}
@-webkit-keyframes fadein {
2016-11-30 18:08:23 +01:00
0% { opacity: 0 }
100% { opacity: 1 }
2016-11-30 10:45:43 +01:00
}
@-webkit-keyframes fadeOut {
0% { opacity: 1; visibility: visible; }
100% { opacity: 0; visibility: hidden; }
}
@keyframes fadeOut {
0% { opacity: 1; visibility: visible; }
100% { opacity: 0; visibility: hidden; }
}
2017-12-20 11:02:01 +01:00
.fade-in {
@include fade-in;
}
2016-11-30 10:45:43 +01:00
.visible {
2017-12-20 11:02:01 +01:00
opacity:0; /* make things invisible upon start */
2016-11-30 10:45:43 +01:00
@include animation-name(fadein);
@include animation-fill-mode(forwards);
2017-12-20 11:02:01 +01:00
@include animation-duration(500ms);
2016-11-30 10:45:43 +01:00
@include animation-timing-function(ease);
}
2017-12-20 11:02:01 +01:00
.hidden {
2018-02-19 16:05:29 +01:00
opacity: 0 !important;
display: none !important;
}
.fade-out {
animation-duration: 1s;
animation-fill-mode: forwards;
animation-name: fadeOut;
animation-timing-function: ease-in-out;
}
.collapsed {
height: 0 !important;
overflow: hidden !important;
padding: 0 !important;
}
2016-11-30 10:45:43 +01:00
.locked {
padding-right: 22px;
}
@include keyframes(spin) {
from {
@include transform(rotate(0deg));
}
to {
@include transform(rotate(359deg));
}
}
.spinner {
@include animation(spin 2s infinite, linear);
display: block;
text-align: center;
2018-03-07 14:36:19 +01:00
margin: 2em;
font-size: 24px;
}
.left {
float: left;
}
.right {
float: right;
}
.centered {
text-align: center;
display: block;
2018-03-11 16:36:44 +01:00
margin: auto;
}
.hor_centered {
text-align: center;
display: block;
margin: 0 auto;
clear: both;
}
.error {
color: $error-color;
}
.info {
color: $info-color;
}
.reg-feedback {
font-size: 85%;
margin-bottom: 1em;
}
.reg-feedback,
#converse-login .conn-feedback {
display: block;
text-align: center;
width: 100%;
}
2018-02-19 22:12:50 +01:00
.avatar {
border-radius: 10%;
border: 1px solid lightgrey;
background: white;
2018-02-19 22:12:50 +01:00
}
.activated {
display: block !important;
}
2018-02-19 22:12:50 +01:00
.button-primary {
2015-10-29 10:21:31 +01:00
color: white;
background-color: $primary-color;
2015-10-29 10:21:31 +01:00
}
.button-secondary {
color: white;
background-color: $secondary-color;
}
.button-cancel {
2015-10-29 10:21:31 +01:00
color: white;
background-color: $text-color;
2015-10-29 10:21:31 +01:00
}
.chat-textarea-chatbox-selected {
border: 1px solid #578308;
margin: 0;
}
.chat-textarea-chatroom-selected {
border: 2px solid $link-color;
margin: 0;
}
}
@media screen and (max-width: 575px) {
body {
2018-09-06 21:03:23 +02:00
.converse-brand {
font-size: 3.75em;
2018-05-14 13:27:10 +02:00
}
}
#conversejs:not(.converse-embedded) {
.chatbox {
.chat-body {
border-radius: $chatbox-border-radius;
}
}
.flyout {
border-radius: $chatbox-border-radius;
}
}
}
2018-01-25 12:36:13 +01:00
@media screen and (min-width: 576px) {
#conversejs .offset-sm-2 {
margin-left: 16.666667%;
}
}
@media screen and (min-width: 768px) {
#conversejs .offset-md-2 {
margin-left: 16.666667%;
}
#conversejs .offset-md-3 {
margin-left: 25%;
}
}
@media screen and (min-width: 992px) {
#conversejs .offset-lg-2 {
margin-left: 16.666667%;
}
#conversejs .offset-lg-3 {
margin-left: 25%;
}
}
@media screen and (min-width: 1200px) {
#conversejs .offset-xl-2 {
margin-left: 16.666667%;
}
}
@media screen and (max-height: 450px) {
#conversejs {
left: 0;
}
}