1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00
Tims-Chat/file/style/be.bastelstu.wcf.chat.less

336 lines
5.3 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
*/
@keyframes timsChatNotify {
2013-05-30 20:20:31 +00:00
from {
border-color: @wcfContainerBorderColor;
}
2013-05-30 20:20:31 +00:00
to {
border-color: @wcfInputHoverBorderColor;
}
}
2013-01-09 18:59:32 +00:00
#tplChat {
#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 {
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-15 12:39:59 +00:00
.sidebar {
overflow: auto;
position: absolute !important;
right: 0;
height: 100%;
2012-10-15 12:39:59 +00:00
padding-top: 0px !important;
> div {
> .chatTabMenuContainer {
padding: 14px 0 21px;
> .chatSidebarMenu {
background: @wcfContentBackgroundColor;
margin: -14px 0 0;
2013-05-10 15:12:53 +00:00
.borderRadius(0);
}
}
}
#sidebarContent {
fieldset {
padding-top: 0px;
padding-bottom: 0px;
}
nav {
ul {
> li {
> a {
padding: @wcfGapTiny @wcfGapMedium @wcfGapTiny @wcfGapLarge;
height: 24px; // height of avatar image
}
> a:before {
display: inline-block;
content: "";
height: 100%;
vertical-align: middle;
}
> &.active {
margin-top: @wcfGapSmall;
}
}
}
}
ul:not(.dropdownMenu) {
> li {
margin-top: @wcfGapSmall;
}
}
#timsChatUserList {
.timsChatUser {
> a {
background: @wcfContentBackgroundColor;
img {
margin-right: @wcfGapSmall;
}
}
&.away {
opacity: .5;
}
&.suspended a {
text-decoration: line-through;
}
}
}
}
}
#timsChatRoomList {
> div {
> div {
margin-top: @wcfGapMedium;
text-align: center;
}
}
}
2012-08-28 20:29:34 +00:00
#smilies {
li {
.transition(opacity, .2s);
}
&.disabled {
2013-01-30 16:15:46 +00:00
li {
opacity: .5;
}
}
margin-top: @wcfGapMedium;
2013-04-09 22:16:56 +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;
}
}
}
}
#timsChatOptions {
> ul {
text-align: right;
2013-04-09 22:16:56 +00:00
}
}
2013-04-09 22:16:56 +00:00
#toggleRooms .ajaxLoad {
2013-02-01 19:41:59 +00:00
position: absolute;
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);
}
#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
}
.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
#timsChatOptions {
margin-bottom: @wcfGapMedium;
}
2013-05-24 18:33:41 +00:00
#tplChat {
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
}
}
}