From fbad87b0472f574409f7aa3ae7f8b54927d0cdd6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 2 Aug 2018 15:34:09 +0200 Subject: Add ability to import video with youtube-dl --- .../videos/+video-edit/video-add.component.scss | 117 ++++++--------------- 1 file changed, 35 insertions(+), 82 deletions(-) (limited to 'client/src/app/videos/+video-edit/video-add.component.scss') diff --git a/client/src/app/videos/+video-edit/video-add.component.scss b/client/src/app/videos/+video-edit/video-add.component.scss index c0b5f3d07..a811b9cf0 100644 --- a/client/src/app/videos/+video-edit/video-add.component.scss +++ b/client/src/app/videos/+video-edit/video-add.component.scss @@ -1,101 +1,54 @@ @import '_variables'; @import '_mixins'; -.upload-video-container { - border-radius: 3px; - background-color: #F7F7F7; - border: 3px solid #EAEAEA; - width: 100%; - height: 440px; - margin-top: 40px; - display: flex; - justify-content: center; - align-items: center; +$border-width: 3px; +$border-type: solid; +$border-color: #EAEAEA; - .peertube-select-container { - @include peertube-select-container(190px); - } - - .upload-video { - display: flex; - flex-direction: column; - align-items: center; - - .form-group-channel { - margin-bottom: 20px; - } - - .icon.icon-upload { - @include icon(90px); - margin-bottom: 25px; - cursor: default; - - background-image: url('../../../assets/images/video/upload.svg'); - } - - .button-file { - @include peertube-button-file(auto); - - min-width: 190px; - } +$background-color: #F7F7F7; - .button-file-extension { - display: block; - font-size: 12px; - margin-top: 5px; - } - } - - .form-group-channel { - margin-top: 35px; +/deep/ tabset.root-tabset.video-add-tabset { + &.hide-nav .nav { + display: none !important; } -} -.upload-progress-cancel { - display: flex; - margin-top: 25px; - margin-bottom: 40px; + & > .nav { - p-progressBar { - flex-grow: 1; - - /deep/ .ui-progressbar { - font-size: 15px !important; - color: #fff !important; - height: 30px !important; - line-height: 30px !important; - border-radius: 3px !important; - background-color: rgba(11, 204, 41, 0.16) !important; - - .ui-progressbar-value { - background-color: #0BCC29 !important; - } + border-bottom: $border-width $border-type $border-color; + margin: 0 !important; - .ui-progressbar-label { - text-align: left; - padding-left: 18px; - margin-top: 0 !important; - } + & > li { + margin-bottom: -$border-width; } - &.processing { - /deep/ .ui-progressbar-label { - // Same color as background to hide "100%" - color: rgba(11, 204, 41, 0.16) !important; + .nav-link { + height: 40px !important; + padding: 0 30px !important; + font-size: 15px; + + &.active { + border: $border-width $border-type $border-color; + border-bottom: none; + background-color: $background-color !important; - &::before { - content: 'Processing...'; - color: #fff; + span { + border-bottom: 2px solid #F1680D; + font-weight: $font-bold; } } } } - input { - @include peertube-button; - @include grey-button; + .upload-video-container { + border: $border-width $border-type $border-color; + border-top: none; - margin-left: 10px; + background-color: $background-color; + border-radius: 3px; + width: 100%; + height: 440px; + display: flex; + justify-content: center; + align-items: center; } -} - +} \ No newline at end of file -- cgit v1.2.3