gitlink_help_center/src/components/VideoDemo/styles.module.css

114 lines
2.0 KiB
CSS

.videoDemo {
margin: 2rem 0;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
background-color: var(--ifm-color-emphasis-0);
}
.videoTitle {
font-size: 1.5rem;
margin-bottom: 0.5rem;
padding: 1rem;
background-color: var(--ifm-color-emphasis-200);
color: var(--ifm-color-emphasis-800);
border-bottom: 1px solid var(--ifm-color-emphasis-300);
}
.videoDescription {
padding: 0 1rem 1rem;
font-size: 1rem;
color: var(--ifm-color-emphasis-700);
}
.videoWrapper {
position: relative;
padding-top: 56.25%; /* 16:9 宽高比 */
width: 100%;
background-color: #000;
}
.videoFrame {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
.loadingIndicator {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background-color: #000;
color: white;
font-size: 1.2rem;
z-index: 1;
}
.videoTips {
padding: 0.75rem 1rem;
background-color: var(--ifm-color-emphasis-100);
border-top: 1px solid var(--ifm-color-emphasis-200);
color: var(--ifm-color-emphasis-700);
font-size: 0.9rem;
}
/* 深色模式调整 */
html[data-theme='dark'] .videoDemo {
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
html[data-theme='dark'] .videoTitle {
background-color: var(--ifm-color-emphasis-300);
color: var(--ifm-color-emphasis-900);
}
html[data-theme='dark'] .videoTips {
background-color: var(--ifm-color-emphasis-200);
}
/* 响应式样式 */
@media (max-width: 768px) {
.videoTitle {
font-size: 1.25rem;
padding: 0.75rem;
}
.videoDescription {
font-size: 0.9rem;
padding: 0 0.75rem 0.75rem;
}
.videoTips {
font-size: 0.8rem;
padding: 0.5rem 0.75rem;
}
.videoDemo {
margin: 1.5rem 0;
border-radius: 6px;
}
}
@media (max-width: 480px) {
.videoTitle {
font-size: 1.1rem;
padding: 0.5rem;
}
.loadingIndicator {
font-size: 1rem;
}
.videoDemo {
margin: 1rem 0;
border-radius: 4px;
}
}