模板:Video/styles.css
来自CalcWiki
更多操作
< 模板:Video
.video-card {
margin: 1em auto;
max-width: 800px;
border: 1px solid #a2a9b1;
background: #f8f9fa;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
font-family: sans-serif;
overflow: hidden;
}
.video-header {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
padding: 1em 1.5em;
background: #ffffff;
border-bottom: 1px solid #c8ccd1;
}
.video-title {
display: flex;
align-items: center;
gap: 10px;
font-size: 1.2em;
font-weight: 600;
color: #202122;
}
.video-source {
background: #eaecf0;
padding: 4px 14px;
border-radius: 30px;
font-size: 0.85em;
color: #54595d;
border: none;
}
.video-iframe-container {
position: relative;
width: 100%;
padding-top: 56.25%;
background: #000000;
}
.video-iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
.video-caption {
padding: 1.2em 1.5em;
background: #ffffff;
border-top: 1px solid #eaecf0;
color: #2c3e50;
font-size: 0.95em;
line-height: 1.5;
}
.video-footer {
background: #f0f4fc;
padding: 0.7em 1.5em;
border-top: 1px solid #c8ccd1;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.9em;
}
.video-footer-left {
color: #3366cc;
}
.video-footer-right {
color: #54595d;
}
@media (prefers-color-scheme: dark) {
.video-card {
border-color: #404244;
background: #1a1c1e;
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.video-header {
background: #1e1f21;
border-bottom-color: #404244;
}
.video-title {
color: #eaeef2;
}
.video-source {
background: #2c2e30;
color: #d1d5d9;
}
.video-caption {
background: #1e1f21;
border-top-color: #404244;
color: #d4d8dc;
}
.video-footer {
background: #1a1c1e;
border-top-color: #404244;
}
.video-footer-left {
color: #99bbff;
}
.video-footer-right {
color: #b0b4b8;
}
}
@media (max-width: 600px) {
.video-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.video-caption {
padding: 1em;
}
.video-footer {
flex-direction: column;
gap: 6px;
text-align: center;
}
}