Skip to content

Commit

Permalink
Merge pull request #16 from netwerk-digitaal-erfgoed/feature/GH-14
Browse files Browse the repository at this point in the history
Fix: Ensure button has correct color
  • Loading branch information
aabelmann authored Sep 26, 2024
2 parents d671dba + 3c070ec commit 5bb322a
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions nuxt/components/Molecules/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div
ref="header"
:class="{ base: true, 'dark-mode': darkMode }">
<MoleculesButtonsHome v-if="showHome" />
<MoleculesButtonsHome v-if="showHome" class="home"/>
<h3
v-if="title"
class="title">
Expand Down Expand Up @@ -63,6 +63,20 @@ onMounted(() => {
width: 100%;
z-index: 10;
.home {
grid-area: home;
}
.close {
grid-area: action;
}
.title {
grid-area: title;
display: flex;
justify-content: center;
}
&.dark-mode {
background-color: var(--inverse-background-color);
color: var(--inverse-text-color);
Expand All @@ -74,37 +88,23 @@ onMounted(() => {
}
}
.home {
grid-area: home;
}
.close {
grid-area: action;
}
.title {
grid-area: title;
display: flex;
justify-content: center;
}
@include sm-screen-down {
.base {
grid-template-rows: repeat(2, 1fr);
grid-template-columns: 1fr 1fr;
grid-template-areas:
'home action'
'title title';
}
.home {
justify-self: flex-start;
margin-inline: var(--space-4);
}
.home {
justify-self: flex-start;
margin-inline: var(--space-4);
}
.close {
justify-self: flex-end;
margin-inline: var(--space-4);
.close {
justify-self: flex-end;
margin-inline: var(--space-4);
}
}
}
</style>

0 comments on commit 5bb322a

Please sign in to comment.