MediaWiki:PageComponents.css

From Rejuvenation Wiki
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* """buttons""" kind of */
span.rejuv-button {
	border: 1px solid var(--border-color-gold);
	border-radius: var(--border-radius-m);
	padding: var(--gap-m) var(--gap-l);
	display: flex;
	place-items: center;
	width: fit-content;
	font-size: medium;
	transition: var(--transition-fancy);
	margin-block: var(--gap-m);
	cursor: pointer;
	
	animation: out 0.5s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
}

span.rejuv-button:hover {
	animation: in 0.5s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
}

@keyframes in {
  from {
    color: white;
    background: linear-gradient(to right, var(--infobox-gallery-nav-bg) 0%, transparent 100%);
  }
  
  to {
    color: black;
    background: linear-gradient(to right, var(--infobox-gallery-nav-bg) 100%, transparent 100%);    
  }
}

@keyframes out {
  from {
    color: black;
    background: linear-gradient(to right, transparent 0%, var(--infobox-gallery-nav-bg) 100%);    
  }
  
  to {
    color: white;
    background: linear-gradient(to right, transparent 100%, var(--infobox-gallery-nav-bg) 100%);
  }
}
/* QuestLog component */

.wikitable, .questsList {
    color: white !important;
	border: 1px solid var(--border-nav) !important;
	border-radius: var(--border-radius-m) !important;
}

.wikitable caption, .questsList caption {
    font-weight: bold;
}

.wikitable th, .questsList .questsHead {
	background-color: var(--blue-200) !important;
	padding: 0.5rem 1.5rem !important;
	color: white !important;
}

.wikitable tr:nth-child(odd), .questsList .questInfo:nth-child(odd) {
	background-color: var(--blue-100) !important;
}

.wikitable tr:nth-child(even), .questsList .questInfo:nth-child(even) {
	background-color: var(--blue-50) !important;
}

.wikitable tr td, .questsList .questInfo td {
	padding: 0.5rem !important;
}

/* Quotes at the top of character's pages */
blockquote:first-of-type {
	position: relative;
	background: var(--infobox-bg);
	border: 3px solid var(--border-color-gold);
	border-radius: 0 var(--border-radius-m) var(--border-radius-m) 0;
	margin-inline-start: 0;
	width: fit-content;
}

@media (max-width: 720px) {
	blockquote:first-of-type {
		width: auto;
		margin-inline-end: 0;
	}
}

blockquote:first-of-type::before,
blockquote:first-of-type::after {
    position: absolute;
    bottom: 4rem;
    color: rgba(255, 255, 255, 0.2);
    font-size: 10rem;
    height: 100%;
}

blockquote:first-of-type::before {
	content: "“";
	left: 0;
}

blockquote:first-of-type::after {
	content: "”";
	right: 0;
}

blockquote:first-of-type p:last-of-type {
	text-align: end;
}

/* Template:TeamCard */
.team-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  background: hsl(232, 28%, 16%);
  gap: 0.5rem;
  padding: 0.5rem;
  overflow-x: auto;
}

@media (max-width: 1024px) {
  .team-info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .team-info {
    grid-template-columns: 1fr;
  }
}

.team-info .pokemon-info:first-of-type {
  border-top-left-radius: 0.5rem;
}

.team-info .pokemon-info:last-of-type {
  border-bottom-right-radius: 0.5rem;
}

/* Template:PokemonCard */
.pokemon-info {
  display: grid;
  grid-template: 
    'figure data stats' 2fr
    'moves moves moves' 1fr / 1fr 3fr 1fr;
  
  background: hsl(232, 28%, 16%);
  gap: 0.5rem;
}

.pokemon-info > .figure, .pokemon-info > ul {
  background: hsl(232, 28%, 20%);
  border-radius: 0.5rem;
  
  padding: 0.5rem;
}

.pokemon-info .figure {
  grid-area: figure;

  display: grid;
  place-content: center;
  margin: 0;
  padding: 0;
  text-align: center;
}

.pokemon-info .figure pre {
  all: initial;
}

.pokemon-info .figure .figcaption {
  background: hsla(232, 28%, 16%, 50%);
  border-radius: 0.5rem;
  width: auto;
}

.pokemon-info .info-data {
  grid-area: data;
}

.pokemon-info .info-moves {
  grid-area: moves;
  
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
  gap: 0.25rem;
}

.pokemon-info .info-moves img {
    height: 2rem;
    width: 2rem;
    border-radius: 2rem;
}

.pokemon-info .info-stats {
  grid-area: stats;
}

.pokemon-info .info-data,
.pokemon-info .info-stats {
  display: grid;
}

.pokemon-info .info-data li,
.pokemon-info .info-moves li,
.pokemon-info .info-stats li {
  display: grid;
  grid-template-columns: 1fr 5fr;
  gap: 0.5rem;
  align-items: center;
  justify-items: flex-end;
  text-transform: capitalize;
}

.pokemon-info .info-data li > span {
  display: grid;
  grid-auto-flow: column;
  text-align: center;
}

.pokemon-info .info-data li:first-child span {
  padding-inline: 0.25rem;
}

.pokemon-info .info-data li.single span {
  grid-template-columns: auto;
  border-radius: 0.25rem;
}

.pokemon-info .info-data li.double span {
  grid-template-columns: auto auto;
}

.pokemon-info .info-data li.double span > span:first-of-type {
  border-radius: 0.25rem 0 0 0.25rem;
}

.pokemon-info .info-data li.double span > span:last-of-type {
  border-radius: 0 0.25rem 0.25rem 0;
}

.pokemon-info .info-moves li {
  background: hsl(232, 28%, 36%);
  border-radius: 1rem;
  justify-items: flex-start;
  
  background-repeat: no-repeat;
  background-size: 2rem;
  background-position-x: calc(100% - 0.5rem);
  background-position-y: center;
  background-blend-mode: soft-light;
}

.pokemon-info .info-moves li.physical {
  background-image: url(https://archives.bulbagarden.net/media/upload/b/b4/PhysicalIC_SV.png);
}

.pokemon-info .info-moves li.special {
  background-image: url(https://archives.bulbagarden.net/media/upload/5/5b/SpecialIC_SV.png);
}

.pokemon-info .info-moves li.status {
  background-image: url(https://archives.bulbagarden.net/media/upload/e/e0/StatusIC_SV.png);
}

.pokemon-info ul {
  list-style: none !important;
  margin: 0 !important;
}

.pokemon-info li {
  text-wrap: nowrap !important;
  margin: 0 !important;
}