-
-
Notifications
You must be signed in to change notification settings - Fork 433
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2012 from talal-najam/feature/floating-toggle-button
Add reading preference switch to navbar
- Loading branch information
Showing
10 changed files
with
164 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/components/QuranReader/ReadingPreferenceSwitcher/ReadingPreference.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,31 @@ | ||
@use "src/styles/breakpoints"; | ||
|
||
.container { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
width: 100%; | ||
} | ||
|
||
.spinner { | ||
margin-inline-end: var(--spacing-xsmall); | ||
} | ||
|
||
.preferenceTextContainer { | ||
padding-inline-start: var(--spacing-xsmall); | ||
} | ||
|
||
.iconContainer { | ||
& > svg { | ||
width: 15px; | ||
display: block; | ||
margin: auto; | ||
} | ||
|
||
@include breakpoints.smallerThanTablet { | ||
& > svg { | ||
-webkit-margin-end: 0; | ||
margin-inline-end: 0; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
src/components/QuranReader/ReadingPreferenceSwitcher/ReadingPreferenceSwitcher.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
$readingPreferenceMaxWidth: calc(20 * var(--spacing-large)); | ||
$contextMenuReadingPreferenceMaxWidth: calc(10 * var(--spacing-large)); | ||
.container { | ||
max-width: $readingPreferenceMaxWidth; | ||
margin-block-start: var(--spacing-small); | ||
margin-block-end: var(--spacing-xxsmall); | ||
margin-inline-start: auto; | ||
margin-inline-end: auto; | ||
padding-block-start: 0; | ||
padding-block-end: 0; | ||
padding-inline-start: var(--spacing-small); | ||
padding-inline-end: var(--spacing-small); | ||
} | ||
|
||
.surahHeaderContainer { | ||
margin-block-start: var(--spacing-small); | ||
margin-block-end: var(--spacing-xxsmall); | ||
} | ||
|
||
.contextMenuContainer { | ||
max-width: $contextMenuReadingPreferenceMaxWidth; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters