MediaWiki:Common.css: Difference between revisions
Appearance
	
	
| mNo edit summary | No edit summary | ||
| (39 intermediate revisions by 2 users not shown) | |||
| Line 22: | Line 22: | ||
| } | } | ||
| .infobox .flag img { | .infobox .flag img, .infobox .list img { | ||
|    width: auto; |    width: auto; | ||
|    max-width: 100%; |    max-width: 100%; | ||
| Line 30: | Line 30: | ||
| .infobox .title { | .infobox .title { | ||
|    padding: 10px; |    padding: 10px; | ||
|    text-align: center; |    text-align: center; | ||
|   font-weight: bold; | |||
|   font-size: 18px; | |||
|   letter-spacing: 0.05em; | |||
| } | |||
| .infobox.people .title { | |||
|   background-color: #ad282b; | |||
|   color: #FFF; | |||
| } | |||
| .infobox.organization .title { | |||
|   background-color: #CCC; | |||
|   color: #000; | |||
| } | |||
| .infobox.plush .title { | |||
|   background-color: #C5885B; | |||
|   color: #FFF; | |||
| } | |||
| .infobox.minecraft .title { | |||
|   background-color: #496128; | |||
|   color: #FFF; | |||
| } | |||
| .infobox.doctorwho .title { | |||
|   background-color: #2a396f; | |||
|   color: #FFF; | |||
| } | |||
| .infobox.maps .title { | |||
|   background-color: #aebed0; | |||
|    color: #000; |    color: #000; | ||
| } | } | ||
| Line 44: | Line 74: | ||
|    border-bottom: 1px solid #CCC; |    border-bottom: 1px solid #CCC; | ||
|    padding: 10px; |    padding: 10px; | ||
|   box-sizing: border-box; | |||
|   display: flex; | |||
|   flex-direction: row; | |||
|   grid-column-gap: 9px; | |||
|   overflow: hidden; | |||
| } | } | ||
| Line 68: | Line 103: | ||
| } | } | ||
| a, a:link, a:hover { | .infobox-left { | ||
|   font-size: 14px; | |||
|   line-height: 1.5; | |||
|   border-bottom: 0; | |||
|   font-family: inherit; | |||
|   font-weight: normal; | |||
|   margin: 0; | |||
|   -webkit-hyphens: auto; | |||
|   hyphens: auto; | |||
|   flex-basis: 35%; | |||
|   margin: 0; | |||
|   overflow: hidden; | |||
| } | |||
| .infobox-right { | |||
|   line-height: 1.8; | |||
|   overflow-wrap: break-word; | |||
|   -webkit-hyphens: auto; | |||
|   hyphens: auto; | |||
|   flex-basis: 65%; | |||
| } | |||
| .infobox-right:first-child { | |||
|   /*flex-basis: 180px;*/ | |||
| } | |||
| a, a:link, a:hover, .mw-parser-output a.extiw, .mw-parser-output a.external { | |||
|    color: blue; |    color: blue; | ||
| } | } | ||
| Line 78: | Line 139: | ||
| a.new:visited { | a.new:visited { | ||
|    color: red; |    color: red; | ||
| } | |||
| .vector-pinnable-element .mw-list-item a:not(.mw-selflink):visited, .vector-dropdown-content .mw-list-item a:not(.mw-selflink):visited { | |||
|   color: blue; | |||
| } | } | ||
| a:visited { | a:visited { | ||
|    color: blue; |    color: blue; | ||
| } | |||
| .wikitable { | |||
|   width: 100%; | |||
| } | |||
| .ranks2 { | |||
| } | |||
| .ranks2 th:nth-child(1) { | |||
|   width: 50%; | |||
| } | |||
| .ranks2 th:nth-child(2) { | |||
|   width: 50%; | |||
| } | |||
| .ranks3 { | |||
| } | |||
| .ranks3 th:nth-child(1) { | |||
|   width: 33%; | |||
| } | |||
| .ranks3 th:nth-child(2) { | |||
|   width: 33%; | |||
| } | |||
| .ranks3 th:nth-child(3) { | |||
|   width: 33%; | |||
| } | |||
| .ranks4 { | |||
| } | |||
| .ranks4 th:nth-child(1) { | |||
|   width: 25%; | |||
| } | |||
| .ranks4 th:nth-child(2) { | |||
|   width: 25%; | |||
| } | |||
| .ranks4 th:nth-child(3) { | |||
|   width: 25%; | |||
| } | |||
| .ranks4 th:nth-child(4) { | |||
|   width: 25%; | |||
| } | |||
| .ranks5 { | |||
| } | |||
| .ranks5 th:nth-child(1) { | |||
|   width: 17%; | |||
| } | |||
| .ranks5 th:nth-child(2) { | |||
|   width: 11%; | |||
| } | |||
| .ranks5 th:nth-child(3) { | |||
|   width: 24%; | |||
| } | |||
| .ranks5 th:nth-child(4) { | |||
|   width: 24%; | |||
| } | |||
| .ranks5 th:nth-child(5) { | |||
|   width: 24%; | |||
| } | |||
| .wikitable .mw-file-element { | |||
|   max-width: 100%; | |||
|   height: auto; | |||
| } | |||
| .mw-body .infobox p { | |||
|   margin: 0 0 0.1em; | |||
| } | |||
| .mw-body h1, .mw-body .mw-heading1, .mw-body-content h1, .mw-body-content .mw-heading1, .mw-body-content h2, .mw-body-content .mw-heading2 { | |||
|   font-family: sans-serif; | |||
| } | |||
| .mw-body h1, .mw-body .mw-heading1, .mw-body-content h1, .mw-body-content .mw-heading1 { | |||
|   font-size: 2.2em; | |||
| } | |||
| .mw-body .mw-heading2, .mw-body h2 { | |||
|   font-size: 2em; | |||
| } | |||
| .mw-body .mw-heading3, .mw-body h3 { | |||
|   font-size: 1.5em; | |||
| } | |||
| .mw-body .mw-heading4, .mw-body h4 { | |||
|   font-size: 1.2em; | |||
| } | |||
| #vector-page-tools { | |||
|   background-color: #F5F5F5; | |||
|   padding: 10px; | |||
|   border: 1px solid #CCC; | |||
| } | |||
| #mainpage h2 { | |||
|   color: #ad282b; | |||
|   font-weight: bold; | |||
|   letter-spacing: 0.1em; | |||
|   border: none; | |||
|   margin: 20px 0; | |||
|   font-size: 2.5em; | |||
| } | |||
| #mainpage img.mw-file-element { | |||
|   border: 3px solid #ad282b; | |||
| } | |||
| .frontpage-icons, .page-icons-5 { | |||
|   display: grid; | |||
|   grid-template-columns: 20% 20% 20% 20% 20%; | |||
|   grid-template-rows: auto; | |||
|   gap: 20px; | |||
|   width: calc(100% - 80px); | |||
| } | |||
| .page-icons-4 { | |||
|   display: grid; | |||
|   grid-template-columns: 25% 25% 25% 25%; | |||
|   grid-template-rows: auto; | |||
|   gap: 20px; | |||
|   width: calc(100% - 80px); | |||
| } | |||
| .page-icons-3 { | |||
|   display: grid; | |||
|   grid-template-columns: 33% 33% 33%; | |||
|   grid-template-rows: auto; | |||
|   gap: 20px; | |||
|   width: calc(100% - 80px); | |||
| } | |||
| .page-icons-2 { | |||
|   display: grid; | |||
|   grid-template-columns: 50% 50%; | |||
|   grid-template-rows: auto; | |||
|   gap: 20px; | |||
|   width: calc(100% - 80px); | |||
| } | |||
| .frontpage-icon.frontpage-icon, .page-icons-5.page-icon, .page-icons-4.page-icon, .page-icons-3.page-icon, .page-icons-2.page-icon { | |||
|   display: inline-block; | |||
| } | |||
| .frontpage-icons img, .page-icons-5 img, .page-icons-4 img, .page-icons-3 img, .page-icons-2 img { | |||
|   width: 100%; | |||
|   height: auto; | |||
| } | |||
| .frontpage-icon-title, .page-icon-title { | |||
|   text-align: center; | |||
|   color: #ad282b; | |||
|   font-weight: bold; | |||
|   font-size: 13pt; | |||
|   letter-spacing: 0.02em; | |||
|   text-transform: uppercase; | |||
| } | |||
| .mw-logo, .mw-logo:visited { | |||
|   color: #d58282; | |||
| } | |||
| .mw-logo:hover, .mw-logo:visited:hover { | |||
|   text-decoration: none; | |||
|   color: #f2a1a1; | |||
| } | |||
| .mw-logo-container.skin-invert { | |||
|   font-size: 1.5em; | |||
|   letter-spacing: 0.02em; | |||
| } | } | ||
Latest revision as of 20:55, 22 March 2025
/* 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 .flag img, .infobox .list img {
  width: auto;
  max-width: 100%;
  min-width: auto;
  height: auto;
}
.infobox .title {
  padding: 10px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 0.05em;
}
.infobox.people .title {
  background-color: #ad282b;
  color: #FFF;
}
.infobox.organization .title {
  background-color: #CCC;
  color: #000;
}
.infobox.plush .title {
  background-color: #C5885B;
  color: #FFF;
}
.infobox.minecraft .title {
  background-color: #496128;
  color: #FFF;
}
.infobox.doctorwho .title {
  background-color: #2a396f;
  color: #FFF;
}
.infobox.maps .title {
  background-color: #aebed0;
  color: #000;
}
.infobox .element:first-child {
  border-top: 1px solid #CCC;
}
.infobox .element {
  border-bottom: 1px solid #CCC;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  grid-column-gap: 9px;
  overflow: hidden;
}
.infobox .element:last-child {
  border-bottom: none;
}
.infobox .list .wikitable {
  padding: 1.25em 1.75em;
  width: 100%;
  border: 0;
  background: none;
  margin: 0;
}
.infobox .list td {
  border: 0;
}
.infobox .list td:nth-child(1), .infobox .list td:nth-child(3), .infobox .list td:nth-child(5), .infobox .list td:nth-child(7), .infobox .list td:nth-child(9), .infobox .list td:nth-child(11), .infobox .list td:nth-child(13), .infobox .list td:nth-child(15), .infobox .list td:nth-child(17), .infobox .list td:nth-child(19), .infobox .list td:nth-child(21) {
  border-right: 1px dotted #AAA;
  width: 50%;
}
.infobox-left {
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 0;
  font-family: inherit;
  font-weight: normal;
  margin: 0;
  -webkit-hyphens: auto;
  hyphens: auto;
  flex-basis: 35%;
  margin: 0;
  overflow: hidden;
}
.infobox-right {
  line-height: 1.8;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  flex-basis: 65%;
}
.infobox-right:first-child {
  /*flex-basis: 180px;*/
}
a, a:link, a:hover, .mw-parser-output a.extiw, .mw-parser-output a.external {
  color: blue;
}
a.new {
  color: red;
}
a.new:visited {
  color: red;
}
.vector-pinnable-element .mw-list-item a:not(.mw-selflink):visited, .vector-dropdown-content .mw-list-item a:not(.mw-selflink):visited {
  color: blue;
}
a:visited {
  color: blue;
}
.wikitable {
  width: 100%;
}
.ranks2 {
}
.ranks2 th:nth-child(1) {
  width: 50%;
}
.ranks2 th:nth-child(2) {
  width: 50%;
}
.ranks3 {
}
.ranks3 th:nth-child(1) {
  width: 33%;
}
.ranks3 th:nth-child(2) {
  width: 33%;
}
.ranks3 th:nth-child(3) {
  width: 33%;
}
.ranks4 {
}
.ranks4 th:nth-child(1) {
  width: 25%;
}
.ranks4 th:nth-child(2) {
  width: 25%;
}
.ranks4 th:nth-child(3) {
  width: 25%;
}
.ranks4 th:nth-child(4) {
  width: 25%;
}
.ranks5 {
}
.ranks5 th:nth-child(1) {
  width: 17%;
}
.ranks5 th:nth-child(2) {
  width: 11%;
}
.ranks5 th:nth-child(3) {
  width: 24%;
}
.ranks5 th:nth-child(4) {
  width: 24%;
}
.ranks5 th:nth-child(5) {
  width: 24%;
}
.wikitable .mw-file-element {
  max-width: 100%;
  height: auto;
}
.mw-body .infobox p {
  margin: 0 0 0.1em;
}
.mw-body h1, .mw-body .mw-heading1, .mw-body-content h1, .mw-body-content .mw-heading1, .mw-body-content h2, .mw-body-content .mw-heading2 {
  font-family: sans-serif;
}
.mw-body h1, .mw-body .mw-heading1, .mw-body-content h1, .mw-body-content .mw-heading1 {
  font-size: 2.2em;
}
.mw-body .mw-heading2, .mw-body h2 {
  font-size: 2em;
}
.mw-body .mw-heading3, .mw-body h3 {
  font-size: 1.5em;
}
.mw-body .mw-heading4, .mw-body h4 {
  font-size: 1.2em;
}
#vector-page-tools {
  background-color: #F5F5F5;
  padding: 10px;
  border: 1px solid #CCC;
}
#mainpage h2 {
  color: #ad282b;
  font-weight: bold;
  letter-spacing: 0.1em;
  border: none;
  margin: 20px 0;
  font-size: 2.5em;
}
#mainpage img.mw-file-element {
  border: 3px solid #ad282b;
}
.frontpage-icons, .page-icons-5 {
  display: grid;
  grid-template-columns: 20% 20% 20% 20% 20%;
  grid-template-rows: auto;
  gap: 20px;
  width: calc(100% - 80px);
}
.page-icons-4 {
  display: grid;
  grid-template-columns: 25% 25% 25% 25%;
  grid-template-rows: auto;
  gap: 20px;
  width: calc(100% - 80px);
}
.page-icons-3 {
  display: grid;
  grid-template-columns: 33% 33% 33%;
  grid-template-rows: auto;
  gap: 20px;
  width: calc(100% - 80px);
}
.page-icons-2 {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto;
  gap: 20px;
  width: calc(100% - 80px);
}
.frontpage-icon.frontpage-icon, .page-icons-5.page-icon, .page-icons-4.page-icon, .page-icons-3.page-icon, .page-icons-2.page-icon {
  display: inline-block;
}
.frontpage-icons img, .page-icons-5 img, .page-icons-4 img, .page-icons-3 img, .page-icons-2 img {
  width: 100%;
  height: auto;
}
.frontpage-icon-title, .page-icon-title {
  text-align: center;
  color: #ad282b;
  font-weight: bold;
  font-size: 13pt;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.mw-logo, .mw-logo:visited {
  color: #d58282;
}
.mw-logo:hover, .mw-logo:visited:hover {
  text-decoration: none;
  color: #f2a1a1;
}
.mw-logo-container.skin-invert {
  font-size: 1.5em;
  letter-spacing: 0.02em;
}
