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.scss

334 lines
5.4 KiB
SCSS

/**
* Styles for Tims Chat
*
* @author Tim Düsterhus, Maximilian Mader
* @copyright 2010-2012 Tim Düsterhus
* @license Creative Commons Attribution-NonCommercial-ShareAlike <http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode>
* @package be.bastelstu.wcf.chat
*/
#content {
position: relative;
}
#timsChatRoomContent {
text-align: left;
}
.sidebar {
margin-bottom: -20px !important;
overflow: auto;
padding: 0;
h2 {
margin: auto;
}
ul {
li {
a {
color: #6699CC;
display: block;
padding: 5px 25px 7px 35px;
text-shadow: 0 1px 0 #FFFFFF;
}
}
}
}
#timsChatTopic, #smileyList {
padding: 5px;
}
.timsChatMessageContainer {
height: 200px;
overflow-y: scroll;
overflow-x: hidden;
padding-left: 7px !important;
}
#smileyList .smilies {
li {
display: inline;
margin: 5px 5px 0 0;
}
}
#timsChatForm {
white-space: nowrap;
margin-top: 10px;
// Fix to align chatInput in center
text-align: center;
}
#timsChatInput {
position: relative;
z-index: 10;
}
#timsChatControls {
position: relative;
border-radius: 5px 5px 0 5px;
}
#timsChatOptions {
bottom: -28px;
margin-left: 0;
position: absolute;
width: 100%;
> ul {
margin-right: -1px;
text-align: right;
> li {
> a {
&.button {
border-radius: 0 0 0 0;
margin: 0;
padding-right: 7px;
}
}
display: inline-block;
margin-left: -5px;
}
> li:first-child {
> a {
border-bottom-left-radius: 14px;
}
}
> li:last-child {
> a {
border-bottom-right-radius: 14px;
}
}
}
}
#timsChatUserList {
.timsChatUserMenu {
display: none;
background-color: rgba(0, 0, 0, 0.1);
margin-bottom: -5px;
padding: 1px 0 6px;
box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.1) inset;
border-bottom: 1px solid #FFFFFF;
color: rgba(0, 0, 0, 0.4);
text-shadow: none;
> li {
a {
background-color: rgba(255, 255, 255, 0.22);
border-radius: 5px 0 0 5px;
margin-left: 35px;
padding: 1px 0 1px 15px;
color: #555;
}
}
}
.timsChatAway {
opacity: .5;
}
}
.timsChatMessage {
padding-left: 16px;
min-height: 16px;
clear: both;
time {
font-size: .8em;
&::before, &::after {
font-size: .8em;
}
&::before {
content: "[";
}
&::after {
content: "]";
}
}
&.unloaded {
opacity: 0.4;
}
}
.ajaxLoad {
background: {
position: right center;
repeat: no-repeat;
size: auto 100%;
}
}
.timsChatSidebarTabs {
height: 34px;
z-index: 131;
position: relative;
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
.left & {
margin-right: 1px;
}
.right & {
margin-left: 1px;
}
ul {
background-color: rgba(0, 0, 0, 0.2);
height: 33px;
li {
width: 50%;
float: left;
text-align: center;
a {
color: rgba(0, 0, 0, 0.4);
text-shadow: none;
height: 22px;
padding: 9px 0 0;
-moz-transition-property: border-radius, background-color, font-size; -moz-transition-duration: .2s;
-webkit-transition-property: border-radius, background-color, font-size; -webkit-transition-duration: .2s;
.collapsed & {
border: none !important;
}
}
&.active a {
background-color: #FFFFFF;
border-bottom: 1px solid #BBCCDD;
border-radius: 0 0 7px 7px;
color: #000000;
font-size: 130%;
font-weight: bold;
height: 23px;
padding: 7px 0 0;
}
&:first-child.active a {
border-radius: 0 0 7px 0;
border-right: 1px solid #BBCCDD;
.right & {
margin-left: -1px;
}
}
&:last-child.active a {
border-radius: 0 0 0 7px;
border-left: 1px solid #BBCCDD;
.left & {
margin-right: -1px;
}
}
& .badge {
position: relative;
top: -1px;
}
&.active .badge {
font-size: 65% !important;
color: #fff;
background-color: #369;
-webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 1);
-moz-box-shadow: 0 0 1px rgba(255, 255, 255, 1);
-ms-box-shadow: 0 0 1px rgba(255, 255, 255, 1);
-o-box-shadow: 0 0 1px rgba(255, 255, 255, 1);
box-shadow: 0 0 1px rgba(255, 255, 255, 1);
}
}
}
}
#timsChatRoomList {
margin-top: 5px;
> div > div {
margin-top: 10px;
}
}
#sidebarContainer {
overflow-y: auto;
height: 420px;
width: 100%;
border-top: 1px solid #B8D3ED;
z-index: 131;
position: relative;
}
#sidebarContainer a {
outline: none;
overflow: hidden;
}
#timsChatCopyright {
bottom: 5px;
position: absolute;
}
.sidebarContent {
padding-top: 0px;
> div {
ul {
> li {
margin-top: 5px;
background-color: transparent !important;
box-shadow: none !important;
> a {
background-color: rgba(255, 255, 255, 0.3);
-moz-transition-property: background-color; -moz-transition-duration: .2s;
-webkit-transition-property: background-color; -webkit-transition-duration: .2s;
}
> a:hover {
background-color: rgb(255, 255, 255);
}
}
> li.activeMenuItem {
> a {
background-color: #FFFFFF !important;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
}
}
}
}
html.fullscreen {
height: 100%;
overflow: hidden;
#pageHeader, #pageFooter {
display: none;
}
#tplChat {
height: 100%;
overflow: hidden;
#main {
height: 100%;
margin: 0;
padding: 0;
> div, .sidebar, #sidebarContainer {
height: 100%;
}
}
}
}