]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/search/search.component.scss
Add advanced search in client
[github/Chocobozzz/PeerTube.git] / client / src / app / search / search.component.scss
1 @import '_variables';
2 @import '_mixins';
3
4 .no-result {
5 height: 40vh;
6 display: flex;
7 align-items: center;
8 justify-content: center;
9 font-size: 16px;
10 font-weight: $font-semibold;
11 }
12
13 .search-result {
14 margin: 40px;
15
16 .results-header {
17 font-size: 16px;
18 padding-bottom: 20px;
19 margin-bottom: 30px;
20 border-bottom: 1px solid #DADADA;
21
22 .first-line {
23 display: flex;
24 flex-direction: row;
25
26 .results-counter {
27 flex-grow: 1;
28
29 .search-value {
30 font-weight: $font-semibold;
31 }
32 }
33
34 .results-filter-button {
35
36 .icon.icon-filter {
37 @include icon(20px);
38
39 position: relative;
40 top: -1px;
41 margin-right: 5px;
42 background-image: url('../../assets/images/search/filter.svg');
43 }
44 }
45 }
46
47 .results-filter {
48 // Animation when we show/hide the filters
49 transition: max-height 0.3s;
50 display: block !important;
51 overflow: hidden !important;
52 max-height: 0;
53
54 &.show {
55 max-height: 800px;
56 }
57 }
58 }
59
60 .entry {
61 display: flex;
62 min-height: 130px;
63 padding-bottom: 20px;
64 margin-bottom: 20px;
65
66 &.video {
67
68 my-video-thumbnail {
69 margin-right: 10px;
70 }
71
72 .video-info {
73 flex-grow: 1;
74
75 .video-info-name {
76 @include disable-default-a-behaviour;
77
78 color: #000;
79 display: block;
80 width: fit-content;
81 font-size: 18px;
82 font-weight: $font-semibold;
83 }
84
85 .video-info-date-views {
86 font-size: 14px;
87 }
88
89 .video-info-account {
90 @include disable-default-a-behaviour;
91
92 display: block;
93 width: fit-content;
94 overflow: hidden;
95 text-overflow: ellipsis;
96 white-space: nowrap;
97 font-size: 14px;
98 color: #585858;
99
100 &:hover {
101 color: #303030;
102 }
103 }
104 }
105 }
106 }
107 }
108
109 @media screen and (max-width: 800px) {
110 .entry {
111 flex-direction: column;
112 height: auto;
113 text-align: center;
114
115 &.video {
116 .video-info-name {
117 margin: auto;
118 }
119
120 my-video-thumbnail {
121 margin-right: 0;
122 }
123 }
124 }
125 }