Mudanças entre as edições de "Widget:MainPageChangelog"

De Wiki Gla
Ir para navegação Ir para pesquisar
m
m
Linha 1: Linha 1:
<style>
<style>
    .widget-changelog {
  .widget-changelog {
        max-height: 280px;
    max-height: 280px;
        overflow-y: auto;
    overflow-y: auto;
        padding-right: 5px;
    padding-right: 5px;
        box-sizing: border-box;
    box-sizing: border-box;
    }
  }


    .notice-item {
  .notice-item {
        display: flex;
    display: flex;
        align-items: flex-start;
    align-items: flex-start;
        position: relative;
    position: relative;
        /* allow absolute-positioned icon */
    gap: 0;
        gap: 0;
    background: #fff;
        background: #fff;
    border: 1px solid #ddd;
        border: 1px solid #ddd;
    border-left: 4px solid var(--notice-color, #999);
        /* borda padrão */
    padding: 10px 10px;
        border-radius: 6px;
    border-radius: 6px;
        margin-bottom: 10px;
     margin: 0 0 8px 0;
        padding: 8px 10px;
  }
        box-sizing: border-box;
        --notice-color: var(--notice-color, #f5b700);
        border-left: 5px solid var(--notice-color);
     }


    .notice-content {
  .notice-content { flex: 1; min-width: 0; }
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 0;
        position: relative;
        z-index: 2;
        padding-right: 0;
    }


    .notice-title,
  .notice-header {
     .notice-title a {
     display: flex;
        display: block;
    align-items: center;
        font-size: 1.05rem;
    justify-content: space-between;
        /* slightly smaller */
    gap: 8px;
        font-weight: 700;
    margin-bottom: 6px;
        color: #333;
  }
        text-decoration: none;
        margin: 0;
        line-height: 1.1;
    }


    .notice-title a:hover {
  .notice-header-left {
        text-decoration: underline;
    display: inline-flex;
     }
    align-items: center;
     gap: 8px;
    min-width: 0;
  }


    .notice-header {
  .notice-title {
        display: flex;
    font-weight: 700;
        align-items: center;
    font-size: 14px;
        gap: 8px;
    line-height: 1.2;
        justify-content: space-between;
    display: inline-flex;
     }
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
     max-width: 100%;
  }


    .notice-header-left {
  .notice-title a {
        display: flex;
    text-decoration: none;
        align-items: center;
  }
        gap: 0;
    }


    .notice-header-right {
  .notice-date {
        white-space: nowrap;
    font-size: 12px;
    }
    color: #666;
    white-space: nowrap;
  }


    .notice-date {
  .notice-desc {
        font-size: .85em;
    margin: 0;
        color: #888;
    font-size: 13px;
        margin: 0 0 0 8px;
    color: #333;
    }
  }


    .notice-desc {
  /* Ícones — sem margin-right */
        color: #555;
  .notice-icon {
        line-height: 1.35;
    width: 32px;
        margin: 2px 0 0 0 !important;
    height: 32px;
        display: block;
    object-fit: contain;
     }
    flex-shrink: 0;
    border-radius: 4px;
    background: transparent;
    margin-right: 0 !important; /* zera */
    margin-top: 2px;
    position: static;
     opacity: 0.9;
  }


    .notice-icon {
  .notice-icon--inline {
        width: 32px;
    display: inline-block;
        height: 32px;
    width: 32px;
        object-fit: contain;
    height: 32px;
        flex-shrink: 0;
    margin-right: 0 !important; /* zera */
        border-radius: 4px;
    position: static;
        background: transparent;
    opacity: 0.9;
        margin-top: 2px;
  }
        position: static;
        opacity: 0.9;
    }


    .notice-icon--inline {
  .notice-icon--overlay { display: none !important; }
        display: inline-block;
</style>
        width: 32px;
        height: 32px;
        position: static;
        opacity: 0.9;
    }


    .notice-icon--overlay {
        display: none !important;
    }
</style>
<script>
<script>
document.addEventListener('DOMContentLoaded', function () {
document.addEventListener('DOMContentLoaded', function () {
   document.querySelectorAll('.widget-changelog a').forEach(function(a){
   const root = document.querySelector('.widget-changelog');
     a.setAttribute('target','_blank');
  if (!root) return;
     a.setAttribute('rel','noopener noreferrer');
 
  // 1) Promove título -> <a href=... target=_blank>
  root.querySelectorAll('.notice-item').forEach(function (item) {
    const linkEl = item.querySelector('.notice-link');
    const titleEl = item.querySelector('.notice-title');
    if (!linkEl || !titleEl) return;
 
    // Normaliza URL (remove quebras e espaços)
    let url = (linkEl.textContent || '').replace(/[\r\n\t]/g, '').replace(/\s+/g, '');
    if (!url) return;
 
    // Se já tiver <a>, não duplica
    if (titleEl.querySelector('a')) return;
 
    // Texto do título
    const textSpan = titleEl.querySelector('.notice-title-text');
    const text = (textSpan ? textSpan.textContent : titleEl.textContent).trim();
    titleEl.innerHTML = '';
 
    const a = document.createElement('a');
    a.href = url;
    a.target = '_blank';
    a.rel = 'noopener noreferrer';
    a.textContent = text || url;
 
    titleEl.appendChild(a);
  });
 
  // 2) Por segurança, garante target/_blank em qualquer link dentro do bloco
  root.querySelectorAll('a').forEach(function (a) {
     a.setAttribute('target', '_blank');
     a.setAttribute('rel', 'noopener noreferrer');
   });
   });
});
});
</script>
</script>

Edição das 14h19min de 10 de setembro de 2025

<style>

 .widget-changelog {
   max-height: 280px;
   overflow-y: auto;
   padding-right: 5px;
   box-sizing: border-box;
 }
 .notice-item {
   display: flex;
   align-items: flex-start;
   position: relative;
   gap: 0;
   background: #fff;
   border: 1px solid #ddd;
   border-left: 4px solid var(--notice-color, #999);
   padding: 10px 10px;
   border-radius: 6px;
   margin: 0 0 8px 0;
 }
 .notice-content { flex: 1; min-width: 0; }
 .notice-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 8px;
   margin-bottom: 6px;
 }
 .notice-header-left {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   min-width: 0;
 }
 .notice-title {
   font-weight: 700;
   font-size: 14px;
   line-height: 1.2;
   display: inline-flex;
   align-items: center;
   gap: 6px;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
   max-width: 100%;
 }
 .notice-title a {
   text-decoration: none;
 }
 .notice-date {
   font-size: 12px;
   color: #666;
   white-space: nowrap;
 }
 .notice-desc {
   margin: 0;
   font-size: 13px;
   color: #333;
 }
 /* Ícones — sem margin-right */
 .notice-icon {
   width: 32px;
   height: 32px;
   object-fit: contain;
   flex-shrink: 0;
   border-radius: 4px;
   background: transparent;
   margin-right: 0 !important; /* zera */
   margin-top: 2px;
   position: static;
   opacity: 0.9;
 }
 .notice-icon--inline {
   display: inline-block;
   width: 32px;
   height: 32px;
   margin-right: 0 !important; /* zera */
   position: static;
   opacity: 0.9;
 }
 .notice-icon--overlay { display: none !important; }

</style>

<script> document.addEventListener('DOMContentLoaded', function () {

 const root = document.querySelector('.widget-changelog');
 if (!root) return;
 // 1) Promove título -> <a href=... target=_blank>
 root.querySelectorAll('.notice-item').forEach(function (item) {
   const linkEl = item.querySelector('.notice-link');
   const titleEl = item.querySelector('.notice-title');
   if (!linkEl || !titleEl) return;
   // Normaliza URL (remove quebras e espaços)
   let url = (linkEl.textContent || ).replace(/[\r\n\t]/g, ).replace(/\s+/g, );
   if (!url) return;
   // Se já tiver <a>, não duplica
   if (titleEl.querySelector('a')) return;
   // Texto do título
   const textSpan = titleEl.querySelector('.notice-title-text');
   const text = (textSpan ? textSpan.textContent : titleEl.textContent).trim();
   titleEl.innerHTML = ;
   const a = document.createElement('a');
   a.href = url;
   a.target = '_blank';
   a.rel = 'noopener noreferrer';
   a.textContent = text || url;
   titleEl.appendChild(a);
 });
 // 2) Por segurança, garante target/_blank em qualquer link dentro do bloco
 root.querySelectorAll('a').forEach(function (a) {
   a.setAttribute('target', '_blank');
   a.setAttribute('rel', 'noopener noreferrer');
 });

}); </script>