]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/shared/video/video-miniature.component.scss
Merge branch 'release/2.1.0' into develop
[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 77
3fbba1d2
RK
78 ::ng-deep .more-icon {
79 opacity: .6;
80
81 &:hover {
82 opacity: 1;
83 }
84 }
3a0fb65c
C
85 }
86
87 @media screen and (max-width: $small-view) {
0f4905e1
C
88 .video-miniature-information .video-miniature-name {
89 margin-top: 0;
3a0fb65c
C
90 }
91
0f4905e1
C
92 .video-actions {
93 margin: 0;
94 top: -3px;
95
03652b31 96 ::ng-deep .dropdown-root {
743f023c 97 opacity: 1 !important;
0f4905e1 98 }
3a0fb65c
C
99 }
100 }
101 }
102
3fbba1d2
RK
103 &:hover ::ng-deep .video-thumbnail .video-thumbnail-actions-overlay,
104 &:hover .video-bottom .video-actions ::ng-deep .dropdown-root {
105 opacity: 1;
106 }
107
e2409062
C
108 &.display-as-row {
109 flex-direction: row;
110 margin-bottom: 0;
111 height: auto;
bf64ed41
RK
112 display: flex;
113 flex-grow: 1;
e2409062
C
114
115 my-video-thumbnail {
116 margin-right: 10px;
117 }
118
0f4905e1
C
119 .video-bottom {
120 .video-miniature-information {
dd570a34
C
121 @media screen and (min-width: $small-view) {
122 width: auto;
123 min-width: 500px;
124 }
0f4905e1
C
125
126 .video-miniature-name {
127 @include ellipsis-multiline(1.3em, 2);
128
129 margin-top: 2px;
130 margin-bottom: 5px;
131 }
132
133 .video-miniature-created-at-views,
134 .video-miniature-account,
135 .video-miniature-channel {
136 font-size: 14px;
137 width: fit-content;
138 }
139
140 .video-info-privacy {
141 margin-top: 5px;
142 }
143
144 .video-info-blacklisted {
145 margin-top: 3px;
146 }
e2409062
C
147 }
148
0f4905e1
C
149 .video-actions {
150 margin: 0;
151 top: -3px;
e2409062
C
152 }
153 }
154
155 @media screen and (max-width: $small-view) {
156 flex-direction: column;
157 height: auto;
158
159 my-video-thumbnail {
160 margin-right: 0;
161 }
8dfceec4
C
162
163 .video-miniature-information {
164 min-width: initial;
165 }
e2409062 166 }
501bc6c2
C
167 }
168}