1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

make Tims Chat compatible with collapsible sidebar

This commit is contained in:
Tim Düsterhus 2012-10-25 22:58:54 +02:00
parent ea3b0f69cf
commit a03cf10fea
3 changed files with 159 additions and 161 deletions

View File

@ -100,7 +100,9 @@ public function assignVariables() {
'roomID' => $this->roomID,
'rooms' => $this->rooms,
'defaultSmilies' => $this->defaultSmilies,
'smileyCategories' => $this->smileyCategories
'smileyCategories' => $this->smileyCategories,
'sidebarCollapsed' => \wcf\system\user\collapsible\content\UserCollapsibleContentHandler::getInstance()->isCollapsed('com.woltlab.wcf.collapsibleSidebar', 'be.bastelstu.wcf.chat.ChatPage'),
'sidebarName' => 'be.bastelstu.wcf.chat.ChatPage'
));
}

View File

@ -9,8 +9,6 @@
#tplChat {
#content {
position: relative;
#timsChatRoomContent {
text-align: left;
@ -52,9 +50,163 @@
.sidebar {
margin-bottom: -20px !important;
overflow: auto;
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 {
background-color: rgba(0, 0, 0, 0.2);
height: 33px;
li {
width: 50%;
float: left;
text-align: center;
a {
color: fade(@wcfColor, 80%);
.textShadow(@wcfContentBackgroundColor);
height: 22px;
padding: 9px 0 0;
.transition(~"border-radius .2s linear 0s, background-color .2s linear 0s, 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 {
.timsChatUserMenu {
display: none;
background-color: rgba(0, 0, 0, 0.1);
border-bottom: 1px solid @wcfContentBackgroundColor;
color: rgba(0, 0, 0, 0.4);
> li {
a {
background-color: rgba(255, 255, 255, 0.22);
.textShadow(@wcfSidebarBackgroundColor + rgba(0, 0, 0, 0.1) + rgba(255, 255, 255, 0.22)) !important;
.borderRadius(5px, 0, 0, 5px);
margin-left: 35px;
padding: 1px 0 1px 15px;
color: @wcfColor;
}
}
}
.timsChatAway {
opacity: .5;
}
}
}
}
h2 {
margin: auto;
}
@ -149,8 +301,6 @@
}
#timsChatCopyright {
bottom: 5px;
position: absolute;
.textShadow(@wcfContentBackgroundColor);
}
@ -160,160 +310,6 @@
min-height: 50%;
}
#sidebarContent {
padding-top: 0px;
.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 {
background-color: rgba(0, 0, 0, 0.2);
height: 33px;
li {
width: 50%;
float: left;
text-align: center;
a {
color: fade(@wcfColor, 80%);
.textShadow(@wcfContentBackgroundColor);
height: 22px;
padding: 9px 0 0;
.transition(~"border-radius .2s linear 0s, background-color .2s linear 0s, 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 {
.timsChatUserMenu {
display: none;
background-color: rgba(0, 0, 0, 0.1);
border-bottom: 1px solid @wcfContentBackgroundColor;
color: rgba(0, 0, 0, 0.4);
> li {
a {
background-color: rgba(255, 255, 255, 0.22);
.textShadow(@wcfSidebarBackgroundColor + rgba(0, 0, 0, 0.1) + rgba(255, 255, 255, 0.22)) !important;
.borderRadius(5px, 0, 0, 5px);
margin-left: 35px;
padding: 1px 0 1px 15px;
color: @wcfColor;
}
}
}
.timsChatAway {
opacity: .5;
}
}
}
}
.badgeBG(@backgroundColor) when (lightness(@backgroundColor) < 50%) {
background-color: lighten(@backgroundColor, lightness(@backgroundColor) / 2);
}

View File

@ -4,7 +4,7 @@
<packagename><![CDATA[Tims Chat]]></packagename>
<packagedescription><![CDATA[Chat for WoltLab Community Framework™]]></packagedescription>
<standalone>0</standalone>
<version>3.0.0 Alpha 14</version>
<version>3.0.0 Alpha 19</version>
<date>2011-11-26</date>
<plugin>com.woltlab.wcf.user</plugin> <!-- TODO: Correct me -->
</packageinformation>