MediaWiki:Common.css
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ============================================================
Training Video Template Styles
============================================================ */
/* ── Layout ── */
.training-page-wrap {
font-family: -apple-system, 'Segoe UI', sans-serif;
max-width: 1600px;
margin: 0 auto;
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;
}
}