Cleanup of CSS.
parent
da3233faf3
commit
bfe6d14b1a
|
|
@ -67,7 +67,7 @@ const styles = (theme) =>
|
||||||
flexDirection : 'column',
|
flexDirection : 'column',
|
||||||
justifyContent : 'center',
|
justifyContent : 'center',
|
||||||
alignItems : 'flex-end',
|
alignItems : 'flex-end',
|
||||||
padding : '0.4vmin',
|
padding : theme.spacing(1),
|
||||||
zIndex : 21,
|
zIndex : 21,
|
||||||
opacity : 0,
|
opacity : 0,
|
||||||
transition : 'opacity 0.3s',
|
transition : 'opacity 0.3s',
|
||||||
|
|
@ -83,7 +83,7 @@ const styles = (theme) =>
|
||||||
top : '50%',
|
top : '50%',
|
||||||
left : '50%',
|
left : '50%',
|
||||||
transform : 'translate(-50%, -50%)',
|
transform : 'translate(-50%, -50%)',
|
||||||
color : 'rgba(255, 255, 255, 1)',
|
color : 'rgba(255, 255, 255, 0.5)',
|
||||||
fontSize : '7em',
|
fontSize : '7em',
|
||||||
margin : 0
|
margin : 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ const styles = (theme) =>
|
||||||
flexDirection : 'column',
|
flexDirection : 'column',
|
||||||
justifyContent : 'center',
|
justifyContent : 'center',
|
||||||
alignItems : 'flex-end',
|
alignItems : 'flex-end',
|
||||||
padding : '0.4vmin',
|
padding : theme.spacing(1),
|
||||||
zIndex : 21,
|
zIndex : 21,
|
||||||
opacity : 0,
|
opacity : 0,
|
||||||
transition : 'opacity 0.3s',
|
transition : 'opacity 0.3s',
|
||||||
|
|
@ -85,7 +85,7 @@ const styles = (theme) =>
|
||||||
display : 'flex',
|
display : 'flex',
|
||||||
justifyContent : 'center',
|
justifyContent : 'center',
|
||||||
alignItems : 'center',
|
alignItems : 'center',
|
||||||
padding : '0.4vmin',
|
padding : theme.spacing(1),
|
||||||
zIndex : 20,
|
zIndex : 20,
|
||||||
'& p' :
|
'& p' :
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import { withStyles } from '@material-ui/core/styles';
|
||||||
import VideoView from '../VideoContainers/VideoView';
|
import VideoView from '../VideoContainers/VideoView';
|
||||||
import Volume from './Volume';
|
import Volume from './Volume';
|
||||||
|
|
||||||
const styles = () =>
|
const styles = (theme) =>
|
||||||
({
|
({
|
||||||
root :
|
root :
|
||||||
{
|
{
|
||||||
|
|
@ -51,7 +51,7 @@ const styles = () =>
|
||||||
display : 'flex',
|
display : 'flex',
|
||||||
justifyContent : 'center',
|
justifyContent : 'center',
|
||||||
alignItems : 'center',
|
alignItems : 'center',
|
||||||
padding : '0.4vmin',
|
padding : theme.spacing(1),
|
||||||
zIndex : 21,
|
zIndex : 21,
|
||||||
'& p' :
|
'& p' :
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -7,11 +7,11 @@ import * as appPropTypes from '../../appPropTypes';
|
||||||
import EmptyAvatar from '../../../images/avatar-empty.jpeg';
|
import EmptyAvatar from '../../../images/avatar-empty.jpeg';
|
||||||
import HandIcon from '../../../images/icon-hand-white.svg';
|
import HandIcon from '../../../images/icon-hand-white.svg';
|
||||||
|
|
||||||
const styles = () =>
|
const styles = (theme) =>
|
||||||
({
|
({
|
||||||
root :
|
root :
|
||||||
{
|
{
|
||||||
padding : '0.5rem',
|
padding : theme.spacing(1),
|
||||||
width : '100%',
|
width : '100%',
|
||||||
overflow : 'hidden',
|
overflow : 'hidden',
|
||||||
cursor : 'auto',
|
cursor : 'auto',
|
||||||
|
|
@ -31,7 +31,7 @@ const styles = () =>
|
||||||
fontSize : '1rem',
|
fontSize : '1rem',
|
||||||
border : 'none',
|
border : 'none',
|
||||||
display : 'flex',
|
display : 'flex',
|
||||||
paddingLeft : '0.5rem',
|
paddingLeft : theme.spacing(1),
|
||||||
flexGrow : 1,
|
flexGrow : 1,
|
||||||
alignItems : 'center'
|
alignItems : 'center'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -13,11 +13,11 @@ import ScreenOffIcon from '@material-ui/icons/StopScreenShare';
|
||||||
import EmptyAvatar from '../../../images/avatar-empty.jpeg';
|
import EmptyAvatar from '../../../images/avatar-empty.jpeg';
|
||||||
import HandIcon from '../../../images/icon-hand-white.svg';
|
import HandIcon from '../../../images/icon-hand-white.svg';
|
||||||
|
|
||||||
const styles = () =>
|
const styles = (theme) =>
|
||||||
({
|
({
|
||||||
root :
|
root :
|
||||||
{
|
{
|
||||||
padding : '0.5rem',
|
padding : theme.spacing(1),
|
||||||
width : '100%',
|
width : '100%',
|
||||||
overflow : 'hidden',
|
overflow : 'hidden',
|
||||||
cursor : 'auto',
|
cursor : 'auto',
|
||||||
|
|
@ -37,7 +37,7 @@ const styles = () =>
|
||||||
fontSize : '1rem',
|
fontSize : '1rem',
|
||||||
border : 'none',
|
border : 'none',
|
||||||
display : 'flex',
|
display : 'flex',
|
||||||
paddingLeft : '0.5rem',
|
paddingLeft : theme.spacing(1),
|
||||||
flexGrow : 1,
|
flexGrow : 1,
|
||||||
alignItems : 'center'
|
alignItems : 'center'
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ const styles = (theme) =>
|
||||||
{
|
{
|
||||||
width : '100%',
|
width : '100%',
|
||||||
overflowY : 'auto',
|
overflowY : 'auto',
|
||||||
padding : 6
|
padding : theme.spacing(1)
|
||||||
},
|
},
|
||||||
list :
|
list :
|
||||||
{
|
{
|
||||||
|
|
@ -29,12 +29,12 @@ const styles = (theme) =>
|
||||||
},
|
},
|
||||||
listheader :
|
listheader :
|
||||||
{
|
{
|
||||||
padding : '0.5rem',
|
padding : theme.spacing(1),
|
||||||
fontWeight : 'bolder'
|
fontWeight : 'bolder'
|
||||||
},
|
},
|
||||||
listItem :
|
listItem :
|
||||||
{
|
{
|
||||||
padding : '0.5rem',
|
padding : theme.spacing(1),
|
||||||
width : '100%',
|
width : '100%',
|
||||||
overflow : 'hidden',
|
overflow : 'hidden',
|
||||||
cursor : 'pointer',
|
cursor : 'pointer',
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import * as stateActions from '../../actions/stateActions';
|
||||||
import FullScreenExitIcon from '@material-ui/icons/FullscreenExit';
|
import FullScreenExitIcon from '@material-ui/icons/FullscreenExit';
|
||||||
import VideoView from './VideoView';
|
import VideoView from './VideoView';
|
||||||
|
|
||||||
const styles = () =>
|
const styles = (theme) =>
|
||||||
({
|
({
|
||||||
root :
|
root :
|
||||||
{
|
{
|
||||||
|
|
@ -29,7 +29,7 @@ const styles = () =>
|
||||||
flexDirection : 'row',
|
flexDirection : 'row',
|
||||||
justifyContent : 'flex-start',
|
justifyContent : 'flex-start',
|
||||||
alignItems : 'center',
|
alignItems : 'center',
|
||||||
padding : '0.4vmin'
|
padding : theme.spacing(1)
|
||||||
},
|
},
|
||||||
button :
|
button :
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import { withStyles } from '@material-ui/core/styles';
|
||||||
import * as appPropTypes from '../appPropTypes';
|
import * as appPropTypes from '../appPropTypes';
|
||||||
import EditableInput from '../Controls/EditableInput';
|
import EditableInput from '../Controls/EditableInput';
|
||||||
|
|
||||||
const styles = () =>
|
const styles = (theme) =>
|
||||||
({
|
({
|
||||||
root :
|
root :
|
||||||
{
|
{
|
||||||
|
|
@ -48,54 +48,42 @@ const styles = () =>
|
||||||
},
|
},
|
||||||
info :
|
info :
|
||||||
{
|
{
|
||||||
|
width : '100%',
|
||||||
|
height : '100%',
|
||||||
|
padding : theme.spacing(1),
|
||||||
position : 'absolute',
|
position : 'absolute',
|
||||||
zIndex : 10,
|
zIndex : 10,
|
||||||
top : '0.6vmin',
|
|
||||||
left : '0.6vmin',
|
|
||||||
bottom : 0,
|
|
||||||
right : 0,
|
|
||||||
display : 'flex',
|
display : 'flex',
|
||||||
flexDirection : 'column',
|
flexDirection : 'column',
|
||||||
justifyContent : 'space-between'
|
justifyContent : 'space-between'
|
||||||
},
|
},
|
||||||
media :
|
media :
|
||||||
{
|
{
|
||||||
flex : '0 0 auto',
|
|
||||||
display : 'flex',
|
display : 'flex',
|
||||||
flexDirection : 'row'
|
transitionProperty : 'opacity',
|
||||||
|
transitionDuration : '.15s',
|
||||||
|
'&.hidden' :
|
||||||
|
{
|
||||||
|
opacity : 0,
|
||||||
|
transitionDuration : '0s'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
box :
|
box :
|
||||||
{
|
{
|
||||||
padding : '0.4vmin',
|
padding : theme.spacing(0.5),
|
||||||
borderRadius : 2,
|
borderRadius : 2,
|
||||||
backgroundColor : 'rgba(0, 0, 0, 0.25)',
|
backgroundColor : 'rgba(0, 0, 0, 0.25)',
|
||||||
'& p' :
|
'& p' :
|
||||||
{
|
{
|
||||||
userSelect : 'none',
|
userSelect : 'none',
|
||||||
pointerEvents : 'none',
|
|
||||||
margin : 0,
|
margin : 0,
|
||||||
color : 'rgba(255, 255, 255, 0.7)',
|
color : 'rgba(255, 255, 255, 0.7)',
|
||||||
fontSize : 10,
|
fontSize : '0.8em'
|
||||||
|
|
||||||
'&:last-child' :
|
|
||||||
{
|
|
||||||
marginBottom : 0
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
peer :
|
peer :
|
||||||
{
|
{
|
||||||
flex : '0 0 auto',
|
display : 'flex'
|
||||||
display : 'flex',
|
|
||||||
flexDirection : 'column',
|
|
||||||
justifyContent : 'flex-end',
|
|
||||||
position : 'absolute',
|
|
||||||
bottom : '0.6vmin',
|
|
||||||
left : 0,
|
|
||||||
borderRadius : 2,
|
|
||||||
backgroundColor : 'rgba(0, 0, 0, 0.25)',
|
|
||||||
padding : '0.5vmin',
|
|
||||||
alignItems : 'flex-start'
|
|
||||||
},
|
},
|
||||||
displayNameEdit :
|
displayNameEdit :
|
||||||
{
|
{
|
||||||
|
|
@ -120,11 +108,6 @@ const styles = () =>
|
||||||
},
|
},
|
||||||
deviceInfo :
|
deviceInfo :
|
||||||
{
|
{
|
||||||
marginTop : '0.4vmin',
|
|
||||||
display : 'flex',
|
|
||||||
flexDirection : 'row',
|
|
||||||
justifyContent : 'flex-start',
|
|
||||||
alignItems : 'flex-end',
|
|
||||||
'& span' :
|
'& span' :
|
||||||
{
|
{
|
||||||
userSelect : 'none',
|
userSelect : 'none',
|
||||||
|
|
@ -181,8 +164,11 @@ class VideoView extends React.PureComponent
|
||||||
return (
|
return (
|
||||||
<div className={classes.root}>
|
<div className={classes.root}>
|
||||||
<div className={classes.info}>
|
<div className={classes.info}>
|
||||||
{ advancedMode ?
|
<div className={classnames(classes.media,
|
||||||
<div className={classes.media}>
|
{
|
||||||
|
hidden : !advancedMode
|
||||||
|
})}
|
||||||
|
>
|
||||||
<div className={classes.box}>
|
<div className={classes.box}>
|
||||||
{ audioCodec ?
|
{ audioCodec ?
|
||||||
<p>{audioCodec}</p>
|
<p>{audioCodec}</p>
|
||||||
|
|
@ -200,16 +186,15 @@ class VideoView extends React.PureComponent
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
:null
|
|
||||||
}
|
|
||||||
|
|
||||||
{ showPeerInfo ?
|
{ showPeerInfo ?
|
||||||
<div className={classes.peer}>
|
<div className={classes.peer}>
|
||||||
|
<div className={classes.box}>
|
||||||
{ isMe ?
|
{ isMe ?
|
||||||
<EditableInput
|
<EditableInput
|
||||||
value={displayName}
|
value={displayName}
|
||||||
propName='newDisplayName'
|
propName='newDisplayName'
|
||||||
className={classnames(classes.displayNameEdit, 'display-name')}
|
className={classes.displayNameEdit}
|
||||||
classLoading='loading'
|
classLoading='loading'
|
||||||
classInvalid='invalid'
|
classInvalid='invalid'
|
||||||
shouldBlockWhileLoading
|
shouldBlockWhileLoading
|
||||||
|
|
@ -235,6 +220,7 @@ class VideoView extends React.PureComponent
|
||||||
:null
|
:null
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
:null
|
:null
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import FullScreen from '../FullScreen';
|
||||||
import FullScreenIcon from '@material-ui/icons/Fullscreen';
|
import FullScreenIcon from '@material-ui/icons/Fullscreen';
|
||||||
import FullScreenExitIcon from '@material-ui/icons/FullscreenExit';
|
import FullScreenExitIcon from '@material-ui/icons/FullscreenExit';
|
||||||
|
|
||||||
const styles = () =>
|
const styles = (theme) =>
|
||||||
({
|
({
|
||||||
root :
|
root :
|
||||||
{
|
{
|
||||||
|
|
@ -27,7 +27,7 @@ const styles = () =>
|
||||||
flexDirection : 'row',
|
flexDirection : 'row',
|
||||||
justifyContent : 'flex-start',
|
justifyContent : 'flex-start',
|
||||||
alignItems : 'center',
|
alignItems : 'center',
|
||||||
padding : '0.4vmin'
|
padding : theme.spacing(1)
|
||||||
},
|
},
|
||||||
button :
|
button :
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue