Added gallery, Fixed lscom page, Compressed images

Update content.php, index.php, and 14 more files...
This commit is contained in:
2022-04-17 10:21:09 +02:00
parent b212dd046c
commit 47d592816d
16 changed files with 2369 additions and 237 deletions

View File

@@ -135,6 +135,15 @@ hr, hr.dark-mde, hr.subtle {
cursor: pointer;
height: 100%;
}
div.glider-slide > * {
border: var(--card-border-width) solid var(--dm-card-border-color);
box-shadow: inset 1px 0 25px 5px rgba(0, 0, 0, 0.1);
}
img.fill-height {
height: 100%;
object-fit: cover;
object-position: 0 0;
}
/* Content */
/* Content > Search */
@@ -186,6 +195,10 @@ h3.content-search-title {
div.content-tag-container a:not(:first-child) {
margin-left: 10px;
}
/* Adding a margin to buttons present right after another one */
button + button, .button-link + .button-link > button {
margin-left: 1.5rem !important;
}
/* Gradient used on home page's applications card */
@media (min-width: 993px) {
@@ -236,17 +249,3 @@ div.last-inner-collapse-border-fix {
code.w-full {
white-space: pre;
}
/* Temporary */
/*.glider >div {
border: 1px solid yellow;
}
.t01 > div {
border: 1px solid cyan;
}
.glider > div > * {
border: 1px solid green;
}
.glider, .t01 {
border: 1px solid deeppink !important;
}/**/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 127 KiB

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 283 KiB

After

Width:  |  Height:  |  Size: 283 KiB

View File

@@ -29,7 +29,7 @@ window.addEventListener('load', function(){
document.querySelectorAll(".glider").forEach(element => {
new Glider(element, {
slidesToShow: 1,
draggable: true,
//draggable: true,
scrollLock: true,
scrollLockDelay: 125,
rewind: true,
@@ -53,5 +53,24 @@ window.addEventListener('load', function(){
}
]
});
element.childNodes[0].childNodes.forEach(childElement => {
if(childElement.childNodes[0].tagName === "IMG") {
childElement.childNodes[0].onclick = function() {
let imageElement = document.getElementById("modal-img");
imageElement.src = childElement.childNodes[0].src;
imageElement.alt = childElement.childNodes[0].alt;
halfmoon.toggleModal('modal-content-image-viewer');
console.log("Opening image...");
};
}
});
});
// It looks like ass, jesus...
let eImgModalCloseButton = document.getElementById("modal-img-close");
if(eImgModalCloseButton != null) {
eImgModalCloseButton.onclick = function() {
halfmoon.toggleModal('modal-content-image-viewer');
}
}
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 79 KiB

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 17 KiB