Fix mobile styles

This commit is contained in:
Knoch 2020-11-29 11:31:32 +01:00
parent c8683108ef
commit d6a4b2fe7a
6 changed files with 187 additions and 142 deletions

View File

@ -39,105 +39,105 @@ body {
.start-screen .score, .end-screen .score { .start-screen .score, .end-screen .score {
text-align: center; } text-align: center; }
.ingame-screen { .ingame-screen .score.focus {
display: grid; animation: 1s attention; }
grid-template-rows: 2fr 6fr 2fr; } .ingame-screen .header {
.ingame-screen .score.focus { display: flex;
animation: 1s attention; } padding: 1rem 2rem;
.ingame-screen header, .ingame-screen footer { justify-content: space-between;
padding: 1rem 2rem; } align-items: center;
.ingame-screen .header { background-color: black;
display: flex; color: white; }
justify-content: space-between; .ingame-screen .header h1 {
align-items: center; margin: 0;
background-color: black; padding: 0; }
color: white; } .ingame-screen .question {
.ingame-screen .header h1 { padding: 2rem; }
margin: 0; .ingame-screen .question.revealed .answer {
padding: 0; } background-color: lightgray; }
.ingame-screen .question { .ingame-screen .question.revealed .answer.chosen {
padding: 2rem; } background-color: #b34040;
.ingame-screen .question.revealed .answer { color: white; }
background-color: lightgray; } .ingame-screen .question.revealed .answer.correct {
.ingame-screen .question.revealed .answer.chosen { background-color: #8fb340;
background-color: #b34040; color: white; }
color: white; } .ingame-screen .question.revealed .answer.correct.chosen {
.ingame-screen .question.revealed .answer.correct {
background-color: #8fb340; background-color: #8fb340;
color: white; } color: white; }
.ingame-screen .question.revealed .answer.correct.chosen { .ingame-screen .question .question-answers .answer {
background-color: #8fb340;
color: white; }
.ingame-screen .question .question-answers .answer {
display: block;
padding: 0.5rem;
width: 100%;
margin-bottom: 2px;
border: 1px solid lightgray;
border-radius: 0;
text-align: left;
counter-increment: answer; }
.ingame-screen .question .question-answers .answer::before {
content: counter(answer);
color: lightgray;
padding: 0.5em; }
.ingame-screen .question .question-estimate {
display: grid;
grid-template-columns: 7fr 3fr; }
.ingame-screen .question .question-estimate .input-estimate {
margin: 0;
box-sizing: border-box; }
.ingame-screen .question .question-estimate .btn-submit-estimate {
padding: auto 0.25rem;
margin: 0;
box-sizing: border-box; }
.ingame-screen .question .question-result-wrapper {
padding-top: 1px;
margin-top: 2rem;
display: none;
background-color: rgba(21, 45, 59, 0.7);
border-radius: 5px;
color: white; }
.ingame-screen .question .question-result-wrapper.visible {
display: block; }
.ingame-screen .question .question-result {
position: relative;
height: 100px;
width: 80%;
margin: 0 auto;
margin-top: 7rem;
border-top: 2px solid #ddd; }
.ingame-screen .question .question-result .correct-result, .ingame-screen .question .question-result .estimate {
position: absolute;
transform: translateX(-50%) translateY(20px);
text-align: center; }
.ingame-screen .question .question-result .correct-result strong, .ingame-screen .question .question-result .estimate strong {
font-size: 150%; }
.ingame-screen .question .question-result .correct-result::before, .ingame-screen .question .question-result .estimate::before {
content: "";
display: block;
position: absolute;
width: 30px;
height: 30px;
left: 50%;
transform: translateX(-50%) translateY(-37px); }
.ingame-screen .question .question-result .correct-result {
z-index: 5;
transform: translateX(-50%) translateY(-75px); }
.ingame-screen .question .question-result .correct-result::before {
background-image: url(../img/star.png);
background-size: contain;
transform: translateX(-50%) translateY(55px); }
.ingame-screen .question .question-result .estimate::before {
background-image: url(../img/snowflake.png);
background-size: contain; }
.ingame-screen .btn-continue {
display: block; display: block;
margin-top: 1rem; padding: 0.5rem;
width: 100%; width: 100%;
border-radius: 0; margin-bottom: 2px;
border: 1px solid lightgray; border: 1px solid lightgray;
padding: 0.5rem; } border-radius: 0;
text-align: left;
counter-increment: answer; }
.ingame-screen .question .question-answers .answer::before {
content: counter(answer);
color: lightgray;
padding: 0.5em; }
.ingame-screen .question .question-estimate {
display: grid;
grid-template-columns: 7fr 3fr; }
.ingame-screen .question .question-estimate .input-estimate {
padding: 0.25rem;
margin: 0;
box-sizing: border-box;
border-radius: 0;
border: 1px solid lightgray; }
.ingame-screen .question .question-estimate .btn-submit-estimate {
padding: auto 0.25rem;
margin: 0;
box-sizing: border-box;
border-radius: 0;
border: 1px solid lightgray; }
.ingame-screen .question .question-result-wrapper {
padding-top: 1px;
margin-top: 2rem;
display: none;
background-color: rgba(21, 45, 59, 0.7);
color: white; }
.ingame-screen .question .question-result-wrapper.visible {
display: block; }
.ingame-screen .question .question-result {
position: relative;
height: 100px;
width: 80%;
margin: 0 auto;
margin-top: 7rem;
border-top: 2px solid #ddd; }
.ingame-screen .question .question-result .correct-result, .ingame-screen .question .question-result .estimate {
position: absolute;
transform: translateX(-50%) translateY(20px);
text-align: center; }
.ingame-screen .question .question-result .correct-result strong, .ingame-screen .question .question-result .estimate strong {
font-size: 150%; }
.ingame-screen .question .question-result .correct-result::before, .ingame-screen .question .question-result .estimate::before {
content: "";
display: block;
position: absolute;
width: 30px;
height: 30px;
left: 50%;
transform: translateX(-50%) translateY(-37px); }
.ingame-screen .question .question-result .correct-result {
z-index: 5;
transform: translateX(-50%) translateY(-75px); }
.ingame-screen .question .question-result .correct-result::before {
background-image: url(../img/star.png);
background-size: contain;
transform: translateX(-50%) translateY(55px); }
.ingame-screen .question .question-result .estimate::before {
background-image: url(../img/snowflake.png);
background-size: contain; }
.ingame-screen .btn-continue {
display: block;
margin-top: 1rem;
width: 100%;
border-radius: 0;
border: 1px solid lightgray;
padding: 0.5rem; }
@keyframes attention { @keyframes attention {
0% { 0% {
@ -153,33 +153,44 @@ body {
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
body { body {
margin: 0; margin: 0;
padding: 0; } padding: 0;
display: block;
height: auto; }
body .screen { body .screen {
width: 100vw; width: 100vw;
height: 100vh; height: auto;
max-width: 100vw; max-width: 100vw;
min-height: 100vh; min-height: 100vh; }
overflow-y: scroll; }
body .screen .headline { body .screen .headline {
text-align: center; } text-align: center; }
body .screen .btn-start { body .screen .btn-start {
padding: 1rem 2rem; padding: 1rem 2rem;
width: auto; } width: auto; }
body .screen.ingame-screen {
display: block;
height: auto; }
body .header { body .header {
width: 100vw;
flex-direction: column; } flex-direction: column; }
body .question-text { body .question {
font-size: 14pt; } display: block;
body .question.estimate { width: 100vw; }
max-width: 95vw; body .question .question-text {
height: auto; font-size: 14pt;
box-sizing: border-box; } margin-top: 0; }
body .question.estimate .question-estimate { body .question.estimate {
display: block; } height: auto;
body .question.estimate .input-estimate, box-sizing: border-box; }
body .question.estimate .btn-submit-estimate { body .question.estimate .question-estimate {
width: 100%; display: block; }
padding: 0.5rem 1rem; } body .question.estimate .input-estimate,
body .question.estimate .question-result { body .question.estimate .btn-submit-estimate {
width: 60%; } } width: 100%;
display: block;
padding: 0.5rem 1rem; }
body .question.estimate .question-result {
width: 70%;
margin-top: 5rem;
height: 5rem; } }
/*# sourceMappingURL=style.css.map */ /*# sourceMappingURL=style.css.map */

View File

@ -1,6 +1,6 @@
{ {
"version": 3, "version": 3,
"mappings": "AAAA,CAAC;EACC,UAAU,EAAE,UAAU;;AAExB,IAAI;EACF,MAAM,EAAE,KAAK;EACb,UAAU,EAAE,UAAU;EACtB,OAAO,EAAE,IAAI;EACb,WAAW,EAAE,MAAM;EACnB,eAAe,EAAE,MAAM;EACvB,WAAW,EAAE,MAAM;EACnB,gBAAgB,EAAE,0BAA0B;EAC5C,eAAe,EAAE,KAAK;EACtB,qBAAqB,EAAE,KAAK;EAE5B,YAAO;IACL,KAAK,EAAE,KAAK;IACZ,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,IAAI;IAChB,gBAAgB,EAAE,wBAAuB;EAE3C,OAAE;IACA,WAAW,EAAE,gBAAgB;IAC7B,SAAS,EAAE,IAAI;EAEjB,OAAE;IACA,WAAW,EAAE,MAAM;EAErB,iBAAY;IACV,gBAAgB,EAAE,IAAI;;AAE1B,0BAA0B;EACxB,OAAO,EAAE,IAAI;EACb,WAAW,EAAE,MAAM;EACnB,eAAe,EAAE,MAAM;EACvB,cAAc,EAAE,MAAM;EAEtB,sCAAK;IACH,SAAS,EAAE,KAAK;EAElB,gDAAU;IACR,OAAO,EAAE,MAAK;IACd,MAAM,EAAE,mBAAmB;IAC3B,aAAa,EAAE,CAAC;IAChB,KAAK,EAAE,GAAG;EAEZ,wCAAM;IACJ,UAAU,EAAE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AAI;IAEZ,YAAO;MACL,KAAK,EAAE,KAAK;MACZ,MAAM,EAAE,IAAI;MACZ,SAAS,EAAE,KAAK;MAChB,UAAU,EAAE,KAAK;MAEjB,sBAAS;QACP,UAAU,EAAE,MAAM;MAEpB,uBAAU;QACR,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,IAAI;MAEb,0BAAe;QACb,OAAO,EAAE,KAAK;QACd,MAAM,EAAE,IAAI;IAEhB,YAAO;MACL,KAAK,EAAE,KAAK;MACZ,cAAc,EAAE,MAAM;IAExB,cAAS;MACP,OAAO,EAAE,KAAK;MACd,KAAK,EAAE,KAAK;MAEZ,6BAAc;QACZ,SAAS,EAAE,IAAI;QACf,UAAU,EAAE,CAAC;MAEf,uBAAU;QACR,MAAM,EAAE,IAAI;QACZ,UAAU,EAAE,UAAU;QAEtB,0CAAkB;UAChB,OAAO,EAAE,KAAK;QAEhB;oDAAgB;UAEd,KAAK,EAAE,IAAI;UACX,OAAO,EAAE,KAAK;UACd,OAAO,EAAE,WAAU;QAErB,wCAAgB;UACd,KAAK,EAAE,GAAG;UACV,UAAU,EAAE,IAAI;UAChB,MAAM,EAAE,IAAI",
"sources": ["style.sass"], "sources": ["style.sass"],
"names": [], "names": [],
"file": "style.css" "file": "style.css"

View File

@ -47,17 +47,13 @@ body
text-align: center text-align: center
.ingame-screen .ingame-screen
display: grid
grid-template-rows: 2fr 6fr 2fr
.score.focus .score.focus
animation: 1s attention animation: 1s attention
header, footer
padding: 1rem 2rem
.header .header
display: flex display: flex
padding: 1rem 2rem
justify-content: space-between justify-content: space-between
align-items: center align-items: center
background-color: black background-color: black
@ -108,21 +104,24 @@ body
grid-template-columns: 7fr 3fr grid-template-columns: 7fr 3fr
.input-estimate .input-estimate
padding: .25rem
margin: 0 margin: 0
box-sizing: border-box box-sizing: border-box
border-radius: 0
border: 1px solid lightgray
.btn-submit-estimate .btn-submit-estimate
padding: auto .25rem padding: auto .25rem
margin: 0 margin: 0
box-sizing: border-box box-sizing: border-box
border-radius: 0
border: 1px solid lightgray
.question-result-wrapper .question-result-wrapper
padding-top: 1px padding-top: 1px
margin-top: 2rem margin-top: 2rem
display: none display: none
background-color: rgba(21, 45, 59, .7) background-color: rgba(21, 45, 59, .7)
// box-shadow: 0 0 5px 10px rgba(0,0,0,.1) inset
border-radius: 5px
color: white color: white
&.visible &.visible
@ -190,13 +189,14 @@ body
body body
margin: 0 margin: 0
padding: 0 padding: 0
display: block
height: auto
.screen .screen
width: 100vw width: 100vw
height: 100vh height: auto
max-width: 100vw max-width: 100vw
min-height: 100vh min-height: 100vh
overflow-y: scroll
.headline .headline
text-align: center text-align: center
@ -205,24 +205,36 @@ body
padding: 1rem 2rem padding: 1rem 2rem
width: auto width: auto
&.ingame-screen
display: block
height: auto
.header .header
width: 100vw
flex-direction: column flex-direction: column
.question-text .question
font-size: 14pt display: block
width: 100vw
.question.estimate .question-text
max-width: 95vw font-size: 14pt
height: auto margin-top: 0
box-sizing: border-box
.question-estimate &.estimate
display: block height: auto
box-sizing: border-box
.input-estimate, .question-estimate
.btn-submit-estimate display: block
width: 100%
padding: .5rem 1rem
.question-result .input-estimate,
width: 60% .btn-submit-estimate
width: 100%
display: block
padding: .5rem 1rem
.question-result
width: 70%
margin-top: 5rem
height: 5rem

View File

@ -39,6 +39,7 @@
{{answer.text}} {{answer.text}}
</button> </button>
</div> </div>
<button v-if="currentQuestionAnswered" @click="showNextQuestion" class="btn-continue">Weiter</button>
</article> </article>
<article v-if="isEstimate" class="question estimate" v-bind:class="{revealed: currentQuestionAnswered}"> <article v-if="isEstimate" class="question estimate" v-bind:class="{revealed: currentQuestionAnswered}">
@ -55,11 +56,8 @@
<div class="estimate"></div> <div class="estimate"></div>
</div> </div>
</div> </div>
</article>
<footer class="footer">
<button v-if="currentQuestionAnswered" @click="showNextQuestion" class="btn-continue">Weiter</button> <button v-if="currentQuestionAnswered" @click="showNextQuestion" class="btn-continue">Weiter</button>
</footer> </article>
</section> </section>
<section v-if="mode === ENDSCREEN" class="end-screen screen"> <section v-if="mode === ENDSCREEN" class="end-screen screen">

View File

@ -58,7 +58,6 @@ const app = new Vue({
this.evaluateEstimate() this.evaluateEstimate()
} }
default: default:
console.log(e.key)
return return
} }
}) })

25
style.css Normal file
View File

@ -0,0 +1,25 @@
/*
Errno::ENOENT: No such file or directory @ rb_sysopen - style.sass
Backtrace:
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:454:in `read'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:454:in `update_stylesheet'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:215:in `block in update_stylesheets'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:209:in `each'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:209:in `update_stylesheets'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:294:in `watch'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/plugin.rb:109:in `method_missing'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/exec/sass_scss.rb:358:in `watch_or_update'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/exec/sass_scss.rb:51:in `process_result'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/exec/base.rb:50:in `parse'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/lib/sass/exec/base.rb:18:in `parse!'
/home/florian/.rvm/gems/ruby-2.5.1/gems/sass-3.7.2/bin/sass:13:in `<top (required)>'
/home/florian/.rvm/gems/ruby-2.5.1/bin/sass:23:in `load'
/home/florian/.rvm/gems/ruby-2.5.1/bin/sass:23:in `<main>'
/home/florian/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `eval'
/home/florian/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `<main>'
*/
body:before {
white-space: pre;
font-family: monospace;
content: "Errno::ENOENT: No such file or directory @ rb_sysopen - style.sass"; }