jquery实现一个酷黑自适应视频网站UI效果代码

代码语言:html

所属分类:布局界面

代码描述:jquery实现一个酷黑自适应视频网站UI效果代码

代码标签: 酷黑 适应 视频 网站 UI 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="UTF-8">
    <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/normalize.min.css">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/video-js.min.css">

    <style>
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");
        * {
            outline: none;
            box-sizing: border-box;
        }

        html {
            box-sizing: border-box;
            -webkit-font-smoothing: antialiased;
        }

        img {
            max-width: 100%;
        }

:root {
            --body-font: "Inter", sans-serif;
            --theme-bg: #1f1d2b;
            --body-color: #808191;
            --button-bg: #353340;
            --border-color: rgb(128 129 145 / 24%);
            --video-bg: #252936;
            --delay: 0s;
        }

        body {
            font-family: var(--body-font);
            color: var(--body-color);
            background-image: url("//repo.bfw.wiki/bfwrepo/image/601cfe57036c7.png");
            background-image: url(//repo.bfw.wiki/bfwrepo/image/601cfeba80ae1.png);
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            background-blend-mode: color-dodge;
            background-color: rgba(18, 21, 39, 0.86);
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            padding: 1em 2em;
            width: 100%;
            height: 100vh;
            overflow: hidden;
        }
        body:before {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(163deg, #1f1d2b 21%, rgba(31, 29, 43, 0.3113620448) 64%);
            opacity: 0.4;
            content: "";
        }

        .container {
            background-color: var(--theme-bg);
            max-width: 1240px;
            max-height: 900px;
            height: 95vh;
            display: flex;
            overflow: hidden;
            width: 100%;
            border-radius: 20px;
            font-size: 15px;
            font-weight: 500;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
            position: relative;
        }

        .sidebar {
            width: 220px;
            height: 100%;
            padding: 30px;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            transition-duration: 0.2s;
            overflow-y: auto;
            overflow-x: hidden;
        }
        .sidebar .logo {
            display: none;
            width: 30px;
            height: 30px;
            background-color: #22b07d;
            flex-shrink: 0;
            color: #fff;
            align-items: center;
            border-radius: 50%;
            justify-content: center;
        }
        .sidebar .logo-expand {
            text-decoration: none;
            color: #fff;
            font-size: 19px;
            font-weight: 600;
            line-height: 34px;
            position: -webkit-sticky;
            position: sticky;
            top: 0;
        }
        .sidebar .logo-expand:before {
            content: "";
            position: absolute;
            top: -30px;
            left: 0;
            background: var(--theme-bg);
            width: 200px;
            height: 70px;
            z-index: -1;
        }
        .sidebar-link:hover, .sidebar-link.is-active {
            color: #fff;
            font-weight: 600;
        }
        .sidebar-link:hover:nth-child(2n+1) svg, .sidebar-link.is-active:nth-child(2n+1) svg {
            background: #ff7551;
        }
        .sidebar-link:hover:nth-child(2n) svg, .sidebar-link.is-active:nth-child(2n) svg {
            background: #32a7e2;
        }
        .sidebar-link:hover:nth-child(2n+3) svg, .sidebar-link.is-active:nth-child(2n+3) svg {
            background: #6c5ecf;
        }
        .sidebar.collapse {
            width: 90px;
            border-right: 1px solid var(--border-color);
        }
        .sidebar.collapse .logo-expand,
        .sidebar.collapse .side-title {
            display: none;
        }
        .sidebar.collapse .logo {
            display: flex;
        }
        .sidebar.collapse .side-wrapper {
            width: 30px;
        }
        .sidebar.collapse .side-menu svg {
            margin-right: 30px;
        }

@-webkit-keyframes bottom {
            0% {
                transform: translateY(100px);
                opacity: 0;
            }
            100% {
                opacity: 1;
                transform: none;
            }
        }

@keyframes bottom {
            0% {
                transform: translateY(100px);
                opacity: 0;
            }
            100% {
                opacity: 1;
                transform: none;
            }
        }
        .side-menu {
            display: flex;
            flex-direction: column;
        }
        .side-menu a {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--body-color);
        }
        .side-menu a + a {
            margin-top: 26px;
        }
        .side-menu svg {
            width: 30px;
            padding: 8px;
            border-radius: 10px;
            background-color: var(--button-bg);
            flex-shrink: 0;
            margin-right: 16px;
        }
        .side-menu svg:hover {
            color: #fff;
        }

        .side-title {
            font-size: 12px;
            letter-spacing: 0.07em;
            margin-bottom: 24px;
        }

        .side-wrapper {
            border-bottom: 1px solid var(--border-color);
            padding: 36px 0;
            width: 145px;
        }
        .side-wrapper + .side-wrapper {
            border-bottom: none;
        }

        .wrapper {
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }

        .header {
            display: flex;
            align-items: center;
            flex-shrink: 0;
            padding: 30px;
        }

        .search-bar {
            height: 34px;
            display: flex;
            width: 100%;
            max-width: 450px;
        }
        .search-bar input {
            width: 100%;
            height: 100%;
            border: none;
            background-color: var(--button-bg);
            border-radius: 8px;
            font-family: var(--body-font);
            font-size: 14px;
            font-weight: 500;
            padding: 0 40px 0 16px;
            box-shadow: 0 0 0 2px rgba(134, 140, 160, 0.02);
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56.966 56.966' fill='%23717790c7'%3e%3cpath d='M55.146 51.887L41.588 37.786A22.926 22.926 0 0046.984 23c0-12.682-10.318-23-23-23s-23 10.318-23 23 10.318 23 23 23c4.761 0 9.298-1.436 13.177-4.162l13.661 14.208c.571.593 1.339.92 2.162.92.779 0 1.518-.297 2.079-.837a3.004 3.004 0 00.083-4.242zM23.984 6c9.374 0 17 7.626 17 17s-7.626 17-17 17-17-7.626-17-17 7.626-17 17-17z'/%3e%3c/svg%3e");
            background-size: 14px;
            background-repeat: no-repeat;
            background-position: 96%;
            color: #fff;
        }

        .user-settings {
            display: flex;
            align-items: center;
            padding-left: 20px;
            flex-shrink: 0;
            margin-left: auto;
        }
        .user-settings svg {
            width: 10px;
            flex-shrink: 0;
        }
@media screen and (max-width: 575px) {
            .user-settings svg {
                display: none;
            }
        }
        .user-settings .notify {
            position: relative;
        }
        .user-settings .notify svg {
            width: 20px;
            margin-left: 24px;
            flex-shrink: 0;
        }
        .user-settings .notify .notification {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #ec5252;
            position: absolute;
            right: 1px;
            border: 1px solid var(--theme-bg);
            top: -2px;
        }
@media screen and (max-width: 575px) {
            .user-settings .notify .notification {
                display: none;
            }
        }
        .user-img {
            width: 30px;
            height: 30px;
            flex-shrink: 0;
            -o-object-fit: cover;
            object-fit: cover;
            border-radius: 50%;
        }
        .user-name {
            color: #fff;
            font-size: 14px;
            margin: 0 6px 0 12px;
        }
@media screen and (max-width: 575px) {
            .user-name {
                display: none;
            }
        }

        .main-container {
            display: flex;
            flex-direction: column;
            padding: 0 30px 30px;
            flex-grow: 1;
            overflow: auto;
        }

        .anim {
            -webkit-animation: bottom   0.8s var(--delay) both;
            animation: bottom   0.8s var(--delay) both;
        }

        .main-header {
            font-size: 30px;
            color: #fff;
            font-weight: 700;
            padding-bottom: 20px;
            position: -webkit-sticky;
            position: sticky;
            top: 0;
            left: 0;
            background: linear-gradient(tobottom,#1f1d2b 0%, #1f1d2b 78%, rgba(31, 29, 43, 0) 100%);
            z-index: 11;
        }

        .small-header {
            font-size: 24px;
            font-weight: 500;
            color: #fff;
            margin: 30px 0 20px;
        }

        .main-blogs {
            display: flex;
            align-items: center;
        }
        .main-blog__author {
            display: flex;
            align-items: center;
            padding-bottom: 10px;
        }
        .main-blog__author.tips {
            flex-direction: column-reverse;
            align-items: flex-start;
        }
        .main-blog__title {
            font-size: 25px;
            max-width: 12ch;
            font-weight: 600;
            letter-spacing: 1px;
            color: #fff;
            margin-bottom: 30px;
        }
        .main-blog {
 
            background-size: 80%;
            background-position-x: 150px;
            background-color: #31abbd;
            display: flex;
            flex-direction: column;
            width: 65%;
            padding: 30px;
            border-radius: 20px;
            align-self: stretch;
            overflow: hidden;
            position: relative;
            transition: background 0.3s;
            background-repeat: no-repeat;
        }
        .main-blog + .main-blog {
            margin-left: 20px;
            width: 35%;
            background-image: url(//repo.bfw.wiki/bfwrepo/image/601cfdea1ec90.png);
            background-color: unset;
            background-position-x: 0;
            background-size: 139%;
            filter: saturate(1.4);
        }
        .main-blog + .main-blog .author-img {
            border-color: rgba(255, 255, 255, 0.75);
            margin-top: 14px;
        }
        .main-blog + .main-blog .author-img__wrapper svg {
            border-color: #ffe6b2;
            color: #e7bb7d;
        }
        .main-blog + .main-blog .author-detail {
            margin-left: 0;
        }
@media screen and (max-width: 905px) {
            .main-blog, .main-blog + .main-blog {
                width: 50%;
                padding: 30px;
            }
            .main-blog {
                background-size: cover;
                background-position-x: center;
                background-blend-mode: overlay;
            }
        }
        .main-blog__time {
            background: rgba(21, 13, 13, 0.44);
            color: #fff;
            padding: 3px 8px;
            font-size: 12px;
            border-radius: 6px;
            position: absolute;
            right: 20px;
            bottom: 20px;
        }

        .author-img {
            width: 52px;
            height: 52px;
            border: 1px solid rgba(255, 255, 255, 0.75);
            padding: 4px;
            border-radius: 50%;
            -o-object-fit: cover;
            object-fit: cover;
        }
        .author-img__wrapper {
            position: relative;
            flex-shrink: 0;
        }
        .author-img__wrapper svg {
            width: 16px;
            padding: 2px;
            background-color: #fff;
            color: #0daabc;
            border-radius: 50%;
            border: 2px solid #0daabc;
            position: absolute;
            bottom: 5px;
            right: 0;
        }
        .author-name {
            font-size: 15px;
            color: #fff;
            font-weight: 500;
            margin-bottom: 8px;
        }
        .author-info {
            font-size: 13px;
            font-weight: 400;
            color: #fff;
        }
        .author-detail {
            margin-left: 16px;
        }

        .seperate {
            width: 3px;
            height: 3px;
            display: inline-block;
            vertical-align: middle;
            border-radius: 50%;
            background-color: #fff;
            margin: 0 6px;
        }
        .seperate.video-seperate {
            background-color: var(--body-color);
        }

        .videos {
            display: grid;
            width: 100%;
            grid-template-columns: repeat(4, 1fr);
            grid-column-gap: 20px;
            grid-row-gap: 20px;
        }
@media screen and (max-width: 980px) {
            .videos {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .video {
            position: relative;
            background-color: var(--video-bg);
            border-radius: 20px;
            overflow: hidden;
            transition: 0.4s;
        }
        .video-wrapper {
            position: relative;
        }
        .video-name {
            color: #fff;
            font-size: 16px;
            line-height: 1.4em;
            padding: 12px 20px 0;
            overflow: hidden;
            background-color: var(--video-bg);
            z-index: 9;
            position: relative;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }
        .video-view {
            font-size: 12px;
            padding: 12px 20px 20px;
            background-color: var(--video-bg);
            position: relative;
        }
        .video-by {
            transition: 0.3s;
            padding: 20px 20px 0px;
            display: inline-flex;
            position: relative;
        }
        .video-by:before {
            content: "";
            background-color: #22b07d;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            position: absolute;
            top: 26px;
            right: 5px;
        }
        .video-by.offline:before {
            background-color: #ff7551;
        }
        .video-time {
            position: absolute;
            background: rgba(21, 13, 13, 0.44);
            color: rgba(255, 255, 255, 0.85);
            padding: 3px 8px;
            font-size: 12px;
            border-radius: 6px;
            top: 10px;
            z-index: 1;
            right: 8px;
        }
        .video:hover video {
            transform: scale(1.6);
            transform-origin: center;
        }
        .video:hover .video-time {
            display: none;
        }
        .video:hover .video-author {
            bottom: -65px;
            transform: scale(0.6);
            right: -3px;
            z-index: 10;
        }
        .video:hover .video-by {
            opacity: 0;
        }
        .video-author {
            position: absolute;
            right: 10px;
            transition: 0.4s;
            bottom: -25px;
        }
        .video-author svg {
            background-color: #0aa0f7;
            color: #fff;
            border-color: var(--video-bg);
        }

        video {
            max-width: 100%;
            width: 100%;
            border-radius: 20px 20px 0 0;
            display: block;
            cursor: pointer;
            transition: 0.4s;
        }

        .stream-area {
            display: none;
        }
@media screen and (max-width: 940px) {
            .stream-area {
                flex-direction: column;
            }
            .stream-area .video-stream {
                width: 100%;
            }
            .stream-area .chat-stream {
                margin-left: 0;
                margin-top: 30px;
            }
            .stream-area .video-js.vjs-fluid {
                min-height: 250px;
            }
            .stream-area .msg__content {
                max-width: 100%;
            }
        }

        .show .stream-area {
            display: flex;
        }
        .show .main-header,
        .show .main-blogs,
        .show .small-header,
        .show .videos {
            display: none;
        }

        .video-stream {
            width: 65%;
            -o-object-fit: cover;
            object-fit: cover;
            transition: 0.3s;
        }
        .video-stream:hover .video-js .vjs-big-play-button {
            opacity: 1;
        }

        .video-p {
            margin-right: 12px;
            -o-object-fit: cover;
            object-fit: cover;
            flex-shrink: 0;
            border-radius: 50%;
            position: relative;
            top: 0;
            left: 0;
        }
        .video-p .author-img {
            border: 0;
        }
        .video-p-wrapper {
            display: flex;
            align-items: center;
        }
        .video-p-wrapper .author-img {
            border: 0;
        }
        .video-p-wrapper svg {
            width: 20px;
            padding: 4px;
        }
@media screen and (max-width: 650px) {
            .video-p-wrapper {
                flex-direction: column;
            }
            .video-p-wrapper .button-wrapper {
                margin: 20px auto 0;
            }
            .video-p-wrapper .video-p-detail {
                display: flex;
                flex-direction: column;
                align-items: center;
            }
            .video-p-wrapper .video-p {
                margin-right: 0;
            }
        }
        .video-p-sub {
            font-size: 12px;
        }
        .video-p-title {
            font-size: 24px;
            color: #fff;
            line-height: 1.4em;
            margin: 16px 0 20px;
        }
        .video-p-subtitle {
            font-size: 14px;
            line-height: 1.5em;
            max-width: 60ch;
        }
        .video-p-subtitle + .video-p-subtitle {
            margin-top: 16px;
        }
        .video-p-name {
            margin-bottom: 8px;
            color: #fff;
            display: flex;
            align-items: center;
        }
        .video-p-name:after {
            content: "";
            width: 6px;
            height: 6px;
            background-color: #22b07d;
            border-radius: 50%;
            margin-left: 8px;
            display: inline-block;
        }
        .video-p-name.offline:after {
            background-color: #ff7551;
        }

        .video-content {
            width: 100%;
        }

        .button-wrapper {
            display: flex;
            align-items: center;
            margin-left: auto;
        }

        .like {
            display: flex;
            align-items: center;
            background-color: var(--button-bg);
            color: #fff;
            border: 0;
            font-family: var(--body-font);
            border-radius: 8px;
            padding: 10px 16px;
            font-size: 14px;
            cursor: pointer;
        }
        .like.red {
            background-color: #ea5f5f;
        }
        .like svg {
            width: 18px;
            flex-shrink: 0;
            margin-right: 10px;
            padding: 0;
        }
        .like + .like {
            margin-left: 16px;
        }

        .video-stats {
            margin-left: 30px;
        }

        .video-detail {
            display: flex;
            margin-top: 30px;
            width: 100%;
        }

        .chat-header {
            display: flex;
            align-items: center;
            padding: 20px 0;
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            position: -webkit-sticky;
            position: sticky;
            top: 0;
            background-color: #252836;
            left: 0;
            z-index: 1;
            border-bottom: 1px solid var(--border-color);
        }
        .chat-header svg {
            width: 15px;
            margin-right: 6px;
            flex-shrink: 0;
        }
        .chat-header span {
            margin-left: auto;
            color: var(--body-color);
            font-size: 12px;
            display: flex;
            align-items: center;
        }

        .chat-stream {
            flex-grow: 1;
            margin-left: 30px;
        }

        .chat {
            background-color: #252836;
            border-radius: 20px;
            padding: 0 20px;
            max-height: 414px;
            overflow: auto;
        }
        .chat-footer {
            display: flex;
            align-items: center;
            position: -webkit-sticky;
            position: sticky;
            bottom: 0;
            left: 0;
            width: calc(100% + 20px);
            padding-bottom: 12px;
            background-color: #252836;
        }
        .chat-footer input {
            width: 100%;
            border: 0;
            background-color: #2d303e;
            border-radius: 20px;
            font-size: 12px;
            color: #fff;
            margin-left: -10px;
            padding: 12px 40px;
            font-weight: 500;
            font-family: var(--body-font);
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='24' height='24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2 12C2 6.48 6.47 2 12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10C6.47 22 2 17.52 2 12zm5.52 1.2c-.66 0-1.2-.54-1.2-1.2 0-.66.54-1.2 1.2-1.2.66 0 1.19.54 1.19 1.2 0 .66-.53 1.2-1.19 1.2zM10.8 12c0 .66.54 1.2 1.2 1.2.66 0 1.19-.54 1.19-1.2a1.194 1.194 0 10-2.39 0zm4.48 0a1.195 1.195 0 102.39 0 1.194 1.194 0 10-2.39 0z' fill='%236c6e78'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-size: 24px;
            background-position: 8px;
        }
        .chat-footer input::-moz-placeholder {
            color: #6c6e78;
        }
        .chat-footer input:-ms-input-placeholder {
            color: #6c6e78;
        }
        .chat-footer input::placeholder {
            color: #6c6e78;
        }
        .chat-footer:before {
            content: "";
            position: absolute;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M21.435 2.582a1.933 1.933 0 00-1.93-.503L3.408 6.759a1.92 1.92 0 00-1.384 1.522c-.142.75.355 1.704 1.003 2.102l5.033 3.094a1.304 1.304 0 001.61-.194l5.763-5.799a.734.734 0 011.06 0c.29.292.29.765 0 1.067l-5.773 5.8c-.428.43-.508 1.1-.193 1.62l3.075 5.083c.36.604.98.946 1.66.946.08 0 .17 0 .251-.01.78-.1 1.4-.634 1.63-1.39l4.773-16.075c.21-.685.02-1.43-.48-1.943z'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-size: 14px;
            background-position: center;
            width: 18px;
            height: 18px;
            background-color: #6c5ecf;
            padding: 4px;
            border-radius: 50%;
            right: 16px;
        }
        .chat-vid__title {
            color: #fff;
            font-size: 18px;
        }
        .chat-vid__container {
            margin-top: 40px;
        }
        .chat-vid__wrapper {
            display: flex;
            align-items: center;
            margin-top: 26px;
        }
        .chat-vid__name {
            color: #fff;
            font-size: 14px;
            line-height: 1.3em;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            overflow: hidden;
            -webkit-box-orient: vertical;
        }
        .chat-vid__img {
            width: 100px;
            height: 80px;
            border-radius: 10px;
            -o-object-fit: cover;
            object-fit: cover;
            -o-object-position: right;
            object-position: right;
            margin-right: 16px;
            transition: 0.3s;
        }
        .chat-vid__img:hover {
            transform: scale(1.02);
        }
        .chat-vid__content {
            max-width: 20ch;
        }
        .chat-vid__by, .chat-vid__info {
            color: var(--body-color);
            font-size: 13px;
        }
        .chat-vid__by {
            margin: 6px 0;
        }
        .chat-vid__button {
            background-color: #6c5ecf;
            border: 0;
            color: #fff;
            font-size: 13px;
            margin-top: 26px;
            display: flex;
            padding: 0 10px;
            align-items: center;
            justify-content: center;
            height: 40px;
            border-radius: 10px;
            cursor: pointer;
            transition: 0.3s;
        }
        .chat-vid__button:hover {
            background-color: #5847d0;
        }

        .message {
            display: flex;
            align-items: center;
            margin-top: 18px;
        }
        .message:last-child {
            margin-bottom: 18px;
        }
        .message-container .author-img__wrapper svg {
            width: 15px;
        }

        .msg__name {
            font-size: 13px;
        }
        .msg__content {
            line-height: 1.4em;
            max-width: 26ch;
            display: -webkit-box;
            overflow: hidden;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .video-js .vjs-control-bar {
            display: flex;
            align-items: center;
        }

        .vjs-poster {
            background-size: 150%;
        }

        .video-js .vjs-control-bar {
            width: 100%;
            position: absolute;
            bottom: 14px;
            padding-left: 36px;
            left: 14px;
            width: calc(100% - 28px);
            right: 0;
            border-radius: 10px;
            height: 4em;
            background-color: #2b333f;
            background-color: rgba(43, 51, 63, 0.7);
        }
@media screen and (max-width: 625px) {
            .video-js .vjs-control-bar {
                padding-left: 0;
            }
        }

        .video-js:hover .vjs-big-play-button {
            background-color: rgba(43, 51, 63, 0.5);
        }

        .video-js .vjs-big-play-button {
            transition: 0.3s;
            opacity: 0;
            border: 0;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }
        .video-js .vjs-big-play-button:hover {
            background-color: rgba(43, 51, 63, 0.7);
            border-color: transparent;
        }

        .vjs-play-control:after {
            content: "LIVE";
            position: absolute;
            left: -66px;
            top: 7px;
            background-color: #8941e3;
            height: 24px;
            font-family: var(--body-font);
            font-size: 10px;
            padding: 0 12px 0 26px;
            display: flex;
            font-weight: 700;
            letter-spacing: 0.03em;
            align-items: center;
            border-radius: 6px;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23fff' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-circle'%3e%3ccircle cx='12' cy='12' r='10'/%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-size: 6px;
            background-position: 12px;
        }
@media screen and (max-width: 625px) {
            .vjs-play-control:after {
                display: none;
            }
        }

        .vjs-menu-button-inline .vjs-menu {
            top: 4px;
        }

        .video-js .vjs-control:before,
        .video-js .vjs-time-control {
            line-height: 40px;
        }

        .video-js .vjs-tech {
            -o-object-fit: cover;
            object-fit: cover;
        }

        button.vjs-play-control.vjs-control.vjs-button {
            margin-left: 40px;
        }
@media screen and (max-width: 625px) {
            button.vjs-play-control.vjs-control.vjs-button {
                margin-left: 0;
            }
        }

        .vjs-icon-fullscreen-enter:before,
        .video-js .vjs-fullscreen-control:before {
            content: "";
            position: absolute;
            display: block;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='20' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M2.54 0h3.38c1.41 0 2.54 1.15 2.54 2.561V5.97c0 1.42-1.13 2.56-2.54 2.56H2.54C1.14 8.53 0 7.39 0 5.97V2.561C0 1.15 1.14 0 2.54 0zm0 11.47h3.38c1.41 0 2.54 1.14 2.54 2.56v3.41c0 1.41-1.13 2.56-2.54 2.56H2.54C1.14 20 0 18.85 0 17.44v-3.41c0-1.42 1.14-2.56 2.54-2.56zM17.46 0h-3.38c-1.41 0-2.54 1.15-2.54 2.561V5.97c0 1.42 1.13 2.56 2.54 2.56h3.38c1.4 0 2.54-1.14 2.54-2.56V2.561C20 1.15 18.86 0 17.46 0zm-3.38 11.47h3.38c1.4 0 2.54 1.14 2.54 2.56v3.41c0 1.41-1.14 2.56-2.54 2.56h-3.38c-1.41 0-2.54-1.15-2.54-2.56v-3.41c0-1.42 1.13-2.56 2.54-2.56z' fill='%23fff'/%3e%3c/svg%3e");
            background-size: 11px;
            background-position: center;
            background-position-y: 14px;
            background-repeat: no-repeat;
            opacity: 0.6;
        }

        .vjs-playback-rate .vjs-playback-rate-value {
            font-size: 1.1em;
            line-height: 3.5em;
            opacity: 0.6;
            font-weight: 700;
            font-family: var(--body-font);
        }

        .video-js .vjs-playback-rate {
            width: 2.2em;
        }

        .video-js.vjs-fluid {
            border-radius: 20px;
            overflow: hidden;
            min-height: 414px;
        }

@media screen and (max-width: 735px) {
            .main-blogs {
                flex-wrap: wrap;
            }

            .main-blog,
            .main-blog + .main-blog {
                width: 100%;
            }

            .videos {
                grid-template-columns: 1fr;
            }

            .main-blog + .main-blog {
                margin-left: 0;
                margin-top: 20px;
                background-size: cover;
            }
        }
@media screen and (max-width: 475px) {
            .main-blog__title {
                font-size: 20px;
            }

            .author-name {
                font-size: 14px;
            }

            .main-blog__author {
                flex-direction: column-reverse;
                align-items: flex-start;
            }

            .author-detail {
                margin-left: 0;
            }

            .main-blog .author-img {
                margin-top: 14px;
            }

            .main-container {
                padding: 0 20px 20px;
            }

            .header {
                padding: 20px;
            }

            .sidebar.collapse {
                width: 40px;
            }

            .sidebar {
                align-items: center;
            }

            body {
                padding: 0;
            }

            .container {
                height: 100vh;
                border-radius: 0;
                max-height: 100%;
            }
        }
        ::-webkit-scrollbar {
            width: 6px;
            border-radius: 10px;
        }

        ::-webkit-scrollbar-thumb {
            background-color: rgba(21, 20, 26, 0.63);
            border-radius: 10px;
        }
    </style>




</head>

<body>
    <div class="container">
        <div class="sidebar">
            <span class="logo">S</span>
            <a class="logo-expand" href="#">skateboard</a>
            <div class="side-wrapper">
                <div class="side-title">
                    MENU
                </div>
                <div class="side-menu">
                    <a class="sidebar-link discover is-active" href="#">
                        <svg viewBox="0 0 24 24" fill="currentColor">
                            <path d="M9.135 20.773v-3.057c0-.78.637-1.414 1.423-1.414h2.875c.377 0 .74.15 1.006.414.267.265.417.625.417 1v3.057c-.002.325.126.637.356.867.23.23.544.36.87.36h1.962a3.46 3.46 0 002.443-1 3.41 3.41 0 001.013-2.422V9.867c0-.735-.328-1.431-.895-1.902l-6.671-5.29a3.097 3.097 0 00-3.949.072L3.467 7.965A2.474 2.474 0 002.5 9.867v8.702C2.5 20.464 4.047 22 5.956 22h1.916c.68 0 1.231-.544 1.236-1.218l.027-.009z" />
                        </svg>
                        Discover
                    </a>
                    <a class="sidebar-link trending" href="#">
                        <svg viewBox="0 0 24 24" fill="currentColor">
                            <path fill-rule="evenodd" clip-rule="evenodd" d="M10.835 12.007l.002.354c.012 1.404.096 2.657.242 3.451 0 .015.16.802.261 1.064.16.38.447.701.809.905a2 2 0 00.91.219c.249-.012.66-.137.954-.242l.244-.094c1.617-.642 4.707-2.74 5.891-4.024l.087-.09.39-.42c.245-.322.375-.715.375-1.138 0-.379-.116-.758-.347-1.064-.07-.099-.18-.226-.28-.334l-.379-.397c-1.305-1.321-4.129-3.175-5.593-3.79 0-.013-.91-.393-1.343-.407h-.057c-.665 0-1.286.379-1.603.991-.087.168-.17.496-.233.784l-.114.544c-.13.874-.216 2.216-.216 3.688zm-6.332-1.525C3.673 10.482 3 11.162 3 12a1.51 1.51 0 001.503 1.518l3.7-.328c.65 0 1.179-.532 1.179-1.19 0-.658-.528-1.191-1.18-1.191l-3.699-.327z" />
                        </svg>
                        Trending
                    </a>
                    <a class="sidebar-link" href="#">
                        <svg viewBox="0 0 24 24" fill="currentColor">
                            <path d="M11.23 7.29V3.283c0-.427.34-.782.77-.782.385 0 .711.298.763.677l.007.104v4.01h4.78c2.38 0 4.335 1.949 4.445 4.38l.005.215v5.04c0 2.447-1.887 4.456-4.232 4.569l-.208.005H6.44c-2.38 0-4.326-1.94-4.435-4.379L2 16.905v-5.03c0-2.447 1.878-4.466 4.222-4.58l.208-.004h4.8v6.402l-1.6-1.652a.755.755 0 00-1.09 0 .81.81 0 00-.22.568c0 .157.045.32.14.459l.08.099 2.91 3.015c.14.155.34.237.55.237a.735.735 0 00.465-.166l.075-.071 2.91-3.015c.3-.31.3-.816 0-1.126a.755.755 0 00-1.004-.077l-.086.077-1.59 1.652V7.291h-1.54z" />
                        </svg>
                        Streaming
                    </a>
                    <a class="sidebar-link" href="#">
                        <svg viewBox="0 0 24 24" fill="currentColor">
                            <path fill-rule="evenodd" clip-rule="evenodd" d="M12.1535 16.64L14.995 13.77C15.2822 13.47 15.2822 13 14.9851 12.71C14.698 12.42 14.2327 12.42 13.9455 12.71L12.3713 14.31V9.49C12.3713 9.07 12.0446 8.74 11.6386 8.74C11.2327 8.74 10.896 9.07 10.896 9.49V14.31L9.32178 12.71C9.03465 12.42 8.56931 12.42 8.28218 12.71C7.99505 13 7.99505 13.47 8.28218 13.77L11.1139 16.64C11.1832 16.71 11.2624 16.76 11.3515 16.8C11.4406 16.84 11.5396 16.86 11.6386 16.86C11.7376 16.86 11.8267 16.84 11.9158 16.8C12.005 16.76 12.0842 16.71 12.1535 16.64ZM19.3282 9.02561C19.5609 9.02292 19.8143 9.02 20.0446 9.02C20.302 9.02 20.5 9.22 20.5 9.47V17.51C20.5 19.99 18.5 22 16.0446 22H8.17327C5.58911 22 3.5 19.89 3.5 17.29V6.51C3.5 4.03 5.4901 2 7.96535 2H13.2525C13.5 2 13.7079 2.21 13.7079 2.46V5.68C13.7079 7.51 15.1931 9.01 17.0149 9.02C17.4333 9.02 17.8077 9.02318 18.1346 9.02595C18.3878 9.02809 18.6125 9.03 18.8069 9.03C18.9479 9.03 19.1306 9.02789 19.3282 9.02561ZM19.6045 7.5661C18.7916 7.5691 17.8322 7.5661 17.1421 7.5591C16.047 7.5591 15.145 6.6481 15.145 5.5421V2.9061C15.145 2.4751 15.6629 2.2611 15.9579 2.5721C16.7203 3.37199 17.8873 4.5978 18.8738 5.63395C19.2735 6.05379 19.6436 6.44249 19.945 6.7591C20.2342 7.0621 20.0223 7.5651 19.6045 7.5661Z" />
                        </svg>
                        Playlist
                    </a>
                    <a class="sidebar-link" href="#">
                        <svg viewBox="0 0 24 24" fill="currentColor">
                            <path fill-rule="evenodd" clip-rule="evenodd" d="M17.769 8.382H22C22 4.985 19.964 3 16.516 3H7.484C4.036 3 2 4.985 2 8.338v7.324C2 19.015 4.036 21 7.484 21h9.032C19.964 21 22 19.015 22 15.662v-.313h-4.231c-1.964 0-3.556-1.552-3.556-3.466 0-1.915 1.592-3.467 3.556-3.467v-.034zm0 1.49h3.484c.413 0 .747.326.747.728v2.531a.746.746 0 01-.747.728H17.85c-.994.013-1.864-.65-2.089-1.595a1.982 1.982 0 01.433-1.652 2.091 2.091 0 011.576-.74zm.151 2.661h.329a.755.755 0 00.764-.745.755.755 0 00-.764-.746h-.329a.766.766 0 00-.54.213.727.727 0 00-.224.524c0 .413.34.75.764.754zM6.738 8.382h5.644a.755.755 0 00.765-.746.755.755 0 00-.765-.745H6.738a.755.755 0 00-.765.737c0 .413.341.75.765.754z" />
                        </svg>
                        Bookmark
                    </a>
                </div>
            </div>
            <div class="side-wrapper">
                <div class="side-title">
                    CATEGORY
                </div>
                <div class="side-menu">
                    <a class="sidebar-link" href="#">
                        <svg viewBox="0 0 24 24" fill="currentColor">
                            <path fill-rule="evenodd" clip-rule="evenodd" d="M15.164 6.083l.948.011c3.405 0 5.888 2.428 5.888 5.78v4.307c0 3.353-2.483 5.78-5.888 5.78A193.5 193.5 0 0112.01 22c-1.374 0-2.758-.01-4.122-.038-3.405 0-5.888-2.428-5.888-5.78v-4.307c0-3.353 2.483-5.78 5.898-5.78 1.286-.02 2.6-.04 3.935-.04v-.163c0-.665-.56-1.204-1.226-1.204h-.972c-1.109 0-2.012-.886-2.012-1.965 0-.395.334-.723.736-.723.412 0.........完整代码请登录后点击上方下载按钮下载查看

网友评论0