mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +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
|
@ -120,7 +120,11 @@ $THEME->layouts = array(
|
|||
'regions' => array(),
|
||||
'options' => array('nofooter'=>true, 'nonavbar'=>false, 'noblocks'=>true),
|
||||
),
|
||||
|
||||
'report' => array(
|
||||
'file' => 'general.php',
|
||||
'regions' => array('side-pre'),
|
||||
'defaultregion' => 'side-pre',
|
||||
),
|
||||
);
|
||||
|
||||
///////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -1,70 +1,70 @@
|
|||
/** colors file for magazine theme, contains colors, logo and background image **/
|
||||
|
||||
html,body {
|
||||
background: #fff url([[setting:background]]);
|
||||
background: #fff url([[setting:background]]);
|
||||
}
|
||||
|
||||
html a,body a, html a:visited,body a:visited {
|
||||
color: [[setting:linkcolor]];
|
||||
color: [[setting:linkcolor]];
|
||||
}
|
||||
|
||||
html a:hover,body a:hover {
|
||||
color: [[setting:linkhover]];
|
||||
color: [[setting:linkhover]];
|
||||
}
|
||||
|
||||
/** header and dock, default #002f2f and #092323 **/
|
||||
|
||||
#header-wrap, #dock {
|
||||
background: [[setting:maincolor]];
|
||||
border-bottom: 1px solid [[setting:maincoloraccent]];
|
||||
background: [[setting:maincolor]];
|
||||
border-bottom: 1px solid [[setting:maincoloraccent]];
|
||||
}
|
||||
|
||||
/** logo is below **/
|
||||
|
||||
div.thetitle {
|
||||
background: url([[setting:logo]]) no-repeat 0% 50%;
|
||||
background: url([[setting:logo]]) no-repeat 0% 50%;
|
||||
}
|
||||
|
||||
/** block header font color and others default is #002f2f **/
|
||||
|
||||
td.category.number, .yui-module.yui-overlay.yui-panel div.hd, #navigation li a:link,#navigation li a:visited, div.tabtree li a span {
|
||||
color: [[setting:maincolor]];
|
||||
color: [[setting:maincolor]];
|
||||
}
|
||||
|
||||
.title h2, div.dockeditempanel_hd h2, div.dockeditempanel_hd {
|
||||
color: [[setting:blockcolor]];
|
||||
color: [[setting:blockcolor]];
|
||||
}
|
||||
|
||||
.yui3-menu-content li a {
|
||||
color: [[setting:maincolor]] !important;
|
||||
color: [[setting:maincolor]] !important;
|
||||
}
|
||||
|
||||
div.dockedtitle {
|
||||
border-bottom: 1px solid [[setting:maincoloraccent]] !important;
|
||||
border-top: 1px solid #333333 !important;
|
||||
border-bottom: 1px solid [[setting:maincoloraccent]] !important;
|
||||
border-top: 1px solid #333333 !important;
|
||||
}
|
||||
|
||||
/** main headings and forum post subject default color #4e0000 **/
|
||||
|
||||
#nologo, #nologo a, .generalbox h2,h3.sectionname, div.tabtree li.selected a span, .forumpost .subject, .blog_entry div.subject a, h2.headingblock,h2.main,h3.main, h2.main a, h3.main a, div.loginpanel h2, div.signuppanel h2 {
|
||||
color: [[setting:headingcolor]];
|
||||
color: [[setting:headingcolor]];
|
||||
}
|
||||
|
||||
/** forum post subject background default is #e6e2af **/
|
||||
|
||||
.forumpost td.topic {
|
||||
background: [[setting:forumback]] url([[pix:theme|alert-overlay]]) repeat-x;
|
||||
.forumpost .topic {
|
||||
background: [[setting:forumback]] url([[pix:theme|alert-overlay]]) repeat-x;
|
||||
}
|
||||
|
||||
/** table header background color, default is #002f2f **/
|
||||
|
||||
td.maincalendar table.calendartable th, table.rolecap .header,.generaltable .header,.forumheaderlist .header,.files .header,.editcourse .header,.logtable .header,#attempts .header,table#categoryquestions th {
|
||||
background: [[setting:maincolor]] !important;
|
||||
background: [[setting:maincolor]] !important;
|
||||
}
|
||||
|
||||
|
||||
/** dock item hover, default is #4e0000 **/
|
||||
|
||||
div.dockeditem_container div.dockeditem:hover {
|
||||
background: [[setting:headingcolor]] url([[pix:theme|mbar]]) repeat-y;
|
||||
background: [[setting:headingcolor]] url([[pix:theme|mbar]]) repeat-y;
|
||||
}
|
File diff suppressed because it is too large
Load diff
|
@ -62,27 +62,27 @@
|
|||
right: 0%;
|
||||
}
|
||||
|
||||
.side-pre-only #page-content #region-main-box #region-post-box {
|
||||
.side-pre-only #page-content #region-post-box {
|
||||
right: 77%;
|
||||
}
|
||||
|
||||
.side-pre-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
|
||||
.side-pre-only #page-content #region-main {
|
||||
left: 100%;
|
||||
width: 77%;
|
||||
}
|
||||
|
||||
.side-pre-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main .region-content {
|
||||
.side-pre-only #page-content #region-main .region-content {
|
||||
overflow: hidden;
|
||||
padding: 20px 10px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.side-pre-only #page-content #region-main-box #region-post-box #region-pre {
|
||||
.side-pre-only #page-content #region-pre {
|
||||
left: 1%;
|
||||
width: 21%;
|
||||
}
|
||||
|
||||
.side-pre-only #page-content #region-main-box #region-post-box #region-post {
|
||||
.side-pre-only #page-content #region-post {
|
||||
width: 0%;
|
||||
}
|
||||
|
||||
|
@ -92,21 +92,21 @@
|
|||
right: 23%;
|
||||
}
|
||||
|
||||
.side-post-only #page-content #region-main-box #region-post-box {
|
||||
.side-post-only #page-content #region-post-box {
|
||||
right: 76%;
|
||||
}
|
||||
|
||||
.side-post-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main {
|
||||
.side-post-only #page-content #region-main {
|
||||
left: 100%;
|
||||
width: 77%;
|
||||
}
|
||||
|
||||
.side-post-only #page-content #region-main-box #region-post-box #region-main-wrap #region-main .region-content {
|
||||
.side-post-only #page-content #region-main .region-content {
|
||||
overflow: hidden;
|
||||
padding: 20px 10px;
|
||||
}
|
||||
|
||||
.side-post-only #page-content #region-main-box #region-post-box #region-post {
|
||||
.side-post-only #page-content #region-post {
|
||||
left: 100%;
|
||||
width: 21%;
|
||||
}
|
||||
|
@ -121,15 +121,15 @@
|
|||
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 {
|
||||
width: 98%;
|
||||
}
|
||||
|
||||
.content-only #page-content #region-main-box #region-post-box #region-pre {
|
||||
.content-only #page-content #region-pre {
|
||||
width: 0%;
|
||||
}
|
||||
|
||||
|
@ -145,4 +145,7 @@
|
|||
|
||||
#region-post {
|
||||
padding-top: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.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