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