mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2025-01-06 06:28:33 +03:00
style the video
This commit is contained in:
parent
cff8833b4c
commit
ff73ffcb16
@ -4,7 +4,7 @@ crypto = require 'crypto'
|
||||
module.exports =
|
||||
class ParticipantView extends View
|
||||
@content: ->
|
||||
@div class: 'collaboration-participant overlay large', =>
|
||||
@div class: 'collaboration-participant overlay floating large', =>
|
||||
@video autoplay: true, outlet: 'video'
|
||||
@div class: 'volume-container', outlet: 'volumeContainer', =>
|
||||
@div class: 'volume', outlet: 'volume'
|
||||
|
@ -1,7 +1,9 @@
|
||||
@import "bootstrap/less/variables.less";
|
||||
@import "octicon-mixins.less";
|
||||
|
||||
@avatar-width: 32px;
|
||||
@video-padding: 5px;
|
||||
@large-width: 160px;
|
||||
@user-color: #3facc1;
|
||||
|
||||
.collaboration-status{
|
||||
float: right;
|
||||
@ -30,19 +32,37 @@
|
||||
}
|
||||
}
|
||||
|
||||
.collaboration-participant{
|
||||
bottom: 36px;
|
||||
right: 10px;
|
||||
|
||||
&.large {
|
||||
padding: @video-padding;
|
||||
width: @large-width + @video-padding*2 + 2px;
|
||||
|
||||
video {
|
||||
width: @large-width;
|
||||
border-radius: 2px 2px 0 0;
|
||||
display: block;
|
||||
}
|
||||
.volume-container {
|
||||
position: relative;
|
||||
width: @large-width;
|
||||
border-radius: 0;
|
||||
height: 5px;
|
||||
background: lighten(@user-color, 15%);
|
||||
|
||||
.volume{
|
||||
height: 5px;
|
||||
width: 60%;
|
||||
background: @user-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.collaboration {
|
||||
@item-line-height: @line-height-base * 1.25;
|
||||
padding: 10px;
|
||||
-webkit-user-select: none;
|
||||
|
||||
.avatar {
|
||||
border-radius: 3px;
|
||||
height: @avatar-width;
|
||||
width: @avatar-width;
|
||||
margin: 2px;
|
||||
}
|
||||
|
||||
video {
|
||||
width: @avatar-width;
|
||||
}
|
||||
}
|
||||
|
@ -41,3 +41,7 @@
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 0;
|
||||
}
|
||||
|
||||
.overlay.floating {
|
||||
left: auto;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user