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

Aus Hurraki - Wörterbuch für Leichte Sprache
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 6: Zeile 6:


----------
----------
<!-- For guidance or help with this banner, contact Seddon (WMF) -->
<!-- This banners is set up to run to loggedin users only -->
<style>


<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*/
/* Main banner container. Banner: background, 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 {
.cnotice {
     position: relative;
     position: relative;
     overflow: hidden;
     overflow: hidden;
     background: #FFFFFF;
     background: #f8f9fa;
     border: 1px solid rgba(0, 0, 0, 0.2);
     border: 1px solid #a2a9b1;
    border-radius: 2px;
     margin-bottom: 1em;
     margin-bottom: 1em;
     cursor: pointer;
     cursor: pointer;
     color: #222;
     color: #222;
     font-weight: 500;
     font-weight: 500;
    margin-bottom: 10px;
}
}


Zeile 27: Zeile 32:
     display: table;
     display: table;
     width: 100%;
     width: 100%;
     height: 60px; /* need to set height for height 100% to work on elements within it */
     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-message-container,
.cnotice-logo-container {
.cnotice-logo-container,
.cnotice-misc-container {
     display: table-cell;
     display: table-cell;
     height: 100%;
     height: 100%;
     vertical-align: middle;
     vertical-align: middle;
}
#localNotice {
display: none;
}
#DTWMCH-flag {
position: absolute;
top: 10px;
right: 50px;
background-image: url(//upload.wikimedia.org/wikipedia/commons/thumb/d/d9/Innovation_-_The_Noun_Project.svg/50px-Innovation_-_The_Noun_Project.svg.png);
height: 50px;
width: 50px;
background-repeat: no-repeat;
}
}


Zeile 55: Zeile 53:
     position: relative;
     position: relative;
     margin: 0;
     margin: 0;
    color: #4D4D4D;
     line-height: 1.2;
     line-height: 1.2;
    font-weight: bold;
     padding: 5px 5px 5px 5px;
     padding: 11px 10px 11px 10px;
}
}


@media (min-width: 1200px) {
@media (min-width: 1200px) {
     .cnotice-message {
     .cnotice-message {
         padding: 11px 180px 11px 10px;
         padding: 15px 0px 11px 30px;
     }
     }
}
}


body.rtl .cnotice-message {
body.rtl .cnotice-message {
     padding: 11px 40px 11px 10px;
     padding: 5px 5px 5px 5px;
    background-position: right 10px top 10px;
}
}


.cnotice-message p {
.cnotice-message p {
     margin: 0;
     margin: 0;
    color: #222;
     font-family: Arial, sans-serif;
     font-family: Arial, sans-serif;
     font-style: bold;
     font-weight: bold;
     font-size: 14px;
     font-size: 100%;
     opacity: 1;
     opacity: 1;
     text-align: center;
     text-align: center;
Zeile 84: Zeile 80:


@media (min-width: 1200px) {
@media (min-width: 1200px) {
     .cnotice-message p { font-size: 14px; }
     .cnotice-message p { font-size: 120%; }
}
}


Zeile 91: Zeile 87:
.cnotice-logo-container {
.cnotice-logo-container {
     width: 10%;
     width: 10%;
    padding: .5em 1.25em .5em .9em;
}
}


body.rtl .cnotice-logo-container {
body.rtl .cnotice-logo-container {
     padding: 1.65em .5em .35em .2em;
     padding: 0 .25em 0 .9em;
}
}


Zeile 101: Zeile 96:
     opacity: 1;
     opacity: 1;
     display: block;
     display: block;
     margin: 0 auto;
     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 --- */


#cnotice-toggle-box-options {
#cnotice-toggle-box-options {
     display: inline-block;
     display: table-cell;
    position: absolute;
    right: .5em;
    top: .5em;
     font-size: .8em;
     font-size: .8em;
     text-transform: uppercase;
     text-transform: uppercase;
}
    width: 38px;
 
    height: 38px;
body.rtl #cnotice-toggle-box-options {
    border-radius: 19px;
    right: auto;
     vertical-align: middle;
     left: .5em;
}
}


#cnotice-toggle-box {
#cnotice-toggle-box {
    display: inline-block;
     cursor: pointer;
     cursor: pointer;
     opacity: .5;
    position: absolute;
    top: 2px;
    right: 3px;
    z-index: 1;
     opacity: .8;
}
}


#cnotice-toggle-box:hover { opacity: 1; }
body.rtl #cnotice-toggle-box {
 
     left: 3px;
#cnotice-toggle-box-x {
     right: unset;
     background: url('//upload.wikimedia.org/wikipedia/donate/3/32/Close-thin.png') no-repeat center center;
     width: 9px;
    height: 9px;
    float: right;
    display: block;
    margin: .2em .4em;
}
}


body.rtl #cnotice-toggle-box-x {
#cnotice-toggle-box:hover {  
     float: left;
     opacity: 1;
}
}


Zeile 151: Zeile 153:


.cnotice a.cnotice-full-banner-click:hover {
.cnotice a.cnotice-full-banner-click:hover {
     text-decoration: underline
     text-decoration: underline;
}
}


.cnotice-button {
.cnotice-button {
     background-color: #4caf50; /* Green */
     display: inline-block;
     border: none;
     border: 2px solid #36c;
    display: none;
     border-radius: 2px;
     border-radius: 4px;
     color: #fff;
     color: white;
     padding: 5px 5px;
     padding: 10px 16px;
     text-align: center;
     text-align: center;
     font-weight: bold;
     font-weight: bold;
     text-decoration: none;
     text-decoration: none;
     font-size: 12px;
     font-size: 14px;
     margin: 4px 2px;
     margin: 4px 2px;
     -webkit-transition-duration: 0.4s; /* Safari */
    -moz-transition-duration: 100ms; /* Firefox */
     transition-duration: 0.4s;
     -webkit-transition-duration: 100ms; /* Safari */
     transition-duration: 100ms;
     cursor: pointer;
     cursor: pointer;
     z-index: 999;
     z-index: 1;
    min-width: 80px;
}
}


@media (min-width: 1200px) {
@media (min-width: 1100px) {
    .cnotice-button {
        display: inline-block;
    }
}
@media (max-width: 1200px) {
     .cnotice-button {
     .cnotice-button {
        min-width: 110px;
         width: 25%;
         width: 25%;
         margin: auto;
         margin: auto;
        margin-top: 10px;
     }
     }
}
}
Zeile 189: Zeile 187:
     cursor: pointer;
     cursor: pointer;
     text-decoration: none;
     text-decoration: none;
     color: black;
     color: #000;
}
}


.cnotice a.cnotice-buttonlink:hover {
.cnotice a.cnotice-buttonlink:hover {
     color: white;
     color: #fff;
}
}


.cnotice-button1 {
.cnotice-button1 {
     background-color: #0082c0;
     background-color: #36c;
     color: white;
     border-color: #36c;
     position: static;
     color: #fff;
    top: 45%;
    right: 30px;
    transform: translateY(-45%);
    min-width: 110px;
}
}


@media (min-width: 1200px) { .cnotice-button1 { position: absolute; } }
.cnotice-button1:hover {
    background-color: #447ff5;
    border-color: #447ff5;
}


.cnotice-button1:hover {
.cnotice-button1:active {
     background-color: #447FF5;
     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 class="cnotice" id="{{{banner}}}">
<div class="cnotice" id="{{{banner}}}">
     <a class="cnotice-full-banner-click external text" href="//meta.wikimedia.org/wiki/Wikimedia_CH/Call_for_projects_2019">
     <a class="cnotice-full-banner-click external text" href="//de.wikipedia.org/wiki/Wikipedia:WikiDACH/2018/Anmeldung">
         <div id="cnotice-main">
         <div id="cnotice-main">
             <div class="cnotice-logo-container">
             <div class="cnotice-logo-container">
                 <img src="//upload.wikimedia.org/wikipedia/commons/thumb/f/fe/WikimediaCHLogo.svg/50px-WikimediaCHLogo.svg.png">
                 <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>
             <div class="cnotice-message-container">
             <div class="cnotice-message-container">
                 <div class="cnotice-message">
                 <div class="cnotice-message">
                     <p>
                     <p>Erfahre mehr über die Wikipedia und triff Beteiligte beim Barcamp WikiDACH am 22. + 23. September in Heidelberg. Jetzt Ticket sichern!</p>
                        <b>{{{text1}}}</b>
                    </p>
                 </div>
                 </div>
             </div>
             </div>
             <div id="DTWMCH-flag"></div>
             <div class="cnotice-misc-container">
                <div class="cnotice-button cnotice-button1">{{int:Centralnotice-strategic_plan1-learn-more}}</div>
            </div>
         </div>
         </div>
     </a>
     </a>
     <div id="cnotice-toggle-box-options">
     <div id="cnotice-toggle-box">
         <span id="cnotice-toggle-box" onclick="mw.centralNotice.hideBanner(); return false;">
         <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>
            <span id="cnotice-toggle-box-x"></span>
        </span>
     </div>
     </div>
</div>
</div>

Version vom 10. September 2018, 14:51 Uhr

<a href="https://itunes.apple.com/de/artist/christian-wolf/id903688769/"><img src="//hurraki.de/w/images/7/74/Leichte_Sprache_App_Apple_banner.jpg" title="Leichte Sprache App für iPhone und iPad" style="border: none; float: middle; width: 800px; height: 221px; margin-right: .8em; vertical-align: middle;" /></a> <a href="#" title="Schließen" onclick="mw.centralNotice.hideBanner();return false;"><img border="0" src="//upload.wikimedia.org/wikipedia/foundation/2/20/CloseWindow19x19.png" alt="Schließen" /></a>



<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*/

  1. 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 --- */

  1. cnotice-toggle-box-options {
   display: table-cell;
   font-size: .8em;
   text-transform: uppercase;
   width: 38px;
   height: 38px;
   border-radius: 19px;
   vertical-align: middle;

}

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

}

body.rtl #cnotice-toggle-box {

   left: 3px;
   right: unset;

}

  1. cnotice-toggle-box:hover {
   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;

}

  1. cnotice-translation-link {
   position: absolute;
   right: 65px;
   bottom: 0px;
   font-size: 0.8em;
   white-space: nowrap;

}

  1. cnotice-translation-link:hover {
   text-decoration: underline;

}

.rtl #cnotice-translation-link {

   text-align: left;
   left: 65px;

} </style>

   <a class="cnotice-full-banner-click external text" href="//de.wikipedia.org/wiki/Wikipedia:WikiDACH/2018/Anmeldung">
               <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">

Erfahre mehr über die Wikipedia und triff Beteiligte beim Barcamp WikiDACH am 22. + 23. September in Heidelberg. Jetzt Ticket sichern!

⧼Centralnotice-strategic_plan1-learn-more⧽
   </a>
       <a href="#" title="⧼centralnotice-shared-hide⧽" onclick="mw.centralNotice.hideBanner();return false;"><img border="0" src="//upload.wikimedia.org/wikipedia/donate/a/ac/Close_oojs.png" alt="⧼centralnotice-shared-hide⧽" /></a>