Skip to content

Commit fc7ea0f

Browse files
Frederic MassartDamyon Wiese
authored andcommitted
MDL-55224 theme_noname: RTL adjustments for auto-flipping era
1 parent 800820a commit fc7ea0f

File tree

50 files changed

+112
-877
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+112
-877
lines changed

admin/tool/lp/styles.css

Lines changed: 0 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515
.path-admin-tool-lp .progress .bar {
1616
min-width: 3em;
1717
}
18-
.dir-rtl.path-admin-tool-lp .progress .bar {
19-
float: right;
20-
}
2118
.path-admin-tool-lp [data-region="managecompetencies"] ul[data-enhance="tree"],
2219
.path-admin-tool-lp [data-region="plans"] ul[data-enhance="tree"],
2320
.path-admin-tool-lp [data-region="competencylinktree"] ul[data-enhance="linktree"],
@@ -63,10 +60,6 @@
6360
margin-left: 10px;
6461
}
6562

66-
.dir-rtl.path-admin-tool-lp [data-region="managecompetencies"] .row-fluid [class*="span"] {
67-
float: right;
68-
}
69-
7063
.path-admin-tool-lp [data-region="link-buttons"],
7164
.path-admin-tool-lp [data-region="move-buttons"] {
7265
text-align: center;
@@ -77,10 +70,6 @@
7770
height: 400px;
7871
}
7972

80-
.dir-rtl.path-admin-tool-lp [data-region="filtercompetencies"] input {
81-
margin-right: 10px;
82-
}
83-
8473
.path-admin-tool-lp span.currentdragtarget {
8574
border: 1px dashed;
8675
}
@@ -102,11 +91,6 @@
10291
.path-admin-tool-lp [data-region="competencyruleconfig"] [data-region="rule-type"] label {
10392
padding-right: 10px;
10493
}
105-
.dir-rtl.path-admin-tool-lp [data-region="competencyruleconfig"] [data-region="rule-outcome"] label,
106-
.dir-rtl.path-admin-tool-lp [data-region="competencyruleconfig"] [data-region="rule-type"] label {
107-
padding-left: 10px;
108-
padding-right: 0;
109-
}
11094
.path-admin-tool-lp [data-region="competencyruleconfig"] [data-region="rule-outcome"] label,
11195
.path-admin-tool-lp [data-region="competencyruleconfig"] [data-region="rule-outcome"] select,
11296
.path-admin-tool-lp [data-region="competencyruleconfig"] [data-region="rule-type"] label,
@@ -181,11 +165,6 @@
181165
margin-left: -120px;
182166
}
183167

184-
.dir-rtl .tool-lp-menu.tool-lp-menu-open-left .tool-lp-sub-menu {
185-
margin-left: 0px;
186-
margin-right: -120px;
187-
}
188-
189168
/** This highlighting is copied from bootstrap - but can be overridden by a theme */
190169
.tool-lp-menu .tool-lp-sub-menu .menu-focus a {
191170
color: #fff ;
@@ -234,17 +213,3 @@ input[type="checkbox"].tool_lp_scale_proficient {
234213
max-width: 100%;
235214
box-sizing: border-box;
236215
}
237-
238-
/** Broader RTL changes */
239-
.dir-rtl.path-admin-tool-lp .pull-left {
240-
float: right;
241-
}
242-
.dir-rtl.path-admin-tool-lp .pull-right {
243-
float: left;
244-
}
245-
.dir-rtl.path-admin-tool-lp dd {
246-
margin-right: 10px;
247-
}
248-
.dir-rtl.path-admin-tool-lp ul.inline {
249-
margin-right: 0;
250-
}

blocks/activity_results/styles.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,3 @@
55
.block_activity_results table.grades .name{text-align: left; width:77%;}
66
.block_activity_results table.grades .grade {text-align: right;}
77
.block_activity_results table.grades caption {font-weight: bold; font-size: 18px;}
8-
9-
.dir-rtl .block_activity_results table.grades {text-align: right;}
10-
.dir-rtl .block_activity_results table.grades .number{text-align: right;}
11-
.dir-rtl .block_activity_results table.grades .name{text-align: right;}

blocks/course_overview/styles.css

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
text-align: right;
88
}
99

10-
.dir-rtl .block_course_overview .categorypath{
11-
text-align: left;
12-
}
13-
1410
.block_course_overview .content {
1511
margin: 0 20px;
1612
}
@@ -26,9 +22,6 @@
2622
.block_course_overview .profilepicture {
2723
float: left;
2824
}
29-
.dir-rtl.block_course_overview .profilepicture {
30-
float:right;
31-
}
3225
.block_course_overview .welcome_area {
3326
width: 100%;
3427
padding-bottom: 5px;
@@ -41,18 +34,12 @@
4134
border-collapse: separate;
4235
clear: none;
4336
}
44-
.dir-rtl .block_course_overview .welcome_message {
45-
float:right;
46-
}
4737

4838
.block_course_overview .content h2.title {
4939
float: left;
5040
margin: 0 0 .5em 0;
5141
position: relative;
5242
}
53-
.dir-rtl .block_course_overview .content h2.title {
54-
float:right;
55-
}
5643

5744
.block_course_overview .course_title {
5845
position: relative;
@@ -67,10 +54,6 @@
6754
float: left;
6855
padding: 2px 10px 0 0;
6956
}
70-
.dir-rtl.editing .block_course_overview .move {
71-
float:right;
72-
padding: 2px 10px;
73-
}
7457

7558
.block_course_overview .course_list {
7659
width: 100%;
@@ -83,23 +66,16 @@
8366
.block_course_overview .activity_info {
8467
clear: both;
8568
}
86-
.dir-rtl .block_course_overview .activity_info {
87-
margin-right: 25px;
88-
}
8969

9070
.block_course_overview .activity_overview {
9171
padding: 2px;
9272
}
9373
.block_course_overview .activity_overview img.iconlarge { vertical-align: text-bottom; margin-right: 6px; }
94-
.dir-rtl .block_course_overview .activity_overview img.iconlarge { margin-left: 6px; margin-right: 0;}
9574

9675
.block_course_overview .singleselect {
9776
text-align: left;
9877
margin: 0;
9978
}
100-
.dir-rtl .block_course_overview .singleselect {
101-
text-align: right;
102-
}
10379

10480
.block_course_overview .content .course_list .movehere{
10581
margin-bottom: 15px;

blocks/messages/styles.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
.block_messages .content .list li.listentry .message {float:right;}
55
.block_messages .content .info {text-align:center;}
66
.block_messages .content .footer {clear:both;}
7-
8-
.dir-rtl .block_messages .content .list li.listentry .user {float:right;}
9-
.dir-rtl .block_messages .content .list li.listentry .message {float:left;}

blocks/navigation/styles.css

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,12 @@
1313
.block_navigation .block_tree [aria-expanded="false"] {background-image: url('[[pix:t/collapsed]]');}
1414
.block_navigation .block_tree [aria-expanded="true"].emptybranch {background-image: url('[[pix:t/collapsed_empty]]');}
1515
.block_navigation .block_tree [aria-expanded="false"].loading {background-image: url('[[pix:i/loading_small]]');}
16-
.block_navigation .block_tree [aria-hidden="false"] {display: block;}
17-
.block_navigation .block_tree [aria-hidden="true"] {display: none;}
1816

19-
/** Internet explorer specific rules **/
20-
.ie6 .block_navigation .block_tree .tree_item {width:100%;}
17+
/*rtl:raw:
18+
.block_navigation .block_tree [aria-expanded="false"] {background-image: url('[[pix:t/collapsed_rtl]]');}
19+
.block_navigation .block_tree [aria-expanded="true"].emptybranch {background-image: url('[[pix:t/collapsed_empty_rtl]]');}
20+
.block_navigation .block_tree [aria-expanded="false"].loading {background-image: url('[[pix:i/loading_small]]');}
21+
*/
2122

22-
/** Overide for RTL layout **/
23-
.dir-rtl .block_navigation .block_tree p.hasicon {padding-left: 0px; padding-right: 21px;}
24-
.dir-rtl .block_navigation .block_tree .tree_item {background-position: 100% 50%;}
25-
.dir-rtl .block_navigation .block_tree .tree_item.branch {padding-right: 21px; padding-left: 0;}
26-
.dir-rtl .block_navigation .block_tree [aria-expanded="false"] {background-image: url('[[pix:t/collapsed_rtl]]');}
27-
.dir-rtl .block_navigation .block_tree [aria-expanded="true"].emptybranch {background-image: url('[[pix:t/collapsed_empty_rtl]]');}
28-
.dir-rtl .block_navigation .block_tree [aria-expanded="false"].loading {background-image: url('[[pix:i/loading_small]]');}
29-
.dir-rtl .block_navigation .block_tree .tree_item img {margin-right: 0; margin-left: 5px;}
30-
.dir-rtl .block_navigation .block_tree ul {margin: 0 16px 0 0;}
23+
.block_navigation .block_tree [aria-hidden="false"] {display: block;}
24+
.block_navigation .block_tree [aria-hidden="true"] {display: none;}

blocks/online_users/styles.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,3 @@
33
.block_online_users .content .list li.listentry .user .userpicture { vertical-align: text-bottom;}
44
.block_online_users .content .list li.listentry .message {float:right; margin-top: 3px;}
55
.block_online_users .content .info {text-align:center;}
6-
7-
.dir-rtl .block_online_users .content .list li.listentry .user {float:right;}
8-
.dir-rtl .block_online_users .content .list li.listentry .message {float:left;}

blocks/recent_activity/styles.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@
22
.block_recent_activity .activityhead {text-align:center;}
33
.block_recent_activity .unlist li {margin-bottom:1em;}
44
.block_recent_activity li .head .date {float:right;}
5-
6-
.dir-rtl .block_recent_activity .content h3 {text-align: right;}

blocks/settings/styles.css

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,12 @@
1111
.block_settings .block_tree [aria-expanded="false"] {background-image: url('[[pix:t/collapsed]]');}
1212
.block_settings .block_tree [aria-expanded="true"].emptybranch {background-image: url('[[pix:t/collapsed_empty]]');}
1313
.block_settings .block_tree [aria-expanded="false"].loading {background-image: url('[[pix:i/loading_small]]');}
14+
/*rtl:raw:
15+
.block_settings .block_tree [aria-expanded="false"] {background-image: url('[[pix:t/collapsed_rtl]]');}
16+
.block_settings .block_tree [aria-expanded="true"].emptybranch {background-image: url('[[pix:t/collapsed_empty_rtl]]');}
17+
.block_settings .block_tree [aria-expanded="false"].loading {background-image: url('[[pix:i/loading_small]]');}
18+
*/
1419
.block_settings .block_tree [aria-hidden="false"] {display: block;}
1520
.block_settings .block_tree [aria-hidden="true"] {display: none;}
1621

17-
/** Internet explorer specific rules **/
18-
.ie6 .block_settings .block_tree .tree_item {width:100%;}
1922

20-
/** Overide for RTL layout **/
21-
.dir-rtl .block_settings .block_tree p.hasicon {padding-left: 0px; padding-right: 21px;}
22-
.dir-rtl .block_settings .block_tree .tree_item {background-position: 100% 50%;}
23-
.dir-rtl .block_settings .block_tree .tree_item.branch {padding-right: 21px; padding-left: 0;}
24-
.dir-rtl .block_settings .block_tree [aria-expanded="false"] {background-image: url('[[pix:t/collapsed_rtl]]');}
25-
.dir-rtl .block_settings .block_tree [aria-expanded="true"].emptybranch {background-image: url('[[pix:t/collapsed_empty_rtl]]');}
26-
.dir-rtl .block_settings .block_tree [aria-expanded="false"].loading {background-image: url('[[pix:i/loading_small]]');}
27-
.dir-rtl .block_settings .block_tree .tree_item img {margin-right: 0; margin-left: 5px;}
28-
.dir-rtl .block_settings .block_tree ul {margin: 0 16px 0 0;}

blocks/site_main_menu/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
display: table;
66
}
77
.block_site_main_menu li .buttons { float: right; margin: 0; }
8-
.dir-rtl .block_site_main_menu li .buttons { float: left; }
98
.block_site_main_menu li .buttons a img{ vertical-align: text-bottom;}
109
.block_site_main_menu .footer { margin-top: 1em; }
1110
.block_site_main_menu .section_add_menus noscript div { display: inline;}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.block_social_activities li { clear: both; }
22
.block_social_activities li .column { width: 100%; }
33
.block_social_activities li .buttons { float: right; margin: 0; }
4-
.dir-rtl .block_social_activities li .buttons { float: left; }
54
.block_social_activities li .buttons a img{ vertical-align: text-bottom;}

0 commit comments

Comments
 (0)