# HG changeset patch
# User Dan
# Date 1241980938 14400
# Node ID 3dafe0969e5afc8b2e32595972d3c76ee77e7712
# Parent 6b7644fec887d64fd1bad722de487eb65151e4eb
Enanium: added collapse for left sidebar
diff -r 6b7644fec887 -r 3dafe0969e5a themes/enanium/css/babygrand.css
--- a/themes/enanium/css/babygrand.css Sun May 10 14:41:51 2009 -0400
+++ b/themes/enanium/css/babygrand.css Sun May 10 14:42:18 2009 -0400
@@ -215,7 +215,7 @@
background-color: #292929;
}
-div.sidebar.right a.closebtn {
+div.sidebar a.closebtn {
display: block;
float: right;
margin-right: 10px;
@@ -226,11 +226,24 @@
cursor: pointer;
}
+div.sidebar.left a.closebtn {
+ color: #f0f0f0;
+ background-color: #404040;
+ margin-right: 0px;
+ -moz-border-radius: 0 0 0 4px;
+ line-height: 19px;
+}
+
div.right-sidebar-hidden {
margin-left: 10px;
display: none;
}
+div.left-sidebar-hidden {
+ display: none;
+ position: absolute;
+}
+
div.right-sidebar-hidden a.openbtn {
display: block;
float: right;
@@ -242,6 +255,17 @@
cursor: pointer;
}
+div.left-sidebar-hidden a.openbtn {
+ display: block;
+ float: left;
+ margin-top: 1.8em;
+ color: #456798;
+ background-color: #f0f0f0;
+ padding: 5px 4px;
+ -moz-border-radius: 0 4px 4px 0;
+ cursor: pointer;
+}
+
div.slider {
margin-bottom: 7px;
}
@@ -394,3 +418,12 @@
ul.userpage_links li a:visited, ul.userpage_links li a:hover {
color: #202020 !important;
}
+
+/*
+ * Some table stuff
+ */
+
+div.tblholder th a {
+ text-decoration: underline;
+ color: #f0f0f0 !important;
+}
diff -r 6b7644fec887 -r 3dafe0969e5a themes/enanium/header.tpl
--- a/themes/enanium/header.tpl Sun May 10 14:41:51 2009 -0400
+++ b/themes/enanium/header.tpl Sun May 10 14:42:18 2009 -0400
@@ -56,9 +56,13 @@
- |
@@ -79,6 +83,7 @@
{SIDEBAR_LINK}
{ADMIN_LINK}
+ {lang:specialpage_member_list}
diff -r 6b7644fec887 -r 3dafe0969e5a themes/enanium/js/inlinerename.js
--- a/themes/enanium/js/inlinerename.js Sun May 10 14:41:51 2009 -0400
+++ b/themes/enanium/js/inlinerename.js Sun May 10 14:42:18 2009 -0400
@@ -1,24 +1,40 @@
// Sidebar collapse
-function enanium_toggle_sidebar_right()
+function enanium_toggle_sidebar(side)
{
- if ( document.getElementById('enanium_sidebar_right').style.display == 'none' )
+ if ( document.getElementById('enanium_sidebar_' + side).style.display == 'none' )
{
// show
- document.getElementById('enanium_sidebar_right').style.display = 'block';
- document.getElementById('enanium_sidebar_right_hidden').style.display = 'none';
- createCookie('right_sidebar', 'open', 365);
+ document.getElementById('enanium_sidebar_' + side).style.display = 'block';
+ document.getElementById('enanium_sidebar_' + side + '_hidden').style.display = 'none';
+ createCookie(side + '_sidebar', 'open', 365);
}
else
{
// hide
- document.getElementById('enanium_sidebar_right').style.display = 'none';
- document.getElementById('enanium_sidebar_right_hidden').style.display = 'block';
- createCookie('right_sidebar', 'collapsed', 365);
+ document.getElementById('enanium_sidebar_' + side).style.display = 'none';
+ document.getElementById('enanium_sidebar_' + side + '_hidden').style.display = 'block';
+ createCookie(side + '_sidebar', 'collapsed', 365);
}
}
+function enanium_toggle_sidebar_right()
+{
+ enanium_toggle_sidebar('right');
+}
+
+function enanium_toggle_sidebar_left()
+{
+ enanium_toggle_sidebar('left');
+}
+
addOnloadHook(function()
{
+ if ( readCookie('left_sidebar') == 'collapsed' )
+ {
+ document.getElementById('enanium_sidebar_left').style.display = 'none';
+ document.getElementById('enanium_sidebar_left_hidden').style.display = 'block';
+ }
+
if ( readCookie('right_sidebar') == 'collapsed' )
{
document.getElementById('enanium_sidebar_right').style.display = 'none';
|