RTL CSS updates from Navid Kashani, RanYanivHartstein, mani_monaj, and the WP Persian team. see #7498. Partial patch for trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@8632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-08-12 23:19:07 +00:00
parent 88f521011a
commit f41858edcf
11 changed files with 303 additions and 203 deletions

View File

@ -1,3 +1,24 @@
.post-com-count {
}
#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins {
background-image: url(../images/comment-stalk-rtl.gif);
background-position:right bottom;
}
#footer {
background-position:99% 10px;
}
#poststuff .closed .togbox, #poststuff .togbox { #poststuff .closed .togbox, #poststuff .togbox {
background-image: url(../images/toggle-arrow-rtl.gif) !important; background-image: url(../images/toggle-arrow-rtl.gif) !important;
} }
.bar {
border-right-color: transparent;
border-left-color: #99d;
}
.plugins .togl {
border-right-color: transparent;
border-left-color: #ccc;
}
#upload-menu li.current {
border-right-color: transparent;
border-left-color: #448abd;
}

View File

@ -1,3 +1,24 @@
.bar {
border-right-color: transparent;
border-left-color: #99d;
}
.post-com-count {
}
#adminmenu li a #awaiting-mod, #sidemenu li a #update-plugins {
background-image: url(../images/comment-stalk-rtl.gif);
background-position:right bottom;
}
#footer {
background-position:99% 10px;
}
.plugins .togl {
border-right-color: transparent;
border-left-color: #ccc;
}
#poststuff .closed .togbox, #poststuff .togbox { #poststuff .closed .togbox, #poststuff .togbox {
background-image: url(../images/toggle-arrow-rtl.gif) !important; background-image: url(../images/toggle-arrow-rtl.gif);
} }
#upload-menu li.current {
border-right-color:transparent;
border-left-color: #448abd;
}

View File

@ -1,79 +1,62 @@
/* Right Now */
#rightnow { #rightnow {
margin-left: 15px; margin-right:0;
margin-left: 7px;
} }
#rightnow .reallynow span { #rightnow .reallynow span {
text-align: right; text-align: right;
float: right; float: right;
} }
#rightnow .reallynow a { #rightnow .reallynow a {
text-align: left; text-align: left;
float: left; float: left;
margin: 1px 0 0 6px; margin: 1px 0 0 6px;
} }
/* Widgets */
div.dashboard-widget-holder { div#dashboard-widgets-wrap {
float: right; margin-right:0;
margin-left:-13px;
}
div.dashboard-widget-holder {
float:right;
}
div.dashboard-widget {
margin-right:0;
margin-left: 20px;
} }
h3.dashboard-widget-title span { h3.dashboard-widget-title span {
text-align: right; text-align: right;
float: right; float: right;
} }
div.dashboard-widget-submit input {
font-family: sans-serif !important;
}
#dashboard-widgets .widget_rss ul li a {
float:right;
font-weight:bold;
margin:0pt 0pt 0.2em 0.5em;
}
#dashboard-widgets .widget_rss ul li span.rss-date {
float: right;
}
h3.dashboard-widget-title small { h3.dashboard-widget-title small {
text-align: left; text-align: left;
float: left; float:left;
} }
div.dashboard-widget-content ul, div.dashboard-widget-submit input {
div.dashboard-widget-content ol, font-family: Tahoma;
div.dashboard-widget-content dl { }
div.dashboard-widget-content ul, div.dashboard-widget-content ol, div.dashboard-widget-content dl {
padding-left:0; padding-left:0;
padding-right:15px; padding-right:15px;
} }
div#dashboard-widgets-wrap #dashboard_secondary div.dashboard-widget-content ul li {
{ float:right;
margin-right:0;
margin-left:-10px;
} }
#dashboard_secondary div.dashboard-widget-content ul li .post {
div.dashboard-widget { font-family:arial;
margin-right:0; }
margin-left:20px; #dashboard_secondary div.dashboard-widget-content ul li a {
border-right:0 none;
border-left: 1px solid #dadada;
height:110px;
}
#dashboard_secondary div.dashboard-widget-content ul li a cite {
font-family: Tahoma;
} }
#dashboard-widgets .widget_rss ul li span.rss-date { #dashboard-widgets .widget_rss ul li span.rss-date {
float:right; float:right;
} }
#dashboard-widgets .widget_rss ul li a { #dashboard-widgets .widget_rss ul li a {
float:right;
margin:0 0 0.2em 0.5em;
}
#dashboard_secondary div.dashboard-widget-content ul li {
float: right; float: right;
} margin: 0 0 .2em .5em;
#dashboard_secondary div.dashboard-widget-content ul li .post {
font-family: sans-serif !important;
}
#dashboard_secondary div.dashboard-widget-content ul li a {
border-right:0 none;
border-left:1px solid #DADADA;
}
#dashboard_secondary div.dashboard-widget-content ul li a cite {
font-family: sans-serif;
} }

View File

@ -1,34 +1,31 @@
//* styles for use by people extending the WordPress interface */ body, td {
body, td { font-family: sans-serif; } font-family: Tahoma;
}
textarea, input, select { font-family: sans-serif; } textarea, input, select {
font-family: Tahoma;
.alignleft { float: right; } }
.alignright { float: left; } h1, h2, h3 {
font-family:arial;
.textleft { text-align: right; } }
.textright { text-align: left; }
.wrap h2 { font-family: sans-serif; }
.widefat td { .widefat td {
padding: 7px 10px 9px 15px; padding: 7px 10px 9px 15px;
} }
.widefat th { .widefat th {
padding: 9px 10px 6px 15px; padding: 9px 10px 6px 15px;
text-align: right; text-align: right;
} }
.widefat th input { .widefat th input {
margin: 0 8px 0 0; margin: 0 8px 0 0;
} }
.widefat .check-column { .widefat .check-column {
text-align: left; text-align: left;
} }
.wrap h2 { .wrap h2 {
font-family:arial;
margin: 5px -4px 0 0; margin: 5px -4px 0 0;
padding: 0 0 7px 280px; padding-right:0;
padding-left: 280px;
}
.wrap h2.long-header {
padding-left: 0;
} }

View File

@ -1,26 +1,27 @@
body { body {
font-size: 11px; font-family: Tahoma;
font-family: sans-serif !important; }
/* Half the page disapears on IE6 */
* html body {
width: 700px;
position: absolute;
left: 50%;
margin-right: 350px;
} }
ul, ol { ul, ol {
padding: 5px 22px 5px 5px; padding: 5px 22px 5px 5px;
} }
.step, th {
text-align:right;
}
.submit input, .button, .button-secondary {
font-family: Tahoma;
margin-right:0;
}
.form-table th { .form-table th {
text-align: right; text-align:right;
}
input {
padding: 1px
}
#logo {
text-align: left;
}
#admin_email {
direction: ltr;
text-align: left;
}
.submit input, .button, .button-secondary {
font-family: sans-serif !important;
} }
h1 { h1 {
font-family: sans-serif; font-family:arial;
} margin: 5px -4px 0 0;
}

View File

@ -1,35 +1,37 @@
body { body {
font-family: sans-serif; font-family: Tahoma;
direction: rtl;
}
#login form .submit input {
font-family: sans-serif !important;
} }
form { form {
margin-left:0; margin-left:0;
margin-right:8px; margin-right: 8px;
} }
form .forgetmenot { form .forgetmenot {
float:right; float:right;
} }
#login form .submit input {
font-family: Tahoma;
}
form .submit { form .submit {
float:left; float:left;
} }
#backtoblog a {
left:auto;
right:15px;
}
#login_error, .message { #login_error, .message {
margin:0 8px 16px 0; margin: 0 8px 16px 0;
} }
#nav { #nav {
margin: 0 8px 0 0; margin:0 8px 0 0;
} }
#user_pass, #user_login, #user_email { #user_pass, #user_login, #user_email {
margin-right:0; margin-right:0;
margin-left: 6px; margin-left: 6px;
direction:ltr;
} }
h1 a { h1 a {
text-decoration:none; text-decoration:none;
} }
#backtoblog a { /* ltr input */
left: auto; #user_login, #user_pass {
right: 15px; direction:ltr;
} }

View File

@ -1,21 +1,66 @@
ul#sidemenu { body#media-upload ul#sidemenu {
left: auto; left:auto;
right: 0; right:0;
width: 620px;
}
#search-filter {
text-align:left;
} }
.align .field label { .align .field label {
display: block; padding: 0 28px 0 0;
float: right; margin: 0 0 0 1em;
padding: 0 25px 0 0;
margin: 5px 3px 5px 5px;
} }
.align .field input { .image-align-none-label, .image-align-left-label, .image-align-center-label, .image-align-right-label {
display: block; background-position:center right;
float: right; }
margin: 5px 15px 5px 0; tr.image-size label {
margin: 0 0 0 1em;
}
.filename.original {
float: right;
}
.crunching {
text-align: left;
margin-right:0;
margin-left: 5px;
}
button.dismiss {
right:auto;
left:5px;
}
.file-error {
margin: 0 50px 5px 0;
}
.progress {
left:auto;
right:0;
}
.bar {
border-right-width:0;
border-left-width: 3px;
border-left-style: solid;
}
.media-item .pinkynail {
float:right;
}
.describe-toggle-on, .describe-toggle-off {
float: left;
margin-right:0;
margin-left: 20px;
}
/* Specific to Uploader */
#media-upload .media-upload-form p {
margin: 0 0 1em 1em;
}
.filename {
float: right;
margin-left:0;
margin-right: 10px;
}
#media-upload .describe th.label {
text-align:right;
}
.menu_order {
float:left;
} }
.image-align-none-label,
.image-align-left-label,
.image-align-center-label,
.image-align-right-label {
background-position: center right;
}

View File

@ -1,7 +1,3 @@
#menu { margin-right: 8px !important; } .ui-tabs-nav {
margin-right: 0;
p.submit input { text-align: right !important; } }
li.ui-tabs-selected a { height: 25px; }
#photo_directions span { right: 200px; left: auto; height: 8px; }

View File

@ -1,59 +1,98 @@
body { body {
font-family: sans-serif; font-family: Tahoma;
} }
.ui-tabs-nav {
#viewsite { padding-left:0;
right:auto; left: 8px; padding-right:8px;
} }
ul#menu {
padding-right: 8px;
}
.ui-tabs-nav li { .ui-tabs-nav li {
float: right; float: right;
} }
.button {
font-family: Tahoma;
margin-left:0;
margin-right: 5px;
}
#wphead #viewsite {
margin-left:0;
margin-right: 10px;
}
#viewsite {
right:auto;
left: 8px;
}
#wphead #viewsite a {
font-family: Tahoma;
}
h1 {
right:auto;
left:0;
}
div#posting { div#posting {
padding-right:16px; padding-left: 0; padding-left:0;
padding-right: 16px;
} }
div#categories {
right: auto; left: 16px;
}
div#categories h2 {
margin:0.5em 1em 0.5em 0;
}
#jaxtag {
padding-right :1em; padding-left: 0;
}
input#newtag {
margin-left: 4px; width: 100px;
}
#photo_directions span { #photo_directions span {
right: auto; left: 3px right:auto;
left:3px;
} }
#img_container a {
#TB_ajaxContent #options { float:right;
right: auto; left: 25px;
} }
#img_container a, #img_container a:link, #img_container a:visited {
#TB_ajaxContent { margin:0 0 4px 4px;
text-align: right;
} }
div#categories {
#TB_ajaxContent #this_photo { right:auto;
direction: ltr; left:16px;
} }
div#categories h2 {
.video_split #extra_fields { margin: .5em 1em .5em 0;
}
#tagsdiv #newtag {
margin-right:0;
margin-left: 5px;
}
#jaxtag {
padding-left:0;
padding-right: 1em;
}
#tagchecklist {
padding-left:0;
padding-right: 1em;
}
#tagchecklist span {
margin-right: 10px;
margin-left: .5em;
float: right; float: right;
} }
#tagchecklist span a {
margin: 6px -9px 0pt 0;
float: right;
}
.submitbox {
float: left;
}
.submitbox .submit input {
text-align:right;
}
.video_split #extra_fields {
float:right;
}
.video_split .editor_area { .video_split .editor_area {
float: left; float: left;
} }
.ac_results li {
text-align:right;
}
#TB_ajaxContent #options {
right:auto;
left:25px;
}
#post_status {
margin-left:0;
margin-right: 10px;
}
#footer {
padding: 10px 60px 0 0;
}

View File

@ -1,14 +1,15 @@
#template textarea { #template textarea {
font-family: monospace !important; font-family:monospace;
} }
#templateside { #templateside {
float:left; float:left;
} }
#themeselector { #themeselector {
padding-right:0; padding-right:0;
padding-left:5px; padding-left: 5px;
float: left;
} }
div.tablenav { div.tablenav {
margin-left:210px;
margin-right:0; margin-right:0;
} margin-left: 210px;
}

View File

@ -1,51 +1,45 @@
/* 2 column liquid layout */
div.widget-liquid-left-holder { div.widget-liquid-left-holder {
clear:right; float: right;
float:right; clear: right;
margin-right:0; margin-right:0;
margin-left:-310px; margin-left: -310px;
} }
div.widget-liquid-left { div.widget-liquid-left {
margin-right:0; margin-right:0;
margin-left:310px; margin-left: 320px;
} }
div.widget-liquid-right { div.widget-liquid-right {
clear:left; float: left;
float:left; clear: left;
} }
p#widget-search { p#widget-search {
right:auto;
left:0; left:0;
right:auto
}
ul#widget-list li.widget-list-item h4.widget-title {
float:right;
text-align:right;
}
ul#widget-list li.widget-list-item div.widget-description {
margin:0 200px 0 0;
padding:0 4em 0 0;
}
.widget-control-save, .widget-control-remove {
float:right;
margin-right:0;
margin-left:8px;
} }
h4.widget-title span { h4.widget-title span {
float: right; float: right;
} }
h4.widget-title a { h4.widget-title a {
float: left; float: left;
margin: 0 1em 0 0; margin-left:0;
margin-right: 1em;
} }
li.widget-list-control-item h4.widget-title a, #dragHelper li.widget-list-control-item h4.widget-title a, #draghelper li.widget-list-control-item h4.widget-title a:visited { ul#widget-list li.widget-list-item h4.widget-title {
right:auto; float:right;
left:1em;
} }
ul#widget-list li.widget-list-item div.widget-description {
ul.widget-control-list div.widget-control-actions { margin: 0 200px 0 0;
padding: 0 4em 0 0;
}
.widget-control-save, .widget-control-remove {
margin-right:0; margin-right:0;
margin-left:-10px; margin-left: 8px;
float: right;
}
li.widget-list-control-item h4.widget-title a,
#dragHelper li.widget-list-control-item h4.widget-title a,
#draghelper li.widget-list-control-item h4.widget-title a:visited {
right:auto;
left: 1em;
} }
ul.widget-control-list h4.widget-title,
#dragHelper h4.widget-title {
text-align: right;
}