Fix scrolling styles with CSS grid

rust
Elnu 1 year ago
parent 2794359218
commit a3f85e4cba

@ -43,11 +43,19 @@ input[type=number] {
#content {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
display: grid;
grid-template-areas:
"nav nav"
"challenge submissions";
grid-template-columns: 30em auto;
grid-template-rows: min-content auto;
overflow: hidden;
nav {
grid-area: nav;
--bg: #{$fg};
--fg: #{$bg};
background: var(--bg);
@ -98,16 +106,12 @@ input[type=number] {
}
}
& > div:first-of-type {
display: flex;
height: 100%;
& > :first-child {
min-width: 40em;
padding: 1em;
}
& > * {
& > div {
overflow: scroll;
}
#challenge {
padding: 1em;
}
}
@ -116,9 +120,8 @@ input[type=number] {
}
#submissions {
display: flex;
flex-direction: column;
height: calc(100% - 2em);
grid-area: submissions;
background: rgba(0, 0, 0, 0.125);
$gap: 0.5em;
padding: $gap;

@ -64,8 +64,7 @@
</nav>
</a>
</nav>
<div>
<div>
<div id="challenge">
<h1>Welcome to Tegaki Tuesday #{{ challenge }}!</h1>
{% if content.japanese %}
<div lang="ja">
@ -151,6 +150,5 @@
</div>
</div>
</div>
</div>
</body>
</html>
Loading…
Cancel
Save