MediaWiki:Common.css: Difference between revisions

From Ages of Conflict
Content added Content deleted
No edit summary
(Added pdf icon and minimum thumb width.)
 
(121 intermediate revisions by 5 users not shown)
Line 1: Line 1:
/** Sidebars **/
div.page:before {
/* Placing all sidebars to the left aka forcing layout under 1340px as default
/* first we initialise the pseudo element */
Taken from Inkipedia [ https://splatoonwiki.org/wiki/MediaWiki:Timeless.css ] */
content: '';
@media (min-width: 1340px) {
display: block;
#mw-content-block {
position: absolute; /* remove the element from the normal document flow so it doesn't shift anything unwanted */
display: block; }

#mw-content,
/* fill the entire container */
#content-bottom-stuff {
width: 100%;
margin-left: 14em; }
height: 100%;
#mw-content-wrapper {

float: right;
/* now we have our code */
margin-left: -14em;
background: url('Camo.png');
width: 100%; }
background-repeat: repeat;
/* Width and paddings */
background-attachment: fixed;
#mw-site-navigation, #mw-related-navigation {
background-size: auto;
width: 14em; }
opacity: 0.4;
#mw-related-navigation {
padding: 0 1em 0 0; }
}
}

.image-row {
/*COMMUNITY HEADER drop shadow*/
display: flex;
.theme-fandomdesktop-light .fandom-community-header {
justify-content: space-between;
filter: drop-shadow(0px 0px 6px #Ffd700) drop-shadow(0px 0px 2px #Ffd700);
padding: 20px; /* Add padding to the row */
z-index: 200;
}
}
.theme-fandomdesktop-dark .fandom-community-header {
filter: drop-shadow(0px 0px 6px #Ffd700) drop-shadow(0px 0px 2px #Ffd700);
z-index: 200;
}

a[href="/wiki/User:Cosmoj0sh"] {color:violet; font-weight:bold; filter:drop-shadow(0px 0px 2px #B200FF);}


.image-box img {
#navbar a:hover {
background-color: #ddd;
height: 134.38px;
color: black;
width: 100%;
transition: 0.2s;
object-fit: cover;
}
}


.image-box:hover img {
.MPElement {
transform: scale(1.05);
padding: 20px;
background-color: #D2B48C;
color: #3D3D3D;
border: 1px solid #888;
margin-bottom: 10px;
transition: all 0.3s ease; /* Shorter transition for a more subtle effect */
}
}
.pi-image {

clip-path: content-box;
.MPElement:hover {
background-color: #C19A6B; /* Subtle change in background color on hover */
}
}


.MPElement h2 {
.pi-image img {
transition: transform 0.5s;
margin: 0;
padding-bottom: 10px;
border-bottom: 1px solid #888;
}
}


.pi-image img:hover {
.MPElement p.small {
font-size: 0.8em;
transform: scale(1.04);
margin-top: 10px;
border-top: 1px solid #888;
}
}
/** Links **/

/* Normal */
.MPElement a {
a {
color: #008B8B; /* Link color that stands out against both light and dark backgrounds */
color: gold !important; }
a:visited {
color: gold !important; }
a:hover {
color: gold !important;
text-decoration: none;
text-shadow: 2px 2px 5px black; }
/* Red */
a.new {
color: red !important; }
a.new:visited {
color: red !important; }
/* External interwiki and web links (affects long Special: links too) */
a.extiw, a.external {
color: gold !important; /* Different color */
padding-right: 0 !important; }
body #mw-content-text {
color: white;
}
}
body {

cursor: url("https://static.miraheze.org/agesofconflictwiki/5/5e/Default.png"), auto;
.MPElement a:hover {
color: #00FFFF; /* Link color on hover */
}
}
a:hover {

cursor: url("https://static.miraheze.org/agesofconflictwiki/5/5e/Default.png"), auto;
.container {
display: flex; /* Aligns the boxes horizontally */
}

.MPElement {
flex: 1; /* Each box will take up an equal amount of space */
padding: 20px;
background-color: #D2B48C;
color: #3D3D3D;
border: 1px solid #888;
margin: 10px; /* Space around each box */
transition: all 0.3s ease;
}
}


/* Things cannot go more than 100% (so stuff cannot overlap) */
.MPElement:hover {
img {
background-color: #776650;
max-width: 100%;
height: auto;
}
}


/* Change the external link icon to a PDF icon for all PDF files */
.MPElement h2 {
.mw-parser-output a[href$=".pdf"].external,
margin: 0;
.mw-parser-output a[href*=".pdf?"].external,
padding-bottom: 10px;
.mw-parser-output a[href*=".pdf#"].external,
border-bottom: 1px solid #888;
.mw-parser-output a[href$=".PDF"].external,
.mw-parser-output a[href*=".PDF?"].external,
.mw-parser-output a[href*=".PDF#"].external {
background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right;
/* @noflip */
padding: 8px 18px 8px 0;
}
}


/* Minimum thumb width */
.MPElement p.small {
figure[typeof~='mw:File/Thumb'],
font-size: 0.8em;
figure[typeof~='mw:File/Frame'],
margin-top: 10px;
.thumbinner {
border-top: 1px solid #888;
min-width: 100px;
}
}

Latest revision as of 21:36, 26 February 2024

/** Sidebars **/
/* Placing all sidebars to the left aka forcing layout under 1340px as default 
   Taken from Inkipedia [ https://splatoonwiki.org/wiki/MediaWiki:Timeless.css ] */
@media (min-width: 1340px) {
	#mw-content-block {
		display: block; }
	#mw-content,
	#content-bottom-stuff {
		margin-left: 14em; }
	#mw-content-wrapper {
		float: right;
		margin-left: -14em;
		width: 100%; }
	/* Width and paddings */
	#mw-site-navigation, #mw-related-navigation {
		width: 14em; }
	#mw-related-navigation {
		padding: 0 1em 0 0; }
}
 
.image-row {
  display: flex;
  justify-content: space-between;
  padding: 20px; /* Add padding to the row */
}

.image-box img {
    height: 134.38px;
    width: 100%;
    transition: 0.2s;
    object-fit: cover;
}

.image-box:hover img {
  transform: scale(1.05);
}
.pi-image {
    clip-path: content-box;
}

.pi-image img {
    transition: transform 0.5s;
}

.pi-image img:hover {
    transform: scale(1.04);
}
/** Links **/
/* Normal */
a {
    color: gold !important; }
a:visited {
    color: gold !important; }
a:hover {
    color: gold !important;
    text-decoration: none;
    text-shadow: 2px 2px 5px black; }
/* Red */
a.new {
    color: red !important; }
a.new:visited {
    color: red !important; }
/* External interwiki and web links (affects long Special: links too)  */
a.extiw, a.external {
    color: gold !important;                /* Different color */
    padding-right: 0 !important; }
    
    body #mw-content-text {
  color: white;
}
body {
  cursor: url("https://static.miraheze.org/agesofconflictwiki/5/5e/Default.png"), auto;
}
a:hover {
  cursor: url("https://static.miraheze.org/agesofconflictwiki/5/5e/Default.png"), auto;
}

/* Things cannot go more than 100% (so stuff cannot overlap) */
img {
    max-width: 100%;
    height: auto;
}

/* Change the external link icon to a PDF icon for all PDF files */
.mw-parser-output a[href$=".pdf"].external,
.mw-parser-output a[href*=".pdf?"].external,
.mw-parser-output a[href*=".pdf#"].external,
.mw-parser-output a[href$=".PDF"].external,
.mw-parser-output a[href*=".PDF?"].external,
.mw-parser-output a[href*=".PDF#"].external {
	background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right;
	/* @noflip */
	padding: 8px 18px 8px 0;
}

/* Minimum thumb width */
figure[typeof~='mw:File/Thumb'],
figure[typeof~='mw:File/Frame'],
.thumbinner {
	min-width: 100px;
}