MediaWiki:Common.css: Difference between revisions
Appearance
	
	
| No edit summary | No edit summary | ||
| Line 6: | Line 6: | ||
|    padding: 0; |    padding: 0; | ||
|    margin: 0 0 10px 10px; |    margin: 0 0 10px 10px; | ||
|    width: calc( |    width: calc(45% - 30px); | ||
|    float: right; |    float: right; | ||
|    position: relative; |    position: relative; | ||
| } | } | ||
| .infobox:after { | .infobox:after { | ||
|    clear:  |    clear: after; | ||
| } | } | ||
| .infobox  | .infobox img { | ||
|    width: 100%; |    width: 100%; | ||
|    max-width: 100%; |    max-width: 100%; | ||
Revision as of 15:18, 24 March 2024
/* CSS placed here will be applied to all skins */
.infobox {
  border: 1px solid #CCC;
  background-color: #FFF;
  padding: 0;
  margin: 0 0 10px 10px;
  width: calc(45% - 30px);
  float: right;
  position: relative;
}
.infobox:after {
  clear: after;
}
.infobox img {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  height: auto;
}
.infobox .element {
  border-top: 1px solid #CCC;
  border-bottom: 1px solid #CCC;
  padding: 10px;
}
.infobox .element:last-child {
  border-bottom: none;
}
a:visited {
  color: blue;
}
