Jump to content

MediaWiki:Centralnotice-template-WLAfrica 2016 Mobile

From Meta, a Wikimedia project coordination wiki

<style> .frbanner {

   position: relative;
   overflow: hidden;
   background: white;
   border: 1px solid rgba(255, 95, 95, 0.6);
   margin-bottom: 1em;
   cursor: pointer;
   color: #222;
   font-weight: 500;
   box-shadow: 0.1em 0.1em 0.6em 0 rgba(255, 95, 95, 0.6);

}

  1. frbanner-main {
   display: table;
   width: 100%;
   height: 80px; /* need to set height for height 100% to work on elements within it */

}

.frbanner-message-container, .frbanner-form-container {

   background: white;
   display: table-cell;
   height: 100%;
   vertical-align: middle;

}

/* --- Main message --- */ .frbanner-message-container img {

   position: absolute;
   right: .0em;
   top: .0em;
   opacity: 0.9;
   height: 90px;
   z-index: 0;

}

.frbanner-message {

   position: relative;
   margin: 0;
   z-index: 1;
   color: #4D4D4D;
   line-height: 1.2;
   font-weight: bold;
   padding: 11px 10px 11px 10px;

}

@media (min-width: 1200px) {

   .frbanner-message { 
        padding: 11px 180px 11px 10px;
   } 

}

body.rtl .frbanner-message {

   padding: 11px 40px 11px 10px;
   background-position: right 10px top 10px;

}

.frbanner-message p {

   margin: 0;
   font-family: Arial, san-serif;
   font-style: bold;
   font-size: 14px;
   opacity: 1;

} @media (min-width: 1200px) {

   .frbanner-message p { 
        font-size: 16px; 
   } 

}

@media (min-width: 1300px) { .frbanner-message p { font-size: 17px; } }

@media (min-width: 1400px) { .frbanner-message p { font-size: 18px; } }

.frbanner-greeting {

   font-style: italic;

}

/* --- Main banner text --- */ .frbanner-form-container {

   width: 13%;
   padding: .7em 1.25em .7em .9em;

}

body.rtl .frbanner-form-container {

   padding: 1.65em .5em .35em .2em;

}

.frbanner-form-container img {

   opacity: 1;
   display: block;
   margin: 0 auto;

}

/* --- Close Options --- */

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

}

/* --- Full Banner Link --- */

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

}

  1. {{{banner}}} a.cn-full-banner-click:hover {
text-decoration: underline

}

.button {

   background-color: #4CAF50; /* Green */
   border: none;
   border-radius: 4px;
   color: white;
   padding: 10px 16px;
   text-align: center;
   font-weight: bold;
   text-decoration: none;
   font-size: 16px;
   margin: 4px 2px;
   -webkit-transition-duration: 0.4s; /* Safari */
   transition-duration: 0.4s;
   cursor: pointer;
   z-index: 999;

}

@media (min-width: 1200px) { .button {display: inline-block; } } @media (max-width: 1200px) { .button {width: 30%; } } @media (max-width: 1200px) { .button {margin: auto; margin-top: 10px; } }

/* --- Buttons --- */

  1. {{{banner}}} a.buttonlink {
 cursor: pointer;
 text-decoration: none;
 color: black;

}

  1. {{{banner}}} a.buttonlink:hover {
 color: white;

}

.button1 {

   background-color: #F1605F;
   color: white;
   position: static;
   top: 45%;
   right: 30px;
   transform: translateY(-35%);
   min-width: 110px;

}

@media (min-width: 1200px) { .button1 { position:absolute; } }

.button1:hover {

background-color: #10B09E;

} </style>

 <a class="cn-full-banner-click external text"" href="//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Africa_2016/Participate/{{{lang}}}">
         <img src="//upload.wikimedia.org/wikipedia/commons/thumb/3/35/Wiki-Loves-Africa-logo.png/120px-Wiki-Loves-Africa-logo.png" alt="Wikimedia Blog">

{{{text1}}}

</a>

<a class="buttonlink" href="//commons.wikimedia.org/wiki/Commons:Wiki_Loves_Africa_2016/Participate/{{{lang}}}">
{{{text2}}}
</a>
     <a href="#" title="Cerrar" onclick="hideBanner();return false;"><img border="0" src="//upload.wikimedia.org/wikipedia/foundation/2/20/CloseWindow19x19.png" alt="Cerrar" /></a>