]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/video/video-miniature.component.scss
Add search bars for a user's videos and playlist library
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / video / video-miniature.component.scss
CommitLineData
63c4db6d
C
1@import '_variables';
2@import '_mixins';
830b4faf 3@import '_miniature';
63c4db6d 4
743f023c 5$more-button-width: 41px;
5dfb7c1d 6$more-margin-right: 15px;
743f023c 7
501bc6c2 8.video-miniature {
11dd0c2e 9 width: $video-miniature-width;
e2409062
C
10 display: inline-flex;
11 flex-direction: column;
dc890263 12 margin-bottom: $video-miniature-margin-bottom;
e5fc7811 13 height: 195px;
0d7d2ad9 14 vertical-align: top;
501bc6c2 15
0f4905e1
C
16 .video-bottom {
17 display: flex;
501bc6c2 18
0f4905e1 19 .video-miniature-information {
743f023c 20 width: $video-miniature-width - $more-button-width - $more-margin-right;
0f4905e1 21 line-height: normal;
501bc6c2 22
0f4905e1
C
23 .video-miniature-name {
24 @include miniature-name;
25 }
00a44645 26
0f4905e1
C
27 .video-miniature-created-at-views {
28 display: block;
29 font-size: 13px;
30 }
03e12d7c 31
0f4905e1
C
32 .video-miniature-account,
33 .video-miniature-channel {
34 @include disable-default-a-behaviour;
35 @include ellipsis;
03e12d7c 36
0f4905e1
C
37 display: block;
38 font-size: 13px;
39 color: $grey-foreground-color;
40
41 &:hover {
42 color: $grey-foreground-hover-color;
43 }
03e12d7c 44 }
e2409062 45
0f4905e1
C
46 .video-info-privacy,
47 .video-info-blacklisted .blacklisted-label,
48 .video-info-nsfw {
49 font-weight: $font-semibold;
50 }
e2409062 51
0f4905e1
C
52 .video-info-blacklisted {
53 color: red;
e2409062 54
0f4905e1
C
55 .blacklisted-reason::before {
56 content: ' - ';
57 }
e2409062 58 }
e2409062 59
0f4905e1
C
60 .video-info-nsfw {
61 color: red;
62 }
e2409062 63 }
3a0fb65c
C
64
65 .video-actions {
66 margin-top: 3px;
743f023c
C
67 width: $more-button-width;
68 height: 30px;
3a0fb65c 69
03652b31 70 ::ng-deep .dropdown-root:not(.show) {
2b3f1919 71 opacity: 0;
0f4905e1 72 }
3a0fb65c 73
03652b31 74 ::ng-deep .playlist-dropdown.show + my-action-dropdown .dropdown-root {
2b3f1919 75 opacity: 1;
0f4905e1 76 }
3a0fb65c
C
77 }
78
03652b31 79 &:hover .video-actions ::ng-deep .dropdown-root {
2b3f1919 80 opacity: 1;
3a0fb65c
C
81 }
82
83 @media screen and (max-width: $small-view) {
0f4905e1
C
84 .video-miniature-information .video-miniature-name {
85 margin-top: 0;
3a0fb65c
C
86 }
87
0f4905e1
C
88 .video-actions {
89 margin: 0;
90 top: -3px;
91
03652b31 92 ::ng-deep .dropdown-root {
743f023c 93 opacity: 1 !important;
0f4905e1 94 }
3a0fb65c
C
95 }
96 }
97 }
98
e2409062
C
99 &.display-as-row {
100 flex-direction: row;
101 margin-bottom: 0;
102 height: auto;
bf64ed41
RK
103 display: flex;
104 flex-grow: 1;
e2409062
C
105
106 my-video-thumbnail {
107 margin-right: 10px;
108 }
109
0f4905e1
C
110 .video-bottom {
111 .video-miniature-information {
dd570a34
C
112 @media screen and (min-width: $small-view) {
113 width: auto;
114 min-width: 500px;
115 }
0f4905e1
C
116
117 .video-miniature-name {
118 @include ellipsis-multiline(1.3em, 2);
119
120 margin-top: 2px;
121 margin-bottom: 5px;
122 }
123
124 .video-miniature-created-at-views,
125 .video-miniature-account,
126 .video-miniature-channel {
127 font-size: 14px;
128 width: fit-content;
129 }
130
131 .video-info-privacy {
132 margin-top: 5px;
133 }
134
135 .video-info-blacklisted {
136 margin-top: 3px;
137 }
e2409062
C
138 }
139
0f4905e1
C
140 .video-actions {
141 margin: 0;
142 top: -3px;
e2409062
C
143 }
144 }
145
146 @media screen and (max-width: $small-view) {
147 flex-direction: column;
148 height: auto;
149
150 my-video-thumbnail {
151 margin-right: 0;
152 }
8dfceec4
C
153
154 .video-miniature-information {
155 min-width: initial;
156 }
e2409062 157 }
501bc6c2
C
158 }
159}