X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fsearch%2Fsearch.component.scss;h=d4d8bbcf7bbc606bced63f5d9fe1d0ed5871e904;hb=bc6f886347f676220847461600122cde86edc272;hp=e54a8b32a557f906947652282df23184568ffd7e;hpb=b34a444e291c8ec90b4c2c965f7d0d6904d1faa7;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/search/search.component.scss b/client/src/app/search/search.component.scss index e54a8b32a..d4d8bbcf7 100644 --- a/client/src/app/search/search.component.scss +++ b/client/src/app/search/search.component.scss @@ -1,15 +1,6 @@ @import '_variables'; @import '_mixins'; -.no-result { - height: 40vh; - display: flex; - align-items: center; - justify-content: center; - font-size: 16px; - font-weight: $font-semibold; -} - .search-result { padding: 40px; @@ -32,6 +23,7 @@ } .results-filter-button { + cursor: pointer; .icon.icon-filter { @include icon(20px); @@ -43,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 { @@ -63,42 +43,37 @@ padding-bottom: 20px; margin-bottom: 20px; - &.video { + &.video-channel { + img { + $image-size: 130px; + $margin-size: ($video-thumbnail-width - $image-size) / 2; // So we have the same width than the video miniature + + @include avatar($image-size); - my-video-thumbnail { - margin-right: 10px; + margin: 0 ($margin-size + 10) 0 $margin-size; } - .video-info { + .video-channel-info { flex-grow: 1; + width: fit-content; - .video-info-name { + .video-channel-names { @include disable-default-a-behaviour; - color: #000; - display: block; + display: flex; + align-items: baseline; + color: var(--mainForegroundColor); 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; + .video-channel-display-name { + font-weight: $font-semibold; + font-size: 18px; + } - display: block; - width: fit-content; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; - font-size: 14px; - color: #585858; - - &:hover { - color: #303030; + .video-channel-name { + font-size: 14px; + color: $grey-actor-name; + margin-left: 5px; } } } @@ -106,39 +81,61 @@ } } -@media screen and (max-width: 800px) { - .search-result { - margin: 20px 10px; - } +@media screen and (max-width: $small-view) { + .video-channel-names { + flex-direction: column !important; - .results-header { - font-size: 15px !important; + .video-channel-name { + margin-left: 0 !important; + } } +} - .entry { - flex-direction: column; - height: auto; - text-align: center; - - &.video { - .video-info-name, - .video-info-account { - margin: auto; - } +@media screen and (max-width: $mobile-view) { + .search-result { + padding: 20px 10px; - my-video-thumbnail { - margin-right: 0 !important; + .results-header { + font-size: 15px !important; + } - /deep/ .video-thumbnail { - width: 100%; - height: auto; + .entry { + flex-direction: column; + height: auto; + justify-content: center; + align-items: center; + text-align: center; - img { + &.video { + .video-info-name, + .video-info-account { + margin: auto; + } + + my-video-thumbnail { + margin-right: 0 !important; + + ::ng-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; + } + } } } }