]>
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 | } | |
38 | ||
39 | .results-filter { | |
40 | // Animation when we show/hide the filters | |
41 | transition: max-height 0.3s; | |
42 | display: block !important; | |
43 | overflow: hidden !important; | |
44 | max-height: 0; | |
45 | ||
46 | &.show { | |
6e930af9 | 47 | max-height: 1500px; |
0b18f4aa | 48 | } |
57c36b27 C |
49 | } |
50 | } | |
51 | ||
52 | .entry { | |
53 | display: flex; | |
54 | min-height: 130px; | |
55 | padding-bottom: 20px; | |
56 | margin-bottom: 20px; | |
57 | ||
58 | &.video { | |
59 | ||
60 | my-video-thumbnail { | |
61 | margin-right: 10px; | |
62 | } | |
63 | ||
64 | .video-info { | |
65 | flex-grow: 1; | |
66 | ||
67 | .video-info-name { | |
68 | @include disable-default-a-behaviour; | |
69 | ||
9a0fc840 | 70 | color: var(--mainForegroundColor); |
57c36b27 C |
71 | display: block; |
72 | width: fit-content; | |
73 | font-size: 18px; | |
74 | font-weight: $font-semibold; | |
75 | } | |
76 | ||
77 | .video-info-date-views { | |
78 | font-size: 14px; | |
79 | } | |
80 | ||
81 | .video-info-account { | |
82 | @include disable-default-a-behaviour; | |
ef80c66c | 83 | @include ellipsis; |
57c36b27 C |
84 | |
85 | display: block; | |
86 | width: fit-content; | |
57c36b27 | 87 | font-size: 14px; |
457bb213 | 88 | color: $grey-foreground-color; |
57c36b27 C |
89 | |
90 | &:hover { | |
457bb213 | 91 | color: $grey-foreground-hover-color; |
57c36b27 C |
92 | } |
93 | } | |
94 | } | |
95 | } | |
f37dc0dd C |
96 | |
97 | &.video-channel { | |
98 | ||
99 | img { | |
100 | @include avatar(120px); | |
101 | ||
102 | margin: 0 50px 0 40px; | |
103 | } | |
104 | ||
105 | .video-channel-info { | |
f37dc0dd C |
106 | flex-grow: 1; |
107 | width: fit-content; | |
108 | ||
109 | .video-channel-names { | |
110 | @include disable-default-a-behaviour; | |
111 | ||
112 | display: flex; | |
113 | align-items: baseline; | |
9a0fc840 | 114 | color: var(--mainForegroundColor); |
f37dc0dd C |
115 | width: fit-content; |
116 | ||
117 | .video-channel-display-name { | |
118 | font-weight: $font-semibold; | |
119 | font-size: 18px; | |
120 | } | |
121 | ||
122 | .video-channel-name { | |
123 | font-size: 14px; | |
124 | color: $grey-actor-name; | |
125 | margin-left: 5px; | |
126 | } | |
127 | } | |
128 | } | |
129 | } | |
57c36b27 C |
130 | } |
131 | } | |
132 | ||
c182527a C |
133 | @media screen and (max-width: $small-view) { |
134 | .video-channel-names { | |
135 | flex-direction: column !important; | |
0933bb4a | 136 | |
c182527a C |
137 | .video-channel-name { |
138 | margin-left: 0 !important; | |
139 | } | |
6e930af9 | 140 | } |
c182527a | 141 | } |
6e930af9 | 142 | |
c182527a C |
143 | @media screen and (max-width: $mobile-view) { |
144 | .search-result { | |
145 | padding: 20px 10px; | |
57c36b27 | 146 | |
c182527a C |
147 | .results-header { |
148 | font-size: 15px !important; | |
149 | } | |
57c36b27 | 150 | |
c182527a C |
151 | .entry { |
152 | flex-direction: column; | |
153 | height: auto; | |
154 | justify-content: center; | |
155 | align-items: center; | |
156 | text-align: center; | |
157 | ||
158 | &.video { | |
159 | .video-info-name, | |
160 | .video-info-account { | |
161 | margin: auto; | |
162 | } | |
0933bb4a | 163 | |
c182527a C |
164 | my-video-thumbnail { |
165 | margin-right: 0 !important; | |
0933bb4a | 166 | |
c182527a | 167 | /deep/ .video-thumbnail { |
0933bb4a C |
168 | width: 100%; |
169 | height: auto; | |
c182527a C |
170 | |
171 | img { | |
172 | width: 100%; | |
173 | height: auto; | |
174 | } | |
0933bb4a C |
175 | } |
176 | } | |
57c36b27 | 177 | } |
c182527a C |
178 | |
179 | &.video-channel { | |
180 | .video-channel-info .video-channel-names { | |
181 | align-items: center; | |
182 | } | |
183 | ||
184 | my-subscribe-button { | |
185 | margin-top: 5px; | |
186 | } | |
187 | } | |
57c36b27 C |
188 | } |
189 | } | |
190 | } |