@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: #bdbdbd; height: 140px; padding: 20px; resize:none; &:focus, &:active { outline: none; } } } .cb-vjs-comments-btn-holder { text-align: right; overflow: hidden; span { background:#fff; border: 1px solid #e4e3e3; 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; } } } } } }