MediaWiki:Common.css: Difference between revisions

From Duskview
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:
   line-height: 1.4em;
   line-height: 1.4em;
   box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
   box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}
@media (prefers-color-scheme: dark) {
  .infobox {
    background-color: #1e1e1e;
    color: #eee;
    border: 1px solid #555;
  }
  .infobox table {
    color: #eee;
  }
}
}


Line 24: Line 36:
   vertical-align: top;
   vertical-align: top;
   padding: 2px 4px;
   padding: 2px 4px;
}
.infobox details {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}
.infobox summary {
  cursor: pointer;
  font-weight: bold;
  background-color: rgba(0,0,0,0.05);
  padding: 2px 4px;
  border-radius: 4px;
}
@media (prefers-color-scheme: dark) {
  .infobox summary {
    background-color: rgba(255,255,255,0.1);
  }
}
}

Revision as of 07:59, 8 June 2025

.mw-wiki-logo {
  background-size: contain;
}

.infobox {
  float: right;
  clear: right;
  margin: 0 0 1em 1em;
  padding: 0.8em;
  width: 270px;
  background-color: #f9f9f9;
  border: 1px solid #aaa;
  font-size: 90%;
  line-height: 1.4em;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

@media (prefers-color-scheme: dark) {
  .infobox {
    background-color: #1e1e1e;
    color: #eee;
    border: 1px solid #555;
  }
  .infobox table {
    color: #eee;
  }
}

.infobox table {
  border-collapse: collapse;
  width: 100%;
}

.infobox td {
  vertical-align: top;
  padding: 2px 4px;
}

.infobox details {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}

.infobox summary {
  cursor: pointer;
  font-weight: bold;
  background-color: rgba(0,0,0,0.05);
  padding: 2px 4px;
  border-radius: 4px;
}

@media (prefers-color-scheme: dark) {
  .infobox summary {
    background-color: rgba(255,255,255,0.1);
  }
}