Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-32479 - RTL Theme fixes for Moodle 2 (theme/base)

Correctly align the filemanager-toolbar , .fp-repo-name , .fp-repo-area , .fp-list .fp-repo
.fp-vb-icons , .fp-vb-details , .fp-vb-tree (need more work!)
.fp-icon , .fp-filename
theme/base/style/core.css
theme/base/style/filemanager.css

Conflicts:
	resolved by taking out all non .dir-rtl lines as there were heavy changes to filemanager and filepicker.
	we can't afford changes or breakage to LTR at this point.

	theme/base/style/core.css
	theme/base/style/filemanager.css
  • Loading branch information...
commit 25df8c4e48e93e2df1e544f699e5ece9a11df130 1 parent cbf4d2f
Nadav Kavalerchik authored June 03, 2012 nebgor committed June 13, 2012
9  theme/base/style/core.css
@@ -447,12 +447,21 @@ body.tag .managelink {padding: 5px;}
447 447
 .dir-rtl .file-picker .ygtvtp {background: url([[pix:moodle|y/tp_rtl]]) 0 0 no-repeat;width:34px;height:22px;cursor:pointer;}
448 448
 .dir-rtl .file-picker .ygtvln {background: url([[pix:moodle|y/ln_rtl]]) 0 0 no-repeat;width:17px;height:22px;}
449 449
 .dir-rtl .file-picker .fp-list {text-align:right;}
  450
+.dir-rtl .file-picker .fp-toolbar {padding:0;}
  451
+.dir-rtl .file-picker .fp-list {text-align:right; margin-left: 20px;}
  452
+.dir-rtl .file-picker .fp-repo-name {display:inline;}
450 453
 .dir-rtl .file-picker .fp-pathbar {text-align: right;}
451 454
 .dir-rtl .file-picker div.bd {text-align:right;}
452 455
 .dir-rtl #filemenu .yuimenuitemlabel {text-align: right;}
453 456
 .dir-rtl .filepicker .yui-layout-unit-left {left:500px;}
454 457
 .dir-rtl .filepicker .yui-layout-unit-center {left:0px;}
455 458
 
  459
+/**
  460
+ * File Manager
  461
+ */
  462
+.dir-rtl .filemanager-toolbar a {padding:0px;}
  463
+.dir-rtl .filemanager-toolbar a:hover {background:none; border:2px solid black}
  464
+
456 465
 /*
457 466
  * Backup and Restore CSS
458 467
  */
8  theme/base/style/filemanager.css
@@ -25,6 +25,7 @@ background: #CCCCCC;filter: progid:DXImageTransform.Microsoft.gradient(startColo
25 25
  */
26 26
 #filesskin .file-picker.fp-generallayout {width: 724px;background: #FFFFFF;border-radius:10px;border: 1px solid #CCCCCC;position: relative;}
27 27
 .file-picker .fp-repo-area {width:180px;overflow:auto;display:inline-block;border-right:1px solid #BBBBBB;position:absolute;top:26px;bottom:1px;}
  28
+.dir-rtl .file-picker .fp-repo-area {top:29px;}
28 29
 .file-picker .fp-repo-items {vertical-align:top;display: inline-block;margin-left: 181px;}
29 30
 .file-picker .fp-navbar {background: #F2F2F2;min-height:22px;border-bottom: 1px solid #BBBBBB;padding: 5px 8px;}
30 31
 .file-picker .fp-content {background: #FFFFFF;clear: both;overflow:auto;width: 543px;height: 349px;margin-bottom:-14px;}
@@ -40,6 +41,7 @@ background: #CCCCCC;filter: progid:DXImageTransform.Microsoft.gradient(startColo
40 41
 .file-picker .fp-list {list-style-type:none;padding:0;float:left;width:100%;margin:0;}
41 42
 .dir-rtl .file-picker .fp-list {text-align:right;}
42 43
 .file-picker .fp-list .fp-repo a{display:block;padding:.5em .7em;}
  44
+.dir-rtl .file-picker .fp-list .fp-repo a {display:inline;}
43 45
 .file-picker .fp-list .fp-repo.active {background:#F2F2F2;}
44 46
 .file-picker .fp-list .fp-repo-icon {padding: 0px 7px 0px 5px;}
45 47
 
@@ -53,6 +55,7 @@ background: #CCCCCC;filter: progid:DXImageTransform.Microsoft.gradient(startColo
53 55
 .fp-toolbar.empty {display:none;}
54 56
 .fp-toolbar .disabled {display:none;}
55 57
 .fp-toolbar div {display: inline-block;padding: 0px 2px;padding-right: 10px;}
  58
+.dir-rtl .fp-toolbar div {width:100px;}
56 59
 .fp-toolbar img {vertical-align: -15%; margin-right: 5px;}
57 60
 
58 61
 .fp-toolbar .fp-tb-search {width: 228px;height: 14px;}
@@ -64,12 +67,15 @@ background: #CCCCCC;filter: progid:DXImageTransform.Microsoft.gradient(startColo
64 67
 .dir-rtl .fp-viewbar {float: left;width: 100px;}
65 68
 
66 69
 .fp-vb-icons {background:url('[[pix:theme|fp/view_icon_active]]') no-repeat 0 0;width:22px;height:22px;display: inline-block;}
  70
+.dir-rtl .fp-vb-icons {background:url('[[pix:theme|fp/view_icon_active]]') no-repeat 0 0;}
67 71
 .fp-vb-icons.checked {background:url('[[pix:theme|fp/view_icon_selected]]');}
68 72
 .fp-viewbar.disabled .fp-vb-icons {background:url('[[pix:theme|fp/view_icon_inactive]]');}
69 73
 .fp-vb-details {background:url('[[pix:theme|fp/view_list_active]]') no-repeat 0px 0px;width:23px;height:22px;display: inline-block;margin-left: -4px;}
  74
+.dir-rtl .fp-vb-details {background:url('[[pix:theme|fp/view_list_active]]') no-repeat 0px 0px;}
70 75
 .fp-vb-details.checked {background:url('[[pix:theme|fp/view_list_selected]]');}
71 76
 .fp-viewbar.disabled .fp-vb-details {background:url('[[pix:theme|fp/view_list_inactive]]');}
72 77
 .fp-vb-tree {background:url('[[pix:theme|fp/view_tree_active]]') no-repeat 0px 0px;width:23px;height:22px;display: inline-block;margin-left: -4px;}
  78
+.dir-rtl .fp-vb-tree {background:url('[[pix:theme|fp/view_tree_active]]') no-repeat 0px 0px;}
73 79
 .fp-vb-tree.checked {background:url('[[pix:theme|fp/view_tree_selected]]');}
74 80
 .fp-viewbar.disabled .fp-vb-tree {background:url('[[pix:theme|fp/view_tree_inactive]]');}
75 81
 .file-picker .fp-clear-left {clear: left;}
@@ -149,8 +155,10 @@ a.ygtvspacer:hover {color: transparent;text-decoration: none;}
149 155
 
150 156
 .fp-filename-icon {margin-top: 10px;display: block;position: relative;}
151 157
 .fp-icon {float: left;margin-top: -7px;width: 24px;height: 24px;margin-right: 10px;text-align: center;line-height: 24px;}
  158
+.dir-rtl .fp-icon {float: right}
152 159
 .fp-icon img {max-height:24px;max-width:24px;vertical-align: middle;}
153 160
 .fp-filename {padding-right: 10px;}
  161
+.dir-rtl .fp-filename {padding-left: 10px;}
154 162
 
155 163
 /*
156 164
  * Repositories Login on fp-content (File Picker only)

0 notes on commit 25df8c4

Please sign in to comment.
Something went wrong with that request. Please try again.