Improve lightbox slightly

This commit is contained in:
space-nuko
2023-05-12 21:26:00 -05:00
parent 9ac64de811
commit ff52ef1bba
3 changed files with 7 additions and 5 deletions

View File

@@ -339,6 +339,7 @@
background: var(--panel-background-fill);
&:hover:not(:has(img:hover)) {
cursor: pointer;
background: var(--block-background-fill);
}
@@ -390,6 +391,7 @@
object-fit: cover;
&:hover {
cursor: pointer;
filter: brightness(120%) contrast(120%);
}
}

View File

@@ -95,12 +95,12 @@
position: absolute;
top: 50%;
width: auto;
padding: 16px;
padding: 60px;
margin-top: -50px;
color: white;
font-weight: bold;
font-size: 20px;
transition: 0.6s ease;
font-size: 40px;
transition: 0.3s ease;
border-radius: 0 3px 3px 0;
user-select: none;
-webkit-user-select: none;
@@ -113,6 +113,6 @@
.modalPrev:hover,
.modalNext:hover {
background-color: rgba(0, 0, 0, 0.8);
background-color: rgba(180, 180, 180, 0.8);
}
</style>

View File

@@ -16,7 +16,7 @@
<slot name="header" />
<slot />
<!-- svelte-ignore a11y-autofocus -->
<button autofocus on:click={() => dialog.close()}>close modal</button>
<button autofocus on:click={() => dialog.close()}>Close</button>
</div>
</dialog>