Skip to content

Commit

Permalink
RTL support for Press This. Props RanYanivHartstein. see #7289
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@8328 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Jul 13, 2008
1 parent b71746b commit b167244
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
7 changes: 7 additions & 0 deletions wp-admin/css/press-this-ie-rtl.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#menu { margin-right: 8px !important; }

p.submit input { text-align: right !important; }

li.ui-tabs-selected a { height: 25px; }

#photo_directions span { right: 200px; left: auto; height: 8px; }
56 changes: 56 additions & 0 deletions wp-admin/css/press-this-rtl.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,59 @@
body {
font-family: sans-serif;
}

#viewsite {
right:auto; left: 8px;
}

ul#menu {
padding-right: 8px;
}

.ui-tabs-nav li {
float: right;
}

div#posting {
padding-right:16px; padding-left: 0;
}

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 {
right: auto; left: 3px
}

#TB_ajaxContent #options {
right: auto; left: 25px;
}

#TB_ajaxContent {
text-align: right;
}

#TB_ajaxContent #this_photo {
direction: ltr;
}

.video_split #extra_fields {
float: right;
}

.video_split .editor_area {
float: left;
}
2 changes: 1 addition & 1 deletion wp-includes/script-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function wp_default_styles( &$styles ) {
$styles->default_version = get_bloginfo( 'version' );
$styles->text_direction = 'rtl' == get_bloginfo( 'text_direction' ) ? 'rtl' : 'ltr';

$rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this' );
$rtl_styles = array( 'global', 'colors', 'dashboard', 'ie', 'install', 'login', 'media', 'theme-editor', 'upload', 'widgets', 'press-this', 'press-this-ie' );

$styles->add( 'wp-admin', '/wp-admin/wp-admin.css' );
$styles->add_data( 'wp-admin', 'rtl', '/wp-admin/rtl.css' );
Expand Down

0 comments on commit b167244

Please sign in to comment.