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

1496 lines
33 KiB
SCSS
Raw Normal View History

2014-12-09 00:49:21 +01:00
/*!
* Converse.js (Web-based XMPP instant messaging client)
* http://conversejs.org
*
* Copyright (c) 2012-2014, JC Brand <jc@opkode.com>
* Licensed under the Mozilla Public License
*/
@font-face {
font-family: 'Converse-js';
src: url('../fonticons/fonts/icomoon.eot?-mnoxh0');
src: url('../fonticons/fonts/icomoon.eot?#iefix-mnoxh0') format("embedded-opentype"), url('../fonticons/fonts/icomoon.woff?-mnoxh0') format("woff"), url('../fonticons/fonts/icomoon.ttf?-mnoxh0') format("truetype"), url('../fonticons/fonts/icomoon.svg?-mnoxh0#icomoon') format("svg");
font-weight: normal;
font-style: normal;
}
.icon-conversejs {
font-family: 'Converse-js';
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";
}
#conversejs {
2014-12-31 11:54:33 +01:00
@import "../bourbon/bourbon";
@import "variables";
color: $text-color;
font-size: $font-size;
bottom: 0;
direction: ltr;
2014-12-31 16:58:15 +01:00
height: $bottom-gutter-height;
left: 0;
position: fixed;
right: 0;
z-index: 30;
display: block;
@include box-sizing(border-box);
*, *:before, *:after {
@include box-sizing(border-box);
}
@media screen and (max-width: $mobile_landscape_length) {
margin: 5px 10px;
}
a, a:visited {
text-decoration: none;
color: $link-color;
text-shadow: none;
}
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, label, 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,
2014-12-14 00:45:31 +01:00
input[type=submit], input[type=button],
input[type=text], input[type=password],
button {
font-size: $font-size;
padding: 0.5em;
min-height: 0;
}
strong {
font-weight: 700;
}
ol, ul {
list-style: none;
}
li {
height: 10px;
}
ul, ol, dl {
font: inherit;
2014-12-14 00:45:31 +01:00
margin: 0;
}
2014-12-09 00:49:21 +01:00
[data-icon]:before {
content: attr(data-icon);
2014-12-14 00:45:31 +01:00
font-family: 'Converse-js';
2014-12-09 00:49:21 +01:00
font-variant: normal;
2014-12-14 00:45:31 +01:00
font-weight: normal;
2014-12-09 00:49:21 +01:00
line-height: 1;
2014-12-14 00:45:31 +01:00
speak: none;
text-transform: none;
2014-12-09 00:49:21 +01:00
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
[class^="icon-"], [class*=" icon-"] {
font-family: 'Converse-js';
font-style: normal;
font-variant: normal;
2014-12-14 00:45:31 +01:00
font-weight: normal;
2014-12-09 00:49:21 +01:00
line-height: 1;
2014-12-14 00:45:31 +01:00
speak: none;
text-transform: none;
2014-12-09 00:49:21 +01:00
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
2014-12-14 00:45:31 +01:00
.icon-address-book:before { content: "\270f"; }
.icon-angry:before { content: "\e03f"; }
.icon-attachment:before { content: "\e032"; }
.icon-away:before { content: "\25fb"; }
.icon-blocked:before { content: "\2718"; }
.icon-bold:before { content: "\e04d"; }
.icon-bubbles-2:before { content: "\e016"; }
.icon-bubbles-3:before { content: "\e017"; }
.icon-bubbles:before { content: "\e015"; }
.icon-camera-2:before { content: "\2616"; }
.icon-camera:before { content: "\e003"; }
.icon-cancel-circle:before { content: "\e058"; }
.icon-checkbox-checked:before { content: "\2611"; }
.icon-checkbox-partial:before { content: "\2b28"; }
.icon-checkbox-unchecked:before { content: "\2b27"; }
.icon-checkmark:before { content: "\2713"; }
.icon-close:before { content: "\2715"; }
.icon-closed:before { content: "\25ba"; }
.icon-cog:before { content: "\e02f"; }
.icon-cogs:before { content: "\e022"; }
.icon-confused:before { content: "\2368"; }
.icon-cool:before { content: "\e040"; }
.icon-dnd:before { content: "\e004"; }
.icon-envelop:before { content: "\2709"; }
.icon-evil:before { content: "\261f"; }
.icon-eye-blocked:before { content: "\e031"; }
.icon-eye:before { content: "\e030"; }
.icon-globe:before { content: "\e033"; }
.icon-grin:before { content: "\e041"; }
.icon-happy:before { content: "\263b"; }
.icon-headphones:before { content: "\266c"; }
.icon-heart:before { content: "\2764"; }
.icon-hide-users:before { content: "\e01c"; }
.icon-home:before { content: "\e000"; }
.icon-image:before { content: "\2b14"; }
.icon-info:before { content: "\2360"; }
.icon-italic:before { content: "\e04f"; }
.icon-key-2:before { content: "\e029"; }
.icon-key:before { content: "\e028"; }
.icon-lock-2:before { content: "\e027"; }
.icon-lock:before { content: "\e026"; }
.icon-logout:before { content: "\e601"; }
.icon-minus:before { content: "\e05a"; }
.icon-music:before { content: "\266b"; }
.icon-new-tab:before { content: "\e053"; }
.icon-newspaper:before { content: "\e001"; }
.icon-notebook:before { content: "\2710"; }
.icon-notification:before { content: "\e01f"; }
.icon-online:before { content: "\25fc"; }
.icon-opened:before { content: "\25bc"; }
.icon-pencil:before { content: "\270e"; }
.icon-phone-hang-up:before { content: "\260e"; }
.icon-phone:before { content: "\260f"; }
.icon-play:before { content: "\25d9"; }
.icon-plus:before { content: "\271a"; }
.icon-pushpin:before { content: "\e012"; }
.icon-quotes-left:before { content: "\e01d"; }
.icon-radio-checked:before { content: "\2b26"; }
.icon-radio-unchecked:before { content: "\2b25"; }
.icon-remove:before { content: "\e02d"; }
.icon-room-info:before { content: "\e059"; }
.icon-sad:before { content: "\2639"; }
.icon-search:before { content: "\e021"; }
.icon-shocked:before { content: "\2364"; }
.icon-show-users:before { content: "\e01e"; }
.icon-smiley:before { content: "\263a"; }
.icon-spell-check:before { content: "\e045"; }
.icon-spinner:before { content: "\231b"; }
.icon-strikethrough:before { content: "\e050"; }
.icon-thumbs-up:before { content: "\261d"; }
.icon-tongue:before { content: "\e038"; }
.icon-underline:before { content: "\e04e"; }
.icon-unlocked:before { content: "\e025"; }
.icon-user:before { content: "\e01a"; }
.icon-users:before { content: "\e01b"; }
.icon-volume-decrease:before { content: "\e04b"; }
.icon-volume-high:before { content: "\e046"; }
.icon-volume-increase:before { content: "\e04c"; }
.icon-volume-low:before { content: "\e048"; }
.icon-volume-medium:before { content: "\e047"; }
.icon-volume-mute-2:before { content: "\e04a"; }
.icon-volume-mute:before { content: "\e049"; }
.icon-warning:before { content: "\26a0"; }
.icon-wink:before { content: "\e03a"; }
.icon-wondering:before { content: "\2369"; }
.icon-wrench:before { content: "\e024"; }
2014-12-09 00:49:21 +01:00
.icon-xa:before,
.icon-unavailable:before,
2014-12-14 00:45:31 +01:00
.icon-offline:before { content: "\e002"; }
.icon-youtube:before { content: "\e055"; }
.icon-zoom-in:before { content: "\e02b"; }
.icon-zoom-out:before { content: "\e02a"; }
2014-12-09 00:49:21 +01:00
.no-text-select {
-webkit-touch-callout: none;
@include user-select(none);
2014-12-09 00:49:21 +01:00
}
.emoticon {
font-size: $font-size;
2014-12-09 00:49:21 +01:00
}
.hidden {
display: none;
}
.locked {
padding-right: 22px;
}
@include keyframes(spin) {
from {
@include transform(rotate(0deg));
}
to {
@include transform(rotate(359deg));
}
}
.spinner:before {
font-size: 24px;
font-family: 'Converse-js' !important;
content: "\231b";
}
.spinner {
@include animation(spin 2s infinite, linear);
2014-12-09 00:49:21 +01:00
display: block;
text-align: center;
margin: 5px;
}
.centered {
text-align: center;
display: block;
margin: 5em auto;
}
.hor_centered {
text-align: center;
display: block;
margin: 0 auto;
}
2014-12-31 16:58:15 +01:00
.toggle-controlbox,
#minimized-chats {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
2014-12-14 00:45:31 +01:00
float: right;
2014-12-31 16:58:15 +01:00
margin: 0 $chat-gutter;
2014-12-09 00:49:21 +01:00
font-weight: bold;
2014-12-31 16:58:15 +01:00
}
.toggle-controlbox {
background-color: $link-color;
color: #0a0a0a;
2014-12-09 00:49:21 +01:00
height: 100%;
2014-12-31 16:58:15 +01:00
padding: 10px 8px 0 8px;
span {
color: $inverse-link-color;
}
2014-12-09 00:49:21 +01:00
}
.input-button-group {
display: table;
}
.input-button-group button,
.input-button-group input {
display: table-cell;
}
2014-12-09 00:49:21 +01:00
#minimized-chats {
2014-12-31 16:58:15 +01:00
color: $inverse-link-color;
2014-12-09 00:49:21 +01:00
display: none;
2014-12-31 16:58:15 +01:00
height: 100%;
padding: 0;
width: 130px;
#toggle-minimized-chats {
border-top-left-radius: 4px;
border-top-right-radius: 4px;
background-color: ivory;
position: relative;
padding: 10px 0 0 0;
display: block;
width: 100%;
height: 100%;
text-align: center;
}
.unread-message-count,
.chat-head-message-count {
font-weight: bold;
@include linear-gradient(#f6f6f6 5%, #808080 100%);
border: 1px solid;
text-shadow: 1px 1px 0 $text-shadow-color;
color: $warning-color;
border-radius: 5px;
padding: 2px 4px;
font-size: 16px;
text-align: center;
position: absolute;
right: 116px;
bottom: 10px;
}
.box-flyout {
position: absolute;
display: block;
height: auto;
2014-12-31 16:58:15 +01:00
bottom: $bottom-gutter-height;
margin-left: 0;
.chat-head {
font-size: 100%;
border-radius: 4px;
padding: 3px 0 0 5px;
margin: 0 0 1px 0;
box-shadow: 1px 3px 5px 3px rgba(0, 0, 0, 0.4);
height: 24px;
width: 130px;
}
}
2014-12-09 00:49:21 +01:00
}
.chat-body {
background-color: white;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
height: 289px;
@include calc(height, '100% - #{$chat-head-height}');
2014-12-09 00:49:21 +01:00
border-top: 0;
p {
font-size: $font-size;
color: $text-color;
padding: 5px;
margin: 0;
}
2014-12-09 00:49:21 +01:00
}
.tt-highlight {
background-color: #00230F;
}
.tt-suggestion {
p {
color: white;
text-shadow: rgba(0, 0, 0, 0.51) 0 -1px 0;
cursor: pointer;
font-size: 11px;
}
p:hover {
background-color: #00230F;
.tt-highlight {
background-color: #00230F;
background: #27774A;
}
}
2014-12-09 00:49:21 +01:00
}
.tt-dropdown-menu {
margin: 0 1px 0 1px;
width: 96px;
max-height: 250px;
overflow-x: hidden;
overflow-y: auto;
text-overflow: ellipsis;
background: #27774A;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
.chat-blink {
background-color: #176679;
border-right: 1px solid #176679;
border-left: 1px solid #176679;
}
.chat-message span::selection,
.chat-message::selection {
background-color: darkgrey;
}
.chat-content {
position: relative;
padding: 8px;
2014-12-09 00:49:21 +01:00
font-size: 13px;
color: $text-color;
2014-12-09 00:49:21 +01:00
overflow-y: auto;
border: 0;
background-color: #ffffff;
line-height: 1.3em;
height: 206px;
2014-12-14 00:45:31 +01:00
height: calc(100% - #{$toolbar-height + $chat-textarea-height});
2014-12-09 00:49:21 +01:00
}
.chat-info {
color: $text-color;
2014-12-09 00:49:21 +01:00
}
.chat-error {
2014-12-14 00:45:31 +01:00
color: $warning-color;
font-weight: bold;
}
.chat-error,
.chat-info,
.chat-message {
padding: 2px 0;
2014-12-09 00:49:21 +01:00
}
.chat-message-room,
.chat-message-them,
.chat-message-me {
font-weight: bold;
white-space: nowrap;
max-width: 100px;
text-overflow: ellipsis;
overflow: hidden;
display: inline-block;
float: left;
padding-right: 3px;
}
.chat-message-content {
word-wrap: break-word;
}
2014-12-14 00:45:31 +01:00
.chat-message-room,
2014-12-09 00:49:21 +01:00
.chat-message-them {
2014-12-14 00:45:31 +01:00
color: $message-them-color;
2014-12-09 00:49:21 +01:00
}
.chat-message-me {
color: $link-color;
2014-12-09 00:49:21 +01:00
}
.chat-event,
.chat-date,
.chat-info {
color: #808080;
}
li.chat-info {
padding-left: 10px;
}
.chat-date {
display: inline-block;
padding-top: 10px;
}
.not-implemented {
2014-12-09 00:49:21 +01:00
margin-top: 3em;
margin-left: 0.3em;
color: #808080;
}
.mentioned {
2014-12-09 00:49:21 +01:00
font-weight: bold;
}
.delayed {
.chat-message-them {
color: #FB5D50;
}
.chat-message-me {
color: #7EABBB;
}
2014-12-09 00:49:21 +01:00
}
.error {
color: red;
}
input.error {
border: 1px solid red;
2014-12-09 00:49:21 +01:00
}
#converse-register {
.form-errors {
color: red;
display: none;
}
.provider-title {
font-size: 115%;
}
.provider-score {
width: 178px;
margin-bottom: 8px;
}
.form-help .url {
font-weight: bold;
color: $link-color;
}
2014-12-09 00:49:21 +01:00
}
.reg-feedback {
font-size: 85%;
}
.reg-feedback,
#converse-login .conn-feedback {
display: block;
2014-12-14 00:45:31 +01:00
text-align: center;
width: 100%;
2014-12-09 00:49:21 +01:00
}
.chat-message-error {
color: #76797C;
font-size: 90%;
font-weight: normal;
}
a.restore-chat,
2014-12-09 00:49:21 +01:00
.chat-title {
padding: 1px 0 1px 5px;
color: $chat-head-text-color;
2014-12-09 00:49:21 +01:00
font-weight: bold;
line-height: 15px;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-shadow: rgba(0, 0, 0, 0.51) 0 -1px 0;
}
a.restore-chat:visited {
color: $chat-head-text-color;
}
2014-12-09 00:49:21 +01:00
.chat-title a {
color: $chat-head-text-color;
2014-12-09 00:49:21 +01:00
width: 100%;
text-overflow: ellipsis;
white-space: nowrap;
}
.chat-head-chatbox,
.chat-head-chatroom {
height: $chat-head-height;
2014-12-09 00:49:21 +01:00
position: relative;
2014-12-14 00:45:31 +01:00
padding: 5px;
}
.chat-head-chatroom {
background-color: $chatroom-head-color;
}
.chat-head-chatbox {
background-color: $chat-head-color;
2014-12-09 00:49:21 +01:00
}
.user-custom-message,
.chatroom-topic {
color: white;
2014-12-09 00:49:21 +01:00
font-size: 80%;
font-style: italic;
height: 1.3em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 0;
padding: 1px 0 1px 5px;
2014-12-09 00:49:21 +01:00
}
.activated {
display: block !important;
}
a.subscribe-to-user {
padding-left: 2em;
font-weight: bold;
}
dl.add-converse-contact {
2014-12-14 00:45:31 +01:00
margin: 0 0.5em 0.5em 0.5em;
2014-12-09 00:49:21 +01:00
}
.fancy-dropdown {
border: 1px solid $light-background-border-color;
2014-12-14 00:45:31 +01:00
height: $controlbox-dropdown-height;
2014-12-09 00:49:21 +01:00
text-align: left;
.choose-xmpp-status {
width: 155px;
span {
padding-right: 5px;
padding-left: 5px;
float: left;
}
}
.choose-xmpp-status,
.toggle-xmpp-contact-form {
text-shadow: 0 1px 0 #ffffff;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: inline;
}
.toggle-xmpp-contact-form span {
float: left;
}
2014-12-09 00:49:21 +01:00
}
#fancy-xmpp-status-select a.change-xmpp-status-message {
float: right;
clear: right;
height: 22px;
width: 12px;
margin: 0px 5px 0 0;
color: $link-color;
2014-12-09 00:49:21 +01:00
}
ul#found-users {
padding: 10px 0 5px 5px;
border: 0;
}
form.search-xmpp-contact {
margin: 0;
padding-left: 5px;
padding: 0 0 5px 5px;
input {
width: 8em;
}
2014-12-09 00:49:21 +01:00
}
a.configure-chatroom-button,
a.toggle-chatbox-button,
a.close-chatbox-button {
border-radius: 6px;
border: 1px solid #888;
color: white;
2014-12-14 00:45:31 +01:00
cursor: pointer;
display: inline-block;
2014-12-09 00:49:21 +01:00
float: right;
2014-12-14 00:45:31 +01:00
font-size: 10px;
margin: 0 0 0 3px;
padding: 3px 3px 2px 3px;
text-decoration: none;
2014-12-09 00:49:21 +01:00
}
a.configure-chatroom-button:active,
a.toggle-chatbox-button:active,
a.close-chatbox-button:active {
position: relative;
top: 1px;
}
.chatroom-form-container {
height: 100%;
color: $text-color;
2014-12-09 00:49:21 +01:00
overflow-y: auto;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
}
.chatroom-form {
padding: 1em;
.instructions {
color: gray;
font-size: 95%;
}
input {
width: 100%;
padding: 5px;
text-align: center;
}
legend {
font-size: $legend-font-size;
font-weight: bold;
margin: 10px 0 15px 0;
}
label {
height: 30px;
font-weight: bold;
display: block;
clear: both;
label input, label select {
float: right;
}
}
2014-12-09 00:49:21 +01:00
}
.requesting-xmpp-contact .request-actions {
margin-left: 0.5em;
float: right;
}
#converse-roster {
text-align: left;
width: 100%;
position: relative;
margin: 0.5em 0 0 0;
2014-12-14 00:45:31 +01:00
height: $roster-height;
2014-12-09 00:49:21 +01:00
height: calc(100% - 68px);
overflow: hidden;
.filter-type {
display: table-cell;
2014-12-14 00:45:31 +01:00
font-size: $font-size;
height: $controlbox-dropdown-height;
margin: 0 0 0.5em -1px;
padding: 0;
2014-12-14 00:45:31 +01:00
width: 84px;
}
.roster-filter {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAABNSURBVHjaXI7BDcAwCAMvyQjMyQ6dAbZiKfqoUK34g2zJh1dENIC7M8pMAPYdzAVY3d0ajNz9aypS/b5R6o+ZPdqoKgCq6h80KH3xDgBqNR97p8oAGQAAAABJRU5ErkJggg== ) no-repeat right -20px center;
border: 1px solid #999;
2014-12-14 00:45:31 +01:00
font-size: $font-size;
height: $controlbox-dropdown-height;
margin: 0 0 0.5em 6px;
padding: 0;
padding: 2px;
width: 104px;
}
/* (jQ addClass:) if input has value: */
.roster-filter.x {
background-position: right 3px center;
}
/* (jQ addClass:) if mouse is over the 'x' input area*/
.roster-filter.onX {
cursor: pointer;
}
.roster-contacts {
margin: 0;
max-height: 195px;
max-height: calc(100% - 26px);
2014-12-14 00:45:31 +01:00
overflow-x: hidden;
overflow-y: auto;
padding-bottom: 15px;
}
.group-toggle {
color: $text-color;
display: block;
width: 100%;
}
dt {
display: none;
}
dd {
line-height: 16px;
a, span {
text-shadow: 0 1px 0 $link-shadow-color;
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
margin-left: 3px;
}
span {
padding: 0 5px 0 0;
}
2014-12-14 00:45:31 +01:00
a {
&.decline-xmpp-request {
margin-left: 5px;
}
&.remove-xmpp-contact {
float: right;
width: 22px;
margin: 0;
display: none;
color: $text-color;
}
}
}
dd:hover a.remove-xmpp-contact {
display: inline-block;
}
2014-12-14 00:45:31 +01:00
dd {
&.odd {
background-color: #DCEAC5;
/* Make this difference */
}
&.current-xmpp-contact span {
font-size: 16px;
float: left;
color: $link-color;
}
a.open-chat {
width: 80%;
}
}
2014-12-14 00:45:31 +01:00
span {
&.pending-contact-name {
2014-12-14 00:45:31 +01:00
width: 80%;
}
&.req-contact-name {
width: 69%;
padding: 0;
}
}
2014-12-09 00:49:21 +01:00
}
dd.available-chatroom {
display: inline-block;
2014-12-09 00:49:21 +01:00
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
a.open-room {
width: 148px;
}
2014-12-09 00:49:21 +01:00
}
#available-chatrooms {
text-align: left;
}
#available-chatrooms dt,
#converse-roster dt {
font-weight: normal;
color: $text-color;
2014-12-09 00:49:21 +01:00
border: none;
padding: 5px;
text-shadow: 0 1px 0 $text-shadow-color;
2014-12-09 00:49:21 +01:00
}
.room-info {
font-size: 11px;
font-style: normal;
font-weight: normal;
}
li.room-info {
display: block;
margin-left: 5px;
}
div.room-info {
clear: left;
}
p.room-info {
margin: 0;
padding: 0;
display: block;
white-space: normal;
}
2014-12-14 00:45:31 +01:00
a {
&.room-info {
width: 22px;
height: 22px;
float: right;
display: none;
clear: right;
}
&.open-room {
float: left;
white-space: nowrap;
text-overflow: ellipsis;
overflow-x: hidden;
}
2014-12-09 00:49:21 +01:00
}
dd.available-chatroom:hover a.room-info {
display: inline-block;
margin-top: 3px;
font-size: 15px;
}
dd.available-chatroom,
#converse-roster dd {
font-weight: bold;
border: none;
display: block;
padding: 4px 2px 0 4px;
color: $text-color;
text-shadow: 0 1px 0 $text-shadow-color;
2014-12-09 00:49:21 +01:00
clear: both;
height: 24px;
overflow-y: hidden;
2014-12-09 00:49:21 +01:00
}
.roster-group:hover,
dd.available-chatroom:hover,
#converse-roster dd:hover {
background-color: $highlight-color;
}
2014-12-09 00:49:21 +01:00
.chatbox,
.chatroom {
2014-12-31 16:58:15 +01:00
height: $bottom-gutter-height;
2014-12-09 00:49:21 +01:00
float: right;
margin: 0 $chat-gutter;
@media screen and (max-width: $mobile_landscape_length) {
margin: 0;
}
2014-12-09 00:49:21 +01:00
display: block;
}
.chatbox {
width: $chat-width;
@media screen and (max-width: $mobile_landscape_length) {
width: $mobile-chat-width;
}
.box-flyout {
width: $chat-width;
@media screen and (max-width: $mobile_landscape_length) {
width: $mobile-chat-width;
}
}
.dropdown {
a {
width: 148px;
display: inline-block;
2014-12-14 00:45:31 +01:00
line-height: $controlbox-dropdown-height;
}
li {
list-style: none;
padding-left: 0;
}
dd {
ul {
2014-12-14 00:45:31 +01:00
padding: 0;
list-style: none;
position: absolute;
left: 0;
top: 0;
border: 1px solid $light-background-border-color;
2014-12-14 00:45:31 +01:00
width: 100%;
z-index: 21;
background-color: $light-background-color;
li:hover {
background-color: $highlight-color;
}
}
}
dd.search-xmpp ul li:hover {
background-color: $light-background-color;
}
dt a span {
cursor: pointer;
display: block;
padding: 4px 7px 0 5px;
}
}
2014-12-09 00:49:21 +01:00
}
.chatroom {
width: $chatroom-width;
.box-flyout {
width: $chatroom-width;
}
@media screen and (max-width: $mobile_landscape_length) {
width: $mobile-chat-width;
.box-flyout {
width: $mobile-chat-width;
}
}
label {
margin-left: 2px;
font-size: 12px;
}
.participant-list {
list-style: none;
2014-12-14 00:45:31 +01:00
li {
cursor: default;
display: block;
font-size: 12px;
font-weight: bold;
overflow: hidden;
padding: 2px 5px;
text-overflow: ellipsis;
white-space: nowrap;
&.moderator {
color: #8f2831;
}
}
}
.chat-textarea {
border-bottom-right-radius: 0;
}
.chat-area {
float: left;
height: 100%;
width: $chat-width;
}
.invited-contact {
2014-12-14 00:45:31 +01:00
margin: -1px 0 0 -1px;
width: 100px;
border: 1px solid #999;
}
.invited-contact.tt-input {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3gkBCjE0uzKkOgAAAidJREFUKM+N0k+IEnEUB/D3cyscdagkWpHV0WGWREXm0AgOGkSJ07kh2UXYU5cOewm6Bp0KXG/tpSCv6hyEFQIhMEaE3yERYfwTOoqKGLQxDAbqYadLgu7J7/XxeY/3ez8EACDLsgljfMfj8ZxUKhXXYDAAnueBoqgyAMipVOovXAuSZdnUaDQeDofDs16vFyUIAjRNUwmCoG02G1AUdZ5IJN7GYrHfm3AvEAjcnUwmX0ajUdRqtV74fL6sruufKYoa6bp+fzabPUMI7ZfL5eImNHk8npNerxc1m80XHMe98fv9H3K5XDkSibxjWfb1arWaYoyPMMbCFqxUKi6CIODw8LDmdDq7oigaAACiKK5omv7KcdylpmlIkiTHFlRVFTRNUxVFqa/ROqIoGoqi5A3DgFartfU4Jp7ngSAI2uVyPZIk6dZmUZKk2w6H4xghBPF4HK7vWLbZbDCdTp+rqvpUkiS0RvV6/bTf7x8wDHMViURqm/AGAMgURZ232+1X1Wr102KxuEwmk3lZlo/7/f7BcrkkSZKs2e12tHXH/x/gHsY4jTE+0jQNGYYBCCFgGOaKJMkfjUaDZximGQ6HXzSbzZ+ZTMbY6oIxFgqFgqPT6YAgCMBxXM1ut6N0Op0fj8chi8XyjWXZ98Fg8DuCHZLNZh+USqWP8/n8idvt/hUKhV7u7QK9Xu8fmqanAJBQVXUfAGY7TQQAKBaLN8fjsdDtdh/run72Dzhf7XLe2UevAAAAAElFTkSuQmCC ) no-repeat right 3px center;
}
2014-12-14 00:45:31 +01:00
.participants {
float: right;
background-color: white;
overflow-y: auto;
overflow-x: hidden;
border-left: 1px solid #AAA;
border-bottom-right-radius: 4px;
width: 100px;
height: 100%;
label {
2014-12-14 00:45:31 +01:00
font-size: 12px;
font-style: italic;
2014-12-14 00:45:31 +01:00
margin: 5px;
display: block;
}
}
2014-12-09 00:49:21 +01:00
}
.chatroom-form,
.controlbox-pane {
background-color: white;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
border: 0;
font-size: $font-size;
2014-12-09 00:49:21 +01:00
overflow-y: auto;
position: absolute;
2014-12-14 00:45:31 +01:00
text-align: center;
2014-12-09 00:49:21 +01:00
width: 100%;
2014-12-14 00:45:31 +01:00
height: 289px;
@include calc(height, '100% - #{$chat-head-height}');
2014-12-09 00:49:21 +01:00
}
.controlbox-pane {
padding: 5px 0;
2014-12-14 00:45:31 +01:00
overflow-y: hidden;
dd {
margin-left: 0;
margin-bottom: 0;
}
dd.odd {
background-color: #DCEAC5;
}
2014-12-09 00:49:21 +01:00
}
2014-12-14 00:45:31 +01:00
#converse-register {
.title {
font-weight: bold;
}
.info {
font-style: italic;
color: green;
font-size: 85%;
margin: 5px 0;
}
2014-12-09 00:49:21 +01:00
}
.form-help,
#converse-register .instructions {
color: gray;
font-size: 85%;
}
.form-help:hover,
#converse-register .instructions:hover {
color: $text-color;
2014-12-09 00:49:21 +01:00
}
.form-help {
padding-top: 5px;
}
#converse-register,
#converse-login {
background: white;
padding: 1em;
2014-12-09 00:49:21 +01:00
}
#converse-register input,
#converse-login input {
width: 100%;
2014-12-09 00:49:21 +01:00
height: 30px;
2014-12-14 00:45:31 +01:00
margin: 5px 0 10px 0;
padding-left: 0.5em;
2014-12-09 00:49:21 +01:00
}
#converse-register {
2014-12-14 00:45:31 +01:00
.input-group {
display: table;
margin: auto;
width: 178px;
span, input[name=username] {
display: table-cell;
}
input[name=username] {
width: 100%;
}
}
2014-12-09 00:49:21 +01:00
}
2014-12-14 00:45:31 +01:00
.cancel-submit, .save-submit {
width: 45%;
margin: 5px 3px 5px 3px;
}
.cancel, .cancel-submit {
color: $warning-color;
2014-12-09 00:49:21 +01:00
}
2014-12-14 00:45:31 +01:00
.save-submit {
color: $save-button-color;
2014-12-09 00:49:21 +01:00
}
.chatroom-form label,
.controlbox-pane label,
2014-12-09 00:49:21 +01:00
#converse-register label,
#converse-login label {
font-size: $font-size;
2014-12-09 00:49:21 +01:00
font-weight: bold;
2014-12-14 00:45:31 +01:00
height: auto;
margin: 4px;
2014-12-09 00:49:21 +01:00
}
#converse-register .login-submit,
#converse-login .login-submit,
#converse-register .submit,
#converse-login .submit {
height: 30px;
padding: 0px;
font-size: $font-size;
2014-12-09 00:49:21 +01:00
}
2014-12-14 00:45:31 +01:00
#converse-login .submit {
margin: 1em 0;
2014-12-09 00:49:21 +01:00
}
form.add-chatroom {
background: none;
padding: 8px;
2014-12-09 00:49:21 +01:00
input[type=button],
input[type=submit],
input[type=text] {
2014-12-14 00:45:31 +01:00
margin: 0;
width: 100%;
2014-12-14 00:45:31 +01:00
padding: 5px;
}
input[type=submit] {
2014-12-14 00:45:31 +01:00
margin: 5px 0;
color: $save-button-color;
}
2014-12-09 00:49:21 +01:00
}
select#select-xmpp-status {
float: right;
margin-right: 0.5em;
}
/* @group Tabs */
.chat-head {
2014-12-14 00:45:31 +01:00
border-top-left-radius: 4px;
border-top-right-radius: 4px;
color: #ffffff;
font-size: 100%;
margin: 0;
padding: 6px;
&.controlbox-head {
2014-12-31 11:54:33 +01:00
background-color: $chat-head-color;
2014-12-14 00:45:31 +01:00
border-top-left-radius: 4px;
border-top-right-radius: 4px;
color: $chat-head-inverse-text-color;
height: $chat-head-height;
margin: 0;
padding: 6px 6px 6px 0;
}
.avatar {
float: left;
}
#controlbox-tabs {
text-align: center;
display: inline;
overflow: hidden;
font-size: 12px;
list-style-type: none;
a.current,
a.current:hover {
box-shadow: none;
border-bottom: 0;
height: $chat-head-height;
cursor: default;
color: $text-color;
}
/* single tab */
li {
float: left;
list-style: none;
padding-left: 0;
text-shadow: white 0 1px 0;
width: 38%;
a {
background-color: white;
border-bottom: 1px solid $border-color;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
box-shadow: inset 2px -2px 20px rgba(0, 0, 0, 0.3);
color: #888;
display: block;
font-size: 12px;
height: $chat-head-height - 1px;
line-height: $chat-head-height - 1px;
margin: 0;
text-align: center;
text-decoration: none;
}
a:hover {
color: $text-color;
}
}
}
2014-12-09 00:49:21 +01:00
}
div#chatrooms {
overflow-y: auto;
}
form.sendXMPPMessage {
-moz-background-clip: padding;
2014-12-14 00:45:31 +01:00
-moz-border-radius: 4px;
2014-12-09 00:49:21 +01:00
-webkit-background-clip: padding-box;
2014-12-14 00:45:31 +01:00
-webkit-border-radius: 4px;
2014-12-09 00:49:21 +01:00
background-clip: padding-box;
2014-12-14 00:45:31 +01:00
background: white;
border-radius: 4px;
2014-12-09 00:49:21 +01:00
border-top-left-radius: 0;
border-top-right-radius: 0;
2014-12-14 00:45:31 +01:00
border-top: 1px solid #BBB;
2014-12-09 00:49:21 +01:00
border: 0;
2014-12-14 00:45:31 +01:00
margin: 0;
padding: 0;
position: relative;
width: $chat-width;
height: #{$chat-textarea-height + $toolbar-height};
.chat-textarea {
@include border-bottom-radius(4px);
border: 0;
height: $chat-textarea-height;
padding: 0.5em;
2014-12-14 00:45:31 +01:00
width: 100%;
resize: none;
2014-12-14 00:45:31 +01:00
}
2014-12-09 00:49:21 +01:00
}
.chat-toolbar {
font-size: $font-size;
2014-12-09 00:49:21 +01:00
margin: 0;
2014-12-14 00:45:31 +01:00
padding: 0 4px;
height: $toolbar-height;
2014-12-09 00:49:21 +01:00
display: block;
a {
color: $link-color;
}
2014-12-09 00:49:21 +01:00
.unencrypted a,
.unencrypted {
color: #8f2831;
}
2014-12-09 00:49:21 +01:00
.unverified a,
.unverified {
color: #cf5300;
}
2014-12-09 00:49:21 +01:00
.private a,
.private {
color: #4b7003;
}
.toggle-participants,
.toggle-clear,
.toggle-otr {
float: right;
}
2014-12-09 00:49:21 +01:00
li {
display: inline-block;
list-style: none;
padding: 0 3px 0 3px;
cursor: pointer;
margin-top: 1px;
}
li:hover {
cursor: pointer;
}
2014-12-09 00:49:21 +01:00
ul {
background: #fff;
bottom: 100%;
box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.4);
display: none;
font-size: 12px;
margin: 0 0 1px 0;
position: absolute;
right: 0;
li {
cursor: pointer;
list-style: none;
position: relative;
a:hover {
color: #8f2831;
}
}
}
2014-12-09 00:49:21 +01:00
.toggle-smiley {
padding-left: 5px;
ul {
li {
font-size: $font-size;
padding: 5px;
z-index: 98;
}
li:hover {
background-color: $highlight-color;
}
}
}
2014-12-09 00:49:21 +01:00
.toggle-otr {
ul {
li {
background-color: white;
display: block;
z-index: 99;
a {
-moz-transition: background-color 0.2s ease-in-out;
-webkit-transition: background-color 0.2s ease-in-out;
transition: background-color 0.2s ease-in-out;
display: block;
padding: 1px;
text-decoration: none;
}
}
}
}
2014-12-09 00:49:21 +01:00
}
.chat-toolbar-text {
font-size: 12px;
padding-right: 3px;
}
2014-12-14 00:45:31 +01:00
#set-custom-xmpp-status {
2014-12-09 00:49:21 +01:00
float: left;
padding: 0;
2014-12-14 00:45:31 +01:00
input {
height: $controlbox-dropdown-height + 1px;
@include calc(width, '100% - 40px');
padding: 0 0 0 0.5em;
2014-12-14 00:45:31 +01:00
}
button {
height: $controlbox-dropdown-height + 1px;
2014-12-14 00:45:31 +01:00
width: 40px;
padding: 1px;
2014-12-14 00:45:31 +01:00
}
}
2014-12-09 00:49:21 +01:00
.chat-textarea-chatbox-selected {
border: 1px solid #578308;
margin: 0;
}
.chat-textarea-chatroom-selected {
border: 2px solid $link-color;
2014-12-09 00:49:21 +01:00
margin: 0;
}
#controlbox {
display: none;
div.xmpp-status {
display: inline;
}
2014-12-09 00:49:21 +01:00
}
/* status dropdown styles */
.chatbox {
.dropdown {
background-color: $light-background-color;
dd {
position: relative;
}
}
2014-12-09 00:49:21 +01:00
}
.chatbox .dropdown dd,
.dropdown dt,
.dropdown ul {
margin: 0;
padding: 0;
}
.add-xmpp-contact {
2014-12-09 00:49:21 +01:00
background: none;
padding: 5px;
input {
margin: 0 0 1rem;
}
button {
width: 100%;
}
2014-12-09 00:49:21 +01:00
}
.xmpp-status-menu {
text-align: left;
2014-12-14 00:45:31 +01:00
li {
padding: 2px;
a {
width: 100%;
padding: 0 8px;
}
}
2014-12-09 00:49:21 +01:00
}
.xmpp-status-menu li a.logout,
.xmpp-status-menu li a.logout span {
color: $warning-color;
2014-12-09 00:49:21 +01:00
}
2014-12-14 00:45:31 +01:00
.set-xmpp-status {
background: none;
padding: 0.5em;
.dropdown dd ul {
z-index: 22;
}
2014-12-09 00:49:21 +01:00
}
.minimized-chats-flyout,
.box-flyout {
border-radius: 4px;
bottom: 6px;
box-shadow: 1px 3px 5px 3px rgba(0, 0, 0, 0.4);
display: block;
height: $chat-height;
@media screen and (max-width: $mobile_landscape_length) {
height: $mobile-chat-height;
}
2014-12-09 00:49:21 +01:00
position: absolute;
}
.minimized-chats-flyout {
border-radius: 4px;
2014-12-31 16:58:15 +01:00
bottom: $bottom-gutter-height;
2014-12-09 00:49:21 +01:00
box-shadow: 1px 3px 5px 3px rgba(0, 0, 0, 0.4);
display: block;
position: absolute;
height: auto;
width: 130px;
.chat-head-chatroom,
.chat-head {
border-radius: 4px;
width: 130px;
2014-12-31 16:58:15 +01:00
height: 35px;
margin-bottom: 1px;
}
}
2014-12-09 00:49:21 +01:00
.minimized-chats-flyout.minimized {
height: auto;
}
.dragresize {
position: absolute;
width: $chat-width;
2014-12-09 00:49:21 +01:00
height: 5px;
background: transparent;
border: 0;
top: 0;
margin-left: 0;
cursor: n-resize;
z-index: 20;
}
}