style(typing result): improve styling on narrow screens

also fix random elements causing grid issues
This commit is contained in:
Miodec 2024-04-27 00:02:08 +02:00
parent 6497aa6d25
commit 4ed3b7d6c8
4 changed files with 17 additions and 6 deletions

View file

@ -296,7 +296,7 @@
<!-- <div class="title">wpm over time</div> -->
<canvas id="wpmChart"></canvas>
</div>
<div class="bottom" style="grid-column: 1/3">
<div class="bottom">
<div id="resultWordsHistory" class="hidden">
<div class="title">
<span>input history</span>
@ -441,7 +441,7 @@
<a href="/login" router-link>Sign in</a>
to save your result
</div>
<div style="grid-column: span 2">
<div style="grid-column: 1/-1">
<div id="ad-result-wrapper" class="ad full-width advertisement ad-h">
<div class="iconAndText">
<div class="icon"><i class="fas fa-ad"></i></div>

View file

@ -26,10 +26,6 @@
grid-template-areas:
"stats" "chart"
"morestats";
.stats {
grid-template-columns: 1fr;
grid-template-areas: "wpm" "acc";
}
.stats.morestats {
justify-items: start;
display: grid;

View file

@ -35,6 +35,17 @@
}
.pageTest {
#result {
.stats {
grid-template-columns: 1fr;
grid-template-areas: "wpm" "acc";
width: max-content;
justify-items: start;
justify-self: center;
}
.morestats {
justify-self: unset;
width: unset;
}
.buttons {
grid-template-columns: 1fr 1fr;
grid-auto-flow: unset;

View file

@ -690,6 +690,10 @@
}
}
.bottom {
grid-column: 1/-1;
}
.stats {
grid-area: stats;
display: grid;