]>
Commit | Line | Data |
---|---|---|
1 | @import '_variables'; | |
2 | @import '_mixins'; | |
3 | ||
4 | @mixin build-channel-img-size ($video-img-width) { | |
5 | $image-size: min(130px, $video-img-width); | |
6 | $margin-size: ($video-img-width - $image-size) / 2; // So we have the same width than the video miniature | |
7 | ||
8 | @include actor-avatar-size($image-size); | |
9 | ||
10 | margin: 0 $margin-size 0 $margin-size; | |
11 | } | |
12 | ||
13 | .search-result { | |
14 | padding: 40px; | |
15 | } | |
16 | ||
17 | .results-header { | |
18 | font-size: 16px; | |
19 | padding-bottom: 20px; | |
20 | margin-bottom: 30px; | |
21 | border-bottom: 1px solid #DADADA; | |
22 | ||
23 | .first-line { | |
24 | display: flex; | |
25 | flex-direction: row; | |
26 | ||
27 | .results-counter { | |
28 | flex-grow: 1; | |
29 | ||
30 | .search-value { | |
31 | font-weight: $font-semibold; | |
32 | } | |
33 | } | |
34 | ||
35 | .results-filter-button { | |
36 | cursor: pointer; | |
37 | ||
38 | .icon.icon-filter { | |
39 | @include icon(20px); | |
40 | ||
41 | position: relative; | |
42 | top: -1px; | |
43 | margin-right: 5px; | |
44 | background-image: url('../../assets/images/feather/filter.svg'); | |
45 | } | |
46 | } | |
47 | } | |
48 | } | |
49 | ||
50 | .entry { | |
51 | display: flex; | |
52 | margin-bottom: 40px; | |
53 | max-width: 800px; | |
54 | } | |
55 | ||
56 | .video-channel my-actor-avatar { | |
57 | @include build-channel-img-size($video-thumbnail-width); | |
58 | } | |
59 | ||
60 | .video-channel-info { | |
61 | flex-grow: 1; | |
62 | margin: 0 10px; | |
63 | width: fit-content; | |
64 | } | |
65 | ||
66 | .video-channel-names { | |
67 | @include disable-default-a-behaviour; | |
68 | ||
69 | display: flex; | |
70 | align-items: baseline; | |
71 | color: pvar(--mainForegroundColor); | |
72 | width: fit-content; | |
73 | } | |
74 | ||
75 | .video-channel-display-name { | |
76 | font-weight: $font-semibold; | |
77 | font-size: $video-miniature-row-name-font-size; | |
78 | } | |
79 | ||
80 | .video-channel-name { | |
81 | font-size: $video-miniature-row-info-font-size; | |
82 | color: pvar(--greyForegroundColor); | |
83 | margin-left: 5px; | |
84 | } | |
85 | ||
86 | // Use the same breakpoints than in video-miniature | |
87 | @include on-small-main-col { | |
88 | .video-channel { | |
89 | display: grid; | |
90 | grid-template-columns: auto 1fr; | |
91 | grid-template-rows: auto auto; | |
92 | ||
93 | my-actor-avatar { | |
94 | @include build-channel-img-size($video-thumbnail-medium-width); | |
95 | ||
96 | grid-column: 1; | |
97 | grid-row: 1 / -1; | |
98 | } | |
99 | } | |
100 | ||
101 | .video-channel-info { | |
102 | grid-column: 2; | |
103 | grid-row: 1; | |
104 | } | |
105 | ||
106 | my-subscribe-button { | |
107 | grid-column: 2; | |
108 | grid-row: 2; | |
109 | align-self: end; | |
110 | } | |
111 | } | |
112 | ||
113 | @include on-mobile-main-col { | |
114 | .video-channel my-actor-avatar { | |
115 | @include build-channel-img-size($video-thumbnail-small-width); | |
116 | } | |
117 | } | |
118 | ||
119 | @media screen and (max-width: $mobile-view) { | |
120 | .search-result { | |
121 | padding: 20px 10px; | |
122 | ||
123 | .results-header { | |
124 | font-size: 15px !important; | |
125 | } | |
126 | } | |
127 | ||
128 | .video-channel-display-name { | |
129 | font-size: $video-miniature-row-mobile-name-font-size; | |
130 | } | |
131 | ||
132 | .video-channel-name { | |
133 | font-size: $video-miniature-row-mobile-info-font-size; | |
134 | } | |
135 | } |