X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fvideos%2F%2Bvideo-edit%2Fvideo-add.component.scss;h=1316e09e4f7f1c1a93a00183cbed4dfbfce42414;hb=6ad971d5f5e9ea2adfc58bd83ba1790efa4a8d12;hp=dd97b79eed685d06b65583ad436733ca97746b83;hpb=8eaa6d62c6c5659dae7db16f3718327df572a91c;p=github%2FChocobozzz%2FPeerTube.git 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 dd97b79ee..1316e09e4 100644 --- a/client/src/app/videos/+video-edit/video-add.component.scss +++ b/client/src/app/videos/+video-edit/video-add.component.scss @@ -4,52 +4,86 @@ $border-width: 3px; $border-type: solid; $border-color: #EAEAEA; +$nav-link-height: 40px; -/deep/ .root-tabset.video-add-tabset { - &.hide-nav > .nav { +.margin-content { + padding-top: 50px; +} + +.alert { + font-size: 15px; +} + +::ng-deep .video-add-nav { + border-bottom: $border-width $border-type $border-color; + margin: 50px 0 0 0 !important; + + &.hide-nav { display: none !important; } - & > .nav { + a.nav-link { + @include disable-default-a-behaviour; - border-bottom: $border-width $border-type $border-color; - margin: 0 !important; + margin-bottom: -$border-width; + height: $nav-link-height !important; + padding: 0 30px !important; + font-size: 15px; - & > li { - margin-bottom: -$border-width; + &.active { + border: $border-width $border-type $border-color; + border-bottom: none; + background-color: var(--submenuColor) !important; + + span { + border-bottom: 2px solid var(--mainColor); + font-weight: $font-bold; + } } + } +} - a.nav-link { - @include disable-default-a-behaviour; +::ng-deep .upload-video-container { + border: $border-width $border-type $border-color; + border-top: transparent; - height: 40px !important; - padding: 0 30px !important; - font-size: 15px; + background-color: var(--submenuColor); + border-bottom-left-radius: 3px; + border-bottom-right-radius: 3px; + width: 100%; + min-height: 440px; + padding-bottom: 20px; + display: flex; + justify-content: center; + align-items: center; - &.active { - border: $border-width $border-type $border-color; - border-bottom: none; - background-color: var(--submenuColor) !important; + &.dragover { + border: 3px dashed var(--mainColor); + } +} - span { - border-bottom: 2px solid var(--mainColor); - font-weight: $font-bold; - } - } +@mixin nav-scroll { + ::ng-deep .video-add-nav { + height: #{$nav-link-height + $border-width * 2}; + overflow-x: auto; + white-space: nowrap; + flex-wrap: unset; + + /* Hide active tab style to not have a moving tab effect */ + a.nav-link.active { + border: none; + background-color: var(--mainBackgroundColor) !important; } } +} + +/* Make .video-add-nav tabs scrollable on small devices */ +@media screen and (max-width: $small-view) { + @include nav-scroll(); +} - .upload-video-container { - border: $border-width $border-type $border-color; - border-top: none; - - background-color: var(--submenuColor); - border-radius: 3px; - width: 100%; - min-height: 440px; - padding-bottom: 20px; - display: flex; - justify-content: center; - align-items: center; +@media screen and (max-width: #{$small-view + $menu-width}) { + :host-context(.main-col:not(.expanded)) { + @include nav-scroll(); } -} \ No newline at end of file +}