打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:Video/styles.css

来自CalcWiki
小小白哦留言 | 贡献2026年2月12日 (四) 01:05的版本 (创建页面,内容为“.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 { d…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
.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;
    }
}