Skip to content

Commit 2218165

Browse files
committed
style: Add RTL support comments to SCSS and CSS files
- Add RTL margin override for .ms-2 class in Media navbar component - Add RTL comment for form control feedback positioning in forms component - Add RTL comments for brand wrapper title positioning in navbar component - Add RTL comments for validation error background positioning - Update compiled CSS files (TheAdmin.css and login.css) with RTL directives - Improve right-to-left language support through SCSS/CSS RTL annotations
1 parent a95fb4c commit 2218165

File tree

6 files changed

+13
-9
lines changed

6 files changed

+13
-9
lines changed

src/OrchardCore.Modules/OrchardCore.Media/Assets/scss/_navbar.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
.action-bar {
22
border-bottom: var(--oc-media-border-content);
33

4+
.ms-2 {
5+
margin-right: 0.5rem !important; /*rtl:margin-left: 0.5rem !important;*/
6+
}
7+
48
.media-filter {
59
margin-top: 3px;
610

src/OrchardCore.Themes/TheAdmin/Assets/scss/components/_forms.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ input[type="password"]::-ms-clear {
7878
}
7979

8080
.has-filter .form-control-feedback {
81-
left: 4.25rem;
81+
left: 4.25rem; /*rtl:1rem*/
8282
top: 0.25rem;
8383
}
8484

src/OrchardCore.Themes/TheAdmin/Assets/scss/components/_navbar.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
.brand-wrapper-title {
2828
display: block;
2929
position: absolute;
30-
left: calc(var(--oc-start-navigation-width) + 10px);
30+
left: calc(var(--oc-start-navigation-width) + 10px); /*rtl:right: calc(var(--oc-start-navigation-width) + 10px);*/
3131
}
3232
}
3333

@@ -46,7 +46,7 @@
4646

4747
.left-sidebar-compact .ta-navbar-top {
4848
.brand-wrapper-title {
49-
left: calc(var(--oc-start-navigation-width-when-compact) + 15px);
49+
left: calc(var(--oc-start-navigation-width-when-compact) + 15px); /*rtl:right: calc(var(--oc-start-navigation-width-when-compact) + 15px);*/
5050
}
5151
}
5252

src/OrchardCore.Themes/TheAdmin/Assets/scss/components/_validations.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ span.field-validation-error {
4343
input:not([type='checkbox']):not([type='radio']).input-validation-error {
4444
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
4545
background-repeat: no-repeat;
46-
background-position: right calc(0.375em + 0.1875rem) center;
46+
background-position: right calc(0.375em + 0.1875rem) center; /*rtl:left calc(0.375em + 0.1875rem) center*/
4747
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
4848
}
4949

src/OrchardCore.Themes/TheAdmin/wwwroot/css/TheAdmin.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ input[type=password]::-ms-clear {
871871
}
872872

873873
.has-filter .form-control-feedback {
874-
left: 4.25rem;
874+
left: 4.25rem; /*rtl:1rem*/
875875
top: 0.25rem;
876876
}
877877

@@ -8057,7 +8057,7 @@ div.editor-widget.find-widget .button.codicon:active {
80578057
.ta-navbar-top .brand-wrapper-title {
80588058
display: block;
80598059
position: absolute;
8060-
left: calc(var(--oc-start-navigation-width) + 10px);
8060+
left: calc(var(--oc-start-navigation-width) + 10px); /*rtl:right: calc(var(--oc-start-navigation-width) + 10px);*/
80618061
}
80628062
}
80638063
@media (max-width: 575.98px) {
@@ -8070,7 +8070,7 @@ div.editor-widget.find-widget .button.codicon:active {
80708070
}
80718071

80728072
.left-sidebar-compact .ta-navbar-top .brand-wrapper-title {
8073-
left: calc(var(--oc-start-navigation-width-when-compact) + 15px);
8073+
left: calc(var(--oc-start-navigation-width-when-compact) + 15px); /*rtl:right: calc(var(--oc-start-navigation-width-when-compact) + 15px);*/
80748074
}
80758075

80768076
.brand-wrapper-title > h1 {
@@ -8713,7 +8713,7 @@ span.field-validation-error {
87138713
input:not([type=checkbox]):not([type=radio]).input-validation-error {
87148714
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
87158715
background-repeat: no-repeat;
8716-
background-position: right calc(0.375em + 0.1875rem) center;
8716+
background-position: right calc(0.375em + 0.1875rem) center; /*rtl:left calc(0.375em + 0.1875rem) center*/
87178717
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
87188718
}
87198719

src/OrchardCore.Themes/TheAdmin/wwwroot/css/login.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ span.field-validation-error {
5656
input:not([type=checkbox]):not([type=radio]).input-validation-error {
5757
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
5858
background-repeat: no-repeat;
59-
background-position: right calc(0.375em + 0.1875rem) center;
59+
background-position: right calc(0.375em + 0.1875rem) center; /*rtl:left calc(0.375em + 0.1875rem) center*/
6060
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
6161
}
6262

0 commit comments

Comments
 (0)