aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-10-25 21:40:39 +0300
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-10-26 22:00:23 +0300
commit1b3daa1ad876e9b3adf87bca754ee313a0cdaa13 (patch)
tree436563ee8c3c78196b0c9ecc575eb0d6ce2ed2e0
parent43b9314390db962aaef2411e22642f86730a6eb6 (diff)
downloadforums-1b3daa1ad876e9b3adf87bca754ee313a0cdaa13.tar
forums-1b3daa1ad876e9b3adf87bca754ee313a0cdaa13.tar.gz
forums-1b3daa1ad876e9b3adf87bca754ee313a0cdaa13.tar.bz2
forums-1b3daa1ad876e9b3adf87bca754ee313a0cdaa13.tar.xz
forums-1b3daa1ad876e9b3adf87bca754ee313a0cdaa13.zip
[ticket/11957] Adjustments to ACP layout, menu and some elements
PHPBB3-11957
-rw-r--r--phpBB/adm/style/admin.css51
-rw-r--r--phpBB/adm/style/admin.js24
2 files changed, 68 insertions, 7 deletions
diff --git a/phpBB/adm/style/admin.css b/phpBB/adm/style/admin.css
index eceea8fe03..40224be021 100644
--- a/phpBB/adm/style/admin.css
+++ b/phpBB/adm/style/admin.css
@@ -260,6 +260,33 @@ li {
width: auto;
margin: 0;
}
+
+ #content {
+ background: #F3F3F3 url("../images/innerbox_bg.gif") repeat-x top;
+ padding: 5px;
+ }
+
+ #page-footer {
+ padding: 0 5px 5px;
+ }
+}
+
+@media only screen and (max-width: 400px), only screen and (max-device-width: 400px)
+{
+ #page-header {
+ background-size: 76px 26.5px;
+ padding-left: 80px;
+ min-height: 30px;
+ }
+
+ .rtl #page-header {
+ padding-right: 80px;
+ }
+
+ #page-header h1 {
+ padding-top: 0;
+ font-size: 1.1em;
+ }
}
@@ -375,10 +402,14 @@ li {
#acp {
min-width: 0;
min-height: 0;
+ border-radius: 0;
+ border-width: 1px 0;
+ background: #fff;
+ padding: 1px 0;
+ box-shadow: none;
}
}
-
/* Sub-navigation Menu
---------------------------------------- */
@@ -490,6 +521,7 @@ li {
font-size: 0.75em;
text-decoration: none;
cursor: inherit;
+ outline-style: none;
}
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px)
@@ -502,13 +534,21 @@ li {
margin: 0 auto 10px;
}
+ #menu p {
+ text-align: center;
+ }
+
#menu .menu-block.active {
- margin: 0 -10px;
- padding: 0 10px;
+ margin: 0 -5px;
+ padding: 0 5px 3px;
background: rgba(255, 255, 255, .5);
border-radius: 5px;
}
+ #menu .menu-block.no-header.active {
+ padding-top: 3px;
+ }
+
#menu .menu-block .header {
margin-top: 5px;
cursor: pointer;
@@ -537,6 +577,10 @@ li {
#menu .menu-block:last-child li:last-child, #menu .menu-block.active li:last-child {
border-bottom-width: 0;
}
+
+ #menu .menu-block li a span {
+ border-radius: 2px;
+ }
}
@@ -707,6 +751,7 @@ fieldset {
border-left: 1px solid #D7D7D7;
background-color: #FFFFFF;
position: relative;
+ border-radius: 3px;
}
.rtl fieldset {
diff --git a/phpBB/adm/style/admin.js b/phpBB/adm/style/admin.js
index 208afedce8..a9e00ab9d7 100644
--- a/phpBB/adm/style/admin.js
+++ b/phpBB/adm/style/admin.js
@@ -15,11 +15,27 @@ function parse_document(container)
/**
* Navigation
*/
- container.find('#menu .menu-block > a.header').click(function() {
- $(this).parent().toggleClass('active');
- });
+ container.find('#menu').each(function() {
+ var menu = $(this),
+ blocks = menu.children('.menu-block');
+
+ if (!blocks.length) {
+ return;
+ }
+
+ // Set onclick event
+ blocks.children('a.header').click(function() {
+ $(this).parent().toggleClass('active');
+ });
+
+ // Set active menu
+ menu.find('#activemenu').parents('.menu-block').addClass('active');
- container.find('#activemenu').parents('.menu-block').addClass('active');
+ // Check if there is active menu
+ if (!blocks.filter('.active').length) {
+ blocks.filter(':first').addClass('active');
+ }
+ });
}
/**