mirror of https://github.com/Chocobozzz/PeerTube
Fix control bar on small screens
parent
4485dafb0e
commit
92d54714b9
|
@ -12,4 +12,6 @@ $progress-margin: 10px;
|
||||||
|
|
||||||
$dock-padding: 20px;
|
$dock-padding: 20px;
|
||||||
|
|
||||||
|
$first-control-bar-element-margin-left: 1em;
|
||||||
|
|
||||||
$assets-path: '../../assets/' !default;
|
$assets-path: '../../assets/' !default;
|
||||||
|
|
|
@ -21,6 +21,7 @@ body {
|
||||||
|
|
||||||
.vjs-dock-text {
|
.vjs-dock-text {
|
||||||
padding: $dock-padding;
|
padding: $dock-padding;
|
||||||
|
padding-right: 60px;
|
||||||
background: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
|
background: linear-gradient(to bottom, rgba(0, 0, 0, .6) 0, rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0) 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -148,7 +149,7 @@ body {
|
||||||
text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
|
text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
|
||||||
|
|
||||||
> button:first-child {
|
> button:first-child {
|
||||||
margin-left: 1em;
|
margin-left: $first-control-bar-element-margin-left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vjs-progress-control,
|
.vjs-progress-control,
|
||||||
|
@ -583,7 +584,9 @@ body {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.vjs-volume-control {
|
.vjs-volume-control,
|
||||||
|
.vjs-next-video,
|
||||||
|
.vjs-previous-video {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -594,6 +597,10 @@ body {
|
||||||
.vjs-settings {
|
.vjs-settings {
|
||||||
width: 33px;
|
width: 33px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.vjs-play-control {
|
||||||
|
margin-left: $first-control-bar-element-margin-left;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Theater mode is enabled
|
// Theater mode is enabled
|
||||||
|
|
|
@ -8,7 +8,7 @@ $playlist-menu-width: 350px;
|
||||||
background: rgba(0, 0, 0, 0.8);
|
background: rgba(0, 0, 0, 0.8);
|
||||||
z-index: 101;
|
z-index: 101;
|
||||||
transition: right 0.2s;
|
transition: right 0.2s;
|
||||||
overflow-y: auto;
|
overflow-y: scroll;
|
||||||
|
|
||||||
// Hidden
|
// Hidden
|
||||||
right: -$playlist-menu-width;
|
right: -$playlist-menu-width;
|
||||||
|
|
Loading…
Reference in New Issue