]>
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 { | |
26 | ||
27 | .icon.icon-filter { | |
28 | @include icon(20px); | |
29 | ||
30 | position: relative; | |
31 | top: -1px; | |
32 | margin-right: 5px; | |
33 | background-image: url('../../assets/images/search/filter.svg'); | |
34 | } | |
35 | } | |
36 | } | |
37 | ||
38 | .results-filter { | |
39 | // Animation when we show/hide the filters | |
40 | transition: max-height 0.3s; | |
41 | display: block !important; | |
42 | overflow: hidden !important; | |
43 | max-height: 0; | |
44 | ||
45 | &.show { | |
6e930af9 | 46 | max-height: 1500px; |
0b18f4aa | 47 | } |
57c36b27 C |
48 | } |
49 | } | |
50 | ||
51 | .entry { | |
52 | display: flex; | |
53 | min-height: 130px; | |
54 | padding-bottom: 20px; | |
55 | margin-bottom: 20px; | |
56 | ||
57 | &.video { | |
58 | ||
59 | my-video-thumbnail { | |
60 | margin-right: 10px; | |
61 | } | |
62 | ||
63 | .video-info { | |
64 | flex-grow: 1; | |
65 | ||
66 | .video-info-name { | |
67 | @include disable-default-a-behaviour; | |
68 | ||
69 | color: #000; | |
70 | display: block; | |
71 | width: fit-content; | |
72 | font-size: 18px; | |
73 | font-weight: $font-semibold; | |
74 | } | |
75 | ||
76 | .video-info-date-views { | |
77 | font-size: 14px; | |
78 | } | |
79 | ||
80 | .video-info-account { | |
81 | @include disable-default-a-behaviour; | |
82 | ||
83 | display: block; | |
84 | width: fit-content; | |
85 | overflow: hidden; | |
86 | text-overflow: ellipsis; | |
87 | white-space: nowrap; | |
88 | font-size: 14px; | |
89 | color: #585858; | |
90 | ||
91 | &:hover { | |
92 | color: #303030; | |
93 | } | |
94 | } | |
95 | } | |
96 | } | |
f37dc0dd C |
97 | |
98 | &.video-channel { | |
99 | ||
100 | img { | |
101 | @include avatar(120px); | |
102 | ||
103 | margin: 0 50px 0 40px; | |
104 | } | |
105 | ||
106 | .video-channel-info { | |
f37dc0dd C |
107 | flex-grow: 1; |
108 | width: fit-content; | |
109 | ||
110 | .video-channel-names { | |
111 | @include disable-default-a-behaviour; | |
112 | ||
113 | display: flex; | |
114 | align-items: baseline; | |
115 | color: #000; | |
116 | width: fit-content; | |
117 | ||
118 | .video-channel-display-name { | |
119 | font-weight: $font-semibold; | |
120 | font-size: 18px; | |
121 | } | |
122 | ||
123 | .video-channel-name { | |
124 | font-size: 14px; | |
125 | color: $grey-actor-name; | |
126 | margin-left: 5px; | |
127 | } | |
128 | } | |
129 | } | |
130 | } | |
57c36b27 C |
131 | } |
132 | } | |
133 | ||
134 | @media screen and (max-width: 800px) { | |
0933bb4a C |
135 | .search-result { |
136 | margin: 20px 10px; | |
137 | } | |
138 | ||
6e930af9 C |
139 | .results-header { |
140 | font-size: 15px !important; | |
141 | } | |
142 | ||
57c36b27 C |
143 | .entry { |
144 | flex-direction: column; | |
145 | height: auto; | |
146 | text-align: center; | |
147 | ||
148 | &.video { | |
6e930af9 C |
149 | .video-info-name, |
150 | .video-info-account { | |
57c36b27 C |
151 | margin: auto; |
152 | } | |
153 | ||
154 | my-video-thumbnail { | |
0933bb4a C |
155 | margin-right: 0 !important; |
156 | ||
157 | /deep/ .video-thumbnail { | |
158 | width: 100%; | |
159 | height: auto; | |
160 | ||
161 | img { | |
162 | width: 100%; | |
163 | height: auto; | |
164 | } | |
165 | } | |
57c36b27 C |
166 | } |
167 | } | |
168 | } | |
169 | } |