MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* | /* ============================================================ | ||
Training Video Template Styles | |||
============================================================ */ | |||
/* ── Layout ── */ | /* ── Layout ── */ | ||
.training-page-wrap { | .training-page-wrap { | ||
font-family: -apple-system, 'Segoe UI', sans-serif; | font-family: -apple-system, 'Segoe UI', sans-serif; | ||
max-width: | max-width: 1600px; | ||
margin: 0 | margin: 0; | ||
padding: 8px 0 48px; | padding: 8px 0 48px; | ||
} | } | ||
.training-content-grid { | .training-content-grid { | ||
display: grid; | display: grid; | ||
| Line 54: | Line 18: | ||
margin-top: 24px; | margin-top: 24px; | ||
} | } | ||
.training-video-col { min-width: 0; } | .training-video-col { min-width: 0; } | ||
/* ── Meta bar ── */ | /* ── Meta bar ── */ | ||
.training-meta { | .training-meta { | ||
| Line 77: | Line 41: | ||
color: #888; | color: #888; | ||
} | } | ||
/* ── Overview ── */ | /* ── Overview ── */ | ||
.training-section-label { | .training-section-label { | ||
| Line 97: | Line 61: | ||
margin-bottom: 4px; | margin-bottom: 4px; | ||
} | } | ||
/* ── Video card ── */ | /* ── Video card ── */ | ||
.training-video-wrap { | .training-video-wrap { | ||
| Line 127: | Line 91: | ||
color: #999; | color: #999; | ||
} | } | ||
/* ── Custom progress bar ── */ | |||
.ts-progress-track { | .ts-progress-track { | ||
height: 3px; | height: 3px; | ||
| Line 144: | Line 109: | ||
pointer-events: none; | pointer-events: none; | ||
transition: width 0.3s linear; | transition: width 0.3s linear; | ||
} | } | ||
.ts-progress-marker { | .ts-progress-marker { | ||
| Line 177: | Line 131: | ||
margin-left: auto; | margin-left: auto; | ||
} | } | ||
/* ── Key Points + See Also ── */ | /* ── Key Points + See Also ── */ | ||
.training-lower-grid { | .training-lower-grid { | ||
| Line 216: | Line 170: | ||
} | } | ||
.training-info-card a:hover { text-decoration: underline; } | .training-info-card a:hover { text-decoration: underline; } | ||
/* ── Transcript sidebar ── */ | /* ── Transcript sidebar ── */ | ||
.training-transcript-col { min-width: 0; } | .training-transcript-col { min-width: 0; } | ||
| Line 244: | Line 198: | ||
font-style: italic; | font-style: italic; | ||
} | } | ||
/* ── Transcript scroll area ── */ | /* ── Transcript scroll area ── */ | ||
.ts-scroll-body { | .ts-scroll-body { | ||
| Line 258: | Line 212: | ||
border-radius: 2px; | border-radius: 2px; | ||
} | } | ||
/* ── Transcript entries ── */ | /* ── Transcript entries ── */ | ||
.ts-entry { | .ts-entry { | ||
| Line 298: | Line 252: | ||
font-weight: 500; | font-weight: 500; | ||
} | } | ||
/* ── Responsive ── */ | /* ── Responsive ── */ | ||
@media screen and (max-width: 800px) { | @media screen and (max-width: 800px) { | ||
| Line 310: | Line 264: | ||
grid-template-columns: 1fr; | grid-template-columns: 1fr; | ||
} | } | ||
} | |||
/* ── Removing the space <br> creates visually ── */ | |||
.training-card-title + br { | |||
display: none; | |||
} | } | ||
Latest revision as of 02:45, 24 April 2026
/* ============================================================
Training Video Template Styles
============================================================ */
/* ── Layout ── */
.training-page-wrap {
font-family: -apple-system, 'Segoe UI', sans-serif;
max-width: 1600px;
margin: 0;
padding: 8px 0 48px;
}
.training-content-grid {
display: grid;
grid-template-columns: 1fr 320px;
gap: 24px;
align-items: start;
margin-top: 24px;
}
.training-video-col { min-width: 0; }
/* ── Meta bar ── */
.training-meta {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 18px;
flex-wrap: wrap;
}
.training-tag {
background: #eef2fd;
color: #2d5be3;
font-size: 0.72rem;
font-weight: 600;
padding: 3px 10px;
border-radius: 20px;
}
.training-meta-item {
font-size: 0.8rem;
color: #888;
}
/* ── Overview ── */
.training-section-label {
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
color: #999;
margin-bottom: 8px;
}
.training-overview {
background: #fff;
border: 1px solid #e2e2ee;
border-radius: 10px;
padding: 16px 20px;
font-size: 0.9rem;
color: #555;
line-height: 1.7;
margin-bottom: 4px;
}
/* ── Video card ── */
.training-video-wrap {
background: #fff;
border: 1px solid #e2e2ee;
border-radius: 12px;
overflow: hidden;
}
.training-video-player {
width: 100%;
display: block;
background: #0d0d1a;
max-height: none;
}
.training-video-footer {
padding: 12px 16px;
display: flex;
align-items: center;
justify-content: space-between;
border-top: 1px solid #e2e2ee;
}
.training-video-title {
font-size: 0.82rem;
font-weight: 600;
color: #1a1a2e;
}
.training-video-dur {
font-size: 0.75rem;
color: #999;
}
/* ── Custom progress bar ── */
.ts-progress-track {
height: 3px;
background: rgba(255,255,255,0.12);
border-radius: 2px;
position: relative;
cursor: pointer;
margin-bottom: 8px;
}
.ts-progress-fill {
width: 0%;
height: 100%;
background: #2d5be3;
border-radius: 2px;
position: relative;
pointer-events: none;
transition: width 0.3s linear;
}
.ts-progress-marker {
position: absolute;
top: -2px;
width: 2px;
height: 7px;
background: rgba(255,255,255,0.3);
border-radius: 1px;
cursor: pointer;
transition: background 0.15s;
}
.ts-progress-marker:hover { background: #bfcdf8; }
.ts-ctrl-row {
display: flex;
align-items: center;
}
.ts-time-display {
font-size: 0.72rem;
color: rgba(255,255,255,0.45);
font-variant-numeric: tabular-nums;
margin-left: auto;
}
/* ── Key Points + See Also ── */
.training-lower-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-top: 18px;
}
.training-info-card {
background: #fff;
border: 1px solid #e2e2ee;
border-radius: 10px;
padding: 16px 18px;
}
.training-card-title {
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.1em;
text-transform: uppercase;
color: #999;
margin-bottom: 12px;
}
.training-info-card ul {
margin: 0;
padding-left: 18px;
}
.training-info-card li {
font-size: 0.84rem;
color: #555;
line-height: 1.6;
padding: 4px 0;
border-bottom: 1px solid #f0f0f8;
}
.training-info-card li:last-child { border-bottom: none; }
.training-info-card a {
color: #2d5be3;
text-decoration: none;
}
.training-info-card a:hover { text-decoration: underline; }
/* ── Transcript sidebar ── */
.training-transcript-col { min-width: 0; }
.training-transcript-card {
background: #fff;
border: 1px solid #e2e2ee;
border-radius: 12px;
overflow: hidden;
position: sticky;
top: 20px;
}
.training-transcript-header {
padding: 13px 16px;
border-bottom: 1px solid #e2e2ee;
display: flex;
align-items: center;
justify-content: space-between;
}
.training-transcript-title {
font-size: 0.82rem;
font-weight: 700;
color: #1a1a2e;
}
.training-transcript-hint {
font-size: 0.7rem;
color: #aaa;
font-style: italic;
}
/* ── Transcript scroll area ── */
.ts-scroll-body {
max-height: 440px;
overflow-y: auto;
padding: 6px 0;
scroll-behavior: smooth;
}
.ts-scroll-body::-webkit-scrollbar { width: 4px; }
.ts-scroll-body::-webkit-scrollbar-track { background: transparent; }
.ts-scroll-body::-webkit-scrollbar-thumb {
background: #e2e2ee;
border-radius: 2px;
}
/* ── Transcript entries ── */
.ts-entry {
display: flex;
gap: 10px;
padding: 9px 16px;
cursor: pointer;
border-left: 2px solid transparent;
transition: background 0.15s, border-color 0.15s;
align-items: flex-start;
}
.ts-entry:hover {
background: #f7f7fb;
border-left-color: #bfcdf8;
}
.ts-entry.ts-active {
background: #eef2fd;
border-left-color: #2d5be3;
}
.ts-time {
font-size: 0.7rem;
font-variant-numeric: tabular-nums;
font-weight: 700;
white-space: nowrap;
padding-top: 2px;
min-width: 34px;
color: #aaa;
transition: color 0.15s;
}
.ts-entry.ts-active .ts-time { color: #2d5be3; }
.ts-text {
font-size: 0.82rem;
color: #666;
line-height: 1.55;
transition: color 0.15s, font-weight 0.15s;
}
.ts-entry.ts-active .ts-text {
color: #1a1a2e;
font-weight: 500;
}
/* ── Responsive ── */
@media screen and (max-width: 800px) {
.training-content-grid {
grid-template-columns: 1fr;
}
.training-transcript-card {
position: static;
}
.training-lower-grid {
grid-template-columns: 1fr;
}
}
/* ── Removing the space <br> creates visually ── */
.training-card-title + br {
display: none;
}