MediaWiki:Common.css: Difference between revisions
From Future Of Mankind
No edit summary |
No edit summary |
||
| Line 75: | Line 75: | ||
line-height: 4em; | line-height: 4em; | ||
font-weight: bold; | font-weight: bold; | ||
} | |||
// Colors | |||
$color-red: #ff6666; | |||
$color-white: #fff; | |||
$color-black: #2f2f2f; | |||
// Fonts | |||
$font-primary: Lato, sans-serif; | |||
html, body { | |||
margin: 0; | |||
padding: 0; | |||
width: 100%; | |||
height: 100%; | |||
}// html, body | |||
strong { | |||
font-weight: bold; | |||
} | |||
em { | |||
color: lighten( $color-black, 40% ); | |||
font-style: italic; | |||
} | |||
.tooltip-example { | |||
@include transform( translateY(-50%) ); | |||
position: absolute; | |||
text-align: center; | |||
top: 50%; | |||
width: 100%; | |||
}// .tooltip-example | |||
// Tooltip Styles | |||
.tooltip { | |||
display: inline; | |||
@include perspective(500px); | |||
&:hover { | |||
cursor: pointer; | |||
.tooltip__content { | |||
@include transform( translate3d(-50%,-10%,0) ); | |||
opacity: 1; | |||
pointer-events: auto; | |||
} | |||
} | |||
&__content { | |||
@include transition( all 200ms ease ); | |||
@include transform( translate3d(-50%,0%,0) ); | |||
@include transform-origin( 0 10px ); | |||
background-color: $color-white; | |||
border-radius: 4px; | |||
color: $color-black; | |||
display: block; | |||
font-size: 14px; | |||
font-weight: normal; | |||
left: 50%; | |||
opacity: 0; | |||
padding: 10px 20px; | |||
pointer-events: none; | |||
position: absolute; | |||
text-align: left; | |||
bottom: 100%; | |||
&:before { | |||
border-color: transparent; | |||
border-top-color: $color-white; | |||
border-style: solid; | |||
border-width: 10px; | |||
content: ' '; | |||
display: block; | |||
height: 0; | |||
left: 50%; | |||
margin-left: -10px; | |||
position: absolute; | |||
bottom: -20px; | |||
width: 0; | |||
}// .tooltip__content:after | |||
&:after { | |||
content: ' '; | |||
display: block; | |||
position: absolute; | |||
bottom: -20px; | |||
left: 0; | |||
width: 100%; | |||
height: 20px; | |||
} | |||
&:hover { | |||
@include transform( rotateX(0deg) translate3d(-50%,-10%,0) ); | |||
opacity: 1; | |||
pointer-events: auto; | |||
} | } | ||
Revision as of 14:58, 12 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;
}
// Colors
$color-red: #ff6666;
$color-white: #fff;
$color-black: #2f2f2f;
// Fonts
$font-primary: Lato, sans-serif;
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}// html, body
strong {
font-weight: bold;
}
em {
color: lighten( $color-black, 40% );
font-style: italic;
}
.tooltip-example {
@include transform( translateY(-50%) );
position: absolute;
text-align: center;
top: 50%;
width: 100%;
}// .tooltip-example
// Tooltip Styles
.tooltip {
display: inline;
@include perspective(500px);
&:hover {
cursor: pointer;
.tooltip__content {
@include transform( translate3d(-50%,-10%,0) );
opacity: 1;
pointer-events: auto;
}
}
&__content {
@include transition( all 200ms ease );
@include transform( translate3d(-50%,0%,0) );
@include transform-origin( 0 10px );
background-color: $color-white;
border-radius: 4px;
color: $color-black;
display: block;
font-size: 14px;
font-weight: normal;
left: 50%;
opacity: 0;
padding: 10px 20px;
pointer-events: none;
position: absolute;
text-align: left;
bottom: 100%;
&:before {
border-color: transparent;
border-top-color: $color-white;
border-style: solid;
border-width: 10px;
content: ' ';
display: block;
height: 0;
left: 50%;
margin-left: -10px;
position: absolute;
bottom: -20px;
width: 0;
}// .tooltip__content:after
&:after {
content: ' ';
display: block;
position: absolute;
bottom: -20px;
left: 0;
width: 100%;
height: 20px;
}
&:hover {
@include transform( rotateX(0deg) translate3d(-50%,-10%,0) );
opacity: 1;
pointer-events: auto;
}