]>
Commit | Line | Data |
---|---|---|
e2f01c47 C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | @import '_miniature'; | |
4 | ||
bfbd9128 C |
5 | $thumbnail-width: 130px; |
6 | $thumbnail-height: 72px; | |
7 | ||
72675ebe | 8 | my-video-thumbnail { |
bfbd9128 C |
9 | @include thumbnail-size-component($thumbnail-width, $thumbnail-height); |
10 | } | |
72675ebe | 11 | |
bfbd9128 C |
12 | .fake-thumbnail { |
13 | width: $thumbnail-width; | |
14 | height: $thumbnail-height; | |
15 | background-color: #ececec; | |
16 | } | |
17 | ||
18 | my-video-thumbnail, | |
19 | .fake-thumbnail { | |
72675ebe C |
20 | display: flex; // Avoids an issue with line-height that adds space below the element |
21 | margin-right: 10px; | |
22 | } | |
23 | ||
e2f01c47 C |
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 { | |
3143ae17 | 35 | opacity: 1; |
e2f01c47 C |
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 | ||
bfbd9128 | 46 | color: var(--mainForegroundColor); |
e2f01c47 | 47 | display: flex; |
3143ae17 | 48 | min-width: 0; |
e2f01c47 C |
49 | align-items: center; |
50 | cursor: pointer; | |
e2f01c47 C |
51 | |
52 | .position { | |
53 | font-weight: $font-semibold; | |
54 | margin-right: 10px; | |
55 | color: $grey-foreground-color; | |
bce47964 | 56 | min-width: 25px; |
e2f01c47 C |
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 | ||
e2f01c47 C |
67 | .video-info { |
68 | display: flex; | |
69 | flex-direction: column; | |
3143ae17 | 70 | align-self: flex-start; |
e2f01c47 C |
71 | min-width: 0; |
72 | ||
73 | a { | |
bce47964 | 74 | width: auto; |
e2f01c47 C |
75 | |
76 | &:hover { | |
77 | text-decoration: underline !important; | |
78 | } | |
79 | } | |
80 | ||
e2f01c47 C |
81 | .video-info-account, .video-info-timestamp { |
82 | color: $grey-foreground-color; | |
83 | } | |
84 | } | |
85 | } | |
86 | ||
bfbd9128 C |
87 | .video-info-name { |
88 | font-size: 18px; | |
89 | font-weight: $font-semibold; | |
90 | display: inline-block; | |
91 | ||
92 | @include ellipsis; | |
93 | } | |
94 | ||
e2f01c47 C |
95 | .more { |
96 | justify-self: flex-end; | |
97 | margin-left: auto; | |
98 | cursor: pointer; | |
3143ae17 | 99 | opacity: 0; |
c5407d70 | 100 | min-width: 24px; |
e2f01c47 C |
101 | |
102 | &.show { | |
3143ae17 | 103 | opacity: 1; |
e2f01c47 C |
104 | } |
105 | ||
106 | .icon-more { | |
107 | @include apply-svg-color($grey-foreground-color); | |
108 | ||
109 | display: flex; | |
110 | ||
111 | &::after { | |
112 | border: none; | |
113 | } | |
114 | } | |
115 | ||
116 | .dropdown-item { | |
117 | @include dropdown-with-icon-item; | |
118 | } | |
119 | ||
120 | .timestamp-options { | |
121 | padding-top: 0; | |
122 | padding-left: 35px; | |
123 | margin-bottom: 15px; | |
124 | ||
125 | > div { | |
126 | display: flex; | |
127 | align-items: center; | |
128 | } | |
129 | ||
130 | input { | |
131 | @include peertube-button; | |
132 | @include orange-button; | |
133 | ||
134 | margin-top: 10px; | |
135 | } | |
136 | } | |
137 | } | |
138 | } |