From 1dc240a9488c66ad38205d08fcfdb32d35efceaa Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 19 Dec 2019 21:34:45 +0100 Subject: Add next video button to the player --- client/src/sass/player/peertube-skin.scss | 41 +++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 10 deletions(-) (limited to 'client/src/sass/player') diff --git a/client/src/sass/player/peertube-skin.scss b/client/src/sass/player/peertube-skin.scss index 8230681f6..e80853861 100644 --- a/client/src/sass/player/peertube-skin.scss +++ b/client/src/sass/player/peertube-skin.scss @@ -223,7 +223,8 @@ body { cursor: pointer; font-size: $font-size; - margin-right: 5px; + margin-left: 1em; + width: 3em; } .vjs-time-control { @@ -233,6 +234,7 @@ body { font-size: $font-size; display: inline-block; padding: 0; + margin-left: .5em; .vjs-current-time-display { line-height: calc(#{$control-bar-height} + 1px); @@ -262,6 +264,7 @@ body { width: 100%; line-height: $control-bar-height; text-align: right; + margin-right: 6px; .vjs-peertube-displayed { display: block; @@ -279,6 +282,33 @@ body { margin-right: 15px; } + .icon { + &.icon-download { + background-image: url('#{$assets-path}/player/images/arrow-down.svg'); + } + + &.icon-upload { + background-image: url('#{$assets-path}/player/images/arrow-up.svg'); + } + } + } + + .vjs-next-video { + line-height: $control-bar-height; + text-align: right; + + .icon { + &.icon-next { + mask-image: url('#{$assets-path}/player/images/next.svg'); + background-color: white; + mask-size: cover; + transform: scale(2.2); + } + } + } + + .vjs-peertube, + .vjs-next-video { .icon { display: inline-block; width: 15px; @@ -286,17 +316,8 @@ body { background-size: contain; vertical-align: middle; background-repeat: no-repeat; - margin-right: 6px; position: relative; top: -1px; - - &.icon-download { - background-image: url('#{$assets-path}/player/images/arrow-down.svg'); - } - - &.icon-upload { - background-image: url('#{$assets-path}/player/images/arrow-up.svg'); - } } } -- cgit v1.2.3