]>
Commit | Line | Data |
---|---|---|
57c36b27 C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | ||
57c36b27 | 4 | .search-result { |
b34a444e | 5 | padding: 40px; |
57c36b27 | 6 | |
0b18f4aa C |
7 | .results-header { |
8 | font-size: 16px; | |
57c36b27 C |
9 | padding-bottom: 20px; |
10 | margin-bottom: 30px; | |
11 | border-bottom: 1px solid #DADADA; | |
12 | ||
0b18f4aa C |
13 | .first-line { |
14 | display: flex; | |
15 | flex-direction: row; | |
16 | ||
17 | .results-counter { | |
18 | flex-grow: 1; | |
19 | ||
20 | .search-value { | |
21 | font-weight: $font-semibold; | |
22 | } | |
23 | } | |
24 | ||
25 | .results-filter-button { | |
b1ee8526 | 26 | cursor: pointer; |
0b18f4aa C |
27 | |
28 | .icon.icon-filter { | |
29 | @include icon(20px); | |
30 | ||
31 | position: relative; | |
32 | top: -1px; | |
33 | margin-right: 5px; | |
34 | background-image: url('../../assets/images/search/filter.svg'); | |
35 | } | |
36 | } | |
37 | } | |
57c36b27 C |
38 | } |
39 | ||
40 | .entry { | |
41 | display: flex; | |
42 | min-height: 130px; | |
43 | padding-bottom: 20px; | |
44 | margin-bottom: 20px; | |
45 | ||
f37dc0dd | 46 | &.video-channel { |
f37dc0dd | 47 | img { |
e2409062 C |
48 | $image-size: 130px; |
49 | $margin-size: ($video-thumbnail-width - $image-size) / 2; // So we have the same width than the video miniature | |
50 | ||
51 | @include avatar($image-size); | |
f37dc0dd | 52 | |
e2409062 | 53 | margin: 0 ($margin-size + 10) 0 $margin-size; |
f37dc0dd C |
54 | } |
55 | ||
56 | .video-channel-info { | |
f37dc0dd C |
57 | flex-grow: 1; |
58 | width: fit-content; | |
59 | ||
60 | .video-channel-names { | |
61 | @include disable-default-a-behaviour; | |
62 | ||
63 | display: flex; | |
64 | align-items: baseline; | |
9a0fc840 | 65 | color: var(--mainForegroundColor); |
f37dc0dd C |
66 | width: fit-content; |
67 | ||
68 | .video-channel-display-name { | |
69 | font-weight: $font-semibold; | |
70 | font-size: 18px; | |
71 | } | |
72 | ||
73 | .video-channel-name { | |
74 | font-size: 14px; | |
75 | color: $grey-actor-name; | |
76 | margin-left: 5px; | |
77 | } | |
78 | } | |
79 | } | |
80 | } | |
57c36b27 C |
81 | } |
82 | } | |
83 | ||
c182527a | 84 | @media screen and (max-width: $small-view) { |
4682468d K |
85 | .search-result { |
86 | .entry.video-channel, | |
87 | .entry.video { | |
88 | flex-direction: column; | |
89 | height: auto; | |
90 | justify-content: center; | |
91 | align-items: center; | |
92 | text-align: center; | |
93 | ||
94 | img { | |
95 | margin: 0; | |
96 | } | |
97 | ||
98 | img { | |
99 | margin: 0; | |
100 | } | |
0933bb4a | 101 | |
4682468d K |
102 | .video-channel-info .video-channel-names { |
103 | align-items: center; | |
104 | flex-direction: column !important; | |
105 | ||
106 | .video-channel-name { | |
107 | margin-left: 0 !important; | |
108 | } | |
109 | } | |
110 | ||
111 | my-subscribe-button { | |
112 | margin-top: 5px; | |
113 | } | |
c182527a | 114 | } |
6e930af9 | 115 | } |
c182527a | 116 | } |
6e930af9 | 117 | |
c182527a C |
118 | @media screen and (max-width: $mobile-view) { |
119 | .search-result { | |
120 | padding: 20px 10px; | |
57c36b27 | 121 | |
c182527a C |
122 | .results-header { |
123 | font-size: 15px !important; | |
124 | } | |
57c36b27 | 125 | |
c182527a | 126 | .entry { |
c182527a C |
127 | &.video { |
128 | .video-info-name, | |
129 | .video-info-account { | |
130 | margin: auto; | |
131 | } | |
0933bb4a | 132 | |
c182527a C |
133 | my-video-thumbnail { |
134 | margin-right: 0 !important; | |
0933bb4a | 135 | |
03652b31 | 136 | ::ng-deep .video-thumbnail { |
0933bb4a C |
137 | width: 100%; |
138 | height: auto; | |
c182527a C |
139 | |
140 | img { | |
141 | width: 100%; | |
142 | height: auto; | |
143 | } | |
0933bb4a C |
144 | } |
145 | } | |
57c36b27 C |
146 | } |
147 | } | |
148 | } | |
149 | } |