player comments responsiveness and ui fixes done
This commit is contained in:
parent
a0843c0f36
commit
dedbc243eb
2 changed files with 186 additions and 45 deletions
File diff suppressed because one or more lines are too long
|
@ -30,19 +30,19 @@
|
||||||
-ms-transform: translate($x, $y);
|
-ms-transform: translate($x, $y);
|
||||||
-o-transform: translate($x, $y);
|
-o-transform: translate($x, $y);
|
||||||
}
|
}
|
||||||
|
$blue-player:#0080b4;
|
||||||
.video-js{
|
.video-js{
|
||||||
#cb-vjs-comments{
|
#cb-vjs-comments{
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left:0;
|
left:0;
|
||||||
bottom: 23px;
|
bottom: 38px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 282px;
|
height: 185px;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
ul{
|
ul{
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0 20px;
|
padding: 0 10px;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
@ -50,8 +50,8 @@
|
||||||
}
|
}
|
||||||
.cb-vjs-comments-list{
|
.cb-vjs-comments-list{
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 74px;
|
height: 50px;
|
||||||
margin: 0 0 20px;
|
margin: 0 0 10px;
|
||||||
@include alltransition($ease-property: all, $ease-time: 0.3s, $ease: linear);
|
@include alltransition($ease-property: all, $ease-time: 0.3s, $ease: linear);
|
||||||
&.active{
|
&.active{
|
||||||
@include myanimation ($name: lefttoright, $duration: 0.3s, $ease: ease-in);
|
@include myanimation ($name: lefttoright, $duration: 0.3s, $ease: ease-in);
|
||||||
|
@ -65,34 +65,34 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.cb-vjs-comments-avatar{
|
.cb-vjs-comments-avatar{
|
||||||
width: 74px;
|
width: 50px;
|
||||||
height: 74px;
|
height: 50px;
|
||||||
border-radius: 37px;
|
border-radius: 50%;
|
||||||
float: left;
|
float: left;
|
||||||
margin: 0 20px 0 0;
|
margin: 0 10px 0 0;
|
||||||
|
|
||||||
}
|
}
|
||||||
.cb-vjs-comment-box{
|
.cb-vjs-comment-box{
|
||||||
float: left;
|
float: left;
|
||||||
color: #c2c2c2;
|
color: #c2c2c2;
|
||||||
font-size: 16px;
|
font-size: 12px;
|
||||||
line-height:18px;
|
line-height:14px;
|
||||||
font-weight: 600;
|
|
||||||
padding: 2px 0;
|
padding: 2px 0;
|
||||||
.comment{
|
.comment{
|
||||||
font-size: 18px;
|
font-size: 14px;
|
||||||
line-height: 20px;
|
line-height: 16px;
|
||||||
color: #000;
|
color: #000;
|
||||||
padding: 10px;
|
padding: 5px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: 40px;
|
height: 27px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.cb-vjs-comment-username{
|
.cb-vjs-comment-username{
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 0 12px;
|
margin: 0 0 5px;
|
||||||
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -150,23 +150,57 @@
|
||||||
.inner-wrapper {
|
.inner-wrapper {
|
||||||
max-width: 550px;
|
max-width: 550px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 14px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding: 20px;
|
padding: 10px 10px 10px 0;
|
||||||
background-color: rgba(255,255,255, .9);
|
background: rgba(255,255,255, .9);
|
||||||
overflow: hidden;
|
color: #000;
|
||||||
|
position: relative;
|
||||||
|
@include alltransition($ease-property: all, $ease-time: 0.3s, $ease: ease-in-out);
|
||||||
|
.timecomments-header{
|
||||||
|
padding: 0 5px 0 15px;
|
||||||
|
}
|
||||||
|
.alert{
|
||||||
|
margin: 0 0 5px;
|
||||||
|
@include alltransition($ease-property: all, $ease-time: 0.3s, $ease: ease-in-out);
|
||||||
|
}
|
||||||
|
#timecomment-box-dismiss{
|
||||||
|
position: absolute;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
top: -12px;
|
||||||
|
right: -12px;
|
||||||
|
font-size: 20px;
|
||||||
|
line-height: 25px;
|
||||||
|
text-align: center;
|
||||||
|
color:$blue-player;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 50%;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
.cb-vjs-comment-data {
|
.cb-vjs-comment-data {
|
||||||
|
margin: 0 0 5px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
>div{
|
||||||
padding: 0 0 12px 84px;
|
overflow: hidden;
|
||||||
|
padding:5px 5px 5px 0;
|
||||||
|
&:first-child{
|
||||||
|
overflow: visible;
|
||||||
|
float: left;
|
||||||
|
width: 84px;
|
||||||
|
padding:5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
img {
|
img {
|
||||||
position: absolute;
|
display:block;
|
||||||
top: 0;
|
width: 50px;
|
||||||
left: 0;
|
height: 50px;
|
||||||
width: 64px;
|
border-radius:50%;
|
||||||
height: 64px;
|
margin: 0 auto 10px;
|
||||||
border-radius: 32px;
|
|
||||||
}
|
}
|
||||||
textarea {
|
textarea {
|
||||||
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 1px solid #d9d9d9;
|
border: 1px solid #d9d9d9;
|
||||||
color: #000;
|
color: #000;
|
||||||
|
@ -175,34 +209,63 @@
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
resize:none;
|
resize:none;
|
||||||
|
vertical-align: top;
|
||||||
|
-webkit-appearance:none;
|
||||||
&:focus,
|
&:focus,
|
||||||
&:active {
|
&:active {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.time-username{
|
||||||
|
display: block;
|
||||||
|
color: $blue-player;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.timecomments-footer{
|
||||||
|
padding: 0 5px 0 89px;
|
||||||
|
&:after{
|
||||||
|
clear: both;
|
||||||
|
display: block;
|
||||||
|
content: "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.character-counter{
|
||||||
|
float: left;
|
||||||
|
width: 50px;
|
||||||
|
color: #000;
|
||||||
|
line-height: 30px;
|
||||||
|
padding: 0 5px 0 0;
|
||||||
|
text-align: left;
|
||||||
}
|
}
|
||||||
.cb-vjs-comments-btn-holder {
|
.cb-vjs-comments-btn-holder {
|
||||||
|
float: right;
|
||||||
|
width: 200px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
overflow: hidden;
|
padding: 0 0 0 5px;
|
||||||
span {
|
&:after{
|
||||||
background:#fff;
|
clear: both;
|
||||||
border: 1px solid #e4e3e3;
|
display: block;
|
||||||
min-width: 130px;
|
content: "";
|
||||||
font-size: 16px;
|
}
|
||||||
|
.add-timecomment {
|
||||||
|
min-width: 106px;
|
||||||
|
font-size: 12px;
|
||||||
line-height: 16px;
|
line-height: 16px;
|
||||||
padding: 8px 0;
|
padding: 6px 4px;
|
||||||
margin: 0 0 0 8px;
|
margin: 0 0 0 10px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: #000;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
&.add-timecomment {
|
background-color: $blue-player;
|
||||||
background-color: #0080b4;
|
color: #fff;
|
||||||
color: #fff;
|
border: 1px solid $blue-player;
|
||||||
border: 1px solid #0080b4;
|
}
|
||||||
}
|
.current-time-show{
|
||||||
|
display: inline-block;
|
||||||
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -238,7 +301,7 @@
|
||||||
top: 2px;
|
top: 2px;
|
||||||
right: 2px;
|
right: 2px;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
background: #0080b4;
|
background: $blue-player;
|
||||||
@include alltransition($ease-property: all, $ease-time: 0.4s, $ease: ease-in-out);
|
@include alltransition($ease-property: all, $ease-time: 0.4s, $ease: ease-in-out);
|
||||||
}
|
}
|
||||||
&.comment-off{
|
&.comment-off{
|
||||||
|
@ -295,4 +358,82 @@
|
||||||
padding: 0 0.7em;
|
padding: 0 0.7em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 991px) {
|
||||||
|
.video-js{
|
||||||
|
#cb-vjs-comments{
|
||||||
|
.cb-vjs-comment-box{
|
||||||
|
.comment{
|
||||||
|
max-width: 460px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media only screen and (max-width: 767px) {
|
||||||
|
.cb-vjs-timecomment-form{
|
||||||
|
display: block;
|
||||||
|
.comment-wrapper{
|
||||||
|
display: block;
|
||||||
|
padding: 10px;
|
||||||
|
.inner-wrapper{
|
||||||
|
padding: 5px 5px 10px 0;
|
||||||
|
.timecomments-header{
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
.alert-dismissable .close,
|
||||||
|
.alert-dismissible .close{
|
||||||
|
right: -15px;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
.alert{
|
||||||
|
padding: 5px 20px 5px 5px;
|
||||||
|
}
|
||||||
|
.cb-vjs-comment-data{
|
||||||
|
> div{
|
||||||
|
&:first-child{
|
||||||
|
width: 60px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
img{
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
textarea{
|
||||||
|
height: 50px;
|
||||||
|
padding: 5px;
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 14px;
|
||||||
|
}
|
||||||
|
.time-username{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.timecomments-footer{
|
||||||
|
padding: 0 5px 0 60px;
|
||||||
|
}
|
||||||
|
.character-counter{
|
||||||
|
width: 40px;
|
||||||
|
padding: 0;
|
||||||
|
line-height: 26px;
|
||||||
|
}
|
||||||
|
.cb-vjs-comments-btn-holder{
|
||||||
|
width: 150px;
|
||||||
|
padding: 0;
|
||||||
|
.add-timecomment{
|
||||||
|
padding: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.video-js{
|
||||||
|
#cb-vjs-comments{
|
||||||
|
height: 124px;
|
||||||
|
.cb-vjs-comment-box{
|
||||||
|
.comment{
|
||||||
|
max-width: 220px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue