]>
Commit | Line | Data |
---|---|---|
1 | @import '_variables'; | |
2 | @import '_mixins'; | |
3 | @import '_miniature'; | |
4 | ||
5 | $thumbnail-width: 130px; | |
6 | $thumbnail-height: 72px; | |
7 | ||
8 | my-video-thumbnail { | |
9 | @include thumbnail-size-component($thumbnail-width, $thumbnail-height); | |
10 | } | |
11 | ||
12 | .fake-thumbnail { | |
13 | width: $thumbnail-width; | |
14 | height: $thumbnail-height; | |
15 | background-color: #ececec; | |
16 | } | |
17 | ||
18 | my-video-thumbnail, | |
19 | .fake-thumbnail { | |
20 | display: flex; // Avoids an issue with line-height that adds space below the element | |
21 | margin-right: 10px; | |
22 | } | |
23 | ||
24 | .video { | |
25 | display: flex; | |
26 | align-items: center; | |
27 | background-color: var(--mainBackgroundColor); | |
28 | padding: 10px; | |
29 | border-bottom: 1px solid $separator-border-color; | |
30 | ||
31 | &:hover { | |
32 | background-color: rgba(0, 0, 0, 0.05); | |
33 | ||
34 | .more { | |
35 | opacity: 1; | |
36 | } | |
37 | } | |
38 | ||
39 | &.playing { | |
40 | background-color: rgba(0, 0, 0, 0.02); | |
41 | } | |
42 | ||
43 | a { | |
44 | @include disable-default-a-behaviour; | |
45 | ||
46 | color: var(--mainForegroundColor); | |
47 | display: flex; | |
48 | min-width: 0; | |
49 | align-items: center; | |
50 | cursor: pointer; | |
51 | ||
52 | .position { | |
53 | font-weight: $font-semibold; | |
54 | margin-right: 10px; | |
55 | color: $grey-foreground-color; | |
56 | min-width: 25px; | |
57 | ||
58 | my-global-icon { | |
59 | @include apply-svg-color($grey-foreground-color); | |
60 | ||
61 | width: 17px; | |
62 | position: relative; | |
63 | left: -2px; | |
64 | } | |
65 | } | |
66 | ||
67 | .video-info { | |
68 | display: flex; | |
69 | flex-direction: column; | |
70 | align-self: flex-start; | |
71 | min-width: 0; | |
72 | ||
73 | a { | |
74 | width: auto; | |
75 | } | |
76 | ||
77 | .video-info-account, .video-info-timestamp { | |
78 | color: $grey-foreground-color; | |
79 | } | |
80 | } | |
81 | } | |
82 | ||
83 | .video-info-name { | |
84 | font-size: 18px; | |
85 | font-weight: $font-semibold; | |
86 | display: inline-block; | |
87 | ||
88 | @include ellipsis; | |
89 | } | |
90 | ||
91 | .more { | |
92 | justify-self: flex-end; | |
93 | margin-left: auto; | |
94 | cursor: pointer; | |
95 | opacity: 0; | |
96 | min-width: 24px; | |
97 | ||
98 | &.show { | |
99 | opacity: 1; | |
100 | } | |
101 | ||
102 | .icon-more { | |
103 | @include apply-svg-color($grey-foreground-color); | |
104 | ||
105 | display: flex; | |
106 | ||
107 | &::after { | |
108 | border: none; | |
109 | } | |
110 | } | |
111 | ||
112 | .dropdown-item { | |
113 | @include dropdown-with-icon-item; | |
114 | } | |
115 | ||
116 | .timestamp-options { | |
117 | padding-top: 0; | |
118 | padding-left: 35px; | |
119 | margin-bottom: 15px; | |
120 | ||
121 | > div { | |
122 | display: flex; | |
123 | align-items: center; | |
124 | } | |
125 | ||
126 | input { | |
127 | @include peertube-button; | |
128 | @include orange-button; | |
129 | ||
130 | margin-top: 10px; | |
131 | } | |
132 | } | |
133 | } | |
134 | } |