MediaWiki:Centralnotice-template-WSC Translations
<style>
@font-face {
font-family: 'Montserrat'; font-style: normal; src: local('Montserrat'), local('Montserrat'), url(https://upload.wikimedia.org/wikipedia/donate/c/cd/Montserrat.woff2) format('woff2');}
/* Main banner container. Banner: background gradient, border colour and width and adding a margin between banner and article header*/ /* Important -- background gradient -- If you change one you must change all*/ .cnotice {
position: relative; overflow: hidden; background: #FCFCFC; border: 1px solid #999999; border-radius: 2px; margin-bottom: 1em; cursor: pointer; color: #222; font-weight: 500;
}
/* Sets the minimum banner height. If img + logo-container margins > height. Banner will be larger*/
- cnotice-main {
display: table; width: 100%;
}
/*MOBILE - Adjust mobile height of banner*/ body.skin-minerva #cnotice-main {
height: 100px;
}
/*IMPORTNT - don't touch*/ .cnotice-message-container, .cnotice-logo-container, .cnotice-misc-container {
display: table-cell; height: 100%; vertical-align: middle;
}
/* --- Main message --- */ .cnotice-message {
position: relative; margin: 0; line-height: 1.2; padding: 5px 5px 5px 5px;
}
@media (min-width: 1200px) {
.cnotice-message { padding: 5px 0px 5px 30px; }
}
body.rtl .cnotice-message {
padding: 5px 5px 5px 5px;
}
.cnotice-message p {
margin: 0; color: #36b; font-family: Arial, sans-serif; font-weight: bold; font-size: 100%; opacity: 1; text-align: center; padding-top: 10px; padding-bottom: 10px;
}
@media (min-width: 1200px) {
.cnotice-message p { font-size: 120%;}
}
/* --- Logo Image text --- */
.cnotice-logo-container {
width: 10%;
}
body.rtl .cnotice-logo-container {
padding: 0.0em .25em 0.0em .9em;
}
.cnotice-message-container img {
opacity: 1; margin-right: 10px;
}
/*Misc containter stuff starts here*/ .cnotice-misc-container {
width: 10%; padding-right: 40px;
}
/*Adjusts for screen size */ @media (min-width: 1200px) {
.cnotice-misc-container { padding-right: 40px; }
}
/*Detects and adjusts for mobile skin */ body.skin-minerva .cnotice-misc-container {
padding-right: 10px;
}
/* --- Close Options --- */
- cnotice-toggle-box-options {
display: table-cell; font-size: .8em; text-transform: uppercase; width: 38px; height: 38px; background: #eee; -moz-border-radius: 19px; -webkit-border-radius: 19px; border-radius: 19px; vertical-align: middle;
}
- cnotice-toggle-box {
cursor: pointer; position: absolute; top: 2px; right: 3px; z-index: 1;
}
body.rtl #cnotice-toggle-box {
left: 3px; right: unset;
}
- cnotice-toggle-box:hover { opacity: 1; }
- cnotice-toggle-box-x {
background: url(https://upload.wikimedia.org/wikipedia/commons/c/ce/Black_close_x.svg) no-repeat center center; width: 100%; height: 50%;
}
body.rtl #cnotice-toggle-box-x {
float: left;
}
/* --- Full Banner Link --- */ .cnotice a.cnotice-full-banner-click {
display: block; height: 100%; width: 100%; cursor: pointer; text-decoration: none;
}
.cnotice a.cnotice-full-banner-click:hover {
text-decoration: underline;
}
.cnotice-button {
border: none; display: inline-block; border: solid 2px #36c; border-radius: 4px; color: white; padding: 5px 5px; text-align: center; font-weight: bold; text-decoration: none; font-size: 14px; margin: 4px 2px; -webkit-transition-duration: 0.4s; /* Safari */ transition-duration: 0.4s; cursor: pointer; z-index: 1; min-width: 80px;
}
@media (min-width: 1100px) {
.cnotice-button { display: inline-block; min-width: 130px; width: 25%; margin: auto; }
}
/* --- Buttons --- */ .cnotice a.cnotice-buttonlink {
cursor: pointer; text-decoration: none; color: black;
}
.cnotice a.cnotice-buttonlink:hover {
color: white;
}
.cnotice-button1 {
background-color: #36c; color: #fff;
}
.rtl .cnotice-button1 {
left: 23px; right: auto; margin-left: 20px;
}
.cnotice-button1:hover {
background-color: #447ff5;
}
.cnotice-button1:active {
background-color: #2a4b8d;
}
- cnotice-translation-link {
position: absolute; right: 65px; bottom: 0px; font-size: 0.8em; white-space: nowrap;
}
- cnotice-translation-link:hover {
text-decoration: underline;
}
.rtl #cnotice-translation-link {
text-align: left; left: 95px;
} </style>
<script type="text/javascript"> var cn_georewrite = function() {
url = ; var text = ; switch(Geo.country) { case 'AT': url = 'https://commons.wikimedia.org/wiki/Commons:Wiki_Science_Competition_2017_in_Austria'; if(mw.config.get('wgUserLanguage') === 'de'){ text = 'Österreich sucht Dein Wissenschaftsbild für die Wiki Science Competition 2017!'; } break; case 'AU': url = 'https://commons.wikimedia.org/wiki/Commons:Wiki_Science_Competition_2017_in_Australia'; break; case 'BR': url = 'http://wikimedianobrasil.org/wiki-ciencia-2017/'; break; case 'BG': url = 'https://commons.wikimedia.org/wiki/Commons:Wiki_Science_Competition_2017_in_Bulgaria'; break; case 'CL': url = 'https://wikiciencia.wikimedia.cl/'; break; case 'CZ': url = 'https://commons.wikimedia.org/wiki/Commons:Czech_Wiki_Science_Competition_2017_in_the_Czech_Republic'; break; case 'EE': url = 'https://et.wikipedia.org/wiki/Vikipeedia:Teadusfoto_2017'; break; case 'GE': url = 'https://commons.wikimedia.org/wiki/Commons:Wiki_Science_Competition_2017_in_Georgia'; break; case 'IE': url = 'http://wikimedia.ie/programme/wiki-science-2017/'; break; case 'IT': url = 'https://commons.wikimedia.org/wiki/Commons:Wiki_Science_Competition_2017_in_Italy'; break; case 'LV': url = 'https://commons.wikimedia.org/wiki/Commons:Wiki_Science_Competition_2017_in_Latvia?uselang=pl'; break; case 'PL': url = 'https://commons.wikimedia.org/wiki/Commons:Wiki_Science_Competition_2017_in_Poland?uselang=pl'; break; case 'ES': url = 'https://commons.wikimedia.org/wiki/Commons:Wiki_Science_Competition_2017_in_Spain'; break; case 'US': url = 'https://en.wikipedia.org/wiki/Wikipedia:Wiki_Science_Competition_2017_in_the_United_States'; break; case 'RS': url = 'https://commons.wikimedia.org/wiki/Commons:Wiki_Science_Competition_2017_in_Serbia'; break; case 'SA': url = 'https://commons.wikimedia.org/wiki/Commons:Wiki_Science_Competition_2017_in_Saudi_Arabia'; break; case 'TH': url = 'https://commons.wikimedia.org/wiki/Commons:Wiki_Science_Competition_2017_in_Thailand'; break; case 'RU': url = 'https://ru.wikimedia.org/wiki/%D0%9A%D0%BE%D0%BD%D0%BA%D1%83%D1%80%D1%81_%D0%BD%D0%B0%D1%83%D1%87%D0%BD%D1%8B%D1%85_%D1%84%D0%BE%D1%82%D0%BE%D0%B3%D1%80%D0%B0%D1%84%D0%B8%D0%B9_2017'; break; case 'UA': url = 'https://commons.wikimedia.org/wiki/Commons:Wiki_Science_Competition_2017_in_Ukraine'; break; } if(url!=) $("div#WSC_Translations a.cnotice-full-banner-click").attr("href",url); if(text!=) $("div#WSC_Translations #cnotice-text1").text(text);
} $(document).ready(cn_georewrite); </script>
<a class="cnotice-full-banner-click external text" href="http://www.wikisciencecompetition.org/contest/">
</a>
<a href="#" title="Hide" onclick="mw.centralNotice.hideBanner();return false;"><img border="0" src="//upload.wikimedia.org/wikipedia/foundation/2/20/CloseWindow19x19.png" alt="Hide" /></a>