2012-01-07 16:47:38 +00:00
|
|
|
/**
|
2012-03-12 16:18:15 +00:00
|
|
|
* Styles for Tims Chat
|
2012-01-07 16:47:38 +00:00
|
|
|
*
|
|
|
|
* @author Tim Düsterhus, Maximilian Mader
|
2013-01-27 21:41:36 +00:00
|
|
|
* @copyright 2010-2013 Tim Düsterhus
|
2012-01-07 16:47:38 +00:00
|
|
|
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
|
2012-03-12 16:18:15 +00:00
|
|
|
* @package be.bastelstu.wcf.chat
|
2012-01-07 16:47:38 +00:00
|
|
|
*/
|
2013-05-30 17:03:37 +00:00
|
|
|
@keyframes timsChatNotify {
|
2013-05-30 20:20:31 +00:00
|
|
|
from {
|
|
|
|
border-color: @wcfContainerBorderColor;
|
|
|
|
}
|
2013-05-30 17:03:37 +00:00
|
|
|
|
2013-05-30 20:20:31 +00:00
|
|
|
to {
|
|
|
|
border-color: @wcfInputHoverBorderColor;
|
|
|
|
}
|
2013-05-30 17:03:37 +00:00
|
|
|
}
|
2013-06-24 15:41:52 +00:00
|
|
|
|
|
|
|
.__bubbleArrow {
|
|
|
|
border-color: transparent @wcfContainerBorderColor;
|
|
|
|
left: -6px;
|
|
|
|
top: 5px;
|
|
|
|
border-width: 6px 6px 6px 0;
|
|
|
|
border-style: solid;
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
width: 0;
|
|
|
|
}
|
|
|
|
|
2013-01-09 18:59:32 +00:00
|
|
|
#tplChat {
|
2013-05-03 18:27:41 +00:00
|
|
|
#main > div {
|
|
|
|
overflow: hidden;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2013-05-24 18:33:41 +00:00
|
|
|
#timsChatTopic {
|
|
|
|
padding: @wcfGapTiny;
|
|
|
|
.transition(height, .2s);
|
|
|
|
.transition(padding-top, .2s);
|
|
|
|
.transition(padding-bottom, .2s);
|
2013-04-09 22:16:56 +00:00
|
|
|
|
2013-05-24 18:33:41 +00:00
|
|
|
&.empty {
|
|
|
|
height: 0px;
|
|
|
|
overflow: hidden;
|
|
|
|
border: 0px;
|
|
|
|
padding: 0px;
|
|
|
|
margin: 0px;
|
2013-01-09 18:59:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.timsChatMessageContainer {
|
2013-06-23 16:48:48 +00:00
|
|
|
height: 320px;
|
2013-01-09 18:59:32 +00:00
|
|
|
overflow-y: scroll;
|
|
|
|
overflow-x: hidden;
|
2013-04-26 21:00:48 +00:00
|
|
|
display: none;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.markEnabled {
|
|
|
|
ul {
|
|
|
|
.timsChatMessage {
|
|
|
|
&.jsMarked {
|
|
|
|
background-color: @wcfSelectedBackgroundColor;
|
|
|
|
color: @wcfSelectedColor;
|
|
|
|
}
|
|
|
|
|
2013-06-23 21:40:12 +00:00
|
|
|
> .innerMessageContainer {
|
2013-04-26 21:00:48 +00:00
|
|
|
.markContainer {
|
2013-06-23 21:40:12 +00:00
|
|
|
display: block;
|
2013-04-26 21:00:48 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-01-09 18:59:32 +00:00
|
|
|
|
2013-01-30 15:34:02 +00:00
|
|
|
ul {
|
|
|
|
display: table;
|
2013-04-22 15:04:23 +00:00
|
|
|
width: 100%;
|
2013-04-26 21:00:48 +00:00
|
|
|
|
2013-01-30 15:34:02 +00:00
|
|
|
.timsChatMessage {
|
|
|
|
display: table-row;
|
2013-04-27 10:21:31 +00:00
|
|
|
height: 20px;
|
2013-01-30 16:15:46 +00:00
|
|
|
.transition(opacity, .2s);
|
|
|
|
|
2013-04-26 21:00:48 +00:00
|
|
|
&.unloaded {
|
|
|
|
opacity: .5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:nth-child(even) {
|
2013-06-24 15:41:52 +00:00
|
|
|
> .innerMessageContainer.bubble .innerMessage, .innerMessageContainer.right.bubble .innerMessage {
|
2013-06-23 16:48:48 +00:00
|
|
|
background-color: @wcfContainerAccentBackgroundColor;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
border-color: transparent @wcfContainerAccentBackgroundColor;
|
|
|
|
}
|
|
|
|
}
|
2013-01-30 15:34:02 +00:00
|
|
|
}
|
|
|
|
|
2013-06-24 15:41:52 +00:00
|
|
|
&::before {
|
|
|
|
.icon;
|
|
|
|
.icon16;
|
|
|
|
padding: 8px 0 0 4px;
|
|
|
|
height: 16px;
|
|
|
|
width: 16px;
|
|
|
|
margin-right: -16px;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.messageIcon {
|
|
|
|
float: left;
|
|
|
|
padding: 8px 0 0 4px;
|
|
|
|
margin-right: -16px;
|
|
|
|
}
|
|
|
|
|
2013-06-23 16:48:48 +00:00
|
|
|
> .innerMessageContainer {
|
|
|
|
padding: 5px 20px 5px 5px;
|
2013-06-23 21:40:12 +00:00
|
|
|
position: relative;
|
2013-06-23 16:48:48 +00:00
|
|
|
|
|
|
|
.userAvatar {
|
|
|
|
float: left;
|
|
|
|
margin-left: 16px;
|
2013-01-30 15:34:02 +00:00
|
|
|
}
|
|
|
|
|
2013-06-23 16:48:48 +00:00
|
|
|
.innerMessage {
|
|
|
|
margin-left: 46px;
|
|
|
|
padding: 2px 5px 5px;
|
2013-06-23 18:11:10 +00:00
|
|
|
|
|
|
|
time {
|
|
|
|
float: right;
|
|
|
|
}
|
2013-06-23 21:40:12 +00:00
|
|
|
|
|
|
|
> .text {
|
|
|
|
img {
|
|
|
|
max-width: 480px;
|
|
|
|
max-height: 320px;
|
|
|
|
}
|
|
|
|
}
|
2013-04-22 15:04:23 +00:00
|
|
|
}
|
|
|
|
|
2013-06-23 17:45:20 +00:00
|
|
|
&.bubble {
|
2013-06-23 16:48:48 +00:00
|
|
|
.userAvatar {
|
|
|
|
margin-left: 0;
|
2013-06-24 15:41:52 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
padding: 2px;
|
|
|
|
}
|
2013-06-23 16:48:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.innerMessage {
|
|
|
|
border-width: 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: @wcfContainerBorderColor;
|
|
|
|
border-radius: @wcfContainerBorderRadius;
|
|
|
|
background-color: @wcfContainerBackgroundColor;
|
2013-06-23 18:11:10 +00:00
|
|
|
position: relative;
|
|
|
|
|
2013-06-23 16:48:48 +00:00
|
|
|
.username {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2013-06-23 17:45:20 +00:00
|
|
|
> ul.text {
|
|
|
|
li {
|
2013-06-23 18:40:00 +00:00
|
|
|
.clearfix;
|
2013-06-23 17:45:20 +00:00
|
|
|
border-style: solid;
|
|
|
|
border-width: 0 0 1px 0;
|
|
|
|
border-color: @wcfContainerBorderColor;
|
|
|
|
padding: 3px 0 4px;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
border-style: none;
|
|
|
|
padding: 3px 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-06-23 16:48:48 +00:00
|
|
|
&:before {
|
2013-06-24 15:41:52 +00:00
|
|
|
.__bubbleArrow;
|
2013-06-23 16:48:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
2013-06-24 15:41:52 +00:00
|
|
|
.__bubbleArrow;
|
|
|
|
border-color: transparent @wcfContainerBackgroundColor;
|
2013-06-23 18:11:10 +00:00
|
|
|
left: -5px;
|
|
|
|
top: 6px;
|
2013-06-24 15:41:52 +00:00
|
|
|
border-width: 5px 5px 5px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.right {
|
|
|
|
.userAvatar {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.innerMessage {
|
|
|
|
margin-right: 46px;
|
|
|
|
margin-left: 0px;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
.__bubbleArrow;
|
|
|
|
left: auto;
|
|
|
|
right: -6px;
|
|
|
|
border-width: 6px 0 6px 6px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
.__bubbleArrow;
|
|
|
|
border-color: transparent @wcfContainerBackgroundColor;
|
|
|
|
left: auto;
|
|
|
|
right: -5px;
|
|
|
|
top: 6px;
|
|
|
|
border-width: 5px 0 5px 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
time {
|
|
|
|
float: left;
|
|
|
|
margin-right: @wcfGapTiny;
|
|
|
|
}
|
|
|
|
|
|
|
|
.username {
|
|
|
|
float: right;
|
|
|
|
}
|
2013-06-23 16:48:48 +00:00
|
|
|
}
|
|
|
|
}
|
2013-01-30 15:34:02 +00:00
|
|
|
}
|
2013-04-22 15:04:23 +00:00
|
|
|
|
2013-06-23 16:48:48 +00:00
|
|
|
> .markContainer {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
right: 0px;
|
|
|
|
top: 6px;
|
2013-04-22 15:04:23 +00:00
|
|
|
}
|
2013-01-30 15:34:02 +00:00
|
|
|
}
|
2013-01-28 19:45:57 +00:00
|
|
|
}
|
2012-10-19 20:26:12 +00:00
|
|
|
}
|
2011-12-26 20:00:11 +00:00
|
|
|
}
|
|
|
|
|
2012-10-15 12:39:59 +00:00
|
|
|
.sidebar {
|
2013-05-03 18:27:41 +00:00
|
|
|
padding-top: 0px !important;
|
|
|
|
|
|
|
|
> div {
|
2013-05-30 21:42:37 +00:00
|
|
|
height: 400px;
|
|
|
|
overflow: auto !important;
|
2013-05-03 18:27:41 +00:00
|
|
|
> .chatTabMenuContainer {
|
|
|
|
padding: 14px 0 21px;
|
2012-10-25 20:58:54 +00:00
|
|
|
|
2013-05-03 18:27:41 +00:00
|
|
|
> .chatSidebarMenu {
|
|
|
|
background: @wcfContentBackgroundColor;
|
|
|
|
margin: -14px 0 0;
|
2013-06-12 20:57:59 +00:00
|
|
|
border-radius: 0px;
|
2012-10-25 20:58:54 +00:00
|
|
|
}
|
2013-05-03 18:27:41 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#sidebarContent {
|
|
|
|
fieldset {
|
|
|
|
padding-top: 0px;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav {
|
2012-10-25 20:58:54 +00:00
|
|
|
ul {
|
2013-05-03 18:27:41 +00:00
|
|
|
> li {
|
|
|
|
> a {
|
|
|
|
padding: @wcfGapTiny @wcfGapMedium @wcfGapTiny @wcfGapLarge;
|
|
|
|
height: 24px; // height of avatar image
|
2012-10-25 20:58:54 +00:00
|
|
|
}
|
|
|
|
|
2013-05-03 18:27:41 +00:00
|
|
|
> a:before {
|
|
|
|
display: inline-block;
|
|
|
|
content: "";
|
|
|
|
height: 100%;
|
|
|
|
vertical-align: middle;
|
2012-10-25 20:58:54 +00:00
|
|
|
}
|
|
|
|
|
2013-05-03 18:27:41 +00:00
|
|
|
> &.active {
|
|
|
|
margin-top: @wcfGapSmall;
|
2012-10-25 20:58:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-05-03 18:27:41 +00:00
|
|
|
ul:not(.dropdownMenu) {
|
|
|
|
> li {
|
|
|
|
margin-top: @wcfGapSmall;
|
2012-10-25 20:58:54 +00:00
|
|
|
}
|
2013-05-03 18:27:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#timsChatUserList {
|
|
|
|
.timsChatUser {
|
|
|
|
> a {
|
|
|
|
background: @wcfContentBackgroundColor;
|
2012-10-25 20:58:54 +00:00
|
|
|
|
2013-05-03 18:27:41 +00:00
|
|
|
img {
|
|
|
|
margin-right: @wcfGapSmall;
|
2012-10-25 20:58:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-05-03 18:27:41 +00:00
|
|
|
&.away {
|
|
|
|
opacity: .5;
|
2012-10-25 20:58:54 +00:00
|
|
|
}
|
2013-05-03 18:27:41 +00:00
|
|
|
|
|
|
|
&.suspended a {
|
|
|
|
text-decoration: line-through;
|
2012-10-25 20:58:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-05-03 18:27:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#timsChatRoomList {
|
|
|
|
> div {
|
|
|
|
> div {
|
|
|
|
margin-top: @wcfGapMedium;
|
|
|
|
text-align: center;
|
2011-12-26 20:00:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-08-28 20:29:34 +00:00
|
|
|
|
2013-05-03 18:27:41 +00:00
|
|
|
#smilies {
|
|
|
|
li {
|
|
|
|
.transition(opacity, .2s);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.disabled {
|
2013-01-30 16:15:46 +00:00
|
|
|
li {
|
2013-05-03 18:27:41 +00:00
|
|
|
opacity: .5;
|
2012-04-14 22:21:33 +00:00
|
|
|
}
|
|
|
|
}
|
2013-05-03 18:27:41 +00:00
|
|
|
|
|
|
|
margin-top: @wcfGapMedium;
|
2013-04-09 22:16:56 +00:00
|
|
|
}
|
|
|
|
|
2013-05-03 18:27:41 +00:00
|
|
|
@media only screen and (max-width: 800px) {
|
2013-04-09 22:16:56 +00:00
|
|
|
#timsChatMessageContainer {
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
.timsChatMessage {
|
|
|
|
> time {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .usernameContainer {
|
|
|
|
min-width: 0px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2013-05-03 18:27:41 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#timsChatOptions {
|
|
|
|
> ul {
|
|
|
|
text-align: right;
|
2013-04-09 22:16:56 +00:00
|
|
|
}
|
2013-05-03 18:27:41 +00:00
|
|
|
}
|
2013-04-09 22:16:56 +00:00
|
|
|
|
2013-01-26 21:46:54 +00:00
|
|
|
#toggleRooms .ajaxLoad {
|
2013-02-01 19:41:59 +00:00
|
|
|
position: absolute;
|
2013-05-03 18:27:41 +00:00
|
|
|
right: 10px;
|
|
|
|
top: 7px;
|
2013-02-01 19:41:59 +00:00
|
|
|
display: none;
|
2012-10-15 12:39:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#timsChatCopyright {
|
|
|
|
.textShadow(@wcfContentBackgroundColor);
|
|
|
|
}
|
|
|
|
|
2013-01-27 21:41:36 +00:00
|
|
|
#timsChatCopyrightDialog > div {
|
2013-01-27 14:16:29 +00:00
|
|
|
background-position: right center;
|
2012-10-15 12:39:59 +00:00
|
|
|
background-repeat: no-repeat;
|
2013-01-27 21:41:36 +00:00
|
|
|
min-height: 150px;
|
2012-10-15 12:39:59 +00:00
|
|
|
}
|
2013-05-30 17:03:37 +00:00
|
|
|
|
2013-05-30 20:21:10 +00:00
|
|
|
.notification {
|
|
|
|
animation-duration: .2s;
|
|
|
|
animation-name: timsChatNotify;
|
|
|
|
animation-iteration-count: 5;
|
|
|
|
animation-direction: alternate;
|
|
|
|
animation-timing-function: linear;
|
|
|
|
border-color: @wcfInputHoverBorderColor;
|
|
|
|
}
|
2012-10-15 14:45:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
html.fullscreen {
|
2013-04-09 15:37:02 +00:00
|
|
|
#top {
|
|
|
|
height: 0px;
|
|
|
|
}
|
|
|
|
|
2013-04-09 22:16:56 +00:00
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
2013-04-09 15:37:02 +00:00
|
|
|
|
2013-04-09 22:16:56 +00:00
|
|
|
#content {
|
2013-04-09 15:37:02 +00:00
|
|
|
height: 100%;
|
|
|
|
|
2013-05-24 18:33:41 +00:00
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
display: -moz-box;
|
|
|
|
display: -webkit-box;
|
|
|
|
display: -webkit-flex;
|
|
|
|
display: -ms-flexbox;
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
-webkit-box-orient: vertical;
|
|
|
|
-moz-box-orient: vertical;
|
|
|
|
-webkit-box-direction: normal;
|
|
|
|
-moz-box-direction: normal;
|
|
|
|
-webkit-flex-direction: column;
|
|
|
|
-ms-flex-direction: column;
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
.timsChatMessageContainer {
|
|
|
|
-webkit-box-flex: 1;
|
|
|
|
-moz-box-flex: 1;
|
|
|
|
-webkit-flex: 1 0 auto;
|
|
|
|
-ms-flex: 1 0 auto;
|
|
|
|
flex: 1 0 auto;
|
2013-04-09 15:37:02 +00:00
|
|
|
}
|
|
|
|
}
|
2012-10-15 14:45:22 +00:00
|
|
|
|
2013-05-03 18:27:41 +00:00
|
|
|
#timsChatOptions {
|
|
|
|
margin-bottom: @wcfGapMedium;
|
|
|
|
}
|
|
|
|
|
2013-05-24 18:33:41 +00:00
|
|
|
#tplChat {
|
2012-06-13 15:55:20 +00:00
|
|
|
height: 100%;
|
2012-06-28 16:26:55 +00:00
|
|
|
overflow: hidden;
|
|
|
|
|
2012-10-15 12:39:59 +00:00
|
|
|
#pageHeader, #pageFooter {
|
|
|
|
display: none;
|
|
|
|
}
|
2012-06-28 16:26:55 +00:00
|
|
|
|
2012-10-15 14:45:22 +00:00
|
|
|
#main {
|
2012-10-15 12:39:59 +00:00
|
|
|
height: 100%;
|
2012-10-15 14:45:22 +00:00
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2012-10-15 12:39:59 +00:00
|
|
|
|
2012-10-15 14:45:22 +00:00
|
|
|
> div, .sidebar, #sidebarContainer {
|
2012-06-28 16:26:55 +00:00
|
|
|
height: 100%;
|
|
|
|
}
|
2012-06-13 15:55:20 +00:00
|
|
|
}
|
|
|
|
}
|
2012-09-23 15:37:18 +00:00
|
|
|
}
|