MediaWiki:Centralnotice-template-Leichte Sprache Banner iPad: Unterschied zwischen den Versionen

Aus Hurraki - Wörterbuch für Leichte Sprache
Wechseln zu: Navigation, Suche
Zeile 5: Zeile 5:
  
  
----------
+
----------<style>
<!-- For guidance or help with this banner, contact Seddon (WMF) -->
 
<!-- This banners is set up to run to loggedin users only -->
 
<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, border colour and width and adding a margin between banner and article header*/
 
.cnotice {
 
    position: relative;
 
    overflow: hidden;
 
    background: #f8f9fa;
 
    border: 1px solid #a2a9b1;
 
    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%;
 
    height: 80px; /* need to set height for height 100% to work on elements within it */
 
}
 
 
 
/*MOBILE - Adjust mobile height of banner*/
 
body.skin-minerva #cnotice-main {
 
    height: 100px;
 
}
 
 
 
/*IMPORTANT - 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: 15px 0px 11px 30px;
 
    }
 
}
 
 
 
body.rtl .cnotice-message {
 
    padding: 5px 5px 5px 5px;
 
}
 
 
 
.cnotice-message p {
 
    margin: 0;
 
    color: #222;
 
    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 .25em 0 .9em;
 
}
 
 
 
.cnotice-logo-container img {
 
    opacity: 1;
 
    display: block;
 
    margin-left: 15%;
 
    margin-top: 2px;
 
    margin-bottom: 1px;
 
}
 
 
 
/*Misc containter stuff starts here*/
 
.cnotice-misc-container {
 
    width: 10%;
 
    padding-right: 40px;
 
}
 
 
 
/*Detects and adjusts for mobile skin */
 
body.skin-minerva .cnotice-misc-container {
 
    padding-right: 10px;
 
}
 
 
 
 
 
 
/* --- Close Options --- */
 
/* --- Close Options --- */
  
Zeile 121: Zeile 14:
 
     width: 38px;
 
     width: 38px;
 
     height: 38px;
 
     height: 38px;
 +
 +
    background: #eee;
 +
    -moz-border-radius: 19px;
 +
    -webkit-border-radius: 19px;
 
     border-radius: 19px;
 
     border-radius: 19px;
 
     vertical-align: middle;
 
     vertical-align: middle;
Zeile 131: Zeile 28:
 
     right: 3px;
 
     right: 3px;
 
     z-index: 1;
 
     z-index: 1;
    opacity: .8;
 
 
}
 
}
  
Zeile 141: Zeile 37:
 
#cnotice-toggle-box:hover {  
 
#cnotice-toggle-box:hover {  
 
     opacity: 1;
 
     opacity: 1;
}
 
 
/* --- 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 {
 
    display: inline-block;
 
    border: 2px solid #36c;
 
    border-radius: 2px;
 
    color: #fff;
 
    padding: 5px 5px;
 
    text-align: center;
 
    font-weight: bold;
 
    text-decoration: none;
 
    font-size: 14px;
 
    margin: 4px 2px;
 
    -moz-transition-duration: 100ms; /* Firefox */
 
    -webkit-transition-duration: 100ms; /* Safari */
 
    transition-duration: 100ms;
 
    cursor: pointer;
 
    z-index: 1;
 
    min-width: 80px;
 
}
 
 
@media (min-width: 1100px) {
 
    .cnotice-button {
 
        min-width: 110px;
 
        width: 25%;
 
        margin: auto;
 
    }
 
}
 
 
/* --- Buttons --- */
 
.cnotice a.cnotice-buttonlink {
 
    cursor: pointer;
 
    text-decoration: none;
 
    color: #000;
 
}
 
 
.cnotice a.cnotice-buttonlink:hover {
 
    color: #fff;
 
}
 
 
.cnotice-button1 {
 
    background-color: #36c;
 
    border-color: #36c;
 
    color: #fff;
 
}
 
 
.cnotice-button1:hover {
 
    background-color: #447ff5;
 
    border-color: #447ff5;
 
}
 
 
.cnotice-button1:active {
 
    background-color: #2a4b8d;
 
    border-color: #2a4b8d;
 
}
 
 
.rtl .cnotice-button1 {
 
    left: 23px;
 
    right: auto;
 
    margin-left: 20px;
 
}
 
 
#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: 65px;
 
 
}
 
}
 
</style>
 
</style>
 +
<div id="wda-banner {{{banner}}}" class="plainlinks" style="background: #990000; text-align: justify; padding:7px;">
 +
  <div class="nomobile" style="float:left; width: 20%; margin-top: 20px; margin-left: 20px; text-align:center; color: #fff; font-weight:bold; font-size:140%; font-family: 'Space Mono', 'Times New Roman', serif;">Wissen fängt <br />mit <img alt="W" src="//upload.wikimedia.org/wikipedia/commons/thumb/7/7a/Wikipedia-W-bold-White.svg/38px-Wikipedia-W-bold-White.svg.png" width="38" height="38"> an.</div><div style="float:right;"><a href="https://de.wikipedia.org/wiki/Wikipedia:WikiCon_2018/Anmeldung"><img alt="WikiCon 2018" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/6a/WikiCon-Logo-2018-red-square_%28quer%29.png/240px-WikiCon-Logo-2018-red-square_%28quer%29.png" width="240" height="115"></a></div><br /><div style="max-width:1280px; margin: 12px auto; text-align: center; font-size: 14pt; position: relative; font-family: 'Space Mono', 'Times New Roman', serif;"><a href="https://de.wikipedia.org/wiki/Wikipedia:WikiCon_2018/Anmeldung" style="color: white;">WikiCon&nbsp;2018: 5.&nbsp;– 7.&nbsp;Oktober 2018 in St.&nbsp;Gallen<br />&gt;&gt;&nbsp;Jetzt&nbsp;anmelden!&nbsp;&lt;&lt;</a></div><div style="clear: both;">
 +
  </div>
  
<div class="cnotice" id="{{{banner}}}">
+
  <div id="cnotice-toggle-box"> <a href="#" title="{{int:centralnotice-shared-hide}}" onclick="mw.centralNotice.hideBanner();return false;"><img border="0" src="//upload.wikimedia.org/wikipedia/donate/a/ac/Close_oojs.png" alt="{{int:centralnotice-shared-hide}}" /></a>  
    <a class="cnotice-full-banner-click external text" href="//de.wikipedia.org/wiki/Wikipedia:WikiDACH/2018/Anmeldung">
+
  </div>
        <div id="cnotice-main">
 
            <div class="cnotice-logo-container">
 
                <img src="//upload.wikimedia.org/wikipedia/commons/e/e7/2018_05_16_barcamp_meets_Logo_Kopie_querformat.svg" alt="Banner logo" width="188px" height="55px">
 
            </div>
 
            <div class="cnotice-message-container">
 
                <div class="cnotice-message">
 
                    <p>Erfahre mehr über die Wikipedia und triff Beteiligte beim Barcamp WikiDACH am 22. + 23. September in Heidelberg. Jetzt Ticket sichern!</p>
 
                </div>
 
            </div>
 
            <div class="cnotice-misc-container">
 
                <div class="cnotice-button cnotice-button1">{{int:Centralnotice-strategic_plan1-learn-more}}</div>
 
            </div>
 
        </div>
 
    </a>
 
    <div id="cnotice-toggle-box">
 
        <a href="#" title="{{int:centralnotice-shared-hide}}" onclick="mw.centralNotice.hideBanner();return false;"><img border="0" src="//upload.wikimedia.org/wikipedia/donate/a/ac/Close_oojs.png" alt="{{int:centralnotice-shared-hide}}" /></a>
 
    </div>
 
 
</div>
 
</div>

Version vom 10. September 2018, 15:52 Uhr

<a href="https://itunes.apple.com/de/artist/christian-wolf/id903688769/"></a> <a href="#" title="Schließen" onclick="mw.centralNotice.hideBanner();return false;">Schließen</a>



<style>

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

  1. 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;

}

  1. cnotice-toggle-box {
   cursor: pointer;
   position: absolute;
   top: 2px;
   right: 3px;
   z-index: 1;

}

body.rtl #cnotice-toggle-box {

   left: 3px;
   right: unset;

}

  1. cnotice-toggle-box:hover {
   opacity: 1;

} </style>