mirror of
https://codeberg.org/Hyperpipe/Hyperpipe
synced 2025-06-28 21:18:01 +02:00
Add background-color to NowPlaying, change header CSS simpler
This commit is contained in:
parent
b81de16510
commit
7aec15dc04
1 changed files with 15 additions and 19 deletions
26
src/App.vue
26
src/App.vue
|
@ -149,13 +149,12 @@ onMounted(() => {
|
|||
</template>
|
||||
|
||||
<header v-if="!artist.state.title">
|
||||
<div class="wrapper">
|
||||
<img
|
||||
v-if="data.state.art"
|
||||
class="art"
|
||||
loading="lazy"
|
||||
:src="data.state.art" />
|
||||
|
||||
<div class="wrapper">
|
||||
<NowPlaying @get-artist="artist.getArtist" />
|
||||
</div>
|
||||
</header>
|
||||
|
@ -215,9 +214,17 @@ header {
|
|||
line-height: 1.5;
|
||||
padding-bottom: 2.5rem;
|
||||
}
|
||||
header .wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
grid-gap: 2rem;
|
||||
padding: 1.5rem;
|
||||
background-color: var(--color-background-soft);
|
||||
border-radius: 0.5rem;
|
||||
}
|
||||
.art {
|
||||
display: block;
|
||||
margin: 0 auto 2rem;
|
||||
height: 175px;
|
||||
width: 175px;
|
||||
}
|
||||
|
@ -261,19 +268,8 @@ a,
|
|||
}
|
||||
|
||||
@media (min-width: 1024px) {
|
||||
header {
|
||||
margin: auto;
|
||||
display: flex;
|
||||
place-items: center;
|
||||
}
|
||||
|
||||
header .wrapper {
|
||||
display: flex;
|
||||
place-items: flex-start;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.art {
|
||||
margin: 0 2rem 0 0;
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue