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

243 lines
5.1 KiB
SCSS
Raw Normal View History

2017-01-16 22:15:07 +01:00
#converse-embedded-chat,
#conversejs {
bottom: 0;
color: $text-color;
direction: ltr;
display: block;
font-family: "Helvetica", "Arial", sans-serif;
font-size: $font-size;
height: $bottom-gutter-height;
position: fixed;
right: 0;
width: auto;
z-index: 1031; // One more than bootstrap navbar
@media screen and (max-height: $mobile-landscape-height) {
width: 100%;
width: 100vw;
}
@media screen and (max-width: $mobile-portrait-length) {
width: 100%;
width: 100vw;
}
::-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;
}
2017-02-28 06:27:30 +01:00
.circle {
border-radius: 50%;
}
::selection {
background-color: $highlight-color;
}
::-moz-selection {
background-color: $highlight-color;
}
.no-text-select {
-webkit-touch-callout: none;
@include user-select(none);
}
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
}
.visible {
visibility: visible;
opacity: 1;
@include animation-name(fadein);
@include animation-fill-mode(forwards);
@include animation-duration(350ms);
@include animation-timing-function(ease);
}
.hidden {
2016-11-30 10:45:43 +01:00
opacity: 0;
display: none;
}
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));
}
}
2017-06-16 11:31:57 +02:00
.emojione {
height: $emoji_height;
}
.spinner {
@include animation(spin 2s infinite, linear);
display: block;
text-align: center;
margin: 1em;
&:before {
font-size: 24px;
font-family: 'Converse-js' !important;
content: "\231b";
}
}
.left {
float: left;
}
.right {
float: right;
}
.centered {
text-align: center;
display: block;
margin: 0;
2017-06-14 18:09:22 +02:00
padding: 10% 0;
}
.hor_centered {
text-align: center;
display: block;
margin: 0 auto;
clear: both;
}
.button-group,
.input-button-group {
display: table;
}
.button-group {
width: 100%;
}
.input-button-group button,
.input-button-group input {
display: table-cell;
}
.error {
color: $error-color;
}
.reg-feedback {
font-size: 85%;
}
.reg-feedback,
#converse-login .conn-feedback {
display: block;
text-align: center;
width: 100%;
}
a.restore-chat {
padding: 1px 0 1px 5px;
color: $chat-head-text-color;
line-height: 15px;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
a.restore-chat:visited {
color: $chat-head-text-color;
}
.activated {
display: block !important;
}
.pure-button {
border-radius: $chatbox-border-radius;
}
.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
}
form {
2015-10-28 22:07:29 +01:00
&.pure-form.converse-form {
background: white;
2017-07-05 11:59:55 +02:00
padding: 1em;
legend {
color: $text-color;
}
2015-10-28 22:07:29 +01:00
label {
margin-top: 1em;
2017-02-28 08:32:00 +01:00
font-size: $font-size-large;
2015-10-28 22:07:29 +01:00
}
input[type=text],
input[type=password],
input[type=number],
input[type=button],
input[type=submit] {
padding: 0.5em;
}
input[type=button],
input[type=submit] {
padding-left: 1em;
padding-right: 1em;
2017-02-28 08:32:00 +01:00
margin: 0.5em 0;
border: none;
}
input.error {
border: 1px solid $error-color;
color: $text-color;
2015-10-28 22:07:29 +01:00
}
.form-help {
color: gray;
font-size: 85%;
padding-top: 0.5em;
2015-10-28 22:07:29 +01:00
&:hover {
color: $text-color;
}
}
}
2017-01-16 22:15:07 +01:00
&.pure-form.converse-centered-form {
text-align: center;
width: 100%;
2017-01-16 22:15:07 +01:00
}
}
.chat-textarea-chatbox-selected {
border: 1px solid #578308;
margin: 0;
}
.chat-textarea-chatroom-selected {
border: 2px solid $link-color;
margin: 0;
}
.dropdown dt,
.dropdown ul {
margin: 0;
padding: 0;
}
}