Fix scrolling styles with CSS grid

rust
Elnu 1 year ago
parent 2794359218
commit a3f85e4cba

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

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