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);
|
||||
-o-transform: translate($x, $y);
|
||||
}
|
||||
|
||||
$blue-player:#0080b4;
|
||||
.video-js{
|
||||
#cb-vjs-comments{
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
left:0;
|
||||
bottom: 23px;
|
||||
bottom: 38px;
|
||||
width: 100%;
|
||||
height: 282px;
|
||||
height: 185px;
|
||||
z-index: 1;
|
||||
ul{
|
||||
list-style: none;
|
||||
padding: 0 20px;
|
||||
padding: 0 10px;
|
||||
margin: 0;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
@ -50,8 +50,8 @@
|
|||
}
|
||||
.cb-vjs-comments-list{
|
||||
overflow: hidden;
|
||||
height: 74px;
|
||||
margin: 0 0 20px;
|
||||
height: 50px;
|
||||
margin: 0 0 10px;
|
||||
@include alltransition($ease-property: all, $ease-time: 0.3s, $ease: linear);
|
||||
&.active{
|
||||
@include myanimation ($name: lefttoright, $duration: 0.3s, $ease: ease-in);
|
||||
|
@ -65,34 +65,34 @@
|
|||
}
|
||||
}
|
||||
.cb-vjs-comments-avatar{
|
||||
width: 74px;
|
||||
height: 74px;
|
||||
border-radius: 37px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
float: left;
|
||||
margin: 0 20px 0 0;
|
||||
margin: 0 10px 0 0;
|
||||
|
||||
}
|
||||
.cb-vjs-comment-box{
|
||||
float: left;
|
||||
color: #c2c2c2;
|
||||
font-size: 16px;
|
||||
line-height:18px;
|
||||
font-weight: 600;
|
||||
font-size: 12px;
|
||||
line-height:14px;
|
||||
padding: 2px 0;
|
||||
.comment{
|
||||
font-size: 18px;
|
||||
line-height: 20px;
|
||||
font-size: 14px;
|
||||
line-height: 16px;
|
||||
color: #000;
|
||||
padding: 10px;
|
||||
padding: 5px;
|
||||
border-radius: 2px;
|
||||
background: #fff;
|
||||
overflow: hidden;
|
||||
height: 40px;
|
||||
height: 27px;
|
||||
}
|
||||
}
|
||||
.cb-vjs-comment-username{
|
||||
display: block;
|
||||
margin: 0 0 12px;
|
||||
margin: 0 0 5px;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -150,23 +150,57 @@
|
|||
.inner-wrapper {
|
||||
max-width: 550px;
|
||||
width: 100%;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
display: inline-block;
|
||||
padding: 20px;
|
||||
background-color: rgba(255,255,255, .9);
|
||||
overflow: hidden;
|
||||
.cb-vjs-comment-data {
|
||||
overflow: hidden;
|
||||
padding: 10px 10px 10px 0;
|
||||
background: rgba(255,255,255, .9);
|
||||
color: #000;
|
||||
position: relative;
|
||||
padding: 0 0 12px 84px;
|
||||
img {
|
||||
@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;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
border-radius: 32px;
|
||||
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 {
|
||||
margin: 0 0 5px;
|
||||
overflow: hidden;
|
||||
>div{
|
||||
overflow: hidden;
|
||||
padding:5px 5px 5px 0;
|
||||
&:first-child{
|
||||
overflow: visible;
|
||||
float: left;
|
||||
width: 84px;
|
||||
padding:5px;
|
||||
}
|
||||
}
|
||||
img {
|
||||
display:block;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius:50%;
|
||||
margin: 0 auto 10px;
|
||||
}
|
||||
textarea {
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: 1px solid #d9d9d9;
|
||||
color: #000;
|
||||
|
@ -175,34 +209,63 @@
|
|||
font-size: 14px;
|
||||
line-height: 18px;
|
||||
resize:none;
|
||||
vertical-align: top;
|
||||
-webkit-appearance:none;
|
||||
&:focus,
|
||||
&:active {
|
||||
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 {
|
||||
float: right;
|
||||
width: 200px;
|
||||
text-align: right;
|
||||
overflow: hidden;
|
||||
span {
|
||||
background:#fff;
|
||||
border: 1px solid #e4e3e3;
|
||||
min-width: 130px;
|
||||
font-size: 16px;
|
||||
padding: 0 0 0 5px;
|
||||
&:after{
|
||||
clear: both;
|
||||
display: block;
|
||||
content: "";
|
||||
}
|
||||
.add-timecomment {
|
||||
min-width: 106px;
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
padding: 8px 0;
|
||||
margin: 0 0 0 8px;
|
||||
padding: 6px 4px;
|
||||
margin: 0 0 0 10px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
border-radius: 4px;
|
||||
color: #000;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
&.add-timecomment {
|
||||
background-color: #0080b4;
|
||||
background-color: $blue-player;
|
||||
color: #fff;
|
||||
border: 1px solid #0080b4;
|
||||
border: 1px solid $blue-player;
|
||||
}
|
||||
.current-time-show{
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -238,7 +301,7 @@
|
|||
top: 2px;
|
||||
right: 2px;
|
||||
border-radius: 50%;
|
||||
background: #0080b4;
|
||||
background: $blue-player;
|
||||
@include alltransition($ease-property: all, $ease-time: 0.4s, $ease: ease-in-out);
|
||||
}
|
||||
&.comment-off{
|
||||
|
@ -296,3 +359,81 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
@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