Fix SiteTitle style on Footer

This commit is contained in:
2021-10-10 14:06:27 +02:00
parent 8aa3ddfe35
commit 121c325f99
4 changed files with 25 additions and 13 deletions

View File

@@ -1,9 +1,18 @@
<script lang="ts"> <script lang="ts">
export let variant: string = 'lines' export let variant: string = 'lines'
export let type: string = 'title'
</script> </script>
<h1 class="site-title {variant ? `site-title--${variant}` : ''}"> {#if type === 'title'}
<h1 class="site-title {variant ? `site-title--${variant}` : ''}">
<strong>Houses</strong> <strong>Houses</strong>
<span>Of The</span> <span>Of The</span>
<strong>World</strong> <strong>World</strong>
</h1> </h1>
{:else}
<div class="site-title {variant ? `site-title--${variant}` : ''}">
<strong>Houses</strong>
<span>Of The</span>
<strong>World</strong>
</div>
{/if}

View File

@@ -9,7 +9,9 @@
<footer class="footer"> <footer class="footer">
<div class="container grid"> <div class="container grid">
<a href="/" class="footer__title" sveltekit:prefetch>
<SiteTitle /> <SiteTitle />
</a>
<nav class="footer__links"> <nav class="footer__links">
<ul> <ul>

View File

@@ -32,7 +32,8 @@
} }
&:last-child { &:last-child {
display: inline-block; display: inline-block;
margin-left: -6px; margin-left: -7px;
color: $color-secondary;
} }
} }
span { span {

View File

@@ -14,22 +14,22 @@
height: 100%; height: 100%;
} }
.site-title { // Site title
&__title {
grid-column: span var(--columns); grid-column: span var(--columns);
grid-row: 1; grid-row: 1;
display: block;
margin-bottom: 40px; margin-bottom: 40px;
text-decoration: none;
@include bp (sm) { @include bp (sm) {
grid-column: 2 / span 5; grid-column: 2 / span 5;
grid-row: 1; grid-row: 1;
margin: 0; margin: -3px 0 0;
}
strong:nth-of-type(2) {
color: $color-secondary;
} }
} }
// Links
&__links { &__links {
grid-column: span var(--columns); grid-column: span var(--columns);
grid-row: 2; grid-row: 2;