MediaWiki:Common.css: Difference between revisions
From The Maceys in California
Lynn Macey (talk | contribs) No edit summary |
Lynn Macey (talk | contribs) No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 72: | Line 72: | ||
@keyframes type{ | @keyframes type{ | ||
from { width: 0; } | from { width: 0; } | ||
} | |||
/* 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; | |||
} | |||
#toc { | |||
position: fixed; | |||
right: 0; | |||
top: 7em; /* 5em is height of header, 6em brings just under */ | |||
/* bottom: 5em; /* 5em puts us above the footer; not bad but too low when TOC is collapsed */ | |||
z-index: 10000; /* Ensure we float above the header, etc. */ | |||
/* Add opacity (translucency) */ | |||
background-color: rgb(249, 249, 249); | |||
background-color: rgba(249, 249, 249, 0.9); /* Higher opacity (last arg) means less transparency */ | |||
} | |||
/* Ensure the TOC height doesn't take over the screen; percentages may be higher than view port, so we use pixels */ | |||
#toc > ul { | |||
max-height: 350px; | |||
overflow: auto; | |||
} | |||
.toctoggle { | |||
float: right; | |||
} | |||
/* Change default table font */ | |||
.my-custom-table { | |||
font-family: "Verdana", sans-serif; | |||
font-size: 14px; | |||
} | } | ||
Latest revision as of 22:28, 28 August 2026
/* CSS placed here will be applied to all skins */
/* Added for Interactive Check box */
.listCheckbox {
cursor: pointer;
color: #FFFFFF;
border-radius: 50%;
height: 1.8rem;
width: 1.8rem;
line-height: 1.8rem;
text-align: center;
font-size: 1.5rem;
border: 1px solid #00AA00;
display: inline-block;
}
@keyframes checkAnimation {
0% {
transform: rotate(-30deg);
background-color: rgba(1, 1, 1, 0);
color: rgba(1, 1, 1, 0);
}
100% {
background-color: #00AA00;
color: #FFFFFF;
}
}
.listCheckboxUnchecked {
background-color: rgba(1, 1, 1, 0);
color: rgba(0, 0, 0, 0);
}
.listCheckboxChecked {
animation: checkAnimation 0.5s;
background-color: #00AA00;
color: #FFFFFF;
}
/* For the Note class */
.Alp-Note a { text-decoration: underline; }
/* Simple float the TOC to the right */
/*#toc {float:right;margin:0 0 1em 1em;position:fixed;top:150px;right:10px;}*/
/* This small CSS code shows redirects and desambiguation pages with a color code. */
.mw-disambig {
background-color:#AFEEEE;
}
.mw-redirect {
background-color:wheat;
}
/* CSS Typing Text
*
* @author: Unknown
* current version crafted together by [[User:Christharp]].
*
* <div class="typing">Welcome to Wikipedia, the free encyclopedia that anyone can edit.</div>
*/
.typing{
margin: 10px 0 0 10px;
width: 1000px;
white-space:nowrap;
overflow:hidden;
animation: type 18s steps(100, end);
}
@keyframes type{
from { width: 0; }
}
/* 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;
}
#toc {
position: fixed;
right: 0;
top: 7em; /* 5em is height of header, 6em brings just under */
/* bottom: 5em; /* 5em puts us above the footer; not bad but too low when TOC is collapsed */
z-index: 10000; /* Ensure we float above the header, etc. */
/* Add opacity (translucency) */
background-color: rgb(249, 249, 249);
background-color: rgba(249, 249, 249, 0.9); /* Higher opacity (last arg) means less transparency */
}
/* Ensure the TOC height doesn't take over the screen; percentages may be higher than view port, so we use pixels */
#toc > ul {
max-height: 350px;
overflow: auto;
}
.toctoggle {
float: right;
}
/* Change default table font */
.my-custom-table {
font-family: "Verdana", sans-serif;
font-size: 14px;
}
