Jump to content

MediaWiki:Centralnotice-template-Inspire know

From Meta, a Wikimedia project coordination wiki

<style type="text/css">

  1. centralNotice.collapsed #{{{banner}}} {
display: none;

}

  1. {{{banner}}} {
border-left: 15px solid #5a5 !important;
border: solid 1px #aaaaaa;
border-radius: 0.2em;
box-shadow: inset 0 -0.2em 0 0 rgba(0,0,0,0.2);
margin-top: 0.5em !important;
margin-bottom: 1.5em;
position: relative;
cursor: pointer;
width: 99%;
display: none;

}

body.ltr .{{{banner}}} { border-left: 15px solid #5a5; } body.rtl .{{{banner}}} { border-right: 15px solid #5a5; }

  1. {{{banner}}} a.cn-full-banner-click {
display: block;
height: 100%;
width: 100%;
cursor: pointer;
text-decoration: none;

}

  1. {{{banner}}}-image-cell {
display: table-cell;
vertical-align: middle;
padding: 0 1em;

}

  1. {{{banner}}}-image-cell img {
width: 60px;
padding: 5px;

}

  1. {{{banner}}} #{{{banner}}}-message {
display: table-cell;
padding: 1em 0;
vertical-align: middle;
text-align: left;
font-size: 1.2em;
color: #000 !important;
line-height: 1.2em;
font-family: sans-serif;

}

body.rtl #{{{banner}}}-message {

text-align: right !important;

}

  1. {{{banner}}} #{{{banner}}}-message:hover {
text-decoration: underline;

}

.{{{banner}}}-close-cell {

vertical-align: top;
position: absolute;
top: 0;
right: 0;

} .{{{banner}}}-close {

padding: 2px;
opacity: 0.6;
cursor: pointer;

} body.rtl .{{{banner}}}-close {

float: left;

}

.{{{banner}}}-close:hover {

opacity: 1;

}

  1. {{{banner}}} div#cn-toggle-box {
position: absolute;
z-index: 98;
top: 5px;
right: 5px;

}

  1. {{{banner}}} div#cn-translation-link {
position:absolute;
z-index:50;
bottom: 5px;
right: 5px;
font-size: 0.7em;
color: #000;

}

  1. cn-translation-link a,
  2. cn-translation-link a:link,
  3. cn-translation-link a:visited,
  4. cn-translation-link a:hover {
color: #000;

}

body.rtl div#cn-translation-link {

right: auto !important;
left: 5px !important;

}

@media screen and (max-width: 600px) {

  1. {{{banner}}} #{{{banner}}}-message {
padding: 0.5em 0 2em;
font-size: 1.1em;

}

  1. {{{banner}}} {
border-left: solid 1px #aaaaaa !important;
border-top: 15px solid #872937 !important;

}

}

</style>

   <a class="cn-full-banner-click" href="https://meta.wikimedia.org/wiki/Special:MyLanguage/Grants:IdeaLab/Inspire">
           <img src="//upload.wikimedia.org/wikipedia/commons/4/4c/Inspire_Campaign_Knowledge_Networks_Logo.png"/>

{{{inspire_know-text1}}}

{{{inspire_know-text2}}}

           <img class="{{{banner}}}-close" border="0" src="//upload.wikimedia.org/wikipedia/commons/c/cb/Close_x_-_black.png" alt="close" onclick="mw.centralNotice.hideBanner(); return false;">
   </a>

<script> $(document).ready(function() {

 if (mw.config.get( 'wgUserEditCount' ) >= 75) {
   $('#{{{banner}}}').show();
 } 

});

</script>