1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-22 21:40:08 +00:00
Tims-Chat/file/style/be.bastelstu.wcf.chat.less

364 lines
6.4 KiB
Plaintext
Raw Normal View History

/**
* Styles for Tims Chat
*
* @author Tim Düsterhus, Maximilian Mader
* @copyright 2010-2013 Tim Düsterhus
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
* @package be.bastelstu.wcf.chat
*/
2013-01-09 18:59:32 +00:00
#tplChat {
2012-10-15 12:39:59 +00:00
#content {
#timsChatRoomContent {
text-align: left;
#timsChatTopic {
padding: 5px;
}
2013-01-09 18:59:32 +00:00
}
}
.timsChatMessageContainer {
height: 200px;
overflow-y: scroll;
overflow-x: hidden;
padding-left: 7px !important;
2013-01-30 15:34:02 +00:00
ul {
display: table;
.timsChatMessage {
min-height: 16px;
display: table-row;
2013-01-30 16:15:46 +00:00
.transition(opacity, .2s);
2013-01-30 15:34:02 +00:00
time:first-child {
&::before {
content: "[";
}
&::after {
content: "]";
}
2013-01-09 18:59:32 +00:00
}
2013-01-30 15:34:02 +00:00
.username {
font-weight: bold;
}
> {
time, .usernameContainer, .text {
display: table-cell;
}
.usernameContainer {
text-align: right;
min-width: 100px;
padding: 0px 5px;
}
}
&.unloaded {
2013-01-30 16:15:46 +00:00
opacity: .5;
2013-01-30 15:34:02 +00:00
}
&::before {
.icon;
.icon16;
}
2013-01-28 19:45:57 +00:00
}
}
}
2013-01-09 18:59:32 +00:00
#timsChatLog .timsChatMessageContainer {
height: auto;
overflow: visible;
}
2012-10-15 12:39:59 +00:00
.sidebar {
margin-bottom: -20px !important;
padding: 0;
#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);
.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 {
margin-top: 5px;
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 {
margin-top: 5px;
> div {
> div {
text-align: center;
margin-top: 10px;
}
}
}
#timsChatUserList {
2012-11-20 15:08:48 +00:00
.timsChatUser {
&.away {
opacity: .5;
}
&.suspended a {
text-decoration: line-through;
}
}
}
}
}
2012-10-15 12:39:59 +00:00
h2 {
margin: auto;
}
ul {
li {
a {
color: @wcfLinkColor;
display: block;
padding: 5px 25px 7px 35px;
}
}
}
}
2012-08-28 20:29:34 +00:00
2012-10-15 12:39:59 +00:00
#timsChatForm {
white-space: nowrap;
margin-top: 10px;
// Fix to align chatInput in center
text-align: center;
#timsChatInput {
position: relative;
z-index: 10;
}
2012-10-15 12:39:59 +00:00
}
#timsChatControls {
position: relative;
.borderRadius(5px, 5px, 0, 5px);
#smilies {
padding: 14px 21px 7px;
border-bottom-right-radius: 0px;
2013-01-30 16:15:46 +00:00
li {
.transition(opacity, .2s);
}
&.disabled {
li {
2013-01-30 16:15:46 +00:00
opacity: .5;
2012-10-15 12:39:59 +00:00
}
}
}
#timsChatOptions {
top: -1px;
right: 1px;
margin-left: 0;
position: relative;
width: 100%;
2012-10-15 12:39:59 +00:00
> ul {
margin-right: -1px;
text-align: right;
> li {
> a {
&.button {
.borderRadius(0);
margin: 0;
padding-right: 7px;
}
2012-10-15 12:39:59 +00:00
}
display: inline-block;
margin-left: -5px;
2012-08-28 20:29:34 +00:00
}
> li:first-child {
> a {
border-bottom-left-radius: 14px;
2012-10-15 12:39:59 +00:00
}
}
> li:last-child {
> a {
border-bottom-right-radius: 14px;
}
}
}
}
}
#toggleRooms .ajaxLoad {
position: absolute;
right: 5px;
top: 3px;
display: none;
2012-10-15 12:39:59 +00:00
}
#timsChatCopyright {
.textShadow(@wcfContentBackgroundColor);
}
#timsChatCopyrightDialog > div {
background-position: right center;
2012-10-15 12:39:59 +00:00
background-repeat: no-repeat;
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 {
height: 100%;
overflow: hidden;
2012-11-23 19:42:05 +00:00
#tplChat, #tplChatLog {
2012-06-13 15:55:20 +00:00
height: 100%;
overflow: hidden;
2012-10-15 12:39:59 +00:00
#pageHeader, #pageFooter {
display: none;
}
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 {
height: 100%;
}
2012-06-13 15:55:20 +00:00
}
}
}