From a377231ec1bd52fad0ac93d6e1df455d5ca20d2d Mon Sep 17 00:00:00 2001 From: nfreear Date: Fri, 21 Dec 2007 11:58:15 +0000 Subject: [PATCH] MDL-7493 further fix: clean up themes, and remove references to 'hide-show-image' background images. Document smartpix for theming icons in wood and orangewhite readmes. --- theme/chameleon/user_styles.css | 8 ++------ theme/custom_corners/user_styles.css | 9 +-------- theme/formal_white/fw_color.css | 8 -------- theme/metal/colors.css | 8 -------- theme/oceanblue/styles_color.css | 13 ------------- theme/orangewhite/README.html | 2 ++ theme/orangewhite/styles_color.css | 6 ------ theme/orangewhite/styles_layout.css | 2 +- theme/wood/README.html | 6 +++++- theme/wood/styles_color.css | 10 +--------- 10 files changed, 12 insertions(+), 60 deletions(-) diff --git a/theme/chameleon/user_styles.css b/theme/chameleon/user_styles.css index 7f658e0876..dcc57c2abf 100644 --- a/theme/chameleon/user_styles.css +++ b/theme/chameleon/user_styles.css @@ -237,14 +237,10 @@ td.courseboxcontent { .sideblock .content .message { text-align: left; } -.sideblock .header .hide-show img.hide-show-image { - background-image: url(../../pix/t/switch_minus.gif); - background-repeat: no-repeat; +.sideblock .header .hide-show-image { margin-top: 0; } -.sideblock.hidden .header .hide-show img.hide-show-image { - background-image: url(../../pix/t/switch_plus.gif); - background-repeat: no-repeat; +.sideblock.hidden .header .hide-show-image { margin-top: 2px; } #calendar .event_global { diff --git a/theme/custom_corners/user_styles.css b/theme/custom_corners/user_styles.css index aa5cd59959..9942ef7a27 100644 --- a/theme/custom_corners/user_styles.css +++ b/theme/custom_corners/user_styles.css @@ -274,14 +274,7 @@ ul.tabrow td.selected { div.sideblock div.content div.message { text-align: left; } -div.sideblock div.header div.hide-show img.hide-show-image { - background-image: url(../../pix/t/switch_minus.gif); - background-repeat: no-repeat; - margin-top: 0; -} -div.sideblock.hidden div.header div.hide-show img.hide-show-image { - background-image: url(../../pix/t/switch_plus.gif); - background-repeat: no-repeat; +.sideblock .header .hide-show-image { margin-top: 0; } table#calendar td.event_global { diff --git a/theme/formal_white/fw_color.css b/theme/formal_white/fw_color.css index b7ffede823..78a89c61ec 100644 --- a/theme/formal_white/fw_color.css +++ b/theme/formal_white/fw_color.css @@ -153,14 +153,6 @@ h1.headermain { border-top-color:#C6BDA8; } -.sideblock .header .hide-show img.hide-show-image { - background: url('../../pix/t/switch_minus.gif') no-repeat bottom; -} - -.sideblock.hidden .header .hide-show img.hide-show-image { - background: url('../../pix/t/switch_plus.gif') no-repeat bottom; -} - .sideblock .content .post .head .date, .sideblock .content .post .head .name { color: #000000; diff --git a/theme/metal/colors.css b/theme/metal/colors.css index a213a6929a..6c1cfb7cd6 100755 --- a/theme/metal/colors.css +++ b/theme/metal/colors.css @@ -242,14 +242,6 @@ body#admin-index .c0 { .sideblock .list { } -.sideblock .header .hide-show img.hide-show-image { - background: url('../../pix/t/switch_minus.gif') no-repeat bottom; -} - -.sideblock.hidden .header .hide-show img.hide-show-image { - background: url('../../pix/t/switch_plus.gif') no-repeat bottom; -} - /*** diff --git a/theme/oceanblue/styles_color.css b/theme/oceanblue/styles_color.css index b16f69024a..1ce7ab3bf4 100644 --- a/theme/oceanblue/styles_color.css +++ b/theme/oceanblue/styles_color.css @@ -410,19 +410,6 @@ table.flexible .r1 { border-bottom-color: #dddddd; } -.sideblock .header .hide-show img.hide-show-image { - background: url('../../pix/t/switch_minus.gif') no-repeat bottom; -} - -.sideblock.hidden .header .hide-show img.hide-show-image { - background: url('../../pix/t/switch_plus.gif') no-repeat bottom; -} - -/* Accessibility: for Windows High Contrast, partial fix MDL-7493. */ -.sideblock .hide-show a { - border:1px solid white; -} - /*** *** Blogs ***/ diff --git a/theme/orangewhite/README.html b/theme/orangewhite/README.html index 829b085043..9a3142247d 100644 --- a/theme/orangewhite/README.html +++ b/theme/orangewhite/README.html @@ -5,3 +5,5 @@

The design approach of this theme is based on the known web page layout with navigation left and information right.

This theme is based on the standard theme layout. Actual changes in Moodle development concerning fonts and colors can lead to inconsistencies in the Moodle page appearance.

+ +

For Moodle 1.9 onwards, to use the orangewhite hide/show block icons (pix/t/switch_minus.gif, switch_plus.gif), admins need to enable Smart pix search (Site Administration - Miscellaneous - Experimental - smartpix).

diff --git a/theme/orangewhite/styles_color.css b/theme/orangewhite/styles_color.css index 0c49866b33..47ac6cd722 100644 --- a/theme/orangewhite/styles_color.css +++ b/theme/orangewhite/styles_color.css @@ -255,12 +255,6 @@ body#admin-index .c0 { } .sideblock .list { } -.sideblock .header .hide-show img.hide-show-image { - background:url('pix/switch_minus.gif') no-repeat bottom -} -.sideblock.hidden .header .hide-show img.hide-show-image { - background:url('pix/switch_plus.gif') no-repeat bottom -} #left-column .sideblock .header { background-color:#DAE0E4; border-bottom-color:#F9FAFA diff --git a/theme/orangewhite/styles_layout.css b/theme/orangewhite/styles_layout.css index 444c7223df..cf2aecac7d 100644 --- a/theme/orangewhite/styles_layout.css +++ b/theme/orangewhite/styles_layout.css @@ -219,7 +219,7 @@ form.mform div.textarea textarea { .sideblock .searchform { text-align:left } -.sideblock .header .hide-show img.hide-show-image { +.sideblock .header .hide-show-image { margin-top:0.1em; } .sideblock .searchform a { diff --git a/theme/wood/README.html b/theme/wood/README.html index b97101b4ed..74b6d49e2a 100644 --- a/theme/wood/README.html +++ b/theme/wood/README.html @@ -4,7 +4,7 @@

This theme is a really simple one using background images for near every element inside Moodle.

-

Two objetives were the main reason to build it:

+

Two objectives were the main reason to build it: