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=65c0c8bb2fb7192aae89478f0335682e5cdda882;hpb=f2bbd1e1b1eb662184b00e59c210042e5b39499e;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 65c0c8bb2..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; + h4, + .fake-element { + flex: 1; + } - margin-right: 10px; - } + input[type=text] { + @include peertube-input-text(300px); + } +} - .action-button-delete-selection { - @include peertube-button; - @include orange-button; - } +.action-button-delete-selection { + display: inline-block; - .icon.icon-delete-white { - @include icon(21px); + @include peertube-button; + @include orange-button; + @include button-with-icon(21px); - position: relative; - top: -2px; - background-image: url('../../../assets/images/global/delete-white.svg'); - } + my-global-icon { + @include apply-svg-color(#fff); } } -/deep/ .action-button { - &.action-button-delete { - margin-right: 10px; +::ng-deep { + .video { + flex-wrap: wrap; } -} - -.video { - display: flex; - min-height: 130px; - padding-bottom: 20px; - margin-bottom: 20px; - border-bottom: 1px solid #C6C6C6; - &:first-child { - margin-top: 47px; + .action-button span { + white-space: nowrap; } - .checkbox-container { - display: flex; - align-items: center; - margin-right: 20px; - margin-left: 12px; + .video-miniature { + &.display-as-row { + // width: min-content !important; + width: 100% !important; - input[type=checkbox] { - @include peertube-checkbox(2px); + .video-bottom .video-miniature-information { + width: max-content !important; + min-width: unset !important; + } } - } - my-video-thumbnail { - margin-right: 10px; + .video-bottom { + max-width: 350px; + } } +} - .video-info { - flex-grow: 1; +.action-button { + display: flex; + margin-left: 55px; + margin-top: 10px; + align-self: flex-end; +} - .video-info-name { - @include disable-default-a-behaviour; +my-delete-button, +my-edit-button { + margin-right: 10px; +} - color: #000; - display: block; - width: fit-content; - font-size: 16px; - font-weight: $font-semibold; - } +@media screen and (max-width: $small-view) { + .videos-header { + flex-direction: column; + } + + .action-button { + flex-direction: column; + align-self: center; + margin-left: 0px; + } - .video-info-date-views, .video-info-private { - font-size: 13px; + ::ng-deep { + .video-miniature { + align-items: center; - &.video-info-private { - font-weight: $font-semibold; + .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; + + ::ng-deep { + span, a { + margin-right: 0px; + } + } } -} -@media screen and (max-width: 800px) { - .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; + } + } } } }