MediaWiki

Gadget-slick.css

From Dogcraft Wiki

mNo edit summary
m (slider-focus class)
Line 220: Line 220:
height: calc(100% - 1em);
height: calc(100% - 1em);
width: calc(100% - 1em);
width: calc(100% - 1em);
}
/* custom version of the slider-opacity class (which might alse be custom?), identical to s-dpl and s-cards behaviour on mobile */
.slider-focus .slick-current {
scale: 1;
opacity: 1;
}
.slider-focus .slick-slide {
scale: 95%;
opacity: 0.8;
}
}


Line 229: Line 239:
.slider-dpl .gallerybox > div {
.slider-dpl .gallerybox > div {
margin: 0 auto;
margin: 0 auto;
}
.slider-dpl .slick-current,
.slider-cards .slick-current {
scale: 1;
opacity: 1;
}
.slider-dpl .slick-slide,
.slider-cards .slick-slide {
scale: 95%;
opacity: 0.8;
}
}
}
}

Revision as of 00:03, 26 August 2022

/*
     _ _      _       _
 ___| (_) ___| | __  (_)___
/ __| | |/ __| |/ /  | / __|
\__ \ | | (__|   < _ | \__ \
|___/_|_|\___|_|\_(_)/ |___/
                   |__/
 Version: 1.8.1
  Author: Ken Wheeler
 Website: http://kenwheeler.github.io
    Docs: http://kenwheeler.github.io/slick
    Repo: http://github.com/kenwheeler/slick
  Issues: http://github.com/kenwheeler/slick/issues
 */
 /*
The MIT License (MIT)

Copyright (c) 2013-2016

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/


/* Slider */
.slick-slider
{
    position: relative;

    display: block;
    box-sizing: border-box;

    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;

    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
        touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list
{
    position: relative;

    display: block;
    overflow: hidden;

    margin: 0;
    padding: 0;
}
.slick-list:focus
{
    outline: none;
}
.slick-list.dragging
{
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list
{
    -webkit-transform: translate3d(0, 0, 0);
       -moz-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
         -o-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
}

.slick-track
{
    position: relative;
    top: 0;
    left: 0;

    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5em; /* Adjustments so label is visible */
}
.slick-track:before,
.slick-track:after
{
    display: table;

    content: '';
}
.slick-track:after
{
    clear: both;
}
.slick-loading .slick-track
{
    visibility: hidden;
}

.slick-slide
{
    display: none;
    float: left;

    height: 100%;
    min-height: 1px;
}
[dir='rtl'] .slick-slide
{
    float: right;
}
.slick-slide img
{
    display: block;
}
.slick-slide.slick-loading img
{
    display: none;
}
.slick-slide.dragging img
{
    pointer-events: none;
}
.slick-initialized .slick-slide
{
    display: block;
}
.slick-loading .slick-slide
{
    visibility: hidden;
}
.slick-vertical .slick-slide
{
    display: block;

    height: auto;

    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}

/*cards*/

.slider-cards ul.slick-slider, .slider-cards .slick-list, .slider-cards .slick-track { /* inherit height from wrapper div */
	height: inherit;
}

.slider-cards .slick-slide { /* individual item container */
	margin: 0 1px;
	position: relative;
}

.slider-cards .slick-slide > div, .slider-cards .gallerybox,
.slider-cards .gallerybox > div, .slider-cards .thumb, 
.slider-cards .thumb > div, .slider-cards .slick-slide img,
.slider-cards .gallerytext > p {
	height: 100% !important;
}

.slider-cards .gallerybox > div, .slider-cards .thumb {
	width: 100% !important;
}

.slider-cards li div.thumb {
	border: none;
	background-color: #e9edef;
	margin: 0;
	font-size: 0;
	border-radius: var(--radius);
}

.slider-cards .thumb > div, .slider-cards .slide-slide img {
	margin: 0 !important;
}

.slider-cards .slick-slide img {
	object-fit: cover;
	width: 100%;
	border-radius: var(--radius);
}

.slider-cards .gallerytext {
	font-size: 0;
	position: absolute;
	top: 0;
	height: 100%;
	padding: 0;
	background: #2f4f4f80;
	width: 100%;
	border-radius: var(--radius);
}

.slider-cards .gallerytext a {
	font-size: initial;
	color: inherit;
	white-space: normal;
	padding: .5em .5em;
	font-weight: 600;
	display: flex;
	justify-content: start;
	align-items: end;
	height: calc(100% - 1em);
	width: calc(100% - 1em);
}

/* custom version of the slider-opacity class (which might alse be custom?), identical to s-dpl and s-cards behaviour on mobile */
.slider-focus .slick-current {
	scale: 1;
	opacity: 1;
}
.slider-focus .slick-slide {
	scale: 95%;
	opacity: 0.8;
}

@media only screen and (max-width: 640px) {
	.slider-dpl .gallerybox {
		width: 100% !important;
	}
	
	.slider-dpl .gallerybox > div {
		margin: 0 auto;
	}
	
	.slider-dpl .slick-current,
	.slider-cards .slick-current {
		scale: 1;
		opacity: 1;
	}
	
	.slider-dpl .slick-slide,
	.slider-cards .slick-slide {
		scale: 95%;
		opacity: 0.8;
	}
}
This page was last modified on 26 August 2022, at 00:03. (20 months ago)
Background SRN Opening by Montenator