MediaWiki:Common.css: Difference between revisions
From Future Of Mankind
No edit summary |
No edit summary |
||
| Line 113: | Line 113: | ||
border-left: 10px solid transparent; | border-left: 10px solid transparent; | ||
border-right: 10px solid transparent; | border-right: 10px solid transparent; | ||
} | |||
.wrapper { | |||
text-transform: uppercase; | |||
background: #ececec; | |||
color: #555; | |||
cursor: help; | |||
font-family: "Gill Sans", Impact, sans-serif; | |||
font-size: 20px; | |||
margin: 100px 75px 10px 75px; | |||
padding: 15px 20px; | |||
position: relative; | |||
text-align: center; | |||
width: 200px; | |||
-webkit-transform: translateZ(0); /* webkit flicker fix */ | |||
-webkit-font-smoothing: antialiased; /* webkit text rendering fix */ | |||
} | |||
.wrapper .tooltip { | |||
background: #1496bb; | |||
bottom: 100%; | |||
color: #fff; | |||
display: block; | |||
left: -20px; | |||
margin-bottom: 15px; | |||
opacity: 0; | |||
padding: 20px; | |||
pointer-events: none; | |||
position: absolute; | |||
width: 100%; | |||
-webkit-transform: translateY(10px); | |||
-moz-transform: translateY(10px); | |||
-ms-transform: translateY(10px); | |||
-o-transform: translateY(10px); | |||
transform: translateY(10px); | |||
-webkit-transition: all .25s ease-out; | |||
-moz-transition: all .25s ease-out; | |||
-ms-transition: all .25s ease-out; | |||
-o-transition: all .25s ease-out; | |||
transition: all .25s ease-out; | |||
-webkit-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28); | |||
-moz-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28); | |||
-ms-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28); | |||
-o-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28); | |||
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28); | |||
} | |||
/* This bridges the gap so you can mouse into the tooltip without it disappearing */ | |||
.wrapper .tooltip:before { | |||
bottom: -20px; | |||
content: " "; | |||
display: block; | |||
height: 20px; | |||
left: 0; | |||
position: absolute; | |||
width: 100%; | |||
} | |||
/* CSS Triangles - see Trevor's post */ | |||
.wrapper .tooltip:after { | |||
border-left: solid transparent 10px; | |||
border-right: solid transparent 10px; | |||
border-top: solid #1496bb 10px; | |||
bottom: -10px; | |||
content: " "; | |||
height: 0; | |||
left: 50%; | |||
margin-left: -13px; | |||
position: absolute; | |||
width: 0; | |||
} | |||
.wrapper:hover .tooltip { | |||
opacity: 1; | |||
pointer-events: auto; | |||
-webkit-transform: translateY(0px); | |||
-moz-transform: translateY(0px); | |||
-ms-transform: translateY(0px); | |||
-o-transform: translateY(0px); | |||
transform: translateY(0px); | |||
} | |||
/* IE can just show/hide with no transition */ | |||
.lte8 .wrapper .tooltip { | |||
display: none; | |||
} | |||
.lte8 .wrapper:hover .tooltip { | |||
display: block; | |||
} | } | ||
Revision as of 11:37, 14 March 2022
/* Changes the default font used for MediaWiki to Arial (does not include headings or monospaced text): */
body {
font-family: Arial
}
/* Changes the default font used for MediaWiki headings to Noto Serif: */
#content h1 {font-family: "Noto Serif", serif}
#mw-site-navigation .sidebar-chunk h3, #mw-related-navigation .sidebar-chunk h3 {font-size:1.3em}
.toctitle {text-align:center; font-size:1.2em; line-height:2em}
.mw-body .toctitle h2 {font-family:Arial; font-weight:bold}
.toctogglespan {display:none}
.toc ul {line-height:1.4em}
.toc {border:1px solid #a2a9b1; padding:0 12px}
/* mouse over link */
a:hover {text-decoration:underline}
/* selected link */
a:active {text-decoration:underline; color:orange}
ul > li:nth-child(2) > div:last-child, li:nth-child(4) > div:last-child {display:none}
ul > li:nth-child(4) > div:nth-child(2) {display:none}
ul > li:nth-child(3) > div:last-child {display:none}
.shadow:hover {box-shadow:0 0 11px rgba(37,37,37,0.3)}
.scale-up:hover {transform:scale(1.02)}
.responsive-image img {width:100%; height:auto}
.thumbinner img {border:1px solid #ddd}
.colourize img {transition:transform 0.5s, filter 1.5s ease-in-out; filter:grayscale(100%); -webkit-filter:grayscale(100%)}
.colourize:hover img {filter:none; -webkit-filter:grayscale(0)}
.FOMclock {
margin: 0 auto;
}
.FOMclock ul {
margin: 0 auto;
padding: 0;
text-align: inline
}
.FOMclock ul li {
display: inline;
}
.FOMdate {
display: inline;
}
.DateRange,
.DateDiv {
display: none;
}
h4{
display: inline-block;
}
table {border-spacing:1.5em 0; margin:0 -1.5em}
td, th, div {vertical-align:top; line-height:1.36em}
.blockquote div {margin:0 3em}
/*
#btnHideEnglish, #btnHideGerman {
cursor: pointer;
}
*/
/* The following class is used on the Test page. */
tr.contactperson td {
background-color: cyan;
line-height: 4em;
font-weight: bold;
}
.random-item {
width: 5rem;
margin: 0 .5rem;
padding: .5rem 0;
border-radius: .5rem;
background: #222;
text-align: center;
vertical-align: middle;
}
.tooltips {
position: relative;
}
.tooltips:hover::before {
content: "";
position: absolute;
}
.tooltips.tooltips-top:hover::before {
bottom: calc(100% + .6rem - 5px);
left: calc(50% - 10px);
border-top: 5px solid var(--tooltip-bg);
border-left: 10px solid transparent;
border-right: 10px solid transparent;
}
.wrapper {
text-transform: uppercase;
background: #ececec;
color: #555;
cursor: help;
font-family: "Gill Sans", Impact, sans-serif;
font-size: 20px;
margin: 100px 75px 10px 75px;
padding: 15px 20px;
position: relative;
text-align: center;
width: 200px;
-webkit-transform: translateZ(0); /* webkit flicker fix */
-webkit-font-smoothing: antialiased; /* webkit text rendering fix */
}
.wrapper .tooltip {
background: #1496bb;
bottom: 100%;
color: #fff;
display: block;
left: -20px;
margin-bottom: 15px;
opacity: 0;
padding: 20px;
pointer-events: none;
position: absolute;
width: 100%;
-webkit-transform: translateY(10px);
-moz-transform: translateY(10px);
-ms-transform: translateY(10px);
-o-transform: translateY(10px);
transform: translateY(10px);
-webkit-transition: all .25s ease-out;
-moz-transition: all .25s ease-out;
-ms-transition: all .25s ease-out;
-o-transition: all .25s ease-out;
transition: all .25s ease-out;
-webkit-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
-moz-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
-ms-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
-o-box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28);
}
/* This bridges the gap so you can mouse into the tooltip without it disappearing */
.wrapper .tooltip:before {
bottom: -20px;
content: " ";
display: block;
height: 20px;
left: 0;
position: absolute;
width: 100%;
}
/* CSS Triangles - see Trevor's post */
.wrapper .tooltip:after {
border-left: solid transparent 10px;
border-right: solid transparent 10px;
border-top: solid #1496bb 10px;
bottom: -10px;
content: " ";
height: 0;
left: 50%;
margin-left: -13px;
position: absolute;
width: 0;
}
.wrapper:hover .tooltip {
opacity: 1;
pointer-events: auto;
-webkit-transform: translateY(0px);
-moz-transform: translateY(0px);
-ms-transform: translateY(0px);
-o-transform: translateY(0px);
transform: translateY(0px);
}
/* IE can just show/hide with no transition */
.lte8 .wrapper .tooltip {
display: none;
}
.lte8 .wrapper:hover .tooltip {
display: block;
}