Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
Tag: Reverted
No edit summary
 
(51 intermediate revisions by 2 users not shown)
Line 14: Line 14:
.infobox-2 td {
.infobox-2 td {
text-align: right;
text-align: right;
}
.wikitable .infobox-subheader, .wikitable .infobox-above {
text-align: center;
}
.infobox-subheader {
padding: var(--space-xxs) var(--space-sm);
color: var(--color-base);
}
.infobox-2 .sub-infobox-header {
padding: var(--space-xxs) var(--space-sm);
}
.infobox-above {
font-size: var(--font-size-medium);
}
}


Line 25: Line 42:
}
}


/*Page forms... gotta figure out a good way to style this. !important is not it.*/
.wikitable .blazon {
#pfForm * {
font-size : var(--font-size-x-small);
background-color: var(--background-color-overlay) !important;
color: var(--color-subtle);
color: var(--color-base--emphasized) !important;
}
}


.pf-select2-dropdown * {
.custom-grid {
background-color: var(--background-color-overlay--lighter) !important;
  display: grid;
var(--color-base--emphasized) !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
}


.templateForm, .templateForm * {
/* Combined grid-item styles */
background-color: var(--background-color-overlay) !important;
.grid-item {
color: var(--color-base--emphasized) !important;
  display: block;
  background: var(--color-surface-2);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
 
  /* link reset */
  text-decoration: none;
  color: inherit;
 
  /* hover animation */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
}


/* Default styles for light mode */
.grid-item:hover,
.wikitable {
.grid-item:focus,
    border: 1px solid black !important;
.grid-item:active {
    border-collapse: collapse;
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 2;
}
}


.wikitable th, .wikitable td {
.grid-item.wiki-card a {
    border: 1px solid black !important;
  text-decoration: none;
}
}


/* Dark mode styles */
.wiki-card {
@media (prefers-color-scheme: dark) {
  position: relative;
     .wikitable {
  overflow: hidden;
        border: 1px solid white !important;
}
     }
 
     .wikitable th, .wikitable td {
.wiki-card img {
        border: 1px solid white !important;
  position: absolute;
    }
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@font-face {
    font-family: "Modesto Condensed";
    src: url("https://db.onlinewebfonts.com/t/098778ecc5c04647b35cd474022c42a0.eot");
     src: url("https://db.onlinewebfonts.com/t/098778ecc5c04647b35cd474022c42a0.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/098778ecc5c04647b35cd474022c42a0.woff2")format("woff2"),
     url("https://db.onlinewebfonts.com/t/098778ecc5c04647b35cd474022c42a0.woff")format("woff"),
     url("https://db.onlinewebfonts.com/t/098778ecc5c04647b35cd474022c42a0.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/098778ecc5c04647b35cd474022c42a0.svg#Modesto Condensed")format("svg");
}
.wiki-card-content {
  position: relative;
  z-index: 1;
  color: white;
  height: var(--header-size);
  align-content: center;
  text-shadow: var(--sh-s) var(--sh-s) var(--third-thing) #000, var(--sh-s-2) var(--sh-s) var(--third-thing) #000, var(--sh-s-2) var(--sh-s-2) var(--third-thing) #000, var(--sh-s) var(--sh-s-2) var(--third-thing) #000;
  --sh-s: 0.1rem;
  --sh-s-2: calc(var(--sh-s) * -1);
  --third-thing: 1rem;
  font-family:Modesto Condensed;
  font-size: var(--font-size-xx-large);
  display: grid;
  line-height: var(--line-height-medium);
}
}

Latest revision as of 08:15, 17 April 2026

/* CSS placed here will be applied to all skins */

/* Planning to make a new infobox, infobox-2 is the old one */ /* Don't remember why - as far as I can tell infobox-2 looks good for now, hit me (Elias) up if you notice any problems with it */

.infobox-2 { /*Gets overridden by the floatright class, not sure why*/
 margin-left:auto;
 margin-right:auto;
}

.infobox-2 th, .infobox-2 td {
    vertical-align: top;
}

.infobox-2 td {
text-align: right;
}

.wikitable .infobox-subheader, .wikitable .infobox-above {
text-align: center;
}

.infobox-subheader {
padding: var(--space-xxs) var(--space-sm);
color: var(--color-base);
}

.infobox-2 .sub-infobox-header {
padding: var(--space-xxs) var(--space-sm);
}

.infobox-above {
font-size: var(--font-size-medium);
}

/*This should make the [Mark this page as patrolled] appear under the whole page. Could put it to scroll rather than hidden to make it easy to notice if something's cut off, but I'm scared people might think that's intended (and it's so ugly...)*/
/* .mw-parser-output {
 overflow: hidden;
} */
/*I'll never use it, just make it invisible for now:*/
.patrollink {
 display: none;
}

.wikitable .blazon {
	font-size : var(--font-size-x-small);
	color: var(--color-subtle);
}

.custom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* Combined grid-item styles */
.grid-item {
  display: block;
  background: var(--color-surface-2);
  padding: 16px;
  border-radius: 12px;
  text-align: center;

  /* link reset */
  text-decoration: none;
  color: inherit;

  /* hover animation */
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid-item:hover,
.grid-item:focus,
.grid-item:active {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 2;
}

.grid-item.wiki-card a {
  text-decoration: none;
}

.wiki-card {
  position: relative;
  overflow: hidden;
}

.wiki-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@font-face {
    font-family: "Modesto Condensed";
    src: url("https://db.onlinewebfonts.com/t/098778ecc5c04647b35cd474022c42a0.eot");
    src: url("https://db.onlinewebfonts.com/t/098778ecc5c04647b35cd474022c42a0.eot?#iefix")format("embedded-opentype"),
    url("https://db.onlinewebfonts.com/t/098778ecc5c04647b35cd474022c42a0.woff2")format("woff2"),
    url("https://db.onlinewebfonts.com/t/098778ecc5c04647b35cd474022c42a0.woff")format("woff"),
    url("https://db.onlinewebfonts.com/t/098778ecc5c04647b35cd474022c42a0.ttf")format("truetype"),
    url("https://db.onlinewebfonts.com/t/098778ecc5c04647b35cd474022c42a0.svg#Modesto Condensed")format("svg");
}
.wiki-card-content {
  position: relative;
  z-index: 1;
  color: white;
  height: var(--header-size);
  align-content: center;
  text-shadow: var(--sh-s) var(--sh-s) var(--third-thing) #000, var(--sh-s-2) var(--sh-s) var(--third-thing) #000, var(--sh-s-2) var(--sh-s-2) var(--third-thing) #000, var(--sh-s) var(--sh-s-2) var(--third-thing) #000;
  --sh-s: 0.1rem;
  --sh-s-2: calc(var(--sh-s) * -1);
  --third-thing: 1rem;
  font-family:Modesto Condensed;
  font-size: var(--font-size-xx-large);
  display: grid;
  line-height: var(--line-height-medium);
}