Template:Gallery/styles.css: Difference between revisions
From TwogPedia
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
@media all and (max-width: 720px) { | @media all and (max-width: 720px) { | ||
.mod-gallery { | |||
width: 100% !important; | |||
} | |||
} | } | ||
.mod-gallery { | .mod-gallery { | ||
display: table; | |||
} | } | ||
.mod-gallery-default { | .mod-gallery-default { | ||
background: transparent; | |||
margin-top: 4px; | |||
} | } | ||
.mod-gallery-center { | .mod-gallery-center { | ||
margin-left: auto; | |||
margin-right: auto; | |||
} | } | ||
.mod-gallery-left { | .mod-gallery-left { | ||
float: left; | |||
} | } | ||
.mod-gallery-right { | .mod-gallery-right { | ||
float: right; | |||
} | } | ||
.mod-gallery-none { | .mod-gallery-none { | ||
float: none; | |||
} | } | ||
.mod-gallery-collapsible { | .mod-gallery-collapsible { | ||
width: 100%; | |||
} | } | ||
.mod-gallery .title, | .mod-gallery .title, | ||
.mod-gallery .main, | .mod-gallery .main, | ||
.mod-gallery .footer { | .mod-gallery .footer { | ||
display: table-row; | |||
} | } | ||
.mod-gallery .title > div { | .mod-gallery .title > div { | ||
display: table-cell; | |||
padding-bottom: 2px; | |||
text-align: center; | |||
font-weight: bold; | |||
} | } | ||
.mod-gallery .main > div { | .mod-gallery .main > div { | ||
display: table-cell; | |||
} | } | ||
.mod-gallery .gallerytext>:not(p) { | .mod-gallery .gallerytext>:not(p) { | ||
margin: .5em 0; | |||
} | } | ||
.mod-gallery .gallerytext>:not(p)+:not(p) { | .mod-gallery .gallerytext>:not(p)+:not(p) { | ||
margin-top: -.5em; | |||
} | } | ||
.mod-gallery .gallerytext { | .mod-gallery .gallerytext { | ||
line-height: 1.375em; | |||
} | } | ||
.mod-gallery .footer > div { | .mod-gallery .footer > div { | ||
display: table-cell; | |||
padding-bottom: 0.5em; | |||
text-align: right; | |||
font-size: 80%; | |||
line-height: 1em; | |||
} | } | ||
.mod-gallery .title > div *, | .mod-gallery .title > div *, | ||
.mod-gallery .footer > div * { | .mod-gallery .footer > div * { | ||
overflow: visible; | |||
} | } | ||
.mod-gallery .gallerybox img { | .mod-gallery .gallerybox img { | ||
background: none !important; | |||
} | } | ||
.mod-gallery .bordered-images .thumb img { | .mod-gallery .bordered-images .thumb img { | ||
outline: solid #eaecf0 1px; | |||
} | } | ||
.mod-gallery .whitebg .thumb { | .mod-gallery .whitebg .thumb { | ||
background: #fff !important; | |||
} | |||
.mw-gallery-slideshow-buttons { | |||
position: absolute; | |||
top: 50%; | |||
left: 0; | |||
right: 0; | |||
transform: translateY(-50%); | |||
display: flex; | |||
justify-content: space-between; | |||
padding-left: 8px; | |||
padding-right: 8px; | |||
width: 100%; | |||
z-index: 10; | |||
} | |||
.mw-gallery-slideshow-buttons > div { | |||
display: flex; | |||
justify-content: space-between; | |||
width: 100%; | |||
} | |||
.mw-gallery-slideshow-buttons .oo-ui-widget { | |||
z-index: 11; | |||
} | } | ||
. | |||
.oo-ui-icon-previous, | |||
.oo-ui-icon-next { | |||
font-size: 2rem; | |||
background: rgba(255, 255, 255, 0.8); | |||
border-radius: 4px; | |||
padding: 6px; | |||
} | } | ||
.mw-gallery-slideshow-img-container { | |||
position: relative; | |||
} | |||
/*@media all and (max-width: 720px) {*/ | /*@media all and (max-width: 720px) {*/ |
Revision as of 22:45, 22 May 2025
@media all and (max-width: 720px) {
.mod-gallery {
width: 100% !important;
}
}
.mod-gallery {
display: table;
}
.mod-gallery-default {
background: transparent;
margin-top: 4px;
}
.mod-gallery-center {
margin-left: auto;
margin-right: auto;
}
.mod-gallery-left {
float: left;
}
.mod-gallery-right {
float: right;
}
.mod-gallery-none {
float: none;
}
.mod-gallery-collapsible {
width: 100%;
}
.mod-gallery .title,
.mod-gallery .main,
.mod-gallery .footer {
display: table-row;
}
.mod-gallery .title > div {
display: table-cell;
padding-bottom: 2px;
text-align: center;
font-weight: bold;
}
.mod-gallery .main > div {
display: table-cell;
}
.mod-gallery .gallerytext>:not(p) {
margin: .5em 0;
}
.mod-gallery .gallerytext>:not(p)+:not(p) {
margin-top: -.5em;
}
.mod-gallery .gallerytext {
line-height: 1.375em;
}
.mod-gallery .footer > div {
display: table-cell;
padding-bottom: 0.5em;
text-align: right;
font-size: 80%;
line-height: 1em;
}
.mod-gallery .title > div *,
.mod-gallery .footer > div * {
overflow: visible;
}
.mod-gallery .gallerybox img {
background: none !important;
}
.mod-gallery .bordered-images .thumb img {
outline: solid #eaecf0 1px;
}
.mod-gallery .whitebg .thumb {
background: #fff !important;
}
.mw-gallery-slideshow-buttons {
position: absolute;
top: 50%;
left: 0;
right: 0;
transform: translateY(-50%);
display: flex;
justify-content: space-between;
padding-left: 8px;
padding-right: 8px;
width: 100%;
z-index: 10;
}
.mw-gallery-slideshow-buttons > div {
display: flex;
justify-content: space-between;
width: 100%;
}
.mw-gallery-slideshow-buttons .oo-ui-widget {
z-index: 11;
}
.oo-ui-icon-previous,
.oo-ui-icon-next {
font-size: 2rem;
background: rgba(255, 255, 255, 0.8);
border-radius: 4px;
padding: 6px;
}
.mw-gallery-slideshow-img-container {
position: relative;
}
/*@media all and (max-width: 720px) {*/
/* .mod-gallery {*/
/* width: 100% !important;*/
/* }*/
/*}*/
/*.mod-gallery {*/
/* display: table;*/
/*}*/
/*.mod-gallery-default {*/
/* background: transparent;*/
/* margin-top: 4px;*/
/*}*/
/*.mod-gallery-center {*/
/* margin-left: auto;*/
/* margin-right: auto;*/
/*}*/
/*.mod-gallery-left {*/
/* float: left;*/
/*}*/
/*.mod-gallery-right {*/
/* float: right;*/
/*}*/
/*.mod-gallery-none {*/
/* float: none;*/
/*}*/
/*.mod-gallery-collapsible {*/
/* width: 100%;*/
/*}*/
/*.mod-gallery .title,*/
/*.mod-gallery .main,*/
/*.mod-gallery .footer {*/
/* display: table-row;*/
/*}*/
/*.mod-gallery .title > div {*/
/* display: table-cell;*/
/* padding-bottom: 2px;*/
/* text-align: center;*/
/* font-weight: bold;*/
/*}*/
/*.mod-gallery .main > div {*/
/* display: table-cell;*/
/*}*/
/*.mod-gallery .gallerytext>:not(p) {*/
/* margin:.5em 0;*/
/*}*/
/*.mod-gallery .gallerytext>:not(p)+:not(p) {*/
/* margin-top:-.5em;*/
/*}*/
/*.mod-gallery .gallerytext {*/
/* line-height: 1.375em;*/
/*}*/
/*.mod-gallery .footer > div {*/
/* display: table-cell;*/
/* padding-bottom: 0.5em;*/
/* text-align: right;*/
/* font-size: 80%;*/
/* line-height: 1em;*/
/*}*/
/*.mod-gallery .title > div *,*/
/*.mod-gallery .footer > div * {*/
/* overflow: visible;*/
/*}*/
/*.mod-gallery .gallerybox img {*/
/* background: none !important;*/
/*}*/
/*.mod-gallery .bordered-images .thumb img {*/
/* outline: solid #eaecf0 1px;*/
/*}*/
/*.mod-gallery .whitebg .thumb {*/
/* background: #fff !important;*/
/*}*/
/*.mw-gallery-slideshow-img-container img {*/
/* max-width: 100%;*/
/* height: auto;*/
/* display: block;*/
/*}*/
#gallery-localtions-section img {
padding: 6px !important;
}
No categories