]>
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 | ||
f37dc0dd | 58 | &.video-channel { |
f37dc0dd | 59 | img { |
e2409062 C |
60 | $image-size: 130px; |
61 | $margin-size: ($video-thumbnail-width - $image-size) / 2; // So we have the same width than the video miniature | |
62 | ||
63 | @include avatar($image-size); | |
f37dc0dd | 64 | |
e2409062 | 65 | margin: 0 ($margin-size + 10) 0 $margin-size; |
f37dc0dd C |
66 | } |
67 | ||
68 | .video-channel-info { | |
f37dc0dd C |
69 | flex-grow: 1; |
70 | width: fit-content; | |
71 | ||
72 | .video-channel-names { | |
73 | @include disable-default-a-behaviour; | |
74 | ||
75 | display: flex; | |
76 | align-items: baseline; | |
9a0fc840 | 77 | color: var(--mainForegroundColor); |
f37dc0dd C |
78 | width: fit-content; |
79 | ||
80 | .video-channel-display-name { | |
81 | font-weight: $font-semibold; | |
82 | font-size: 18px; | |
83 | } | |
84 | ||
85 | .video-channel-name { | |
86 | font-size: 14px; | |
87 | color: $grey-actor-name; | |
88 | margin-left: 5px; | |
89 | } | |
90 | } | |
91 | } | |
92 | } | |
57c36b27 C |
93 | } |
94 | } | |
95 | ||
c182527a C |
96 | @media screen and (max-width: $small-view) { |
97 | .video-channel-names { | |
98 | flex-direction: column !important; | |
0933bb4a | 99 | |
c182527a C |
100 | .video-channel-name { |
101 | margin-left: 0 !important; | |
102 | } | |
6e930af9 | 103 | } |
c182527a | 104 | } |
6e930af9 | 105 | |
c182527a C |
106 | @media screen and (max-width: $mobile-view) { |
107 | .search-result { | |
108 | padding: 20px 10px; | |
57c36b27 | 109 | |
c182527a C |
110 | .results-header { |
111 | font-size: 15px !important; | |
112 | } | |
57c36b27 | 113 | |
c182527a C |
114 | .entry { |
115 | flex-direction: column; | |
116 | height: auto; | |
117 | justify-content: center; | |
118 | align-items: center; | |
119 | text-align: center; | |
120 | ||
121 | &.video { | |
122 | .video-info-name, | |
123 | .video-info-account { | |
124 | margin: auto; | |
125 | } | |
0933bb4a | 126 | |
c182527a C |
127 | my-video-thumbnail { |
128 | margin-right: 0 !important; | |
0933bb4a | 129 | |
c182527a | 130 | /deep/ .video-thumbnail { |
0933bb4a C |
131 | width: 100%; |
132 | height: auto; | |
c182527a C |
133 | |
134 | img { | |
135 | width: 100%; | |
136 | height: auto; | |
137 | } | |
0933bb4a C |
138 | } |
139 | } | |
57c36b27 | 140 | } |
c182527a C |
141 | |
142 | &.video-channel { | |
143 | .video-channel-info .video-channel-names { | |
144 | align-items: center; | |
145 | } | |
146 | ||
147 | my-subscribe-button { | |
148 | margin-top: 5px; | |
149 | } | |
150 | } | |
57c36b27 C |
151 | } |
152 | } | |
153 | } |