Difference between revisions of "Template:Image key/styles.css"
Jump to navigation
Jump to search
imported>Izno (so it can't be abused so easily) |
imported>Izno (and a narrow) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
| + | /* we add .thumb so that there is a lesser chance of these styles being used | ||
| + | for nefarious general purposes :) | ||
| + | if/when necessary to support some other kind of figures, can be added then | ||
| + | */ | ||
.thumb .image-key { | .thumb .image-key { | ||
column-count: 2; | column-count: 2; | ||
| Line 5: | Line 9: | ||
.thumb .image-key-wide { | .thumb .image-key-wide { | ||
column-count: 3; | column-count: 3; | ||
| + | } | ||
| + | |||
| + | .thumb .image-key-narrow { | ||
| + | column-count: 1; | ||
} | } | ||
Latest revision as of 05:22, 9 January 2021
/* we add .thumb so that there is a lesser chance of these styles being used
for nefarious general purposes :)
if/when necessary to support some other kind of figures, can be added then
*/
.thumb .image-key {
column-count: 2;
}
.thumb .image-key-wide {
column-count: 3;
}
.thumb .image-key-narrow {
column-count: 1;
}
.thumb .image-key > ol {
margin-left: 1.3em;
}
.thumb .image-key > ul,
.thumb .image-key > ol {
margin-top: 0;
}
.thumb .image-key li {
page-break-inside: avoid;
break-inside: avoid-column;
}