Mensagem enviada por Urs Hunkler

Imagem de Core developers
<td class="row-odd"> and <td class="row-even"> within all data tables would be great. As David mentioned, it's important to avoid them in the layout tables.

Into the theme CSS go two properties like
.row-odd {
    background-color:brightcolor;
}
.row-even {
    background-color:darkercolor;
}

Imagem de Core developers

Hi Daryl,

with CSS you can address many objects by their CLASS or ID or using "contextual selectors" relative to the parents CLASS or ID.

If you for example look at the new DIV framework of the course page

HTML
HEAD
BODY id="course-view" class="course"
DIV id="page"
DIV id="header"
DIV id="nav-bar"
DIV id="content"
DIV id="course-content"
TABLE id="layout-table"
TR
TD id="left-column"
TD id="middle-column"
TD id="right-column"
DIV id="footer"

You can address the TR of the main layout-table and change the background color of the course page starting beyound the navbar and ending before the footer:

#layout-table TR {background-color: #FFD991}

Could I answer your question with this example or do you want to change the backgrounds of a special table row background? Could you then please tell exactly which ones? With contextual selectors much can be done, but not everything.

Good luck
Urs

Média das avaliações: Useful (1)

Moodle in English -> Themes -> Themes in 1.5 -> Re: Themes in 1.5

por Urs Hunkler -
Imagem de Core developers

Hi Dan,

with the DIV and ID hooks in the Moodle 1.5 page framework you can do what you want. For example the discussion page in the forum will look like:

HTML
HEAD
BODY id="mod-forum-discuss" class="mod-forum"
DIV id="page"
DIV id="header"
DIV id="nav-bar"
DIV id="content"
DIV class="forum-content"
DIV id="footer"

All CSS properties starting with

  • ".mod-forum" will individually change the design of all forum pages, e.g. ".mod-forum .content {background-color: silver}" will set the background of all forum pages to light gray.
  • "#mod-forum-discuss" will only change the design of the forum's discussion page, e.g. "#mod-forum-discuss .content {background-color: silver}" will set the background of the discussion page in the forums to light gray.

Do you think these possibilities will work for your needs?
Urs