mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-19 14:00:59 +02:00
[ticket/11957] Adjustments to ACP layout, menu and some elements
PHPBB3-11957
This commit is contained in:
parent
43b9314390
commit
1b3daa1ad8
@ -260,6 +260,33 @@ li {
|
|||||||
width: auto;
|
width: auto;
|
||||||
margin: 0;
|
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 {
|
#acp {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
|
border-radius: 0;
|
||||||
|
border-width: 1px 0;
|
||||||
|
background: #fff;
|
||||||
|
padding: 1px 0;
|
||||||
|
box-shadow: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Sub-navigation Menu
|
/* Sub-navigation Menu
|
||||||
---------------------------------------- */
|
---------------------------------------- */
|
||||||
|
|
||||||
@ -490,6 +521,7 @@ li {
|
|||||||
font-size: 0.75em;
|
font-size: 0.75em;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
cursor: inherit;
|
cursor: inherit;
|
||||||
|
outline-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px)
|
@media only screen and (max-width: 700px), only screen and (max-device-width: 700px)
|
||||||
@ -502,13 +534,21 @@ li {
|
|||||||
margin: 0 auto 10px;
|
margin: 0 auto 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#menu p {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
#menu .menu-block.active {
|
#menu .menu-block.active {
|
||||||
margin: 0 -10px;
|
margin: 0 -5px;
|
||||||
padding: 0 10px;
|
padding: 0 5px 3px;
|
||||||
background: rgba(255, 255, 255, .5);
|
background: rgba(255, 255, 255, .5);
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#menu .menu-block.no-header.active {
|
||||||
|
padding-top: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
#menu .menu-block .header {
|
#menu .menu-block .header {
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@ -537,6 +577,10 @@ li {
|
|||||||
#menu .menu-block:last-child li:last-child, #menu .menu-block.active li:last-child {
|
#menu .menu-block:last-child li:last-child, #menu .menu-block.active li:last-child {
|
||||||
border-bottom-width: 0;
|
border-bottom-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#menu .menu-block li a span {
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -707,6 +751,7 @@ fieldset {
|
|||||||
border-left: 1px solid #D7D7D7;
|
border-left: 1px solid #D7D7D7;
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rtl fieldset {
|
.rtl fieldset {
|
||||||
|
@ -15,11 +15,27 @@ function parse_document(container)
|
|||||||
/**
|
/**
|
||||||
* Navigation
|
* Navigation
|
||||||
*/
|
*/
|
||||||
container.find('#menu .menu-block > a.header').click(function() {
|
container.find('#menu').each(function() {
|
||||||
$(this).parent().toggleClass('active');
|
var menu = $(this),
|
||||||
});
|
blocks = menu.children('.menu-block');
|
||||||
|
|
||||||
container.find('#activemenu').parents('.menu-block').addClass('active');
|
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');
|
||||||
|
|
||||||
|
// Check if there is active menu
|
||||||
|
if (!blocks.filter('.active').length) {
|
||||||
|
blocks.filter(':first').addClass('active');
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user