Improve lightbox slightly
This commit is contained in:
@@ -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%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user