Skip to content
Snippets Groups Projects
Commit 29d4388f authored by Kasper Seweryn's avatar Kasper Seweryn :pancakes:
Browse files

fix: apply @mjourdan's suggestions

parent 179678d3
Branches
Tags
No related merge requests found
Pipeline #33905 passed
...@@ -18,11 +18,10 @@ ...@@ -18,11 +18,10 @@
} }
@include dark-theme { @include dark-theme {
background-color: var(--fw-pastel-4, var(--fw-bg-color)); background-color: var(--fw-pastel-3, var(--fw-bg-color));
> .actions .funkwhale.button { > .actions .funkwhale.button {
--fw-bg-color: var(--fw-pastel-3); --fw-bg-color: var(--fw-pastel-4);
box-shadow: 0 2px 4px 2px rgba(#000, 0.1);
&:hover, &.is-hovered { &:hover, &.is-hovered {
--fw-bg-color: var(--fw-pastel-2); --fw-bg-color: var(--fw-pastel-2);
......
...@@ -8,7 +8,10 @@ const open = defineModel<boolean>({ required: true }) ...@@ -8,7 +8,10 @@ const open = defineModel<boolean>({ required: true })
<Transition mode="out-in"> <Transition mode="out-in">
<div v-if="open" @click.exact.stop="open = false" class="funkwhale overlay"> <div v-if="open" @click.exact.stop="open = false" class="funkwhale overlay">
<div @click.stop class="funkwhale modal"> <div @click.stop class="funkwhale modal">
<h2>{{ title }}</h2> <h2>
{{ title }}
<FwButton icon="bi-x-lg" color="secondary" variant="ghost" @click="open = false" />
</h2>
<Transition> <Transition>
<div v-if="$slots.alert" class="alert-container"> <div v-if="$slots.alert" class="alert-container">
...@@ -17,12 +20,10 @@ const open = defineModel<boolean>({ required: true }) ...@@ -17,12 +20,10 @@ const open = defineModel<boolean>({ required: true })
</div> </div>
</div> </div>
</Transition> </Transition>
<hr />
<div class="modal-content"> <div class="modal-content">
<slot /> <slot />
</div> </div>
<hr v-if="$slots.actions" />
<div v-if="$slots.actions" class="modal-actions"> <div v-if="$slots.actions" class="modal-actions">
<slot name="actions" /> <slot name="actions" />
</div> </div>
......
...@@ -6,11 +6,6 @@ ...@@ -6,11 +6,6 @@
min-width: 32rem; min-width: 32rem;
max-width: 90vw; max-width: 90vw;
> hr {
padding: 0;
margin: 0;
}
> .alert-container { > .alert-container {
display: grid; display: grid;
grid-template-rows: 1fr; grid-template-rows: 1fr;
...@@ -33,9 +28,18 @@ ...@@ -33,9 +28,18 @@
> h2 { > h2 {
font-size: 1.25em; font-size: 1.25em;
padding: 1.625rem 4.5rem 1rem; padding: 1.625rem 4.5rem;
line-height: 1.2; line-height: 1.2;
text-align: center; text-align: center;
position: relative;
> .funkwhale.button {
font-size: 1rem;
position: absolute;
right: 1rem;
top: 50%;
transform: translateY(-50%);
}
} }
.modal-content { .modal-content {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment