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

View File

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

View File

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