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-01-09 18:59:32 +00:00
|
|
|
#tplChat {
|
2012-10-15 12:39:59 +00:00
|
|
|
#content {
|
2013-04-09 22:16:56 +00:00
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
#timsChatTopic {
|
2013-04-22 16:52:05 +00:00
|
|
|
padding: @wcfGapTiny;
|
2013-04-09 22:16:56 +00:00
|
|
|
.transition(height, .2s);
|
|
|
|
.transition(padding-top, .2s);
|
|
|
|
.transition(padding-bottom, .2s);
|
2012-10-19 20:26:12 +00:00
|
|
|
|
2013-04-09 22:16:56 +00:00
|
|
|
&.empty {
|
|
|
|
height: 0px;
|
|
|
|
overflow: hidden;
|
|
|
|
border: 0px;
|
|
|
|
padding: 0px;
|
2012-10-19 20:26:12 +00:00
|
|
|
}
|
2013-01-09 18:59:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.timsChatMessageContainer {
|
|
|
|
height: 200px;
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
> {
|
|
|
|
.markContainer {
|
2013-04-27 10:21:31 +00:00
|
|
|
display: table-cell;
|
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;
|
|
|
|
}
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
.icon;
|
|
|
|
.icon16;
|
2013-04-27 10:21:31 +00:00
|
|
|
padding: @wcfGapTiny;
|
2013-04-26 21:00:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
&:nth-child(even) {
|
|
|
|
background-color: @wcfContainerAccentBackgroundColor;
|
2013-01-30 15:34:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> {
|
2013-04-27 10:21:31 +00:00
|
|
|
time, .usernameContainer, .text, .markContainer {
|
2013-01-30 15:34:02 +00:00
|
|
|
display: table-cell;
|
2013-02-02 15:45:15 +00:00
|
|
|
vertical-align: top;
|
2013-04-27 10:21:31 +00:00
|
|
|
padding: @wcfGapTiny 0;
|
2013-01-30 15:34:02 +00:00
|
|
|
}
|
|
|
|
|
2013-04-26 21:00:48 +00:00
|
|
|
.markContainer {
|
2013-04-27 10:21:31 +00:00
|
|
|
display: none;
|
|
|
|
padding: 0;
|
2013-04-26 21:00:48 +00:00
|
|
|
}
|
|
|
|
|
2013-04-22 15:04:23 +00:00
|
|
|
time {
|
|
|
|
&::before {
|
|
|
|
content: "[";
|
|
|
|
}
|
|
|
|
&::after {
|
|
|
|
content: "]";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-30 15:34:02 +00:00
|
|
|
.usernameContainer {
|
|
|
|
text-align: right;
|
|
|
|
min-width: 100px;
|
2013-04-27 10:21:31 +00:00
|
|
|
padding-right: @wcfGapSmall;
|
2013-04-21 18:32:30 +00:00
|
|
|
white-space: nowrap;
|
2013-04-26 21:00:48 +00:00
|
|
|
font-weight: bold;
|
2013-01-30 15:34:02 +00:00
|
|
|
}
|
2013-04-22 15:04:23 +00:00
|
|
|
|
|
|
|
.text {
|
|
|
|
width: 100%;
|
|
|
|
}
|
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-04-22 16:52:05 +00:00
|
|
|
padding-top: 0;
|
2012-10-15 12:39:59 +00:00
|
|
|
|
2012-10-25 20:58:54 +00:00
|
|
|
#sidebarContent {
|
|
|
|
padding-top: 0px;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.timsChatSidebarTabs {
|
|
|
|
height: 34px;
|
|
|
|
z-index: 131;
|
|
|
|
position: relative;
|
|
|
|
.boxShadowNative(0 0 5px 0 rgba(0, 0, 0, 0.1));
|
|
|
|
|
|
|
|
.left & {
|
|
|
|
margin-right: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.right & {
|
|
|
|
margin-left: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
height: 33px;
|
|
|
|
|
|
|
|
li {
|
|
|
|
width: 50%;
|
|
|
|
float: left;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
a {
|
|
|
|
color: fade(@wcfColor, 80%);
|
|
|
|
.textShadow(@wcfContentBackgroundColor);
|
|
|
|
height: 22px;
|
|
|
|
padding: 9px 0 0;
|
|
|
|
|
2013-01-30 16:15:46 +00:00
|
|
|
.transition(border-radius, .2s);
|
|
|
|
.transition(background-color, .2s);
|
|
|
|
.transition(font-size, .2s);
|
|
|
|
|
2012-10-25 20:58:54 +00:00
|
|
|
|
|
|
|
.collapsed & {
|
|
|
|
border: none !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active a {
|
|
|
|
background-color: @wcfContentBackgroundColor;
|
|
|
|
border-bottom: 1px solid darken(@wcfSidebarBackgroundColor, 6%);
|
|
|
|
.borderRadius(0, 7px);
|
|
|
|
color: @wcfColor;
|
|
|
|
font-size: 130%;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:first-child.active a {
|
|
|
|
.borderRadius(0, 0, 7px, 0);
|
|
|
|
border-right: 1px solid darken(@wcfSidebarBackgroundColor, 6%);
|
|
|
|
|
|
|
|
.right & {
|
|
|
|
margin-left: -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child.active a {
|
|
|
|
.borderRadius(0, 0, 0, 7px);
|
|
|
|
border-left: 1px solid darken(@wcfSidebarBackgroundColor, 6%);
|
|
|
|
|
|
|
|
.left & {
|
|
|
|
margin-right: -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
.badgeBG(@wcfSidebarBackgroundColor + rgba(0, 0, 0, 0.2));
|
|
|
|
.badgeShadow(@wcfSidebarBackgroundColor + rgba(0, 0, 0, 0.2));
|
|
|
|
position: relative;
|
|
|
|
top: -1px;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active .badge {
|
|
|
|
font-size: 65% !important;
|
|
|
|
.badgeBG(@wcfContentBackgroundColor);
|
|
|
|
.badgeShadow(@wcfContentBackgroundColor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#sidebarContainer {
|
|
|
|
overflow-y: auto;
|
|
|
|
height: 420px;
|
|
|
|
width: 100%;
|
|
|
|
border-top: 1px solid darken(@wcfSidebarBackgroundColor, 8%);
|
|
|
|
z-index: 131;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
a {
|
|
|
|
outline: none;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
ul:not(.dropdownMenu) {
|
|
|
|
> li {
|
2013-04-09 22:16:56 +00:00
|
|
|
margin-top: @wcfGapSmall;
|
2012-10-25 20:58:54 +00:00
|
|
|
background-color: transparent !important;
|
|
|
|
box-shadow: none !important;
|
|
|
|
|
|
|
|
> a {
|
|
|
|
background-color: fade(@wcfContentBackgroundColor, 33.33%);
|
|
|
|
.textShadow(fade(@wcfContentBackgroundColor, 33.33%));
|
|
|
|
.transition(background-color, .2s);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.activeMenuItem, &.dropdownOpen, &:hover {
|
|
|
|
> a {
|
|
|
|
background-color: @wcfContentBackgroundColor !important;
|
|
|
|
.boxShadowNative(0 0 5px rgba(0, 0, 0, 0.1));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#timsChatRoomList {
|
2013-04-09 22:16:56 +00:00
|
|
|
margin-top: @wcfGapSmall;
|
2012-10-25 20:58:54 +00:00
|
|
|
|
|
|
|
> div {
|
|
|
|
> div {
|
|
|
|
text-align: center;
|
2013-04-09 22:16:56 +00:00
|
|
|
margin-top: @wcfGapMedium;
|
2012-10-25 20:58:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#timsChatUserList {
|
2012-11-20 15:08:48 +00:00
|
|
|
.timsChatUser {
|
|
|
|
&.away {
|
|
|
|
opacity: .5;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.suspended a {
|
|
|
|
text-decoration: line-through;
|
2012-10-25 20:58:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2012-10-15 12:39:59 +00:00
|
|
|
ul {
|
|
|
|
li {
|
|
|
|
a {
|
|
|
|
color: @wcfLinkColor;
|
|
|
|
display: block;
|
|
|
|
padding: 5px 25px 7px 35px;
|
|
|
|
}
|
2011-12-26 20:00:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-08-28 20:29:34 +00:00
|
|
|
|
2012-10-15 12:39:59 +00:00
|
|
|
#timsChatControls {
|
2012-10-19 20:26:12 +00:00
|
|
|
#smilies {
|
2013-01-30 16:15:46 +00:00
|
|
|
li {
|
|
|
|
.transition(opacity, .2s);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.disabled {
|
2012-10-19 20:26:12 +00:00
|
|
|
li {
|
2013-01-30 16:15:46 +00:00
|
|
|
opacity: .5;
|
2012-10-15 12:39:59 +00:00
|
|
|
}
|
2012-04-14 22:21:33 +00:00
|
|
|
}
|
|
|
|
}
|
2013-04-09 22:16:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (min-width: 641px) {
|
2012-10-19 20:26:12 +00:00
|
|
|
#timsChatOptions {
|
|
|
|
top: -1px;
|
|
|
|
right: 1px;
|
|
|
|
margin-left: 0;
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2012-10-15 12:39:59 +00:00
|
|
|
|
2012-10-19 20:26:12 +00:00
|
|
|
> ul {
|
2013-04-09 22:16:56 +00:00
|
|
|
.smallButtons;
|
2012-10-19 20:26:12 +00:00
|
|
|
margin-right: -1px;
|
|
|
|
text-align: right;
|
2011-12-26 20:00:11 +00:00
|
|
|
|
2012-10-19 20:26:12 +00:00
|
|
|
> li {
|
|
|
|
> a {
|
2013-04-09 22:16:56 +00:00
|
|
|
.button;
|
|
|
|
.borderRadius(0);
|
|
|
|
margin: 0;
|
|
|
|
padding-right: 7px;
|
2012-10-15 12:39:59 +00:00
|
|
|
}
|
|
|
|
|
2012-10-19 20:26:12 +00:00
|
|
|
display: inline-block;
|
|
|
|
margin-left: -5px;
|
2012-08-28 20:29:34 +00:00
|
|
|
}
|
2011-12-26 20:00:11 +00:00
|
|
|
|
2012-10-19 20:26:12 +00:00
|
|
|
> li:first-child {
|
|
|
|
> a {
|
|
|
|
border-bottom-left-radius: 14px;
|
2012-10-15 12:39:59 +00:00
|
|
|
}
|
|
|
|
}
|
2011-12-26 20:00:11 +00:00
|
|
|
|
2012-10-19 20:26:12 +00:00
|
|
|
> li:last-child {
|
|
|
|
> a {
|
|
|
|
border-bottom-right-radius: 14px;
|
|
|
|
}
|
2011-12-26 20:00:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-07-07 20:30:28 +00:00
|
|
|
|
2013-04-09 22:16:56 +00:00
|
|
|
@media only screen and (max-width: 640px) {
|
|
|
|
#timsChatMessageContainer {
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
.timsChatMessage {
|
|
|
|
> time {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .usernameContainer {
|
|
|
|
min-width: 0px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#timsChatOptions {
|
|
|
|
margin-top: 5px;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:hover > ul {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .invisible {
|
|
|
|
.button;
|
|
|
|
margin-left: @wcfGapSmall;
|
|
|
|
padding-left: 28px;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\f03a";
|
|
|
|
font-family: FontAwesome;
|
|
|
|
font-size: 14px;
|
|
|
|
left: 9px;
|
|
|
|
position: absolute;
|
|
|
|
top: 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> ul {
|
|
|
|
.dropdown .dropdownMenu;
|
|
|
|
font-size: 120%;
|
|
|
|
left: @wcfGapSmall;
|
|
|
|
|
|
|
|
> li.active {
|
|
|
|
> ul.invisible {
|
|
|
|
display: block;
|
|
|
|
font-size: 85%;
|
|
|
|
padding-left: 14px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> a {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: "\f00c";
|
|
|
|
font-family: FontAwesome;
|
|
|
|
font-size: 14px;
|
|
|
|
position: absolute;
|
|
|
|
right: 7px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-26 21:46:54 +00:00
|
|
|
#toggleRooms .ajaxLoad {
|
2013-02-01 19:41:59 +00:00
|
|
|
position: absolute;
|
|
|
|
right: 5px;
|
|
|
|
top: 3px;
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2012-10-15 14:45:22 +00:00
|
|
|
.badgeBG(@backgroundColor) when (lightness(@backgroundColor) < 50%) {
|
|
|
|
background-color: lighten(@backgroundColor, lightness(@backgroundColor) / 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.badgeBG(@backgroundColor) when (lightness(@backgroundColor) < 20%) {
|
|
|
|
background-color: lighten(@backgroundColor, 20%);
|
|
|
|
}
|
|
|
|
|
|
|
|
.badgeBG(@backgroundColor) when (lightness(@backgroundColor) >= 50%) {
|
|
|
|
background-color: darken(@backgroundColor, lightness(@backgroundColor) / 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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-04-09 22:16:56 +00:00
|
|
|
> div {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2013-04-09 15:37:02 +00:00
|
|
|
|
2013-04-09 22:16:56 +00:00
|
|
|
display: -moz-box;
|
|
|
|
display: -webkit-box;
|
|
|
|
display: -webkit-flex;
|
|
|
|
display: -ms-flexbox;
|
|
|
|
display: flex;
|
2013-04-09 15:37:02 +00:00
|
|
|
|
2013-04-09 22:16:56 +00:00
|
|
|
-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;
|
|
|
|
}
|
|
|
|
|
|
|
|
#timsChatControls {
|
|
|
|
margin-bottom: 15px;
|
2013-04-09 15:37:02 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2012-10-15 14:45:22 +00:00
|
|
|
|
2012-11-23 19:42:05 +00:00
|
|
|
#tplChat, #tplChatLog {
|
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
|
|
|
}
|