Skip to content
Code-Schnipsel Gruppen Projekte
Slider.ImageAndText.css 4,19 KiB
Newer Older
.quiqqer-bricks-children-slider {
    float: none;
    position: relative;
    width: 100%;
}

.quiqqer-bricks-children-slider-container-wrapper {
    position: relative;
}

.quiqqer-bricks-children-slider-container {
    float: left;
    height: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.quiqqer-bricks-children-slider-container-inner {
    float: left;
    left: 0;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
    position: absolute;
    top: 0;
    width: 100%;
}

.quiqqer-bricks-children-slider-container-slide {
    display: flex;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

.quiqqer-bricks-children-slider-child {
    display: inline-block;
    float: none;
    height: calc(100% - 2px);
    padding: 0;
    width: 25%;
    flex-shrink: 0;
}

@media screen and (max-width: 1000px) {
    .quiqqer-bricks-children-slider-child {
        width: 33.3333%;
    }
}

@media screen and (max-width: 767px) {
    .quiqqer-bricks-children-slider-child {
        width: 50%;
    }
}

@media screen and (max-width: 500px) {
    .quiqqer-bricks-children-slider-child {
        width: 300px;
    }
}

.quiqqer-bricks-children-slider-child-display {
    border: 1px solid #dfe4e4;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-left: 10px;
    overflow: hidden;
    padding: 0;
}

.quiqqer-bricks-children-slider-child:first-child .quiqqer-bricks-children-slider-child-display {
    margin-left: 0;
}

/* image */
.quiqqer-bricks-children-slider-child-image {
    flex-shrink: 0;
    max-height: 40%;
    overflow: hidden;
}

.quiqqer-bricks-children-slider-child-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.quiqqer-bricks-children-slider-child-image img {
    max-height: initial;
    max-width: initial;
    height: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
    width: auto;

    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.quiqqer-bricks-children-slider-child-image img:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

/* content */
.quiqqer-bricks-children-slider-child-content {
    background: #fff;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 0;
    padding: 1rem;
}

.quiqqer-bricks-children-slider-child-content-short {
    overflow: hidden;
    margin-bottom: 1rem;
}

.quiqqer-bricks-children-slider-child-display-moreLink {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: inherit;
    transition: 0.2s all;
}

.quiqqer-bricks-children-slider-child-display-moreLink:hover {
    background: #f5f5f5;
}

.quiqqer-bricks-children-slider-child-content-button {
    margin-top: auto;
}

.quiqqer-bricks-children-slider-child-display-moreLink .fa {
    font-size: 80px;
    padding: 0 1em;
}


.quiqqer-bricks-children-slider-prev,
.quiqqer-bricks-children-slider-next {
    color: #f1f1f1;
    cursor: pointer;
    font-size: 50px;
    height: 100%;
    position: absolute;
    text-align: center;
    top: 0;
    visibility: visible;
    width: 50px;
    z-index: 1;
}

.quiqqer-bricks-children-slider-next {
    right: -50px;
}

.quiqqer-bricks-children-slider-prev {
    left: -50px;
}

.quiqqer-bricks-children-slider-mobile .quiqqer-bricks-children-slider-next {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-bottom-left-radius: 5px;
    border-top-left-radius: 5px;
    right: 20px;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.quiqqer-bricks-children-slider-mobile .quiqqer-bricks-children-slider-prev {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
    left: 20px;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.quiqqer-bricks-children-slider-mobile .quiqqer-bricks-children-slider-prev:hover,
.quiqqer-bricks-children-slider-mobile .quiqqer-bricks-children-slider-next:hover {
    background: rgba(0, 0, 0, 0.5);
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
}