Skip to content

Commit

Permalink
Enhance RTL layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1eef committed Aug 30, 2024
1 parent 22fb6b8 commit fa47510
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 26 deletions.
17 changes: 0 additions & 17 deletions src/css/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,21 +66,4 @@ body .root .content.theme {
* RTL languages
*/
body .root .content.theme.rtl {
header h1 {
font-size: xx-large;
}

/* <= $breakpoint-sm */
@media (max-width: $breakpoint-sm) {
header h1 {
font-size: x-large;
}
}

/* <= $breakpoint-xxl */
@media (max-width: $breakpoint-xxl) {
ul.body {
font-size: larger;
}
}
}
7 changes: 0 additions & 7 deletions src/css/main/SurahStream.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ body .root .content.theme {
body .root .content.theme.rtl {
ul.body.stream {
li.ayah p {
line-height: 1.7;
max-width: 470px;
}
}
Expand All @@ -39,14 +38,8 @@ body .root .content.theme.rtl {
$gap: 2rem;
margin-top: $gap;
li.ayah {
font-size: larger;
margin-bottom: $gap;
}
}
footer {
.timer {
font-size: larger;
}
}
}
}
4 changes: 2 additions & 2 deletions src/js/components/SurahStream/Stream.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ export function Stream({
return (
<li
key={ayah.id}
className={classNames("ayah fade", { "mb-5": rtl, "mb-4": ltr })}
className="ayah fade mb-5"
>
<span className="flex h-8 items-center">
<span className={classNames("flex h-8 items-center", {"mb-3": rtl})}>
<AudioControl
hidden={!(isPaused || endOfStream)}
audio={new Audio()}
Expand Down

0 comments on commit fa47510

Please sign in to comment.