User:ערן/Banners/WMIL-Igul-2024
<style>
/* Main banner container. Banner: background, border colour and width and adding a margin between banner and article header*/
.cnotice-wmil-igul {
position: relative;
overflow: hidden;
background: #D3F3ED;
color: #202122;
border: 1px solid #a2a9b1;
border-radius: 2px;
margin-bottom: 1em;
cursor: pointer;
font-weight: 500;
}
.cnotice-wmil-igul a {
color: inherit;
}
.cnotice-wmil-igul a:hover {
color: inherit;
text-decoration: underline;
}
/* 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-wmil-igul-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;
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-wmil-igul-logo-container {
width: 10%;
}
body.rtl .cnotice-wmil-igul-logo-container {
padding: 0 .25em 0 .9em;
}
.cnotice-wmil-igul-logo-container img {
opacity: 1;
display: block;
margin-right: 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 --- */
#cnotice-toggle-box-options {
display: table-cell;
font-size: .8em;
text-transform: uppercase;
width: 38px;
height: 38px;
border-radius: 19px;
vertical-align: middle;
}
#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;
}
#cnotice-toggle-box:hover {
opacity: 1;
}
#cnotice-toggle-icon{
background:
linear-gradient(transparent,transparent),
url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3Eclose%3C/title%3E%3Cpath d=%22M4.34 2.93l12.73 12.73-1.41 1.41L2.93 4.35z%22/%3E%3Cpath d=%22M17.07 4.34L4.34 17.07l-1.41-1.41L15.66 2.93z%22/%3E%3C/svg%3E");
height: 100%;
width: 17px;
min-width: 17px;
min-height: 17px;
background-size: contain;
background-position: center center;
background-repeat: no-repeat;
opacity: 0.8;
}
#cnotice-toggle-icon:hover {
opacity: 1;
}
/* --- Full Banner Link --- */
.cnotice-wmil-igul a.cnotice-full-banner-click {
display: block;
height: 100%;
width: 100%;
cursor: pointer;
text-decoration: none;
}
.cnotice-wmil-igul a.cnotice-full-banner-click:hover {
text-decoration: underline;
}
.cnotice-wmil-igul-button {
border:1px solid #000;
border-radius: 3em;padding: 5px;
width:200px;left:50%;
margin: -15px auto 1px auto;
background:#A8E116;font-size: 120%;
font-weight: bold;
text-align: center;
cursor: pointer;
}
@media (min-width: 1100px) {
.cnotice-wmil-igul-button {
min-width: 110px;
width: 25%;
}
}
/* --- Buttons --- */
.cnotice-wmil-igul a.cnotice-buttonlink {
cursor: pointer;
text-decoration: none;
color: #000;
}
.cnotice-wmil-igul a.cnotice-buttonlink:hover {
color: #fff;
}
#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;
}
/* --- Dark mode: assuming the general notice is good also for dark - hence this is is comment ---
html.skin-theme-clientpref-night .cnotice-wmil-igul {
color: #eaecf0;
background: #202122;
border-color: #72777d;
}
html.skin-theme-clientpref-night #cnotice-toggle-box {
filter: invert(1);
}
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .cnotice-wmil-igul {
color: #eaecf0;
background: #202122;
border-color: #72777d;
}
html.skin-theme-clientpref-os #cnotice-toggle-box {
filter: invert(1);
}
}
*/
</style>
<div class="cnotice-wmil-igul" id="{{{banner}}}" dir="rtl">
<a class="cnotice-full-banner-click external text" href="https://wikimedia.org.il/igul/">
<div id="cnotice-main">
<div class="cnotice-message-container">
<div class="cnotice-message">
<div style="padding: 0 0 15px 0;font-weight: bold;">
<span style="font-size:22px;">מעגלים לטובה</span><br>
<span>ותורמים לקידום הידע בישראל!</span>
</div>
<div style="border-top: 3px dotted #999;"> </div>
<div class="cnotice-wmil-igul-button">לחצו כאן והתחילו לעגל!</div>
</div>
</div>
<div class="cnotice-wmil-igul-logo-container">
<img src="//upload.wikimedia.org/wikipedia/commons/thumb/1/16/Wikimedia_Israel.png/55px-Wikimedia_Israel.png" alt="ויקימדיה ישראל" width="55px" height="41px">
<img src="//upload.wikimedia.org/wikipedia/commons/thumb/1/1b/Igul-logo.png/55px-Igul-logo.png" alt="עיגול לטובה" width="55px" height="30px">
</div>
</div>
</a>
<div id="cnotice-toggle-box">
<a href="#" title="{{int:centralnotice-shared-hide}}" onclick="mw.centralNotice.hideBanner();return false;">
<div id="cnotice-toggle-icon" href="#" title="{{int:centralnotice-shared-hide}}" onclick="mw.centralNotice.hideBanner();return false;"></div>
</a>
</div>
</div>