From b549e66e5e65d8f9e80d0eb1590b9ba9ce38193b Mon Sep 17 00:00:00 2001 From: Aparup Banerjee Date: Wed, 13 Nov 2013 17:02:54 +0800 Subject: [PATCH] MDL-42711 added RTL styles to improvements. --- theme/bootstrapbase/less/moodle/blocks.less | 20 ++++++++++++++++++++ theme/bootstrapbase/less/moodle/modules.less | 8 ++++++++ theme/bootstrapbase/style/moodle.css | 15 +++++++++++++++ 3 files changed, 43 insertions(+) diff --git a/theme/bootstrapbase/less/moodle/blocks.less b/theme/bootstrapbase/less/moodle/blocks.less index 7087bb3598e..304150399a0 100644 --- a/theme/bootstrapbase/less/moodle/blocks.less +++ b/theme/bootstrapbase/less/moodle/blocks.less @@ -187,4 +187,24 @@ .block .header .block_action { float: left; } + .block_calendar_upcoming { + .content { + .date { + padding-right: 22px; + } + .footer { + padding-right: 0px; + } + } + } + .block_news_items .content { + ul li { + .name { + padding-right: 1ex; + } + } + .footer { + padding-left: 0px; + } + } } diff --git a/theme/bootstrapbase/less/moodle/modules.less b/theme/bootstrapbase/less/moodle/modules.less index 9047524873c..8e99b0bb03e 100644 --- a/theme/bootstrapbase/less/moodle/modules.less +++ b/theme/bootstrapbase/less/moodle/modules.less @@ -207,3 +207,11 @@ div#dock { text-align:center; } } +// rtl overrides +.dir-rtl { + .path-mod-forum .forumheaderlist { + thead .header.lastpost { + text-align: left; + } + } +} \ No newline at end of file diff --git a/theme/bootstrapbase/style/moodle.css b/theme/bootstrapbase/style/moodle.css index b0363b451e5..af133e2e2ce 100644 --- a/theme/bootstrapbase/style/moodle.css +++ b/theme/bootstrapbase/style/moodle.css @@ -12228,6 +12228,18 @@ body { .dir-rtl .block .header .block_action { float: left; } +.dir-rtl .block_calendar_upcoming .content .date { + padding-right: 22px; +} +.dir-rtl .block_calendar_upcoming .content .footer { + padding-right: 0px; +} +.dir-rtl .block_news_items .content ul li .name { + padding-right: 1ex; +} +.dir-rtl .block_news_items .content .footer { + padding-left: 0px; +} /** * Moodle forms HTML isn't changeable via renderers (yet?) so this * .less file imports styles from the bootstrap @variables file and @@ -12854,6 +12866,9 @@ div#dock { .path-mod-survey .centerpara { text-align: center; } +.dir-rtl .path-mod-forum .forumheaderlist thead .header.lastpost { + text-align: left; +} .yui-skin-sam .yui-layout { background-color: #ffffff; }