MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
(Undo revision 151 by Lionir (talk))
Tag: Undo
No edit summary
Line 2: Line 2:
   border-radius:var(--border-radius--medium);
   border-radius:var(--border-radius--medium);
   background-color:var(--color-surface-2);
   background-color:var(--color-surface-2);
   float:right;
   padding: 20px;
   width:100%;
   width: 100%;
   max-width:400px;
   margin-top: 1em;
  padding: 6px 0;
}
}
.infobox-title {
.infobox-title {
Line 17: Line 16:
   height:auto;
   height:auto;
}
}
.infobox-table {
.infobox-table td {
padding: 0 15px !important;
  padding-block:3px;
}
}
.infobox-table th, td {
.infobox-table th {
   padding: 3px;
  color:var(--color-base--subtle);
  font-weight:var(--font-weight-semibold);
  text-align:left;
   padding-right: 15px;
}
}
.infobox-table th {
.infobox-table th {
color: var(--color-base--subtle);
  font-weight:var(--font-weight-semibold);
  text-align: left;
   width: 40%;
   width: 40%;
}
}
.infobox-table td {
.infobox-table td {
  vertical-align: top;
   width: 60%;
   width: 60%;
}
@media screen and (min-width:720px) {
  .infobox {
    max-width: 400px;
    float:right;
  }
}
}

Revision as of 01:49, 21 January 2024

.infobox {
  border-radius:var(--border-radius--medium);
  background-color:var(--color-surface-2);
  padding: 20px;
  width: 100%;
  margin-top: 1em;
}
.infobox-title {
  color:var(--color-base--emphasized);
  font-weight:var(--font-weight-semibold);
  font-size:calc(var(--font-size-h3)*1.5);
  text-align:center;
}
.infobox-image {
  max-width:100%;
  height:auto;
}
.infobox-table td {
  padding-block:3px;
}
.infobox-table th {
  color:var(--color-base--subtle);
  font-weight:var(--font-weight-semibold);
  text-align:left;
  padding-right: 15px;
}
.infobox-table th {
  width: 40%;
}
.infobox-table td {
  width: 60%;
}

@media screen and (min-width:720px) {
  .infobox {
    max-width: 400px;
    float:right;
  }
}