From d5fd21b6efed1eb925ef2ff3cb977e927a3d68af Mon Sep 17 00:00:00 2001 From: Mary Evans Date: Tue, 9 Oct 2012 12:30:30 +0100 Subject: [PATCH] MDL-35571 theme_magazine: RTL fixes - WIKI title headings, ajax frontpage category/course chooser, right align logo, left align course name, left align login & user info. --- theme/magazine/style/core.css | 79 ++++++++++++++++++++++++++++++++--- 1 file changed, 73 insertions(+), 6 deletions(-) diff --git a/theme/magazine/style/core.css b/theme/magazine/style/core.css index a617287ccfc..2cd96132374 100644 --- a/theme/magazine/style/core.css +++ b/theme/magazine/style/core.css @@ -52,6 +52,10 @@ div#headerinner { line-height: 30px; min-width: 400px; } +.dir-rtl #headright { + float: left; + min-width: 300px; +} #headright a { color: #fff; @@ -66,6 +70,10 @@ div#headerinner { font-size: 9px; } +.dir-rtl #headright div.langmenu { + float: left !important; +} + #headleft { float: left; height: 30px; @@ -74,6 +82,10 @@ div#headerinner { font-size: 12px; } +.dir-rtl #headleft { + float: right; +} + /** Logo and menu bar divs and wrap **/ #textcontainer-wrap { @@ -99,6 +111,10 @@ div.thetitle { float: left; } +.dir-rtl div.thetitle { + float: right; +} + #nologo { width: 337px; float: left; @@ -107,6 +123,11 @@ div.thetitle { margin-top: 40px; } +.dir-rtl #nologo { + float: right; + padding-right: 3px; +} + #nologo.nomenu { width: 100%; } @@ -118,25 +139,27 @@ div.thetitle { font-weight: 800; letter-spacing: -1px; line-height: 45px; - - } + #nologo a:hover { text-decoration: none; } + div.rightinfo { float: right; min-width: 470px; height: 130px; overflow: hidden; } +.dir-rtl div.rightinfo { + float: left; +} #menucontainer { height: 45px; margin-top: 40px; } - /** main content wraps **/ #outercontainer { @@ -191,6 +214,10 @@ div.jcontrolsleft { float: left; min-width: 100px; } +.dir-rtl div.jcontrolsleft { + float:right; + margin-right: 15px; +} div.jcontrolsright { float: right; @@ -199,6 +226,11 @@ div.jcontrolsright { margin-right: 15px; } +.dir-rtl div.jcontrolsright { + float: left; + margin-left: 15px; +} + div.jcontrolsright div.singlebutton, div.jcontrolsright div.forumsearch { margin: 5px 0px 0px; } @@ -243,6 +275,9 @@ div.johndocsleft { color: #333333; font-size: 11px; } +.dir-rtl div.johndocsleft { + float: right; +} /** Some breadcrumb style **/ @@ -410,7 +445,12 @@ div#jcontrols_button span.arrow.sep { /** inner block style for decent display of recent news, etc **/ -.block_recent_activity.block_docked div.content h2.main, .block_recent_activity.block_docked div.content h3.main, .side-pre .block div.content h2.main,.side-post .block div.content h2.main,.block div.content h3.main,.block div.content h2 { +.block_recent_activity.block_docked div.content h2.main, +.block_recent_activity.block_docked div.content h3.main, +.side-pre .block div.content h2.main, +.side-post .block div.content h2.main, +.block div.content h3.main, +.block div.content h2 { font-size: 13px; color: #333; font-weight: 800; @@ -448,7 +488,7 @@ div.yui3-widget-bd h1.helpheading { .yui-module.yui-overlay.yui-panel div.hd { background: #eeeeee url([[pix:theme|bart5]]) repeat-x 0% 90%; - } +} /**moodle dropdown css for yui menu **/ @@ -851,6 +891,10 @@ div.coursebox h3.name a { padding-left: 5px !important; } +.dir-rtl .unlist ul.teachers { + padding-right: 5px; +} + .unlist ul.teachers li { font-size: 10px; } @@ -893,6 +937,9 @@ div.course_category_tree div.category,div.course_category_tree div.category_labe div.course_category_tree div.category.with_children div.category_label { background-position: 0 55% !important; } +.dir-rtl div.course_category_tree div.category.with_children div.category_label { + background-position: right center !important; +} div.course_category_tree div.course.odd { background: #eee; @@ -906,6 +953,23 @@ div.category.subcategory.with_children { margin-left: 20px; } +.dir-rtl div.category.subcategory.with_children { + margin-right: 20px; +} + +.dir-rtl .course_category_tree .category .course_info { + padding-right: 20px; +} + +.dir-rtl.jsenabled .course_category_tree .category.with_children.collapsed .category_label { + backkground-position: right center !important; +} + +.dir-rtl .course_category_tree .category_label, +.dir-rtl .course_category_tree .category .course { + padding-right: 35px; +} + div.course_category_tree div.controls { font-size: 10px; color: #666; @@ -1025,6 +1089,9 @@ table.glossarypost td.entry h3 { margin-bottom: 3px; margin-top: 2px; } +#page-mod-wiki-view.dir-rtl h2.wiki_headingtitle { + text-align: right; +} /**HR in content blocks **/ @@ -1126,4 +1193,4 @@ div.singlebutton.forumaddnew { #page-course-info div.generalbox ul, #page-course-info div.generalbox li { list-style-type: none; -} \ No newline at end of file +}