RTL: Made a range of fixes & improvments for RTL text

- Updated HTML exports to have auto direction to properly react to RTL
  text when in the content.
- Fixed RTL spacing issues in new editor design changes.
- Fixed pointer arrow being angled wrong on RTL languages.

Related to #4645
This commit is contained in:
Dan Brown 2023-12-05 18:53:48 +00:00
parent 11853361b0
commit 0254527bd9
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
2 changed files with 10 additions and 10 deletions

View File

@ -115,7 +115,7 @@ body.tox-fullscreen, body.markdown-fullscreen {
width: 52px;
height: 52px;
font-size: 26px;
right: $-xs;
inset-inline-end: $-xs;
bottom: $-s;
box-shadow: $bs-hover;
background-color: currentColor;
@ -170,8 +170,8 @@ body.tox-fullscreen, body.markdown-fullscreen {
display: block;
transform: rotate(45deg);
transform-origin: 50% 50%;
border-block-end: 1px solid #CCC;
border-inline-end: 1px solid #CCC;
border-right: 1px solid #CCC;
border-bottom: 1px solid #CCC;
z-index: 56;
@include lightDark(background-color, #fff, #333);
@include lightDark(border-color, #ccc, #000);
@ -224,7 +224,7 @@ body.tox-fullscreen, body.markdown-fullscreen {
border-radius: 8px;
box-shadow: $bs-card;
margin-bottom: auto;
margin-left: $-l;
margin-inline-start: $-l;
position: relative;
&.open {
position: relative;
@ -252,11 +252,11 @@ body.tox-fullscreen, body.markdown-fullscreen {
position: relative;
}
.tabs {
border-right: 1px solid #DDD;
@include lightDark(border-right-color, #DDD, #000);
border-inline-end: 1px solid #DDD;
@include lightDark(border-inline-end-color, #DDD, #000);
width: 40px;
flex: 0 1 auto;
margin-right: -1px;
margin-inline-end: -1px;
}
.tabs-inner {
@include lightDark(background-color, #FFFFFF, #222);
@ -325,7 +325,7 @@ body.tox-fullscreen, body.markdown-fullscreen {
@include smaller-than($xxl) {
.floating-toolbox {
margin-left: $-s;
margin-inline-start: $-s;
}
}
@ -334,7 +334,7 @@ body.tox-fullscreen, body.markdown-fullscreen {
margin: 4px !important;
}
.floating-toolbox {
margin-left: 4px;
margin-inline-start: 4px;
}
.floating-toolbox .tabs {
width: 32px;

View File

@ -13,7 +13,7 @@
</head>
<body class="export export-format-{{ $format }} export-engine-{{ $engine ?? 'none' }}">
@include('layouts.parts.export-body-start')
<div class="page-content">
<div class="page-content" dir="auto">
@yield('content')
</div>
@include('layouts.parts.export-body-end')