mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
themes lib MDL-24895 Multiple fixes to better handle overflow.
Major tasks undertaken in this patch: * New format_text argument, overflowdiv. * New page layout Report. * Review of all format_text calls. * Added support for the report layout to all themes. * Changed forum post display from tables to divs.
This commit is contained in:
parent
2412f8b882
commit
367a75fae4
125 changed files with 3366 additions and 2062 deletions
|
@ -38,8 +38,8 @@ $THEME->name = 'fusion';
|
|||
|
||||
|
||||
$THEME->parents = array(
|
||||
'canvas',
|
||||
'base',
|
||||
'canvas',
|
||||
'base',
|
||||
);
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
|
@ -54,10 +54,10 @@ $THEME->parents = array(
|
|||
|
||||
|
||||
$THEME->sheets = array(
|
||||
'core',
|
||||
'pagelayout',
|
||||
'menus',
|
||||
'settings',
|
||||
'core',
|
||||
'pagelayout',
|
||||
'menus',
|
||||
'settings',
|
||||
);
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
|
@ -66,12 +66,12 @@ $THEME->sheets = array(
|
|||
////////////////////////////////////////////////////
|
||||
|
||||
$THEME->parents_exclude_sheets = array(
|
||||
'base'=>array(
|
||||
'pagelayout',
|
||||
),
|
||||
'canvas'=>array(
|
||||
'pagelayout',
|
||||
),
|
||||
'base'=>array(
|
||||
'pagelayout',
|
||||
),
|
||||
'canvas'=>array(
|
||||
'pagelayout',
|
||||
),
|
||||
);
|
||||
|
||||
|
||||
|
@ -156,7 +156,7 @@ $THEME->layouts = array(
|
|||
'options' => array('nofooter'=>true, 'nonavbar'=>true),
|
||||
),
|
||||
'embedded' => array(
|
||||
'theme' => 'canvas',
|
||||
'theme' => 'canvas',
|
||||
'file' => 'embedded.php',
|
||||
'regions' => array(),
|
||||
'options' => array('nofooter'=>true, 'nonavbar'=>true),
|
||||
|
@ -167,7 +167,11 @@ $THEME->layouts = array(
|
|||
'regions' => array(),
|
||||
'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
|
||||
),
|
||||
|
||||
'report' => array(
|
||||
'file' => 'general.php',
|
||||
'regions' => array('side-post'),
|
||||
'defaultregion' => 'side-post',
|
||||
),
|
||||
);
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
|
@ -208,14 +212,14 @@ $THEME->layouts = array(
|
|||
// As above but will be included in the page footer.
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
$THEME->larrow = '⟨';
|
||||
$THEME->larrow = '⟨';
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
// Overrides the left arrow image used throughout
|
||||
// Moodle
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
$THEME->rarrow = '⟩';
|
||||
$THEME->rarrow = '⟩';
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
// Overrides the right arrow image used throughout Moodle
|
||||
|
|
|
@ -38,14 +38,14 @@ body {
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
#page-content #region-main-box #region-post-box {
|
||||
#page-content #region-post-box {
|
||||
float: left;
|
||||
right: 72%;
|
||||
position: relative;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#page-content #region-main-box #region-post-box #region-main-wrap #region-main {
|
||||
#page-content #region-main {
|
||||
float: left;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
@ -54,7 +54,7 @@ body {
|
|||
width: 72%;
|
||||
}
|
||||
|
||||
#page-content #region-main-box #region-post-box #region-post {
|
||||
#page-content #region-post {
|
||||
float: left;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
@ -62,12 +62,12 @@ body {
|
|||
width: 28%;
|
||||
}
|
||||
|
||||
#page-content #region-main-box #region-post-box #region-main-wrap #region-main .region-content {
|
||||
#page-content #region-main .region-content {
|
||||
overflow: hidden;
|
||||
padding: 50px 15px 20px 0;
|
||||
}
|
||||
|
||||
#page-content #region-main-box #region-post-box #region-post .region-content {
|
||||
#page-content #region-post .region-content {
|
||||
overflow: hidden;
|
||||
padding: 0 0 0 10px;
|
||||
}
|
||||
|
@ -84,19 +84,22 @@ body {
|
|||
right: 0%;
|
||||
}
|
||||
|
||||
.content-only #page-content #region-main-box #region-post-box {
|
||||
.content-only #page-content #region-post-box {
|
||||
right: 100%;
|
||||
}
|
||||
|
||||
.content-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
|
||||
.content-only #page-content #region-main {
|
||||
left: 100%;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.content-only #page-content #region-main-box #region-post-box #region-pre {
|
||||
.content-only #page-content #region-pre {
|
||||
width: 0%;
|
||||
}
|
||||
|
||||
.content-only #page-content #region-main-box #region-post-box #region-post {
|
||||
.content-only #page-content #region-post {
|
||||
width: 0%;
|
||||
}
|
||||
}
|
||||
|
||||
.pagelayout-report #page-content #region-main {overflow:auto;}
|
||||
.pagelayout-report #page-content #region-main .region-content {overflow:visible;}
|
Loading…
Add table
Add a link
Reference in a new issue