MediaWiki:Styles.css: Difference between revisions
MediaWiki interface page
More actions
Created page with ".mp-frame { box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 2em 0; padding: 1px; } .mp-frame:after { display: block; content: ""; clear: both; } .mp-frame-header { background-color: #888; border-radius: .2em; color: #fff; padding: .4em .8em .5em; font-weight: bold; } .mp-frame-header:before { display: inline-block; →Add some content in order to get normal line height, then make it transparent: content: "x"; color: transparent; width: 40..." |
No edit summary |
||
Line 24: | Line 24: | ||
width: 40px; | width: 40px; | ||
opacity: .7; | opacity: .7; | ||
background-size: 27px; | background-size: 27px; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; |
Latest revision as of 21:08, 14 July 2024
.mp-frame { box-shadow: 0 0 .3em #999; border-radius: .2em; margin: 1em 0 2em 0; padding: 1px; } .mp-frame:after { display: block; content: ""; clear: both; } .mp-frame-header { background-color: #888; border-radius: .2em; color: #fff; padding: .4em .8em .5em; font-weight: bold; } .mp-frame-header:before { display: inline-block; /* Add some content in order to get normal line height, then make it transparent */ content: "x"; color: transparent; width: 40px; opacity: .7; background-size: 27px; background-repeat: no-repeat; /* this sometimes gets automatically flipped and sometimes doesn't, so disable the automatic flipping */ /* @noflip */ background-position: left center; } .mw-content-rtl .mp-frame-header:before { /* this sometimes gets automatically flipped and sometimes doesn't, so disable the automatic flipping */ /* @noflip */ background-position: right center; } .mp-frame-body { padding: 1em; }