Skip to content
Snippets Groups Projects
Verified Commit 30d670a3 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: stylesheets

parent de1682f9
No related branches found
No related tags found
No related merge requests found
......@@ -237,18 +237,18 @@ class Slider extends CustomElement {
* @private
* @param name
*/
function initNavigation(name) {
const element = this.shadowRoot.querySelector("." + name + "");
const elementHeight = element.offsetHeight;
element.style.top = `calc(50% - ${elementHeight / 2}px)`;
}
//function initNavigation(name) {
//const element = this.shadowRoot.querySelector("." + name + "");
//const elementHeight = element.offsetHeight;
//element.style.top = `calc(50% - ${elementHeight / 2}px)`;
//}
/**
* @private
*/
function initStructure() {
initNavigation.call(this, "next");
initNavigation.call(this, "prev");
//initNavigation.call(this, "next");
//initNavigation.call(this, "prev");
if (this.getOption("features.thumbnails")) {
initThumbnails.call(this);
......
......@@ -49,7 +49,6 @@
.prev {
position: absolute;
top: 28%;
left: 0.5rem;
height: max-content;
width: max-content;
......@@ -60,15 +59,16 @@
user-select: none;
z-index: var(--monster-z-index-sticky);
box-sizing: border-box;
top: 50%;
transform: translate(0, -50%)
}
.prev:hover {
transform: scale(1.2);
transform: translate(0, -50%) scale(1.1);
}
.next {
position: absolute;
top: 28%;
right: 0.5rem;
height: max-content;
width: max-content;
......@@ -79,10 +79,12 @@
user-select: none;
z-index: var(--monster-z-index-sticky);
box-sizing: border-box;
top: 50%;
transform: translate(0, -50%);
}
.next:hover {
transform: scale(1.2);
transform: translate(0, -50%) scale(1.1);
}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment