Skip to content

Commit

Permalink
Added rtl.css.
Browse files Browse the repository at this point in the history
  • Loading branch information
DustyReagan committed Sep 21, 2021
1 parent cc9eb89 commit aba88e3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
5 changes: 2 additions & 3 deletions projects/packages/post-list/src/class-post-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function register() {
}

/**
* Enqueue scripts depending on the post-list query var.
* Enqueue scripts.
*
* @param string $hook Page hook.
*/
Expand All @@ -60,11 +60,10 @@ public function enqueue_scripts( $hook ) {
array(),
self::PACKAGE_VERSION
);

wp_style_add_data(
'jetpack_posts_list_ui_style',
'rtl',
plugin_dir_url( __DIR__ ) . 'build/style.rtl.css'
plugin_dir_url( __DIR__ ) . './src/rtl.css'
);

add_filter( 'manage_posts_columns', array( $this, 'add_thumbnail_column' ) );
Expand Down
9 changes: 9 additions & 0 deletions projects/packages/post-list/src/rtl.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* Pull "Title" header name over in "Thumbnail"s place. */
th.column-thumbnail + th a {
margin-right:-60px;
}

/* If thumbnail column has .hidden class. The entire column is toggled off. Don't pull "Title" header name over. */
th.column-thumbnail.hidden + th a {
margin-right:0;
}

0 comments on commit aba88e3

Please sign in to comment.