Skip to content

Commit

Permalink
Reduce default width
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1eef committed Oct 9, 2024
1 parent 900547c commit 156a34d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 18 deletions.
8 changes: 4 additions & 4 deletions share/al-quran.reflectslight.io/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

* vNEXT

** Reduce default width
The look and feel of the website has changed to be more like
a book that could fit in the palm of your hand

** Add src/images/albumcover-600x600.jpg
A copy of the album art that has been embedded as metadata
in the MP3 files served from audio.al-quran.reflectslight.io
Expand All @@ -12,10 +16,6 @@ of a surah. With this change the distinction is more so between a
RTL language vs a LTR language rather than between Arabic vs English
vs Farsi

** Center-align ~ul.body.stream~
For RTL languages we will show the content of a surah centered,
and within a max width of 470px

** Render ~LanguageSelect.tsx~ items in an optimal font
RTL languages have ~Cairo Regular~ applied.
LTR languages have ~Kanit Regular~ applied
Expand Down
4 changes: 2 additions & 2 deletions src/css/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ html {

body .root .content.theme {
margin: 0 auto;
max-width: $breakpoint-md;
width: 85%;
max-width: $breakpoint-sm;
width: 100%;
color: var(--color-accent);

header {
Expand Down
11 changes: 0 additions & 11 deletions src/css/main/SurahStream.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,4 @@ body .root .content.theme.rtl {
@extend .font-amiri;
}
}

/* >= $breakpoint-sm */
@media (min-width: $breakpoint-sm) {
ul.body.stream {
display: flex;
flex-direction: column;
min-width: 470px;
max-width: 470px;
align-self: center;
}
}
}
2 changes: 1 addition & 1 deletion src/js/components/SurahIndex/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function SurahIndex({ locale, surahs, t }: Props) {
<li
className={classNames("flex justify-center surah", {
"w-full": locale.direction === "ltr",
"w-1/3": locale.direction === "rtl",
"w-1/2": locale.direction === "rtl",
})}
key={key}
>
Expand Down

0 comments on commit 156a34d

Please sign in to comment.