@mixin alltransition($ease-property, $ease-time, $ease){ -webkit-transition: $ease-property $ease-time $ease; -moz-transition: $ease-property $ease-time $ease; -ms-transition: $ease-property $ease-time $ease; -o-transition: $ease-property $ease-time $ease; transition: $ease-property $ease-time $ease; } @mixin myanimation ($name, $duration, $ease) { -webkit-animation: $name $duration $ease; -moz-animation: $name $duration $ease; -ms-animation: $name $duration $ease; -o-animation: $name $duration $ease; animation: $name $duration $ease; } @mixin scale ($factor) { -webkit-transform: scale($factor); -moz-transform: scale($factor); -ms-transform: scale($factor); -o-transform: scale($factor); } @mixin rotate ($deg) { -webkit-transform: rotate($deg); -moz-transform: rotate($deg); -ms-transform: rotate($deg); -o-transform: rotate($deg); } @mixin translate ($x, $y:0) { -webkit-transform: translate($x, $y); -moz-transform: translate($x, $y); -ms-transform: translate($x, $y); -o-transform: translate($x, $y); } .video-js{ #cb-vjs-comments{ overflow: hidden; position: absolute; left:0; bottom: 0; padding: 0 20px; width: 100%; height: 282px; z-index: 1; ul{ list-style: none; padding: 0; margin: 0; position: absolute; bottom: 0; } .cb-vjs-comments-list{ overflow: hidden; height: 74px; margin: 0 0 20px; @include alltransition($ease-property: all, $ease-time: 0.3s, $ease: linear); &.active{ @include myanimation ($name: lefttoright, $duration: 0.3s, $ease: ease-in); ~ .cb-vjs-comments-list{ position: absolute; left:-1000px; } } } .cb-vjs-comments-avatar{ width: 74px; height: 74px; border-radius: 37px; float: left; margin: 0 20px 0 0; } .cb-vjs-comment-box{ float: left; color: #c2c2c2; font-size: 16px; line-height:18px; font-weight: 600; padding: 2px 0; .comment{ font-size: 18px; line-height: 20px; color: #000; padding: 10px; border-radius: 2px; background: #fff; overflow: hidden; height: 40px; } } .cb-vjs-comment-username{ display: block; margin: 0 0 12px; } } } @mixin translate ($x, $y:0) { -webkit-transform: translate($x, $y); -moz-transform: translate($x, $y); -ms-transform: translate($x, $y); -o-transform: translate($x, $y); } @mixin lefttoright(){ 0%{ opacity: 0; @include translate ($x:-100%, $y:0); } 100%{ opacity: 1; @include translate ($x:0, $y:0); } } @-webkit-keyframes lefttoright { @include lefttoright(); } @-moz-keyframes lefttoright { @include lefttoright(); } @-o-keyframes lefttoright { @include lefttoright(); } @keyframes lefttoright { @include lefttoright(); } .cb-vjs-timecomment-form { top: 0; left: 0; position: absolute; display: table; height: 100%; width: 100%; z-index: 4; opacity: 0; @include scale ($factor:0); @include alltransition($ease-property: all, $ease-time: 0.6s, $ease: ease-in-out); &.open-comment { opacity: 1; @include scale ($factor:1); } .comment-wrapper { display: table-cell; vertical-align: middle; width: 100%; text-align: center; padding: 0 10px; .inner-wrapper { max-width: 550px; width: 100%; display: inline-block; padding: 20px; background-color: rgba(255,255,255, .9); overflow: hidden; .cb-vjs-comment-data { overflow: hidden; position: relative; padding: 0 0 12px 84px; img { position: absolute; top: 0; left: 0; width: 64px; height: 64px; border-radius: 32px; } textarea { width: 100%; border: 1px solid #d9d9d9; color: #000; height: 140px; padding: 20px; font-size: 14px; line-height: 18px; resize:none; &:focus, &:active { outline: none; } } } .cb-vjs-comments-btn-holder { text-align: right; overflow: hidden; span { background:#fff; border: 1px solid #e4e3e3; min-width: 130px; font-size: 16px; line-height: 16px; padding: 8px 0; margin: 0 0 0 8px; display: inline-block; vertical-align: middle; border-radius: 4px; color: #000; text-align: center; cursor: pointer; &.add-timecomment { background-color: #0080b4; color: #fff; border: 1px solid #0080b4; } } } } } } .video-js{ .cb-vjs-comments-display{ background: #fff; z-index: 2; } .vjs-progress-control:hover .vjs-progress-holder{ .cb-vjs-addcomment-clicker{ font-size: 12px; line-height: 16px; } } .cb-vjs-togglecomments-view{ flex: 0 0 auto; height: 20px; margin: 11px 0 0; outline:none; position: relative; text-align: center; width: 38px; background: #fff; border-radius: 2em; padding: 2px; cursor: pointer; span{ position: absolute; width: 16px; height: 16px; top: 2px; right: 2px; border-radius: 50%; background: #0080b4; @include alltransition($ease-property: all, $ease-time: 0.4s, $ease: ease-in-out); } &.comment-off{ span{ background: #8f8f8f; right: 20px; } } } .add-comment-holder{ outline: 0 none; padding: 0 0.4em; position: absolute; width: 100%; height: 14px; left: 0; top: 0; .add-comment-child-holder{ position: relative; width: 100%; height: 100%; } .cb-vjs-addcomment-clicker{ position: absolute; min-width: 132px; height: 26px; padding: 5px; background: #fff; bottom: 8px; left: -65px; z-index: 2; font-size: 12px; line-height: 16px; color: #000; &:after { top: 100%; left: 50%; border: solid transparent; content: ""; height: 0; width: 0; position: absolute; z-index: 2; pointer-events: none; border-color: rgba(255, 255, 255, 0); border-top-color: #fff; border-width: 6px; margin-left: -6px; } } } .vjs-progress-control{ &:hover .add-comment-holder{ padding: 0 0.7em; } } }