i made some change to the theme to make it suitable for RTL users.
note: there is a different a big one between firefox and IE. it takes me a minute on firefox and an hour for IE
there is some confused at Primary Links i am still working at
here is the code
html {
direction: rtl;
}
body {
margin:0;
padding:0;
color:#666666;
background-color:#f3f3f3;
font: normal 0.8em "Tahoma", Arial;
font-size: 70%;
background-repeat:repeat-x;
background-position:top;
}
div.picture {
float:right;
}
div.picture img {
border: 1px solid #cccccc;
margin: 0px 0px 10px 10px;
padding: 3px;
background-color: #f3f3f3;
}
/******************************************** ********** ********** **********/
/********** Main Layout ********** ********** ********** **********/
/******************************************** ********** ********** **********/
#pagewrapper {
margin:auto;
width:960px;
border:15px solid #ffffff;
background-color:#ffffff;
}
#headline {
font-size:28px;
color:#333333;
text-align:right;
font-weight:bold;
padding:10px 20px;
}
#logo {
bottom:-7px;
margin-right:3px;
position:relative;
}
#site-slogan {
color:#999999;
font-size:11px;
}
#header-image {
height:80px;
background-color:#FF9900;
background-image:url(img/headerimg.jpg);
background-repeat:no-repeat;
}
#site-mission {
font-size:11px;
font-weight:bold;
padding:20px;
text-align:right;
color:#ffffff;
}
#contentwrapper p,
#contentwrapper li {
line-height:160%;
}
#tabs-wrapper {
margin-bottom:20px;
}
.content-padding {
padding:10px;
text-align:right;
}
#sidebar-left {
width:21%;
float:left;
margin-right:1%;
}
#middle-content {
width:99%;
float:left;
}
.sidebar-left #middle-content,
.sidebar-right #middle-content {
width:77%;
float:left;
}
.sidebars #middle-content {
width:56%;
float:left;
}
#sidebar-right {
width:21%;
float:right;
}
div.tablewrapper {
width:99%;
overflow:auto;
text-align:right;
}
#footer {
margin-top:50px;
text-align:center;
background-color: #eee;
padding: 1em;
color:#FF9900;
font-size: 0.8em;
}
a.feed-icon {
display:block;
padding:10px 0px;
}
/******************************************** ********** ********** **********/
/********** Main Style ********** ********** ********** **********/
/******************************************** ********** ********** **********/
h1, h2, h3, h4, h5, #headline a {
margin-top:0px;
margin-bottom:0.5em;
color:#FF9900;
text-align:right;
}
h1 {
font-size:200%;
}
h2 {
font-size:160%;
}
h3 {
font-size:140%;
}
li.leaf {
list-style-image:none;
}
a {
text-decoration:none;
color:#006699;
}
p {
margin:3px 0px;
padding:0px 0px;
}
/******************************************** ********** ********** **********/
/********** Admin Style ********** ********** ********** **********/
/******************************************** ********** ********** **********/
div.messages {
border: 3px solid #FF9900;
padding:10px;
margin: 10px 0px;
}
div.admin .left,
div.admin .right {
margin:0;
width:49%;
}
div.admin-panel {
margin:10px 0px;
padding:5px;
border:4px solid #f3f3f3;
}
div.admin-panel .body {
padding:0;
padding-right:10px;
}
div.admin-panel .body dl,
div.admin-panel .body ul {
padding-left:15px;
margin:0;
}
#tabs-wrapper ul.tabs {
width:99%;
overflow:auto;
}
ul.primary {
border-bottom:1px solid #cccccc;
border-top:1px solid #cccccc;
border-collapse:collapse;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
margin:5px 0px;
padding:4px 0px;
white-space:nowrap;
font-size:0.9em;
}
#tabs-wrapper ul.primary li {
margin-right:2px;
background-color:transparent;
background-image:url(img/edit-tab-left-grey.png);
background-repeat:no-repeat;
background-position:left;
padding:2px 0px;
}
#tabs-wrapper ul.primary li.active {
background-color:transparent;
background-image:url(img/edit-tab-left-black.png);
background-repeat:no-repeat;
background-position:left;
}
#tabs-wrapper ul.primary li a {
margin:0;
color:#333333;
background-color:transparent;
border:none;
background-image:url(img/edit-tab-right-grey.png);
background-repeat:no-repeat;
background-position:right;
padding:2px 10px;
}
#tabs-wrapper ul.primary li a:hover {
margin:0;
color:#333333;
background-color:transparent;
border:none;
background-image:url(img/edit-tab-right-grey.png);
background-repeat:no-repeat;
background-position:right;
}
#tabs-wrapper ul.primary li.active a {
background-color:transparent;
color:#ffffff;
border:none;
background-image:url(img/edit-tab-right-black.png);
background-repeat:no-repeat;
background-position:right;
}
/******************************************** ********** ********** **********/
/********** Table Style ********** ********** ********** **********/
/******************************************** ********** ********** **********/
table,
table.package {
width:99%;
margin: 1em 0;
}
table tr.odd {
background-color:#f3f3f3;
}
table tr.even {
background-color:#ffffff;
}
/******************************************** ********** ********** **********/
/********** Fieldset Style ********** ********** ********** **********/
/******************************************** ********** ********** **********/
fieldset ul.clear-block li {
margin: 0;
padding: 0;
background-image: none;
}
fieldset.collapsible, fieldset {
border:4px solid #f3f3f3;
}
fieldset.collapsible legend, fieldset legend {
font-size:1.2em;
font-weight:bold;
}
/******************************************** ********** ********** **********/
/********** Primary Links ********** ********** ********** **********/
/******************************************** ********** ********** **********/
ul.links li {
display:block;
padding:0;
}
#navigation-primary ul.primary-links {
margin:0;
padding:0;
}
/*here i cjange accourding to the net*/
#navigation-primary ul.primary-links li,
#navigation-primary ul.primary-links li a {
padding-top: 5px;
padding-bottom: 5px;
margin-bottom:1px;
margin-left:20px;
}
#navigation-primary ul.primary-links li {
list-style:none;
float:left;
margin-right:-37px;
}
#navigation-primary ul.primary-links li a {
padding-left: 20px;
padding-right: 20px;
border-bottom:1px solid #ffffff;
background-color:#999999;
background-image:url(img/corner.gif);
background-repeat:no-repeat;
color:#ffffff;
text-decoration:none;
font-size:1.2em;
}
#navigation-primary ul.primary-links li a.active {
background-color:#000000;
background-repeat:no-repeat;
color:#ffffff;
}
#navigation-primary ul.primary-links li a:hover {
background-color:#000000;
color:#ffffff;
}
/******************************************** ********** ********** **********/
/********** Secondary Links ********** ********** ********** **********/
/******************************************** ********** ********** **********/
#navigation-secondary {
border-bottom:1px solid #ffffff;
background-color:#333333;
}
ul.secondary-links {
margin:0;
padding:0;
}
ul.secondary-links li,
ul.secondary-links li a {
padding-top: 0.4em;
padding-bottom: 0.3em;
}
ul.secondary-links li {
list-style:none;
float:left;
border-right: 1px solid #ffffff;
}
ul.secondary-links li a {
padding-left: 20px;
padding-right: 20px;
color:#cccccc;
text-decoration:none;
background-color:#333333;
}
ul.secondary-links li a.active {
color:#ffffff;
font-weight:bold;
}
ul.secondary-links li a:hover {
color:#ffffff;
}
/******************************************** ********** ********** **********/
/********** Breadcrumb Links ********** ********** ********** **********/
/******************************************** ********** ********** **********/
#navigation-breadcrumb {
padding:5px 20px;
border-top: 1px solid #ffffff;
background-image:url(img/bg_breadcrumb.gif);
background-repeat:repeat-x;
margin-bottom:10px;
text-align:right;
}
#navigation-breadcrumb,
#navigation-breadcrumb a {
color:#999999;
text-decoration:none;
padding-right:10px;
padding-left:10px;
}
#navigation-breadcrumb a:hover {
color:#999999;
text-decoration:underline;
}
/******************************************** ********** ********** **********/
/********** Block Style ********** ********** ********** **********/
/******************************************** ********** ********** **********/
.block {
margin-bottom:1.5em;
padding:10px;
background-color:#f3f3f3;
}
div.block-region {
background-color:#ffffff;
border: 4px dashed #006699;
color:#999999;
font-size:180%;
text-align:center;
font-weight:bold;
margin-bottom:1em;
margin-top:1em;
}
/******************************************** ********** ********** **********/
/********** User login ********** ********** ********** **********/
/******************************************** ********** ********** **********/
#user-login-form {
text-align:left;
}
#user-login-form .form-item input {
width:95%;
}
#user-login-form input.form-submit {
margin-bottom:10px;
}
/******************************************** ********** ********** **********/
/********** Node Style ********** ********** ********** **********/
/******************************************** ********** ********** **********/
.node.teaser {
padding:10px;
text-align:right;
margin-top:1em;
border: 5px solid #f3f3f3;
}
.node .field {
padding:10px 0px;
text-align:right;
}
.node .clear {
margin:1em 0;
text-align:right;
}
.node .content {
padding-top:10px;
text-align:right;
}
.node .links, .comment .links {
text-align: right;
}
.node .links ul.links li,
.comment .links ul.links li {
padding-left: 1em;
float: right;
}
.terms ul.links li {
margin-left: 0;
margin-right: 0;
padding-right: 0;
padding-left: 1em;
}
.new {
color: #ffae00;
font-size: 0.92em;
font-weight: bold;
float: right;
}
.terms {
float: right;
}
.terms ul.links li {
display: inline;
}
.preview .node, .preview .comment, .sticky {
margin: 0;
padding: 0.5em 0;
border: 0;
background: 0;
}
.sticky {
padding: 1em;
background-color: #f3f3f3;
border: 1px solid #006699;
margin-bottom: 2em;
}
/******************************************** ********** ********** **********/
/********** Forum Style ********** ********** ********** **********/
/******************************************** ********** ********** **********/
div#forum table {
border:4px solid #f3f3f3;
padding:0;
border-collapse: separate;
}
div#forum table th,
div#forum table td {
padding-left:5px;
}
div#forum table th a,
div#forum table td a {
text-decoration:underline;
}
div#forum table th a {
}
div#forum table thead {
background-color:#e0e0e0;
color:#333333;
padding:5px;
background-image:url(img/bg-forum.png);
background-position:top;
background-repeat:repeat-x;
}
div#forum td.container {
background-color:#e0e0e0;
color:#333333;
padding:5px;
text-align:right;
background-image:url(img/bg-forum.png);
background-position:top;
background-repeat:repeat-x;
}
div#forum td.container a {
text-decoration:underline;
font-size:1.3em;
font-weight:bold;
}
div#forum td.container .description {
margin-bottom:0;
}
div.forum-topic {
border:5px solid #f3f3f3;
background-color:#ffffff;
padding:1px;
}
div.forum-topic .user-info {
padding:5px;
width:25%;
float:left;
border-right:3px solid #f3f3f3;
}
div.forum-topic .topic {
padding:5px;
float:left;
width:70%;
}
div.forum-topic .user-name,
div.forum-topic .topic-title {
font-size:1.3em;
}
div.forum-topic .user-member,
div.forum-topic .user-access {
margin-top:5px;;
}
div.forum-topic .picture img {
padding:3px;
margin:3px 0px;
border:1px solid #cccccc;
background-color:#f3f3f3;
}
div.forum-topic .topic-body {
margin-top:10px;
margin-bottom:10px;
}
div.forum-topic .links {
text-align:right;
padding:5px;
display:block;
}
h2.comments {
margin:10px 0px;
}
div.comment {
background-color:#ffffff;
padding:10px;
margin:10px 0px;
border:1px solid #cccccc;
}
div.comment .picture {
float:right;
margin-left:10px;
margin-bottom:10px;
}
div.comment .picture img {
padding:3px;
border:1px solid #cccccc;
background-color:#f3f3f3;
}
div.comment .links ul {
text-align:right;
}
div.comment .links li {
display:inline;
margin-left:10px;
}
#comments .box {
margin-top:30px;
}
/******************************************** ********** ********** **********/
/********** Search Style ********** ********** ********** **********/
/******************************************** ********** ********** **********/
.sidebar #search #edit-search-theme-form-keys {
width: 95%;
}
/******************************************** ********** ********** **********/
/********** Book Style ********** ********** ********** **********/
/******************************************** ********** ********** **********/
.content .book-navigation {
margin-top:10px;
}
/******************************************** ********** ********** **********/
/********** Menu in Sidebars ********** ********** ********** **********/
/******************************************** ********** ********** **********/
.block ul {
padding: 0; /* override system.css (line 205) */
}
.sidebar ul, .sidebar ul li {
margin: 0; /* we want full control, so no default padding or margin */
padding: 0;
}
.sidebar li {
border-top:dashed #cccccc 1px; /* sets the horizontal white line between list-items (menu-items) */
}
.sidebar ul li { /* sets all the stuff for list-items (menu-items) */
text-align: right; /* we rebuild the padding that we turned off in .sidebar ul, .sidebar ul li */
list-style-type: none; /* no default bullets in our lists */
list-style-image: none; /* not even images, we do it with background-images in the next line */
background-image: url(img/menu-leaf.gif); /* this is the bullet in our lists */
background-repeat:no-repeat; /* because we only want ONE image, not a carpet of them */
background-position: 16em 0.6em; /* and we want full control over the position (first number is vertical, second horizontal position */
}
.sidebar ul li.expanded {
background-image: url(img/menu-expanded.gif); /* the bullet (little arrow) of parent menu-items in our lists (when opened) */
}
.sidebar ul li.collapsed {
background-image: url(img/menu-collapsed.gif); /* the bullet of parent menu-items in our lists (when closed) */
}
.sidebar ul li ul li {
text-align: right; /* we rebuild the padding that we turned off .sidebar ul li - THIS TIME WE HAVE TO DO IT FOR NESTED LISTS (i.e. lists in lists) */
padding:0 0 0 3em; /* so first we set a negative margin and give it back via padding - the only reason to do this is to get our nice white lines between the li items */
background-position: 1.8em 0.6em; /* and we also have to adjust the position of the bg-image */
}
.sidebar ul li ul li ul li {
margin-left:-3.2em; /* same stuff as above for more nesting */
padding:0 0 0 4.5em;
background-position: 3.3em 0.6em;
}
.sidebar ul li ul li ul li ul li {
margin-left:-4.7em; /* and even more nesting (and so on if you need more) */
padding:0 0 0 6em;
background-position: 4.8em 0.6em;
}
.sidebar ul li a, .sidebar ul li.expanded a, .sidebar ul li.collapsed a {
line-height: 2em;
}
.sidebar a.active { /* an active link in the blocks and menu */
font-weight:bold;
color:#666666 !important;
}
dl {
margin: 0.5em 0 1em 1.5em;
}
dl dt {
}
dl dd {
margin: 0 0 .5em 1.5em;
}
img, a img {
border: none;
}
/******************************************** ********** ********** **********/
/********** try another ... ********** ********** ********** **********/
/******************************************** ********** ********** **********/
#font span,
#farben span {
font-family:arial;
color:#333333;
font-size:10px;
text-decoration:none;
float:left;
display:block;
}
#farben a {
width:10px;
height:10px;
display:block;
float:left;
margin-left:5px;
}
#font a {
display:block;
float:left;
margin-left:5px;
font-family:arial;
color:#cccccc;
font-size:10px;
text-decoration:none;
}
template.php allow you to edit the text of changing the color, or to add other links to be colored.
Comments
Comment #1
derjochenmeyer commentedThanks a lot. But how can i put this into the theme?
Comment #2
derjochenmeyer commentedComment #3
eng.anas commentedhi
i had fished the RTL
i tested it on IE 6 and firefox
i replace your code with this one and it works
my site has one language(Arabic), but i am going to make another feature like choosing color make a one for choosing language .
i guess you understand what i mean :)
another thing when user choose the color it's changing at the first click, then it restore the default, i wonder if we could keep the choose till finishing the user session ;)
Comment #4
drupalferret commentedum - I hate to sound dumb or stupid but what does RTL stand for? Sorry to ask because it is probably so obvious and I bet I am going to be soooh embarrassed.
Comment #5
eng.anas commentedRTL
Right To Left
Comment #6
eng.anas commentedComment #7
eng.anas commentedhi derjochenmeyer i needyour support...
i found some thing strange in the RTL in tracker or any view the head of it showed form left to right so how could i solve it
http://icdc-sy.com/root/tracker
Comment #8
derjochenmeyer commentedhi eng.anas,
try to add this to the table section of your style.css
Comment #9
eng.anas commentedi made it like this and it works thanx derjochenmeyer, i'll try your suggestion because i make it's suitable more than mine
Comment #10
derjochenmeyer commentedComment #11
lameei commentedthe ul and li dots are not visible. would you please solve them too?
Comment #12
lameei commentedhi again
Sorry, but i used this link to have a RTL Four Seasons. http://drupal.org/node/235068
i mentioned it here cause i thogut that these tow are trying to solve one thing.