]>
Commit | Line | Data |
---|---|---|
1 | @import '_bootstrap-variables'; | |
2 | @import '_variables'; | |
3 | @import '_mixins'; | |
4 | @import '_miniature'; | |
5 | ||
6 | .videos { | |
7 | $column-width: #{$video-thumbnail-width - 25px}; | |
8 | ||
9 | display: grid; | |
10 | column-gap: calc(10px + .2%); | |
11 | grid-template-columns: repeat( | |
12 | auto-fill, | |
13 | minmax( | |
14 | var(--miniature-min-width, #{$column-width}), | |
15 | 1fr | |
16 | ) | |
17 | ); | |
18 | ||
19 | @media screen and (min-width: #{breakpoint(fhd)}) { | |
20 | --miniature-min-width: #{$column-width + 100px}; | |
21 | } | |
22 | } | |
23 | ||
24 | .videos-header { | |
25 | display: flex; | |
26 | justify-content: space-between; | |
27 | align-items: baseline; | |
28 | ||
29 | .title-page.title-page-single { | |
30 | display: flex; | |
31 | ||
32 | my-feed { | |
33 | display: inline-block; | |
34 | top: 1px; | |
35 | margin-left: 5px; | |
36 | width: max-content; | |
37 | opacity: 0; | |
38 | transition: ease-in .2s opacity; | |
39 | } | |
40 | &:hover my-feed { | |
41 | opacity: 1; | |
42 | } | |
43 | } | |
44 | ||
45 | .action-block { | |
46 | a button { | |
47 | @include peertube-button; | |
48 | @include grey-button; | |
49 | @include button-with-icon(18px, 3px, -1px); | |
50 | } | |
51 | } | |
52 | ||
53 | .moderation-block { | |
54 | display: flex; | |
55 | flex-grow: 1; | |
56 | justify-content: flex-end; | |
57 | align-items: center; | |
58 | } | |
59 | } | |
60 | ||
61 | .date-title { | |
62 | font-size: 16px; | |
63 | font-weight: $font-semibold; | |
64 | margin-bottom: 20px; | |
65 | margin-top: -10px; | |
66 | ||
67 | // make the element span a full grid row within .videos grid | |
68 | grid-column: 1 / -1; | |
69 | ||
70 | &:not(:first-child) { | |
71 | margin-top: .5rem; | |
72 | padding-top: 20px; | |
73 | border-top: 1px solid $separator-border-color; | |
74 | } | |
75 | } | |
76 | ||
77 | :host-context(.main-col:not(.expanded)) .margin-content { | |
78 | @include adapt-margin-content-width($fluid: true); | |
79 | } | |
80 | ||
81 | @media screen and (max-width: $mobile-view) { | |
82 | .videos-header { | |
83 | flex-direction: column; | |
84 | align-items: center; | |
85 | height: auto; | |
86 | ||
87 | .title-page { | |
88 | margin-bottom: 10px; | |
89 | margin-right: 0px; | |
90 | } | |
91 | } | |
92 | } |