Difference between revisions of "MediaWiki:Common.css"

From We Are All Pokémon Trainers
Jump to navigation Jump to search
m
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
  
 +
/* Hatnote style cribbed from Wikipedia */
 +
.hatnote {
 +
    font-style: italic;
 +
}
 +
.hatnote i {
 +
    font-style: normal;
 +
}
 +
div.hatnote {
 +
    /* @noflip */
 +
    padding-left: 1.6em;
 +
    margin-bottom: 0.5em;
 +
}
 +
div.hatnote + div.hatnote {
 +
    margin-top: -0.5em;
 +
}
  
 
/* CSS enabling the Mon Box template */
 
/* CSS enabling the Mon Box template */
Line 90: Line 105:
  
 
/* CSS for the art gallery templates */
 
/* CSS for the art gallery templates */
 +
 +
.artGallery {
 +
    display: flex;
 +
    flex-flow: row wrap;
 +
    overflow: hidden;
 +
}
 +
 +
.artNode {
 +
    display: flex;
 +
    flex-flow: column;
 +
    justify-content: flex-end;
 +
    background: #ccc;
 +
    padding: 3px;
 +
    margin: 3px;
 +
    border-radius: 3px
 +
}
 +
.artNode_image {
 +
    flex: 1;
 +
    max-height: 300px;
 +
    overflow-y: auto;
 +
}
 +
.artNode_description {
 +
    flex: 0;
 +
    background: #fff;
 +
    border-radius: 2px;
 +
    margin-top: 3px;
 +
    padding: 1px 3px;
 +
}
  
 
.artNode img {
 
.artNode img {
 
     width: 300px;
 
     width: 300px;
 +
    max-width: 100%;
 
     height: auto;
 
     height: auto;
    max-height: 300px;
 
 
}
 
}
 
.artNode_span2 img {
 
.artNode_span2 img {
Line 116: Line 159:
  
 
form#searchform input#searchInput { overflow: none; min-wdidth: 8em; }
 
form#searchform input#searchInput { overflow: none; min-wdidth: 8em; }
 +
 +
/*
 +
* test version for WAAPT styles: EVIL, Spectrumizer, etc - VS
 +
* pending: offload to tropi.us assets, import css
 +
*/
 +
 +
span.waapt.waapt-spoiler,
 +
#workskin .waapt.waapt-spoiler
 +
{
 +
border: 1px dotted gray;
 +
padding: auto 0.2em;
 +
color: white;  /* todo: verify for prefers-dark-mode */
 +
background-color: white !important;
 +
}
 +
 +
span.waapt.evil,
 +
#workskin .waapt.evil
 +
{
 +
display: inline-block;
 +
padding: auto 1ex;
 +
color: red;  /* todo: how does TVT do this for Dark Mode? */
 +
background-color: black;
 +
}
 +
 +
span.waapt.spectrum,
 +
#workskin .waapt.spectrum
 +
{
 +
background-image: linear-gradient(60deg, red, orange, yellow, green, teal, blue, purple);
 +
background-clip: text;
 +
text-fill-color: transparent;
 +
color: transparent;
 +
text-shadow: ipx 1px rgba(92, 92, 92, 0.5);
 +
}

Latest revision as of 18:41, 23 April 2025

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

/* Hatnote style cribbed from Wikipedia */
.hatnote {
    font-style: italic;
}
.hatnote i {
    font-style: normal;
}
div.hatnote {
    /* @noflip */
    padding-left: 1.6em;
    margin-bottom: 0.5em;
}
div.hatnote + div.hatnote {
    margin-top: -0.5em;
}

/* CSS enabling the Mon Box template */
.mon_box {
position:relative;
width: 154px; height:145px;
background: url('https://waapt.wiki.tropi.us/images/f/f4/Hexagon.png');
}
.mon_box .mon_icon {
position: absolute;
top: 50%;
left: 50%;
background: 50% 50% no-repeat;
}
.mon_box .mon_icon div {
position: absolute;
}
.mon_box .mon_name {
display:block;
position: absolute;
left: 0;
right: 0;
bottom: 8px;
font: 12px sans-serif;
text-align: center;
}
.mon_box .mon_name.male {
color: #0de;
}
.mon_box .mon_name.female {
color: #f6a;
}

/* hex tiling */
.hex_row {
margin: 0px;
}
.hex_row .mon_box {
display:inline-block;
background: url('https://waapt.wiki.tropi.us/images/7/74/HexagonLead.png');
}
.hex_row + .hex_row:nth-of-type(odd) .mon_box {
background: url('https://waapt.wiki.tropi.us/images/2/28/HexagonB.png');
}
.hex_row + .hex_row:nth-of-type(even) .mon_box {
background: url('https://waapt.wiki.tropi.us/images/f/f4/Hexagon.png');
}
.hex_row .mon_box:nth-of-type(odd) {
margin-bottom: 70px;
}
.hex_row .mon_box:nth-of-type(even) {
margin-top: 70px;
}
.hex_row .mon_box + .mon_box {
margin-left: -41.5px;
}
.hex_row + .hex_row {
margin-top: -80px;
}

/* CSS enabling the Mon Info templates */

table.mon_info {
    float:right; 
    width:30%; 
    margin-left:8pt; 
    margin-bottom: 14pt; 
}

table.mon_info .key {
    width: 35%;
    text-align: left;
    padding: 0 4px;
}

table.mon_info .value {
    width: 60%;
    text-align: right;
    padding: 0 4px;
}

table.mon_info .quotebox {
    font-family: "Book Antiqua", serif;
    text-align: right;
    padding-left: 4px;
    padding-right: 8px;
    background-color: #e0e0e0;
}

/* CSS for the art gallery templates */

.artGallery {
    display: flex;
    flex-flow: row wrap;
    overflow: hidden;
}

.artNode {
    display: flex;
    flex-flow: column;
    justify-content: flex-end;
    background: #ccc;
    padding: 3px;
    margin: 3px;
    border-radius: 3px
}
.artNode_image {
    flex: 1;
    max-height: 300px;
    overflow-y: auto;
}
.artNode_description {
    flex: 0;
    background: #fff;
    border-radius: 2px;
    margin-top: 3px;
    padding: 1px 3px;
}

.artNode img {
    width: 300px;
    max-width: 100%;
    height: auto;
}
.artNode_span2 img {
    width: calc(2 * 300px);
}
.artNode_span3 img {
    width: calc(3 * 300px);
}
.artNode_span4 img {
    width: calc(4 * 300px);
}
.artNode_span5 img {
    width: calc(5 * 300px);
}
.artNode_span6 img {
    width: calc(6 * 300px);
}


/* experiment, trying to correct a small bork in search styling since the last backend update */

form#searchform input#searchInput { overflow: none; min-wdidth: 8em; }

/*
 * test version for WAAPT styles: EVIL, Spectrumizer, etc - VS
 * pending: offload to tropi.us assets, import css
 */

span.waapt.waapt-spoiler, 
#workskin .waapt.waapt-spoiler 
{
	border: 1px dotted gray; 
	padding: auto 0.2em; 
	color: white;  /* todo: verify for prefers-dark-mode */
	background-color: white !important;
}

span.waapt.evil, 
#workskin .waapt.evil 
{
	display: inline-block;
	padding: auto 1ex; 
	color: red;  /* todo: how does TVT do this for Dark Mode? */
	background-color: black;
}

span.waapt.spectrum, 
#workskin .waapt.spectrum
{
	background-image: linear-gradient(60deg, red, orange, yellow, green, teal, blue, purple);
	background-clip: text;
	text-fill-color: transparent;
	color: transparent;
	text-shadow: ipx 1px rgba(92, 92, 92, 0.5);
}