change release section put video and more

This commit is contained in:
mohamad
2026-06-08 17:08:43 +03:30
parent 33b3477176
commit 7cddc03a57
33 changed files with 1657 additions and 93 deletions
+280 -1
View File
@@ -1995,12 +1995,48 @@ a.citation-count-badge:hover {
border: 1px solid rgba(34, 197, 94, 0.2);
}
.release-channel-label--beta {
color: rgb(253, 186, 116);
background: rgba(249, 115, 22, 0.12);
border: 1px solid rgba(249, 115, 22, 0.22);
}
.release-channel-label--rc {
color: rgb(196, 181, 253);
background: rgba(139, 92, 246, 0.12);
border: 1px solid rgba(139, 92, 246, 0.22);
}
.release-channel-label--preview {
color: rgb(147, 197, 253);
background: rgba(59, 130, 246, 0.12);
border: 1px solid rgba(59, 130, 246, 0.22);
}
.release-channel-label--nightly {
color: rgb(252, 165, 165);
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.2);
}
.release-channel-label--current {
color: var(--accent-cyan);
background: rgba(34, 211, 238, 0.08);
border: 1px solid rgba(34, 211, 238, 0.2);
}
.release-channel-label--previous {
color: var(--text-secondary);
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--glass-border);
}
.release-channel-label--custom {
color: var(--text-primary);
background: rgba(255, 255, 255, 0.06);
border: 1px solid var(--glass-border);
}
.download-card--previous {
opacity: 0.78;
}
@@ -2255,9 +2291,22 @@ a.citation-count-badge:hover {
flex-shrink: 0;
}
.pkg-stable-inline {
.pkg-version-meta .release-channel-label {
font-size: 0.7rem;
padding: 0.2rem 0.55rem;
margin-bottom: 0;
}
.versions-table-version {
display: inline-block;
margin-right: 0.45rem;
}
.versions-table th[scope="row"] .release-channel-label {
font-size: 0.68rem;
padding: 0.18rem 0.5rem;
margin-bottom: 0;
vertical-align: middle;
}
.pkg-version-actions {
@@ -2350,10 +2399,29 @@ a.citation-count-badge:hover {
.versions-table-link {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.35rem;
border-radius: var(--radius-sm);
transition: var(--transition-smooth);
}
.versions-table-link:hover {
background: rgba(79, 142, 247, 0.1);
}
.versions-table-icon {
display: block;
width: 22px;
height: 22px;
object-fit: contain;
filter: brightness(0) invert(1);
opacity: 0.82;
transition: var(--transition-smooth);
}
.versions-table-link:hover .versions-table-icon {
opacity: 1;
filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(79, 142, 247, 0.55));
}
.versions-table-text-link {
@@ -3440,3 +3508,214 @@ a.citation-count-badge:hover {
.readmore-btn.is-open svg {
transform: rotate(180deg);
}
/* ============================================================
Video Blocks
============================================================ */
.video-block {
width: 100%;
max-width: var(--video-max-width, 100%);
margin-inline: auto;
}
.video-block--sm {
--video-max-width: 480px;
}
.video-block--md {
--video-max-width: 720px;
}
.video-block--lg {
--video-max-width: 960px;
}
.video-block--full {
--video-max-width: 100%;
}
.video-block-inner {
position: relative;
width: 100%;
aspect-ratio: var(--video-aspect-ratio, 16 / 9);
overflow: hidden;
border-radius: var(--radius-md);
background: rgba(8, 12, 24, 0.55);
}
.video-block--ratio-16-9 {
--video-aspect-ratio: 16 / 9;
}
.video-block--ratio-4-3 {
--video-aspect-ratio: 4 / 3;
}
.video-block--ratio-1-1 {
--video-aspect-ratio: 1 / 1;
}
.video-block-inner iframe,
.video-block-inner video {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
border: 0;
object-fit: contain;
background: #000;
}
.video-section .section-desc {
margin-bottom: 1.5rem;
text-align: center;
max-width: 680px;
margin-left: auto;
margin-right: auto;
}
.product-videos-list {
display: flex;
flex-direction: column;
gap: 2.5rem;
}
.product-video-header {
margin-bottom: 0.75rem;
}
.video-panel--styled {
position: relative;
overflow: hidden;
background: var(--glass-bg);
border: 1px solid var(--glass-border);
border-radius: var(--radius-md);
padding: 1.75rem 1.5rem 1.5rem;
backdrop-filter: blur(12px);
}
.video-panel-ambient {
position: absolute;
inset: 0;
pointer-events: none;
overflow: hidden;
}
.video-panel-blob {
position: absolute;
border-radius: 50%;
filter: blur(52px);
}
.video-panel-blob--1 {
width: 240px;
height: 240px;
top: -90px;
right: -50px;
background: radial-gradient(circle, rgba(79, 142, 247, 0.42) 0%, transparent 72%);
opacity: 0.85;
}
.video-panel-blob--2 {
width: 200px;
height: 200px;
bottom: -70px;
left: -40px;
background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 72%);
opacity: 0.9;
}
.video-panel-blob--3 {
width: 140px;
height: 140px;
top: 45%;
left: 55%;
background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 70%);
opacity: 0.75;
}
.video-panel-inner {
position: relative;
z-index: 1;
}
.video-panel-header {
text-align: center;
max-width: 680px;
margin: 0 auto 0.35rem;
}
.video-panel-heading {
display: flex;
flex-direction: column;
align-items: center;
}
.video-panel-heading .section-badge {
margin-bottom: 0.65rem;
}
.video-panel-title {
font-size: 1.05rem;
font-weight: 700;
display: flex;
align-items: center;
justify-content: center;
gap: 0.55rem;
margin: 0;
color: var(--text-primary);
}
.video-panel-title svg {
flex-shrink: 0;
color: var(--accent-blue-light);
}
.video-panel-desc {
text-align: center;
max-width: 680px;
margin: 0 auto 1.25rem;
}
.video-panel--styled .video-block-inner {
border: 1px solid rgba(79, 142, 247, 0.22);
box-shadow:
0 16px 48px rgba(8, 12, 24, 0.38),
inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.product-videos-list .product-video-item .section-desc,
.product-videos-list .product-video-item .rich-content.section-desc {
text-align: center;
max-width: 680px;
margin-left: auto;
margin-right: auto;
}
.product-videos-list .video-panel--styled + .video-panel--styled,
.product-videos-list .product-video-item + .product-video-item {
margin-top: 0;
}
.product-videos-list .video-panel--styled,
.product-videos-list .product-video-item {
margin-top: 0;
}
@media (max-width: 640px) {
.video-panel--styled {
padding: 1.25rem 1rem 1rem;
}
.video-panel-blob--1 {
width: 180px;
height: 180px;
top: -70px;
right: -70px;
}
.video-panel-blob--2 {
width: 150px;
height: 150px;
}
}