Skip to content

Commit

Permalink
RTL design issues fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sazedul-haque committed Jan 15, 2025
1 parent 885ea79 commit 6272691
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 3 deletions.
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 @@ -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

0 comments on commit 6272691

Please sign in to comment.