xmpp.chapril.org-conversejs/sass/_controlbox.scss
2018-02-22 17:47:18 +01:00

462 lines
12 KiB
SCSS

#conversejs {
.set-xmpp-status, .xmpp-status, .roster-contacts {
.fa-circle {
color: $green;
}
.fa-minus-circle {
color: $red
}
.fa-dot-circle-o {
color: $orange,
}
.fa-circle-o {
color: $subdued-color;
}
.fa-times-circle {
color: $subdued-color;
}
}
.room-info {
font-size: $font-size-small;
font-style: normal;
font-weight: normal;
li.room-info {
display: block;
margin-left: 5px;
}
p.room-info {
line-height: $line-height;
margin: 0;
display: block;
white-space: normal;
}
}
div.room-info {
padding: 0.3em 0;
clear: left;
width: 100%;
}
#converse-modals {
.set-xmpp-status {
margin: 1em;
.custom-control-label {
margin-top: 0.25em;
}
}
}
#controlbox {
margin-right: 3*$chat-gutter;
&.logged-out {
.box-flyout {
.controlbox-pane {
overflow-y: auto;
}
}
}
form.search-xmpp-contact {
margin: 0;
padding-left: 5px;
padding: 0 0 5px 5px;
input {
width: 8em;
}
}
.msgs-indicator {
border-radius: 3px;
background-color: $red;
color: white;
font-size: $font-size-small;
font-weight: normal;
padding: 0 4px;
text-shadow: none;
}
a.subscribe-to-user {
padding-left: 2em;
font-weight: bold;
}
#converse-register {
@include fade-in;
background: white;
.title {
font-weight: bold;
}
.info {
color: green;
font-size: 90%;
margin: 1.5em 0;
}
.form-errors {
color: $error-color;
margin: 1em 0;
}
.provider-title {
font-size: $font-size-huge;
margin: 0;
}
.provider-score {
width: 178px;
margin-bottom: 8px;
}
.title, .instructions, label {
margin: 0.5em 0 0 0;
}
.form-help .url {
font-weight: bold;
color: $link-color;
}
.input-group {
display: table;
margin: auto;
width: 100%;
span {
overflow-x: hidden;
text-overflow: ellipsis;
max-width: 110px;
}
span, input[name=username] {
display: table-cell;
text-align: left;
}
}
.instructions {
color: gray;
font-size: 85%;
&:hover {
color: $text-color;
}
}
}
.conn-feedback {
color: $controlbox-head-color;
&.error {
color: $error-color;
}
p {
padding-bottom: 0.5em;
&.feedback-subject.error {
font-weight: bold;
}
}
}
.brand-heading-container {
.brand-heading {
text-align: center;
}
.brand-name {
font-size: 120%;
}
}
#login-dialog {
flex-direction: column;
.brand-heading {
color: $global-background-color;
}
}
.toggle-register-login {
font-weight: bold;
}
.oauth-login {
margin-left: 0;
color: $text-color;
.icon-social:before {
font-size: $font-size-large;
}
}
#converse-register, #converse-login {
fieldset.buttons {
text-align: center;
}
.login-anon {
height: auto;
white-space: normal;
}
.save-submit {
color: $save-button-color;
}
input {
width: 100%;
margin: 1em 0;
}
.form-url {
display: block;
font-weight: normal;
margin: 1em 0;
}
}
.controlbox-pane {
.userinfo {
padding-bottom: 1em;
border-bottom: 1px solid $gray-color;
.username {
margin-left: 0.5em;
overflow: hidden;
text-overflow: ellipsis;
}
.d-flex {
margin-bottom: 0.2em;
}
}
}
#chatrooms {
padding: 0;
border-bottom: 1px solid $gray-color;
form.add-chatroom {
input[type=button],
input[type=submit],
input[type=text] {
width: 100%;
}
margin: 0;
padding: 0;
}
.rooms-list-container {
.rooms-toggle {
display: block;
color: $text-color;
margin: 0.5em 0 0.5em 0;
&:hover {
color: $dark-gray-color;
}
}
.rooms-list {
margin: 0.5em 0;
text-align: left;
.available-chatroom,
.open-chatroom {
border: none;
clear: both;
color: $text-color;
display: block;
overflow: hidden;
padding: 0.2em 0;
text-shadow: 0 1px 0 $text-shadow-color;
word-wrap: break-word;
a:hover {
color: $dark-link-color;
}
a.fa:hover {
color: $gray-color;
}
&.unread-msgs {
.available-room,
.open-room {
width: 100%;
font-weight: bold;
}
}
a {
&.room-info {
&:before {
font-size: 15px;
}
}
&.open-room {
width: 68%;
float: left;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding-right: 0.5em;
}
&.available-room {
width: 85%;
}
}
.add-bookmark,
.remove-bookmark {
&.button-on {
color: $link-color;
&:hover {
color: $dark-link-color;
}
}
color: $subdued-color;
}
}
}
}
}
#chatrooms, #converse-roster {
margin-top: 0.75em;
padding-bottom: 0.75em;
}
.dropdown {
a {
width: 143px;
display: inline-block;
}
li {
list-style: none;
padding-left: 0;
}
dd {
ul {
padding: 0;
list-style: none;
position: absolute;
left: 0;
top: 0;
width: 100%;
z-index: 21;
background-color: $light-background-color;
li:hover {
background-color: $highlight-color;
}
}
}
dd.search-xmpp {
height: 0;
.contact-form-container {
position: absolute;
z-index: 22;
form {
box-shadow: 1px 4px 10px 1px rgba(0, 0, 0, 0.4);
background-color: white;
}
}
li:hover {
background-color: $light-background-color;
}
}
dt a span {
cursor: pointer;
display: block;
padding: 4px 7px 0 5px;
}
}
.controlbox-panes {
height: 100%;
overflow-y: auto;
background-color: white;
}
.controlbox-pane {
padding: $controlbox-pane-padding;
background-color: white;
border: 0;
font-size: $font-size;
left: 0;
text-align: left;
overflow-y: scroll;
overflow-x: hidden;
border-radius: $chatbox-border-radius;
.add-converse-contact {
margin: 0 0 0.75em 0;
}
.chatbox-btn {
margin: 0;
}
.switch-form {
padding-bottom: 2em;
p {
margin-top: 0.5em;
}
}
label {
font-size: $font-size;
font-weight: bold;
height: auto;
}
dd {
margin-left: 0;
margin-bottom: 0;
&.odd {
background-color: #DCEAC5;
}
}
}
.add-xmpp-contact {
padding: 1em 0.5em;
input {
margin: 0 0 1rem;
width: 100%;
}
button {
width: 100%;
}
}
}
.toggle-controlbox {
background-color: $link-color;
border-top-left-radius: $button-border-radius;
border-top-right-radius: $button-border-radius;
color: #0a0a0a;
float: right;
height: 100%;
margin: 0 $chat-gutter;
padding: 10px 8px 0 8px;
span {
color: $inverse-link-color;
}
}
}
@media screen and (max-width: 767px) {
#conversejs {
#controlbox {
.box-flyout {
width: 100%;
left: 0;
}
.sidebar {
display: block;
}
.controlbox-pane {
position: absolute;
top: 0;
display: none;
width: 100%;
}
}
&.sidebar-open {
.chatbox:not(#controlbox) {
display: none;
}
#controlbox {
.controlbox-pane {
display: block;
}
}
}
}
}