X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fsearch%2Fsearch.component.scss;h=3343a276dc4f171ba57946d41501b05e9eaf9703;hb=c9e3eeedad67649d9b7aec8897b738d0ad63ec1f;hp=3be8f53118f4300803a974aa5d50be563d96c74d;hpb=b1ee8526d35eb7df4fb70ae755eae08e7497042c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/search/search.component.scss b/client/src/app/search/search.component.scss index 3be8f5311..3343a276d 100644 --- a/client/src/app/search/search.component.scss +++ b/client/src/app/search/search.component.scss @@ -35,18 +35,6 @@ } } } - - .results-filter { - // Animation when we show/hide the filters - transition: max-height 0.3s; - display: block !important; - overflow: hidden !important; - max-height: 0; - - &.show { - max-height: 1500px; - } - } } .entry { @@ -55,53 +43,14 @@ padding-bottom: 20px; margin-bottom: 20px; - &.video { - - my-video-thumbnail { - margin-right: 10px; - } - - .video-info { - flex-grow: 1; - - .video-info-name { - @include disable-default-a-behaviour; - - color: #000; - display: block; - width: fit-content; - font-size: 18px; - font-weight: $font-semibold; - } - - .video-info-date-views { - font-size: 14px; - } - - .video-info-account { - @include disable-default-a-behaviour; - - display: block; - width: fit-content; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - font-size: 14px; - color: #585858; - - &:hover { - color: #303030; - } - } - } - } - &.video-channel { - img { - @include avatar(120px); + $image-size: 130px; + $margin-size: ($video-thumbnail-width - $image-size) / 2; // So we have the same width than the video miniature - margin: 0 50px 0 40px; + @include avatar($image-size); + + margin: 0 ($margin-size + 10) 0 $margin-size; } .video-channel-info { @@ -113,7 +62,7 @@ display: flex; align-items: baseline; - color: #000; + color: var(--mainForegroundColor); width: fit-content; .video-channel-display-name { @@ -132,39 +81,61 @@ } } -@media screen and (max-width: 800px) { +@media screen and (max-width: $small-view) { + .video-channel-names { + flex-direction: column !important; + + .video-channel-name { + margin-left: 0 !important; + } + } +} + +@media screen and (max-width: $mobile-view) { .search-result { padding: 20px 10px; - } - .results-header { - font-size: 15px !important; - } + .results-header { + font-size: 15px !important; + } - .entry { - flex-direction: column; - height: auto; - text-align: center; - - &.video { - .video-info-name, - .video-info-account { - margin: auto; - } + .entry { + flex-direction: column; + height: auto; + justify-content: center; + align-items: center; + text-align: center; - my-video-thumbnail { - margin-right: 0 !important; + &.video { + .video-info-name, + .video-info-account { + margin: auto; + } - /deep/ .video-thumbnail { - width: 100%; - height: auto; + my-video-thumbnail { + margin-right: 0 !important; - img { + /deep/ .video-thumbnail { width: 100%; height: auto; + + img { + width: 100%; + height: auto; + } } } } + + &.video-channel { + .video-channel-info .video-channel-names { + align-items: center; + } + + my-subscribe-button { + margin-top: 5px; + } + } } } }