Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTL design issues fixed #1527

Merged
merged 1 commit into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions assets/scss/admin-dashboard/_tutor-admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@
.tutor-admin {
&-wrap {
margin-left: -20px;
.rtl & {
margin-left: 0px;
margin-right: -20px;
}

@include breakpoint-max(782) {
margin-left: -10px;
.rtl & {
margin-left: 0px;
margin-right: -10px;
}
}

// reset
Expand Down
4 changes: 4 additions & 0 deletions assets/scss/modules/certificate-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
background-repeat: no-repeat;
background-size: 50%;
background-position:right 25px center;

.rtl & {
background-position:left 25px center;
}
}

h4 {
Expand Down
2 changes: 1 addition & 1 deletion templates/email/email_styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @since 3.0.0
*
* @author Themeum
*/

Check failure on line 8 in templates/email/email_styles.php

View workflow job for this annotation

GitHub Actions / WPCS

Missing @Package tag in file comment

$has_pro = tutor()->has_pro;
$email_settings = null;
Expand Down Expand Up @@ -39,7 +39,7 @@
--secondary-button-color: <?php echo esc_attr( $secondary_button_color ); ?>;
--secondary-button-hover-color: <?php echo esc_attr( $secondary_button_hover_color ); ?>;
}
body{padding: 0px;margin: 0px;color: #5B616F;}
body{direction:<?php echo is_rtl() ? 'rtl' : 'ltr'; ?>;padding: 0px;margin: 0px;color: #5B616F;}
.tutor-email-body{font-weight:400;padding: 50px 20px 50px;color: #5B616F;background-color: #EFF1F6;line-height: 26px;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;}
.tutor-email-body a, .tutor-email-body strong {color: <?php echo esc_html( $email_short_code_color ); ?>;font-weight:500!important;text-decoration: none;}
.tutor-email-body a{ color: royalblue;}
Expand Down
7 changes: 6 additions & 1 deletion v2-library/src/scss/components/_dropdown.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
list-style: none;
padding: 0;
position: absolute;
right: 0;
top: calc(100% - 4px);
padding: 8px 0px;
background-color: var(--tutor-color-white);
Expand All @@ -12,6 +11,12 @@
display: none;
z-index: 1025;

@if ($is-rtl) {
left: 0;
} @else {
right: 0;
}

> li {
padding: 0;
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion views/options/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<form class="tutor-option-form" id="tutor-option-form">
<input type="hidden" name="action" value="tutor_option_save">
<div class="tutor-row tutor-gx-lg-0">
<div class="tutor-col-12 tutor-col-sm-2 tutor-col-lg-3 tutor-border-right">
<div class="tutor-col-12 tutor-col-sm-2 tutor-col-lg-3 <?php echo esc_attr( is_rtl() ? 'tutor-border-left' : 'tutor-border-right' ); ?>">
<div class="tutor-pt-16 tutor-pb-40 tutor-position-sticky" style="top: 97px;">
<div class="tutor-pr-20">
<ul class="tutor-option-tabs tutor-nav tutor-nav-pills tutor-nav-v" tutor-option-tabs>
Expand Down
5 changes: 5 additions & 0 deletions views/pages/welcome.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@
margin-left: -20px;
}

.rtl .tutor-lms-welcome-page {
margin-left: 0px;
margin-right: -20px;
}

.tutor-lms-welcome-page img {
max-width: 100%;
}
Expand Down
Loading