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 { ...@@ -237,18 +237,18 @@ class Slider extends CustomElement {
* @private * @private
* @param name * @param name
*/ */
function initNavigation(name) { //function initNavigation(name) {
const element = this.shadowRoot.querySelector("." + name + ""); //const element = this.shadowRoot.querySelector("." + name + "");
const elementHeight = element.offsetHeight; //const elementHeight = element.offsetHeight;
element.style.top = `calc(50% - ${elementHeight / 2}px)`; //element.style.top = `calc(50% - ${elementHeight / 2}px)`;
} //}
/** /**
* @private * @private
*/ */
function initStructure() { function initStructure() {
initNavigation.call(this, "next"); //initNavigation.call(this, "next");
initNavigation.call(this, "prev"); //initNavigation.call(this, "prev");
if (this.getOption("features.thumbnails")) { if (this.getOption("features.thumbnails")) {
initThumbnails.call(this); initThumbnails.call(this);
......
...@@ -49,7 +49,6 @@ ...@@ -49,7 +49,6 @@
.prev { .prev {
position: absolute; position: absolute;
top: 28%;
left: 0.5rem; left: 0.5rem;
height: max-content; height: max-content;
width: max-content; width: max-content;
...@@ -60,15 +59,16 @@ ...@@ -60,15 +59,16 @@
user-select: none; user-select: none;
z-index: var(--monster-z-index-sticky); z-index: var(--monster-z-index-sticky);
box-sizing: border-box; box-sizing: border-box;
top: 50%;
transform: translate(0, -50%)
} }
.prev:hover { .prev:hover {
transform: scale(1.2); transform: translate(0, -50%) scale(1.1);
} }
.next { .next {
position: absolute; position: absolute;
top: 28%;
right: 0.5rem; right: 0.5rem;
height: max-content; height: max-content;
width: max-content; width: max-content;
...@@ -79,10 +79,12 @@ ...@@ -79,10 +79,12 @@
user-select: none; user-select: none;
z-index: var(--monster-z-index-sticky); z-index: var(--monster-z-index-sticky);
box-sizing: border-box; box-sizing: border-box;
top: 50%;
transform: translate(0, -50%);
} }
.next:hover { .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