X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bmy-account%2Fmy-account-videos%2Fmy-account-videos.component.scss;h=67a58d8d5567507106b1c1056a5a2240449e36cd;hb=e66883b37ae0796256b3aba550670a2d76cfc98a;hp=f6b5faa45dc1417428f99fb6855cfa63ca7ff95a;hpb=bce47964f6241ae56f61089d144b29eb9b5da6d3;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+my-account/my-account-videos/my-account-videos.component.scss b/client/src/app/+my-account/my-account-videos/my-account-videos.component.scss index f6b5faa45..67a58d8d5 100644 --- a/client/src/app/+my-account/my-account-videos/my-account-videos.component.scss +++ b/client/src/app/+my-account/my-account-videos/my-account-videos.component.scss @@ -1,119 +1,132 @@ @import '_variables'; @import '_mixins'; -.action-selection-mode { - width: 174px; +.videos-header { display: flex; - justify-content: flex-end; + justify-content: space-between; + margin: 20px 0 50px; - .action-selection-mode-child { - position: fixed; - - .action-button { - display: inline-block; - } - - .action-button-cancel-selection { - @include peertube-button; - @include grey-button; - - margin-right: 10px; - } - - .action-button-delete-selection { - @include peertube-button; - @include orange-button; - @include button-with-icon(21px); + h4, + .fake-element { + flex: 1; + } - my-global-icon { - @include apply-svg-color(#fff); - } - } + input[type=text] { + @include peertube-input-text(300px); } } -.video { - @include row-blocks; +.action-button-delete-selection { + display: inline-block; - &:first-child { - margin-top: 47px; + @include peertube-button; + @include orange-button; + @include button-with-icon(21px); + + my-global-icon { + @include apply-svg-color(#fff); } +} - .checkbox-container { - display: flex; - align-items: center; - margin-right: 20px; - margin-left: 12px; +::ng-deep { + .video { + flex-wrap: wrap; } - my-video-thumbnail { - margin-right: 10px; + .action-button span { + white-space: nowrap; } - .video-info { - flex-grow: 1; + .video-miniature { + &.display-as-row { + // width: min-content !important; + width: 100% !important; - .video-info-name { - @include disable-default-a-behaviour; + .video-bottom .video-miniature-information { + width: max-content !important; + min-width: unset !important; + } + } - color: var(--mainForegroundColor); - display: block; - width: fit-content; - font-size: 16px; - font-weight: $font-semibold; + .video-bottom { + max-width: 350px; } + } +} - .video-info-date-views, - .video-info-privacy, - .video-info-blacklisted { - font-size: 13px; +.action-button { + display: flex; + margin-left: 55px; + margin-top: 10px; + align-self: flex-end; +} - &.video-info-privacy, - &.video-info-blacklisted .blacklisted-label { - font-weight: $font-semibold; - } +my-delete-button, +my-edit-button { + margin-right: 10px; +} - &.video-info-blacklisted { - color: red; +@media screen and (max-width: $small-view) { + .videos-header { + flex-direction: column; + } - .blacklisted-reason { - &::before { - content: ' - '; - } - } + .action-button { + flex-direction: column; + align-self: center; + margin-left: 0px; + } + + ::ng-deep { + .video-miniature { + align-items: center; + + .video-bottom, + .video-bottom .video-miniature-information { + /* same width than a.video-thumbnail */ + max-width: $video-thumbnail-width !important; } } } - .video-buttons { - min-width: 190px; + my-delete-button, + my-edit-button { + margin-right: 0px; - *:not(:last-child) { - margin-right: 10px; + ::ng-deep { + span, a { + margin-right: 0px; + } } } -} -@media screen and (max-width: $small-view) { - .video { - flex-direction: column; - height: auto; + my-delete-button, + my-edit-button, + my-button { + margin-top: 15px; + width: 100%; text-align: center; - .video-info-name { - margin: auto; - } - - input[type=checkbox] { - display: none; + ::ng-deep { + .action-button { + /* same width than a.video-thumbnail */ + width: $video-thumbnail-width; + } } + } +} - my-video-thumbnail { - margin-right: 0; - } +// Adapt my-video-miniature on small screens with menu +@media screen and (min-width: $small-view) and (max-width: #{breakpoint(lg) + ($not-expanded-horizontal-margins / 3) * 2}) { + :host-context(.main-col:not(.expanded)) { + ::ng-deep { + .video-miniature { + flex-direction: column; - .video-buttons { - margin-top: 10px; + .video-miniature-name { + max-width: $video-thumbnail-width; + } + } } } }