aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-17 20:21:46 -0400
committercatboxanon <122327233+catboxanon@users.noreply.github.com>2023-08-17 20:21:46 -0400
commit13f1357b7f1e7721d73a56b20a9f5a61472eabba (patch)
treeaf57bb889eaa2b7382c922f369c3d4ded683fe82
parent541ef9247cfe8785c12f7142ad02cd5310fc5925 (diff)
Make image viewer actually fit the whole page
-rw-r--r--style.css15
1 files changed, 14 insertions, 1 deletions
diff --git a/style.css b/style.css
index d7f87f81..44f970e8 100644
--- a/style.css
+++ b/style.css
@@ -609,13 +609,19 @@ table.popup-table .link{
display: flex;
gap: 1em;
padding: 1em;
- background-color: rgba(0,0,0,0.2);
+ background-color:rgba(0,0,0,0);
+ z-index: 1;
+ transition: 0.2s ease background-color;
+}
+.modalControls:hover {
+ background-color:rgba(0,0,0,0.9);
}
.modalClose {
margin-left: auto;
}
.modalControls span{
color: white;
+ text-shadow: 0px 0px 0.25em black;
font-size: 35px;
font-weight: bold;
cursor: pointer;
@@ -640,6 +646,13 @@ table.popup-table .link{
min-height: 0;
}
+#modalImage{
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translateX(-50%) translateY(-50%);
+}
+
.modalPrev,
.modalNext {
cursor: pointer;