reduced margins for mobile browsers

This commit is contained in:
Antti Pilto 2017-03-24 21:02:33 +02:00
parent 2dee2a07d2
commit 8e38824170
4 changed files with 24 additions and 8 deletions

View file

@ -13,6 +13,9 @@ body {
padding-bottom: 20px; padding-bottom: 20px;
border-bottom: 1px #dadada solid; border-bottom: 1px #dadada solid;
min-height: 500px; /* 690 */ min-height: 500px; /* 690 */
@media (max-width: 768px) {
min-height: auto;
}
} }
.container { .container {
margin: 0 auto; margin: 0 auto;

View file

@ -12,19 +12,19 @@ class Footer extends Component {
If you are a beginner, you might want to start by choosing the first two groups (a -&gt; ko) of hiragana. Once you manage to pass the last stage, add in one or two more groups. Aim for the perfection - you want to be answering quickly.</p> If you are a beginner, you might want to start by choosing the first two groups (a -&gt; ko) of hiragana. Once you manage to pass the last stage, add in one or two more groups. Aim for the perfection - you want to be answering quickly.</p>
<p>Have fun!</p> <p>Have fun!</p>
<h4>Update - 18 March 2017</h4> <h4>Updates</h4>
<p>* Bugfix: Fixed unintended behavior when same group was selected from both hiragana &amp; katakana. Thanks for the bug report!</p> <p>
<strong>24 March 2017</strong> &middot; Enhancement: Improved mobile browser usability with reduced margins.<br />
<strong>18 March 2017</strong> &middot; Bugfix: Fixed unintended behavior when same group was selected from both hiragana &amp; katakana. Thanks for the bug report!
</p>
<p>Coders needed! This app is open source, but I'm currently the only one working on it. If you'd like to practice your React.js skills, <p>Coders needed! This app is open source, but I'm currently the only one working on it. If you'd like to practice your React.js skills,
feel free to check the issues and fork it on <a href="https://github.com/anzzstuff/kanaquiz">GitHub</a>!</p> feel free to check the issues and fork it on <a href="https://github.com/anzzstuff/kanaquiz">GitHub</a>!</p>
<h4>Launch - 14 Aug 2016</h4>
<p> <p>
Here we are finally with a new version of Kana Quiz. <strong>14 Aug 2016</strong> &middot; Launch: Here we are finally with a new version of Kana Quiz.
This app doesn't require flash anymore, and should work great with mobile phones and tablets. This app doesn't require flash anymore, and should work great with mobile phones and tablets.
Note that this is still a beta version, so there may be a few quirks. I would love to hear Note that this is still a beta version, so there may be a few quirks. I would love to hear
your thoughts, so if you'd like, be sure to shoot me some feedback using {' '} your thoughts, so if you'd like, be sure to shoot me some <a href="https://goo.gl/forms/BwtgpkYjT1iyH8uE3">feedback</a>! {' '}
<a href="https://goo.gl/forms/BwtgpkYjT1iyH8uE3">this form</a>! {' '} If you for some reason want to use the old version, it's still available <a href="http://simplemedia.org/kana/flash/" rel="nofollow">here</a>.
If you for some reason want to use the old version, it's still available <a href="http://simplemedia.org/kana/flash/">here</a>.
</p> </p>
<div className="copyright">&copy; <a href="http://simplemedia.org/">Antti Pilto</a> 2016</div> <div className="copyright">&copy; <a href="http://simplemedia.org/">Antti Pilto</a> 2016</div>
</div> </div>

View file

@ -20,6 +20,9 @@
padding: 8px; padding: 8px;
margin: 30px auto 28px; margin: 30px auto 28px;
border-radius: 3px; border-radius: 3px;
@media (max-width: 768px) {
margin: 0px auto 0px;
}
} }
.size-up { .size-up {
font-size: 1.1em; font-size: 1.1em;
@ -59,6 +62,9 @@
min-width: 90px; min-width: 90px;
font-size: 2em; font-size: 2em;
margin: 30px 0 60px; margin: 30px 0 60px;
@media (max-width: 768px) {
margin: 0px 0 15px;
}
} }
.answer-input, .answer-input:focus { .answer-input, .answer-input:focus {
outline: none; outline: none;
@ -69,6 +75,9 @@
background: none; background: none;
border: none; border: none;
border-bottom: solid 1px #aaa; border-bottom: solid 1px #aaa;
@media (max-width: 768px) {
margin: 0px 0 25px;
}
} }
.no-hover { .no-hover {
/* disables hover effect on touch screens */ /* disables hover effect on touch screens */

View file

@ -9,6 +9,10 @@
h3 { h3 {
margin-top: 30px; margin-top: 30px;
} }
@media (max-width: 768px) {
margin-top: 100px;
margin-bottom: 100px;
}
} }
.show-end { .show-end {
margin-top: 80px; margin-top: 80px;