Linting & minor style changes

This commit is contained in:
2023-05-29 12:31:34 +02:00
parent 316cd14ed2
commit bbb072fa83
4 changed files with 154 additions and 137 deletions

View File

@@ -20,7 +20,7 @@
<div class="slideout-menu" transition:fly="{{ x: 550, duration: 300 }}">
<h1>Navigation</h1>
<Navigation on:click={close} />
<Navigation on:click="{close}" />
<ul class="bottom-content">
<li>
@@ -34,15 +34,15 @@
{/if}
<header>
<div on:click={toggleMenu} class:open aria-label="Open menu" class="menu">
<div on:click="{toggleMenu}" class:open="{open}" aria-label="Open menu" class="menu">
{#if !open}
<span class="page-header-buttons__open">
<span /> <span /> <span />
<span></span> <span></span> <span></span>
</span>
{:else}
<span class="page-header-buttons__close">
<span />
<span />
<span></span>
<span></span>
</span>
{/if}
@@ -60,7 +60,7 @@
max-width: 550px;
right: 0;
top: 0;
z-index: 1;
z-index: 10;
background-color: #fff3f6;
color: black;
@@ -78,7 +78,8 @@
.bottom-content {
margin-top: auto;
li, li a {
li,
li a {
display: flex;
align-items: center;

View File

@@ -17,14 +17,11 @@
.page-content {
display: flex;
flex-direction: column;
width: 100%;
min-height: 100vh;
margin: 0 auto;
padding: 2.5em;
margin-top: var(--header-height);
min-height: calc(100vh - var(--header-height));
margin: var(--header-height) 2.5rem 0;
@include mobile {
padding: 1em;
margin: var(--header-height) 1rem 0;
}
}
</style>

View File

@@ -32,6 +32,7 @@
line-height: 1.5;
a {
font-size: 1.2rem;
color: #19A786;
}
}

View File

@@ -88,9 +88,27 @@
section {
@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@200;300;400;500;600;700;800&display=swap');
font-family: 'Epilogue', sans-serif;
position: absolute;
top: 0;
left: 0;
padding: unset !important;
margin-bottom: 3rem;
@include mobile {
.beer-container {
border-radius: inherit;
}
}
@include tablet {
.beer-container {
border-top-right-radius: inherit;
border-bottom-right-radius: inherit;
}
.image-container {
border-top-left-radius: inherit;
border-bottom-left-radius: inherit;
}
}
}
.image-container {
@@ -120,7 +138,7 @@
}
.beer-container {
background-color: rgba(215, 224, 223, 0.6);
background-color: rgba(215, 224, 223, 0.8);
padding: 2rem 1rem;
@include tablet {