Merge pull request #5406 from kadimi/master
Make the welcome page RTL compatible. Fixes #5405
This commit is contained in:
commit
3034f40431
|
@ -105,7 +105,7 @@ class WC_Admin_Welcome {
|
|||
text-align: center;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
<?php echo get_bloginfo( 'text_direction' ) === 'rtl' ? 'right' : 'left'; ?>: 0;
|
||||
margin: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
@ -127,7 +127,7 @@ class WC_Admin_Welcome {
|
|||
.about-wrap .wc-badge {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
<?php echo get_bloginfo( 'text_direction' ) === 'rtl' ? 'left' : 'right'; ?>: 0;
|
||||
}
|
||||
.about-wrap .wc-feature {
|
||||
overflow: visible !important;
|
||||
|
@ -143,14 +143,14 @@ class WC_Admin_Welcome {
|
|||
}
|
||||
.about-wrap .feature-rest div {
|
||||
width: 50% !important;
|
||||
padding-right: 100px;
|
||||
padding-<?php echo get_bloginfo( 'text_direction' ) === 'rtl' ? 'left' : 'right'; ?>: 100px;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
margin: 0 !important;
|
||||
}
|
||||
.about-wrap .feature-rest div.last-feature {
|
||||
padding-left: 100px;
|
||||
padding-right: 0;
|
||||
padding-<?php echo get_bloginfo( 'text_direction' ) === 'rtl' ? 'right' : 'left'; ?>: 100px;
|
||||
padding-<?php echo get_bloginfo( 'text_direction' ) === 'rtl' ? 'left: ' : 'right'; ?>: 0;
|
||||
}
|
||||
.about-wrap div.icon {
|
||||
width: 0 !important;
|
||||
|
@ -168,7 +168,7 @@ class WC_Admin_Welcome {
|
|||
position: relative;
|
||||
text-align: center;
|
||||
speak: none;
|
||||
margin: 0 0 0 -100px;
|
||||
margin: <?php echo get_bloginfo( 'text_direction' ) === 'rtl' ? '0 -100px 0 0' : '0 0 0 -100px'; ?>;
|
||||
content: "\e01d";
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
|
Loading…
Reference in New Issue