Dorabiamy funkcjonalnosci w TV
This commit is contained in:
@@ -139,3 +139,188 @@
|
||||
margin-right: auto;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
obszar ze scrollem wewnątrz modala
|
||||
.jmb-channels-scroll {
|
||||
margin-top: 1rem;
|
||||
padding-right: 0.25rem;
|
||||
max-height: 72vh;
|
||||
overflow-y: auto;
|
||||
} */
|
||||
|
||||
/* dużo kart w wierszu */
|
||||
.jmb-channels-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
||||
gap: 0.9rem;
|
||||
}
|
||||
|
||||
/* pojedyncza karta kanału */
|
||||
.jmb-channel-card {
|
||||
background: var(--fuz-bg);
|
||||
border-radius: 0.75rem;
|
||||
padding: 0.75rem 0.5rem;
|
||||
text-align: center;
|
||||
border: 1px solid rgba(148, 163, 184, 0.25);
|
||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
/* logo kanału */
|
||||
.jmb-channel-logo {
|
||||
max-width: 90px;
|
||||
max-height: 60px;
|
||||
margin: 0 auto 0.5rem auto;
|
||||
display: block;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
/* podpisy pod logo */
|
||||
.jmb-channel-name {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
margin-bottom: 0.15rem;
|
||||
}
|
||||
|
||||
.jmb-channel-number {
|
||||
font-size: 0.75rem;
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
/* badge "gwarantowany" */
|
||||
.jmb-channel-tag {
|
||||
margin-top: 0.35rem;
|
||||
font-size: 0.7rem;
|
||||
display: inline-block;
|
||||
padding: 0.1rem 0.5rem;
|
||||
border-radius: 9999px;
|
||||
background: rgba(34, 197, 94, 0.08);
|
||||
color: #22c55e;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* === FIX: stabilny grid + flip (nie rozjeżdża kart) === */
|
||||
|
||||
.jmb-channels-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
||||
gap: 0.9rem;
|
||||
align-items: stretch; /* ważne: równe wysokości w wierszu */
|
||||
}
|
||||
|
||||
.jmb-channel-card {
|
||||
position: relative;
|
||||
perspective: 1000px;
|
||||
|
||||
/* zostawiamy Twój wygląd */
|
||||
background: var(--fuz-bg);
|
||||
border-radius: 0.75rem;
|
||||
border: 1px solid rgba(148, 163, 184, 0.25);
|
||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
|
||||
|
||||
/* kluczowe: karta ma “ramę” */
|
||||
min-height: 170px; /* dopasuj: 160–200 */
|
||||
height: 100%;
|
||||
padding: 0; /* padding przenosimy na face */
|
||||
overflow: hidden; /* żeby back nie wystawał */
|
||||
}
|
||||
|
||||
.jmb-channel-inner {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform-style: preserve-3d;
|
||||
transition: transform 0.6s ease;
|
||||
}
|
||||
|
||||
@media (hover: hover) and (pointer: fine) {
|
||||
.jmb-channel-card:hover .jmb-channel-inner {
|
||||
transform: rotateY(180deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* front + back */
|
||||
.jmb-channel-face {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
padding: 0.75rem 0.5rem; /* to był Twój padding z card */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
text-align: center;
|
||||
|
||||
backface-visibility: hidden;
|
||||
-webkit-backface-visibility: hidden;
|
||||
}
|
||||
|
||||
.jmb-channel-front {
|
||||
transform: rotateY(0deg);
|
||||
}
|
||||
|
||||
.jmb-channel-back {
|
||||
transform: rotateY(180deg);
|
||||
text-align: left;
|
||||
justify-content: flex-start;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.jmb-channel-back-title {
|
||||
font-size: 0.9rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.jmb-channel-desc {
|
||||
font-size: 0.85rem;
|
||||
line-height: 1.35;
|
||||
opacity: 0.9;
|
||||
overflow: auto; /* długi opis nie rozwala karty */
|
||||
}
|
||||
|
||||
|
||||
.jmb-search {
|
||||
display: flex;
|
||||
gap: 0.5rem;
|
||||
align-items: center;
|
||||
margin: 0.75rem 0 0.25rem;
|
||||
}
|
||||
|
||||
.jmb-search-input {
|
||||
flex: 1;
|
||||
padding: 0.6rem 0.75rem;
|
||||
border-radius: 0.75rem;
|
||||
border: 1px solid rgba(148, 163, 184, 0.35);
|
||||
background: var(--fuz-bg);
|
||||
color: var(--fuz-text);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.jmb-search-input:focus {
|
||||
border-color: rgba(59, 130, 246, 0.55);
|
||||
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
|
||||
}
|
||||
|
||||
.jmb-search-clear {
|
||||
padding: 0.55rem 0.7rem;
|
||||
border-radius: 0.75rem;
|
||||
border: 1px solid rgba(148, 163, 184, 0.35);
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.jmb-search-meta {
|
||||
font-size: 0.85rem;
|
||||
opacity: 0.75;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
Reference in New Issue
Block a user