From dee226a94dc2a6da78a9dc445a648d36df42bf54 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Tue, 12 Apr 2016 16:06:03 +0800 Subject: [PATCH] MDL-53773 competency: RTL styles for report_competency and tool_lp Notice that some styles are made specific to the plugins because I don't want to take the risk of introducing regressions by patching core so broadly for RTL support. --- admin/tool/lp/styles.css | 21 +++++++++++++++++++++ report/competency/styles.css | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 report/competency/styles.css diff --git a/admin/tool/lp/styles.css b/admin/tool/lp/styles.css index b43bb846155..c725a954e06 100644 --- a/admin/tool/lp/styles.css +++ b/admin/tool/lp/styles.css @@ -15,6 +15,9 @@ margin-left: 2em; margin-right: 2em; } +.dir-rtl.path-admin-tool-lp .progress .bar { + float: right; +} .path-admin-tool-lp [data-region="managecompetencies"] ul[data-enhance="tree"], .path-admin-tool-lp [data-region="plans"] ul[data-enhance="tree"], .path-admin-tool-lp [data-region="competencylinktree"] ul[data-enhance="linktree"], @@ -60,6 +63,10 @@ margin-left: 10px; } +.dir-rtl.path-admin-tool-lp [data-region="managecompetencies"] .row-fluid [class*="span"] { + float: right; +} + .path-admin-tool-lp [data-region="link-buttons"], .path-admin-tool-lp [data-region="move-buttons"] { text-align: center; @@ -220,3 +227,17 @@ input[type="checkbox"].tool_lp_scale_proficient { max-width: 100%; box-sizing: border-box; } + +/** Broader RTL changes */ +.dir-rtl.path-admin-tool-lp .pull-left { + float: right; +} +.dir-rtl.path-admin-tool-lp .pull-right { + float: left; +} +.dir-rtl.path-admin-tool-lp dd { + margin-right: 10px; +} +.dir-rtl.path-admin-tool-lp ul.inline { + margin-right: 0; +} diff --git a/report/competency/styles.css b/report/competency/styles.css new file mode 100644 index 00000000000..1018db33f93 --- /dev/null +++ b/report/competency/styles.css @@ -0,0 +1,21 @@ +.dir-rtl.path-report-competency [data-region="competency-breakdown-report"] .row-fluid [class*="span"] { + float: right; +} + +/** Broader RTL changes. */ +.dir-rtl.path-report-competency .pull-left { + float: right; +} +.dir-rtl.path-report-competency .pull-right { + float: left; +} +.dir-rtl.path-report-competency dd { + margin-right: 10px; +} +.dir-rtl.path-report-competency ul.inline { + margin-right: 0; +} +.dir-rtl.path-report-competency .table th, +.dir-rtl.path-report-competency .table td { + text-align: right; +}