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

De Wiki Gla
Ir para navegação Ir para pesquisar
Linha 1: Linha 1:
<style>
<style>
/* === LARIFK DESIGN SYSTEM === */
/* === LARIFK — CSS-ONLY TABS === */
:root {
:root {
     --lk-bg: #ffffff;
     --lk-bg: #ffffff;
Linha 16: Linha 16:
     --lk-slide-btn-bg: rgba(255,255,255,0.85);
     --lk-slide-btn-bg: rgba(255,255,255,0.85);
     --lk-slide-btn-color: #111;
     --lk-slide-btn-color: #111;
    --lk-slide-btn-hover: #fff;
     --lk-counter-bg: rgba(0,0,0,0.5);
     --lk-counter-bg: rgba(0,0,0,0.5);
}
}
@media (prefers-color-scheme: dark) {
@media (prefers-color-scheme: dark) {
     :root {
     :root {
Linha 36: Linha 34:
         --lk-slide-btn-bg: rgba(30,30,50,0.85);
         --lk-slide-btn-bg: rgba(30,30,50,0.85);
         --lk-slide-btn-color: #e2e8f0;
         --lk-slide-btn-color: #e2e8f0;
        --lk-slide-btn-hover: #2a2a4a;
         --lk-counter-bg: rgba(0,0,0,0.6);
         --lk-counter-bg: rgba(0,0,0,0.6);
     }
     }
}
}


/* Container Principal */
/* Ocultar radios */
.lk-radio { display: none !important; }
 
/* Container */
.lk-wrap {
.lk-wrap {
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
Linha 52: Linha 52:
     color: var(--lk-text-1);
     color: var(--lk-text-1);
}
}
/* Título */
.lk-titulo {
.lk-titulo {
     font-size: 1.4rem;
     font-size: 1.4rem;
Linha 61: Linha 59:
}
}


/* === TABBER PRINCIPAL (BAÚS) === */
/* Tabs principais */
.lk-tabs {
.lk-tabs {
     display: flex;
     display: flex;
Linha 72: Linha 70:
     flex-wrap: wrap;
     flex-wrap: wrap;
     scrollbar-width: none;
     scrollbar-width: none;
    -ms-overflow-style: none;
}
}
.lk-tabs::-webkit-scrollbar { display: none; }
.lk-tabs::-webkit-scrollbar { display: none; }
Linha 89: Linha 86:
     white-space: nowrap;
     white-space: nowrap;
     user-select: none;
     user-select: none;
    background: transparent;
}
}
.lk-tab:hover {
.lk-tab:hover {
     background: rgba(128,128,128,0.08);
     background: rgba(128,128,128,0.08);
     color: var(--lk-text-1);
     color: var(--lk-text-1);
}
.lk-tab.active {
    background: var(--lk-bg);
    color: var(--lk-accent);
    box-shadow: var(--lk-tab-shadow);
}
}
.lk-tab img {
.lk-tab img {
Linha 104: Linha 95:
     height: 20px;
     height: 20px;
     object-fit: contain;
     object-fit: contain;
    vertical-align: middle;
    margin-right: 5px;
     border-radius: 4px;
     border-radius: 4px;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.08));
}
}


/* === PAINÉIS === */
/* Painéis — ocultos por padrão */
.lk-panel {
.lk-panel {
     display: none;
     display: none;
    animation: lk-fadeIn 0.25s ease;
}
.lk-panel.active {
    display: flex;
     flex-direction: column;
     flex-direction: column;
     gap: 14px;
     gap: 14px;
     padding: .25rem 0;
     padding: .25rem 0;
    animation: lk-fadeIn 0.25s ease;
}
}
@keyframes lk-fadeIn {
@keyframes lk-fadeIn {
     from { opacity: 0; transform: translateY(3px); }
     from { opacity: 0; transform: translateY(3px); }
     to  { opacity: 1; transform: translateY(0); }
     to  { opacity: 1; transform: translateY(0); }
}
/* === CSS-ONLY TAB SWITCHING (até 6 baús) === */
/* Quando radio N está checked, mostra painel N e destaca tab N */
.lk-radio:nth-of-type(1):checked ~ .lk-tabs .lk-tab:nth-child(1),
.lk-radio:nth-of-type(2):checked ~ .lk-tabs .lk-tab:nth-child(2),
.lk-radio:nth-of-type(3):checked ~ .lk-tabs .lk-tab:nth-child(3),
.lk-radio:nth-of-type(4):checked ~ .lk-tabs .lk-tab:nth-child(4),
.lk-radio:nth-of-type(5):checked ~ .lk-tabs .lk-tab:nth-child(5),
.lk-radio:nth-of-type(6):checked ~ .lk-tabs .lk-tab:nth-child(6) {
    background: var(--lk-bg);
    color: var(--lk-accent);
    box-shadow: var(--lk-tab-shadow);
}
.lk-radio:nth-of-type(1):checked ~ .lk-panel:nth-of-type(1),
.lk-radio:nth-of-type(2):checked ~ .lk-panel:nth-of-type(2),
.lk-radio:nth-of-type(3):checked ~ .lk-panel:nth-of-type(3),
.lk-radio:nth-of-type(4):checked ~ .lk-panel:nth-of-type(4),
.lk-radio:nth-of-type(5):checked ~ .lk-panel:nth-of-type(5),
.lk-radio:nth-of-type(6):checked ~ .lk-panel:nth-of-type(6) {
    display: flex;
}
}


Linha 136: Linha 143:
}
}


/* === GRID DE RECOMPENSAS === */
/* Recompensas */
.lk-rewards {
.lk-rewards { display: flex; flex-wrap: wrap; gap: 8px; }
    display: flex;
.lk-reward { display: flex; flex-direction: column; align-items: center; gap: 3px; }
    flex-wrap: wrap;
    gap: 8px;
}
.lk-reward {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.lk-rsprite {
.lk-rsprite {
     width: 38px;
     width: 38px; height: 38px;
    height: 38px;
     background: var(--lk-surface);
     background: var(--lk-surface);
     border: 1px solid var(--lk-border);
     border: 1px solid var(--lk-border);
     border-radius: 8px;
     border-radius: 8px;
     display: flex;
     display: flex; align-items: center; justify-content: center;
    align-items: center;
    justify-content: center;
     overflow: hidden;
     overflow: hidden;
     transition: transform 0.2s ease, border-color 0.2s ease;
     transition: transform 0.2s ease, border-color 0.2s ease;
}
}
.lk-reward:hover .lk-rsprite {
.lk-reward:hover .lk-rsprite { transform: translateY(-2px); border-color: var(--lk-accent); }
    transform: translateY(-2px);
.lk-rsprite img { max-width: 100%; max-height: 100%; object-fit: contain; }
    border-color: var(--lk-accent);
.lk-rqty { display: flex; align-items: baseline; gap: 1px; background: var(--lk-qty-bg); border-radius: 999px; padding: 1px 6px; }
}
.lk-rsprite img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.lk-rqty {
    display: flex;
    align-items: baseline;
    gap: 1px;
    background: var(--lk-qty-bg);
    border-radius: 999px;
    padding: 1px 6px;
}
.lk-rqty-num { font-size: 12px; font-weight: 700; color: var(--lk-qty-text); }
.lk-rqty-num { font-size: 12px; font-weight: 700; color: var(--lk-qty-text); }
.lk-rqty-x   { font-size: 10px; font-weight: 600; color: var(--lk-text-3); }
.lk-rqty-x { font-size: 10px; font-weight: 600; color: var(--lk-text-3); }


/* Divisor */
/* Divisor */
.lk-divider {
.lk-divider { height: 1px; background: var(--lk-border); }
    height: 1px;
 
    background: var(--lk-border);
/* === SUB-TABS "Como chegar" — CENTRALIZADO === */
.lk-media-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.lk-media-section > .lk-slabel {
    align-self: flex-start;
}
}


/* === SUB-TABS (Vídeo / Imagem) — CENTRALIZADO === */
.lk-ctabs {
.lk-ctabs {
     display: inline-flex;
     display: inline-flex;
Linha 192: Linha 180:
     padding: 4px;
     padding: 4px;
     border-radius: 8px;
     border-radius: 8px;
     margin: 0 auto 14px auto;
     margin-bottom: 14px;
    align-self: center;
}
}
.lk-ctab {
.lk-ctab {
Linha 205: Linha 192:
     user-select: none;
     user-select: none;
}
}
.lk-ctab.active {
.lk-ctab:hover { color: var(--lk-text-1); }
 
/* Sub-painéis ocultos */
.lk-cpanel { display: none; flex-direction: column; align-items: center; }
 
/* CSS-only sub-tab switching */
.lk-radio[id$="-v"]:checked ~ .lk-ctabs .lk-ctab:nth-child(1),
.lk-radio[id$="-r"]:checked ~ .lk-ctabs .lk-ctab:nth-child(2) {
     background: var(--lk-bg);
     background: var(--lk-bg);
     color: var(--lk-text-1);
     color: var(--lk-text-1);
     box-shadow: 0 1px 2px rgba(0,0,0,0.06);
     box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
}
.lk-ctab:hover:not(.active) { color: var(--lk-text-1); }


.lk-cpanel {
.lk-radio[id$="-v"]:checked ~ .lk-cpanel:nth-of-type(1) {
     display: none;
     display: flex;
     text-align: center;
}
.lk-radio[id$="-r"]:checked ~ .lk-cpanel:nth-of-type(2) {
     display: flex;
}
}
.lk-cpanel.active {
/* Caso só tenha imagem (sem vídeo) */
.lk-radio[id$="-r"]:checked ~ .lk-cpanel:nth-of-type(1) {
     display: flex;
     display: flex;
    flex-direction: column;
    align-items: center;
}
}


/* === MÍDIA === */
/* Mídia */
.lk-media-wrap {
.lk-media-wrap {
     border-radius: 12px;
     border-radius: 12px;
Linha 233: Linha 227:
     position: relative;
     position: relative;
}
}
.lk-media-wrap img {
.lk-media-wrap iframe {
     position: absolute;
     position: absolute;
     inset: 0;
     inset: 0;
Linha 239: Linha 233:
     height: 100%;
     height: 100%;
     border: none;
     border: none;
     object-fit: cover;
}
    display: block;
.lk-media-wrap img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
     object-fit: cover; border: none; display: block;
}
}


Linha 253: Linha 250:
     border: 1px solid var(--lk-border);
     border: 1px solid var(--lk-border);
}
}
.lk-slider-track {
.lk-slider-track { display: flex; }
    display: flex;
.lk-slide { min-width: 100%; display: flex; align-items: center; justify-content: center; }
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
.lk-slide img { width: 100%; height: auto; display: block; }
}
.lk-slide a { display: block; line-height: 0; }
.lk-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lk-slide img { width: 100%; height: auto; display: block; }
.lk-slide a   { display: block; line-height: 0; }
 
.lk-slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--lk-slide-btn-bg);
    color: var(--lk-slide-btn-color);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    user-select: none;
    backdrop-filter: blur(4px);
    border: 1px solid var(--lk-border);
    transition: all 0.15s ease;
}
.lk-slide-btn:hover {
    background: var(--lk-slide-btn-hover);
    transform: translateY(-50%) scale(1.08);
}
.lk-slide-prev { left: 8px; }
.lk-slide-next { right: 8px; }


.lk-slide-counter {
.lk-slide-counter {
     position: absolute;
     position: absolute; bottom: 8px; right: 10px;
    bottom: 8px;
     font-size: 11px; font-weight: 600; color: #fff;
    right: 10px;
     background: var(--lk-counter-bg); border-radius: 999px; padding: 1px 8px;
     font-size: 11px;
    font-weight: 600;
    color: #fff;
     background: var(--lk-counter-bg);
    border-radius: 999px;
    padding: 1px 8px;
    backdrop-filter: blur(4px);
}
}


/* === RESPONSIVO === */
/* Responsivo */
@media (min-width: 768px) {
@media (min-width: 768px) {
     .lk-media-wrap { width: 60%; }
     .lk-media-wrap { width: 60%; }
     .lk-slider     { width: 60%; }
     .lk-slider { width: 60%; }
}
}
@media (max-width: 520px) {
@media (max-width: 520px) {
     .lk-wrap {
     .lk-wrap { padding: 16px; border-radius: 12px; }
        padding: 16px;
        border-radius: 12px;
    }
     .lk-tabs { gap: 4px; }
     .lk-tabs { gap: 4px; }
     .lk-tab { padding: 7px 12px; font-size: 12px; }
     .lk-tab { padding: 7px 12px; font-size: 12px; }
}
}
</style>
</style>

Edição das 21h12min de 16 de março de 2026

<style> /* === LARIFK — CSS-ONLY TABS === */

root {
   --lk-bg: #ffffff;
   --lk-surface: #f3f4f6;
   --lk-accent: #2563eb;
   --lk-text-1: #111827;
   --lk-text-2: #6b7280;
   --lk-text-3: #9ca3af;
   --lk-border: rgba(0,0,0,0.06);
   --lk-card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
   --lk-tab-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
   --lk-qty-bg: #1f2937;
   --lk-qty-text: #fff;
   --lk-media-bg: #000;
   --lk-slide-btn-bg: rgba(255,255,255,0.85);
   --lk-slide-btn-color: #111;
   --lk-counter-bg: rgba(0,0,0,0.5);

} @media (prefers-color-scheme: dark) {

   :root {
       --lk-bg: #1a1a2e;
       --lk-surface: #16213e;
       --lk-accent: #4f8cff;
       --lk-text-1: #e2e8f0;
       --lk-text-2: #94a3b8;
       --lk-text-3: #64748b;
       --lk-border: rgba(255,255,255,0.08);
       --lk-card-shadow: 0 1px 4px rgba(0,0,0,0.3);
       --lk-tab-shadow: 0 1px 4px rgba(0,0,0,0.4);
       --lk-qty-bg: #0f172a;
       --lk-qty-text: #e2e8f0;
       --lk-media-bg: #0f0f1a;
       --lk-slide-btn-bg: rgba(30,30,50,0.85);
       --lk-slide-btn-color: #e2e8f0;
       --lk-counter-bg: rgba(0,0,0,0.6);
   }

}

/* Ocultar radios */ .lk-radio { display: none !important; }

/* Container */ .lk-wrap {

   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
   background: var(--lk-bg);
   border: 1px solid var(--lk-border);
   border-radius: 16px;
   padding: 24px;
   margin: 1rem 0;
   box-shadow: var(--lk-card-shadow);
   color: var(--lk-text-1);

} .lk-titulo {

   font-size: 1.4rem;
   font-weight: 700;
   color: var(--lk-text-1);
   margin: 0 0 1rem;

}

/* Tabs principais */ .lk-tabs {

   display: flex;
   gap: 6px;
   background: var(--lk-surface);
   padding: 5px;
   border-radius: 12px;
   margin-bottom: 24px;
   overflow-x: auto;
   flex-wrap: wrap;
   scrollbar-width: none;

} .lk-tabs::-webkit-scrollbar { display: none; }

.lk-tab {

   display: flex;
   align-items: center;
   gap: 7px;
   padding: 8px 16px;
   font-size: 13px;
   font-weight: 600;
   color: var(--lk-text-2);
   cursor: pointer;
   border-radius: 8px;
   transition: all 0.2s ease;
   white-space: nowrap;
   user-select: none;

} .lk-tab:hover {

   background: rgba(128,128,128,0.08);
   color: var(--lk-text-1);

} .lk-tab img {

   width: 20px;
   height: 20px;
   object-fit: contain;
   border-radius: 4px;

}

/* Painéis — ocultos por padrão */ .lk-panel {

   display: none;
   flex-direction: column;
   gap: 14px;
   padding: .25rem 0;
   animation: lk-fadeIn 0.25s ease;

} @keyframes lk-fadeIn {

   from { opacity: 0; transform: translateY(3px); }
   to   { opacity: 1; transform: translateY(0); }

}

/* === CSS-ONLY TAB SWITCHING (até 6 baús) === */ /* Quando radio N está checked, mostra painel N e destaca tab N */ .lk-radio:nth-of-type(1):checked ~ .lk-tabs .lk-tab:nth-child(1), .lk-radio:nth-of-type(2):checked ~ .lk-tabs .lk-tab:nth-child(2), .lk-radio:nth-of-type(3):checked ~ .lk-tabs .lk-tab:nth-child(3), .lk-radio:nth-of-type(4):checked ~ .lk-tabs .lk-tab:nth-child(4), .lk-radio:nth-of-type(5):checked ~ .lk-tabs .lk-tab:nth-child(5), .lk-radio:nth-of-type(6):checked ~ .lk-tabs .lk-tab:nth-child(6) {

   background: var(--lk-bg);
   color: var(--lk-accent);
   box-shadow: var(--lk-tab-shadow);

}

.lk-radio:nth-of-type(1):checked ~ .lk-panel:nth-of-type(1), .lk-radio:nth-of-type(2):checked ~ .lk-panel:nth-of-type(2), .lk-radio:nth-of-type(3):checked ~ .lk-panel:nth-of-type(3), .lk-radio:nth-of-type(4):checked ~ .lk-panel:nth-of-type(4), .lk-radio:nth-of-type(5):checked ~ .lk-panel:nth-of-type(5), .lk-radio:nth-of-type(6):checked ~ .lk-panel:nth-of-type(6) {

   display: flex;

}

/* Labels */ .lk-slabel {

   font-size: 10px;
   font-weight: 700;
   color: var(--lk-text-3);
   text-transform: uppercase;
   letter-spacing: 0.07em;
   margin-bottom: 5px;

}

/* Recompensas */ .lk-rewards { display: flex; flex-wrap: wrap; gap: 8px; } .lk-reward { display: flex; flex-direction: column; align-items: center; gap: 3px; } .lk-rsprite {

   width: 38px; height: 38px;
   background: var(--lk-surface);
   border: 1px solid var(--lk-border);
   border-radius: 8px;
   display: flex; align-items: center; justify-content: center;
   overflow: hidden;
   transition: transform 0.2s ease, border-color 0.2s ease;

} .lk-reward:hover .lk-rsprite { transform: translateY(-2px); border-color: var(--lk-accent); } .lk-rsprite img { max-width: 100%; max-height: 100%; object-fit: contain; } .lk-rqty { display: flex; align-items: baseline; gap: 1px; background: var(--lk-qty-bg); border-radius: 999px; padding: 1px 6px; } .lk-rqty-num { font-size: 12px; font-weight: 700; color: var(--lk-qty-text); } .lk-rqty-x { font-size: 10px; font-weight: 600; color: var(--lk-text-3); }

/* Divisor */ .lk-divider { height: 1px; background: var(--lk-border); }

/* === SUB-TABS "Como chegar" — CENTRALIZADO === */ .lk-media-section {

   display: flex;
   flex-direction: column;
   align-items: center;
   width: 100%;

} .lk-media-section > .lk-slabel {

   align-self: flex-start;

}

.lk-ctabs {

   display: inline-flex;
   background: var(--lk-surface);
   padding: 4px;
   border-radius: 8px;
   margin-bottom: 14px;

} .lk-ctab {

   padding: 5px 16px;
   font-size: 12px;
   font-weight: 600;
   color: var(--lk-text-2);
   cursor: pointer;
   border-radius: 6px;
   transition: all 0.2s ease;
   user-select: none;

} .lk-ctab:hover { color: var(--lk-text-1); }

/* Sub-painéis ocultos */ .lk-cpanel { display: none; flex-direction: column; align-items: center; }

/* CSS-only sub-tab switching */ .lk-radio[id$="-v"]:checked ~ .lk-ctabs .lk-ctab:nth-child(1), .lk-radio[id$="-r"]:checked ~ .lk-ctabs .lk-ctab:nth-child(2) {

   background: var(--lk-bg);
   color: var(--lk-text-1);
   box-shadow: 0 1px 2px rgba(0,0,0,0.06);

}

.lk-radio[id$="-v"]:checked ~ .lk-cpanel:nth-of-type(1) {

   display: flex;

} .lk-radio[id$="-r"]:checked ~ .lk-cpanel:nth-of-type(2) {

   display: flex;

} /* Caso só tenha imagem (sem vídeo) */ .lk-radio[id$="-r"]:checked ~ .lk-cpanel:nth-of-type(1) {

   display: flex;

}

/* Mídia */ .lk-media-wrap {

   border-radius: 12px;
   overflow: hidden;
   background: var(--lk-media-bg);
   border: 1px solid var(--lk-border);
   width: 100%;
   max-width: 560px;
   aspect-ratio: 16 / 9;
   position: relative;

} .lk-media-wrap iframe {

   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   border: none;

} .lk-media-wrap img {

   position: absolute; inset: 0;
   width: 100%; height: 100%;
   object-fit: cover; border: none; display: block;

}

/* Slider */ .lk-slider {

   position: relative;
   width: 100%;
   max-width: 560px;
   border-radius: 12px;
   overflow: hidden;
   background: var(--lk-media-bg);
   border: 1px solid var(--lk-border);

} .lk-slider-track { display: flex; } .lk-slide { min-width: 100%; display: flex; align-items: center; justify-content: center; } .lk-slide img { width: 100%; height: auto; display: block; } .lk-slide a { display: block; line-height: 0; }

.lk-slide-counter {

   position: absolute; bottom: 8px; right: 10px;
   font-size: 11px; font-weight: 600; color: #fff;
   background: var(--lk-counter-bg); border-radius: 999px; padding: 1px 8px;

}

/* Responsivo */ @media (min-width: 768px) {

   .lk-media-wrap { width: 60%; }
   .lk-slider { width: 60%; }

} @media (max-width: 520px) {

   .lk-wrap { padding: 16px; border-radius: 12px; }
   .lk-tabs { gap: 4px; }
   .lk-tab { padding: 7px 12px; font-size: 12px; }

} </style>