ProleWiki:Main page/Header/styles.css: Difference between revisions
From ProleWiki, the proletarian encyclopedia
More languages
More actions
m (1 revision imported) |
No edit summary |
||
Line 6: | Line 6: | ||
color: #484848; | color: #484848; | ||
} | } | ||
@supports (object-fit: | @supports (object-fit:contain) { | ||
.wd-mp-headerimage { | .wd-mp-headerimage { | ||
width: 100%; | width: 100%; | ||
object-fit: | object-fit: contain; | ||
object-position: top left; | object-position: top left; | ||
} | } |
Revision as of 02:34, 17 November 2020
.wd-mp-header {
overflow: hidden;
position: relative;
text-align: center;
margin-bottom: 10px;
color: #484848;
}
@supports (object-fit:contain) {
.wd-mp-headerimage {
width: 100%;
object-fit: contain;
object-position: top left;
}
}
.wd-mp-overlay {
height: 0;
left: 50%;
margin: 0 0 0 -50%;
position: absolute;
top: 65px;
width: 100%;
}
.wd-mp-headerbox {
background: #ddd;
background: rgba(221, 221, 221, 0.9);
display: inline-block;
padding: 2em;
font-size: 1.2em;
line-height: 2em;
}
.wd-mp-subheader {
margin-top:10px;
}
.wd-mp-subheader > div {
overflow: hidden;
position: relative;
background-color:white;
display: inline-block;
width: auto;
margin: 0 auto;
padding-left: 1em;
padding-right: 1em;
text-align: center;
box-sizing: border-box;
}