Skip to content

Commit

Permalink
improve styling for smaller and older devices
Browse files Browse the repository at this point in the history
  • Loading branch information
noureddin committed Jul 8, 2024
1 parent b03f838 commit fdff62d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<button disabled title="حدد ما تريد مراجعته أو تسميعه، ثم اضغط على هذا الزر." id=ok>ابدأ</button>
</div>
<div hidden id=header>
<button title="اضغط لبدء مراجعة جديدة" id=new>جديد</button>
<button title="اضغط لبدء مراجعة جديدة" id=new>جديد</button>&emsp;
<button title="اضغط لإعادة هذا التسميع من البداية" id=repeat>إعادة</button>
</div>
<p id="p"></p>
Expand Down
9 changes: 6 additions & 3 deletions .style.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
* { font-family: AmiriQuranWeb }

html, body { background: #f0f0e8; color: #000 }
body { margin-top: 1em; transition: 0.5s margin-top }
input, button, select { font-size: inherit }
body { font-size: 20px; margin-top: 1em; transition: 0.5s margin-top }
@media (max-width: 320px) { body { font-size: 18px } }

#p {
text-align: right;
Expand All @@ -24,7 +26,8 @@ body { margin-top: 1em; transition: 0.5s margin-top }
td { padding: 0.25em }

center {
width: min(50em, 95vw);
width: 50em;
max-width: 95vw;
margin: 0 auto;
box-sizing: border-box;
}
Expand Down Expand Up @@ -154,14 +157,14 @@ label { display: inline-block } /* don't break over lines */

#ok { display: block }
button {
width: 6em;
width: min(35vw, 10rem);
transition: opacity 0.5s ease-in-out;
touch-action: manipulation; /* disable double-tap zooming; https://stackoverflow.com/a/53236027 */
cursor: pointer;
}

button:disabled { cursor: not-allowed }
#header button { margin: 0 1em }

#qaris {
font-family: serif;
Expand Down
Loading

0 comments on commit fdff62d

Please sign in to comment.