MediaWiki:Common.css: Difference between revisions

No edit summary
Undo revision 321 by CaptainChris (talk)
Tag: Undo
 
(6 intermediate revisions by the same user not shown)
Line 146: Line 146:
   ============================== */
   ============================== */


/* container */
.infobox {
.infobox {
   float: right;
   float: right;
Line 173: Line 172:
   font-weight: bold;
   font-weight: bold;
   font-size: 110%;
   font-size: 110%;
   padding: 4px;
   padding: 3px 4px;
   border-bottom: 1px solid #aaa;
   border-bottom: 1px solid #aaa;
}
}
Line 181: Line 180:
   text-align: center;
   text-align: center;
   background: #fff;
   background: #fff;
   padding: 6px;
   padding: 4px;
   border-bottom: 1px solid #aaa;
   border-bottom: 1px solid #aaa;
}
}
Line 198: Line 197:
.infobox-rows th,
.infobox-rows th,
.infobox-rows td {
.infobox-rows td {
   padding: 3px 5px;
   padding: 2px 5px; /* tighter spacing */
   vertical-align: top;
   vertical-align: top;
   border-bottom: 1px solid #ddd;
   border-bottom: 1px solid #ddd;
Line 212: Line 211:
.infobox-rows td {
.infobox-rows td {
   background: #fff;
   background: #fff;
}
/* hover off for old-school simplicity */
.infobox-rows tr:hover {
  background: none;
}
}


Line 225: Line 219:
   background: #f2f2f2;
   background: #f2f2f2;
   border-top: 1px solid #aaa;
   border-top: 1px solid #aaa;
   padding: 4px;
   padding: 3px;
   font-size: 85%;
   font-size: 85%;
}
}
Line 232: Line 226:
.mw-parser-output > .infobox + p {
.mw-parser-output > .infobox + p {
   margin-top: 0 !important;
   margin-top: 0 !important;
}
.infobox td p:empty,
.infobox td p:has(br) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.infobox-section th {
  background: #b0c4de !important;
  color: #000;
  text-align: center;
  font-weight: bold;
  border-bottom: 1px solid #aaa;
  padding: 4px;
}
.infobox .infobox-section{
  background: var(--quaternary, #5865f2);
  color:#fff;
  text-align:left;
  padding:.35em .6em;
  font-weight:600;
}
.infobox .infobox-section{
  display:block;
  background: var(--quaternary, #5865f2);
  color:#fff;
  padding:.4em .6em;
  font-weight:600;
  border-radius:4px;
  margin:.5em 0;
}
}