Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Gallery/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 67: Line 67:


div.gallerytext > pre {
div.gallerytext > pre {
     margin-top: -22px !important;
     margin-top: -24px !important;
     margin-bottom: -15px !important;
     margin-bottom: -15px !important;
     font-family: inherit;
     font-family: inherit;

Revision as of 14:44, 30 July 2024

/* DS */
.ds li.gallerybox {
    max-width: 240px !important;
}

.ds li.gallerybox div.thumb {
    min-height: 360px;
    display: flex;
    align-items: center;
    background: var(--color-surface-3);
}

.dshalf li.gallerybox {
    max-width: 240px !important;
}

.dshalf li.gallerybox div.thumb {
    min-height: 180px;
    display: flex;
    background: var(--color-surface-3);
}

.base li.gallerybox div.thumb {
    align-items: baseline;
}

.end li.gallerybox div.thumb {
    align-items: end;
}

/* 3DS */
.tds li.gallerybox {
    max-width: 240px !important;
}

/* table  */
ul.gallery.gallery.gallery {
    text-align: center;
    padding-left: 10px;
}

li.gallerybox{
    position: relative;
    border-radius: 8px;
    margin: 0px 5px 40px 5px;
    background: var(--color-surface-2);
    max-width: 260px;
    padding: 0px 0px 10px 0px;
    box-shadow: 0 2.8px 2.2px #2e32380d, 0 6.7px 5.3px #2e32380d, 0 12.5px 10px #2e32380d, 0px 18px 17.9px #2e32380d, 0px 25px 33.4px #2e32380d;
}

li.gallerybox div.thumb {
   margin: 0px;
   border-radius: 8px 8px 0px 0px;
   background: var(--color-surface-3);
}

li.gallerybox div.thumb img {
    opacity: 0.95;
    background: var(--color-surface-3);
    border-radius: inherit;
}

div.gallerytext {
    font-size: small;
}

div.gallerytext > pre {
    margin-top: -24px !important;
    margin-bottom: -15px !important;
    font-family: inherit;
    color: #808080cf;
    border: none;
    overflow: hidden;
    font-size: inherit;
    background: none;
}

div.gallerytext p {
   white-space: nowrap;
   text-overflow: ellipsis;
   overflow: hidden;
   padding: 4px 8px 8px 4px;
}

/* fix the boxes arr */
.pc2 li.gallerybox div.thumb img {
    max-width: 258px;
    object-fit: scale-down;
    height: 195px;
}

/* box center */
.pc2 ul.mw-gallery-nolines li.gallerybox div.thumb {
    display: flex;
    align-items: center;
    background: var(--color-surface-3);
    border: 1px solid var(--color-surface-3);
}


@media screen and (min-width: 1160px) {
    .gallery {
        text-align: left !important;
    }
}

Advertising: