Template:Multiple image/styles.css: Difference between revisions
Appearance
No edit summary Tag: Reverted |
m Reverted edits by P1gsel (talk) to last revision by [[User:wikipedia>Santiago Claudio|wikipedia>Santiago Claudio]] Tag: Rollback |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
display: flex; | display: flex; | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
| Line 25: | Line 19: | ||
margin: 1px; | margin: 1px; | ||
float: left; | float: left; | ||
} | } | ||
| Line 62: | Line 48: | ||
@media all and ( max-width: 720px ) { | @media all and ( max-width: 720px ) { | ||
.thumbinner { | .thumbinner { | ||
/* not !important usage can be removed when these are no longer inline styles | |||
inside Template:Multiple image and media query using min-width is introduced */ | |||
width: 100% !important; | width: 100% !important; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
| Line 71: | Line 59: | ||
} | } | ||
.tsingle { | .tsingle { | ||
/* not !important usage can be removed when these are no longer inline styles | |||
inside Template:Multiple image and media query using min-width is introduced */ | |||
float: none !important; | float: none !important; | ||
max-width: 100% !important; | max-width: 100% !important; | ||
Latest revision as of 15:08, 19 May 2026
/* {{pp-template}} */
/* this is a block */
.multiimageinner {
display: flex;
flex-direction: column;
}
.trow {
display: flex;
flex-direction: row;
clear: left;
flex-wrap: wrap;
width: 100%;
box-sizing: border-box;
}
/* this is a cell */
.tsingle {
margin: 1px;
float: left;
}
.theader {
clear: both;
font-weight: bold;
text-align: center;
align-self: center;
background-color: transparent;
width: 100%;
}
.thumbcaption {
background-color: transparent;
}
.text-align-left {
text-align: left;
}
.text-align-right {
text-align: right;
}
.text-align-center {
text-align: center;
}
@media all and ( max-width: 720px ) {
.thumbinner {
/* not !important usage can be removed when these are no longer inline styles
inside Template:Multiple image and media query using min-width is introduced */
width: 100% !important;
box-sizing: border-box;
max-width: none !important;
align-items: center;
}
.trow {
justify-content: center;
}
.tsingle {
/* not !important usage can be removed when these are no longer inline styles
inside Template:Multiple image and media query using min-width is introduced */
float: none !important;
max-width: 100% !important;
box-sizing: border-box;
text-align: center;
}
.tsingle .thumbcaption {
text-align: left;
}
.trow > .thumbcaption {
text-align: center;
}
}
@media screen {
.multiimageinner .thumbimage {
background-color: inherit;
}
html.skin-theme-clientpref-night
.multiimageinner
.thumbimage:not([style*="background-color"])
span:not(.skin-invert-image):not(.skin-invert):not(.bg-transparent)
img,
html.skin-theme-clientpref-day
.multiimageinner
.thumbimage:not([style*="background-color"])
span:not(.bg-transparent)
img
{
background-color: white;
}
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os
.multiimageinner
.thumbimage:not([style*="background-color"])
span:not(.skin-invert-image):not(.skin-invert):not(.bg-transparent)
img
{
background-color: white;
}
}