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