X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fsearch%2Fsearch.component.scss;h=3e074621b8545a403f9c7a419812d0d529afc2af;hb=791645e620fb98c6e7c32271d91d91ff7e41b892;hp=ef89c56661fc7a31c2acd7e205ef07977b000f37;hpb=0933bb4a8a105d5393a3590e222cb0450102a8aa;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/search/search.component.scss b/client/src/app/search/search.component.scss index ef89c5666..3e074621b 100644 --- a/client/src/app/search/search.component.scss +++ b/client/src/app/search/search.component.scss @@ -1,17 +1,8 @@ @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 { - margin: 40px; + padding: 40px; .results-header { font-size: 16px; @@ -32,6 +23,7 @@ } .results-filter-button { + cursor: pointer; .icon.icon-filter { @include icon(20px); @@ -75,7 +67,7 @@ .video-info-name { @include disable-default-a-behaviour; - color: #000; + color: var(--mainForegroundColor); display: block; width: fit-content; font-size: 18px; @@ -103,42 +95,98 @@ } } } + + &.video-channel { + + img { + @include avatar(120px); + + margin: 0 50px 0 40px; + } + + .video-channel-info { + flex-grow: 1; + width: fit-content; + + .video-channel-names { + @include disable-default-a-behaviour; + + display: flex; + align-items: baseline; + color: var(--mainForegroundColor); + width: fit-content; + + .video-channel-display-name { + font-weight: $font-semibold; + font-size: 18px; + } + + .video-channel-name { + font-size: 14px; + color: $grey-actor-name; + margin-left: 5px; + } + } + } + } } } -@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; +@media screen and (max-width: $mobile-view) { + .search-result { + padding: 20px 10px; - &.video { - .video-info-name, - .video-info-account { - margin: auto; - } + .results-header { + font-size: 15px !important; + } - my-video-thumbnail { - margin-right: 0 !important; + .entry { + flex-direction: column; + height: auto; + justify-content: center; + align-items: center; + text-align: center; - /deep/ .video-thumbnail { - width: 100%; - height: auto; + &.video { + .video-info-name, + .video-info-account { + margin: 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; + } + } } } }