Difference between revisions of "Template:Clade gallery/styles.css"
Jump to navigation
Jump to search
imported>Jts1882 (add no border class) |
imported>Jts1882 (add display:table; to gallery element (fixes display in Chrome)) |
||
| Line 29: | Line 29: | ||
padding:5px; | padding:5px; | ||
margin:1px; | margin:1px; | ||
| + | display:table; | ||
} | } | ||
div.clade-gallery div.gallery-element.vertical { | div.clade-gallery div.gallery-element.vertical { | ||
| Line 45: | Line 46: | ||
padding:20px; | padding:20px; | ||
margin:-1px 0; /* prevents to double border with cells above and below*/ | margin:-1px 0; /* prevents to double border with cells above and below*/ | ||
| + | |||
} | } | ||
div.clade-gallery div.footer { | div.clade-gallery div.footer { | ||
| Line 50: | Line 52: | ||
div.clade-gallery div.header.shading { | div.clade-gallery div.header.shading { | ||
background-color:#eaecf0; | background-color:#eaecf0; | ||
| + | |||
} | } | ||
div.clade-gallery div.cladogram.shading { | div.clade-gallery div.cladogram.shading { | ||
Revision as of 13:53, 19 August 2018
div.clade-gallery {
/* out div container */
display:table; /*allows centering and auto width*/
margin: 0 auto;
}
div.clade-gallery div {
line-height:1.5em;
padding:0.2em 0.4em;
border:1px solid #a2a9b1;
}
div.clade-gallery div.main-caption {
text-align:center;
font-weight:bold;
border:none;
}
div.clade-gallery div.main-footer {
text-align:center;
}
div.clade-gallery div.main-content {
display:table; /* allows sizing to floated content */
margin:-1px 0; /* prevents to double border with cells above and below*/
}
div.clade-gallery div.no-border {
border:none;
}
div.clade-gallery div.gallery-element {
float:left;
border:1px none;
padding:5px;
margin:1px;
display:table;
}
div.clade-gallery div.gallery-element.vertical {
float:none;
}
div.clade-gallery div.caption {
text-align:center;
font-weight:bold;
border:none;
}
div.clade-gallery div.header {
text-align:center;
font-weight:bold;
}
div.clade-gallery div.cladogram {
padding:20px;
margin:-1px 0; /* prevents to double border with cells above and below*/
}
div.clade-gallery div.footer {
}
div.clade-gallery div.header.shading {
background-color:#eaecf0;
}
div.clade-gallery div.cladogram.shading {
background-color:#f8f9fa;
}
div.clade-gallery div.footer.shading {
background-color:#f8f9fa;
}