aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/video/abstract-video-list.scss
blob: 2aab40ea8a5189a8ae4ada3f06333045c96808e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@import '_bootstrap-variables';
@import '_variables';
@import '_mixins';
@import '_miniature';

.videos {
  display: grid;
  column-gap: calc(10px + .2%);
  grid-template-columns: repeat(
    auto-fill,
    minmax(
      var(--miniature-min-width, #{$video-thumbnail-width}),
      1fr
    )
  );

  @media screen and (min-width: #{breakpoint(xxl)}) {
    --miniature-min-width: 300px;
  }
}

.videos-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;

  .title-page.title-page-single {
    display: flex;

    my-feed {
      display: inline-block;
      top: 1px;
      margin-left: 5px;
      width: max-content;
      opacity: 0;
      transition: ease-in .2s opacity;
    }
    &:hover my-feed {
      opacity: 1;
    }
  }

  .action-block {
    a button {
      @include peertube-button;
      @include grey-button;
      @include button-with-icon(18px, 3px, -1px);
    }
  }

  .moderation-block {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
    align-items: center;
  }
}

.date-title {
  font-size: 16px;
  font-weight: $font-semibold;
  margin-bottom: 20px;
  margin-top: -10px;
  padding-top: 20px;

  // make the element span a full grid row within .videos grid
  grid-column: 1 / -1;

  &:not(:first-child) {
    border-top: 1px solid $separator-border-color;
  }
}

:host-context(.main-col:not(.expanded)) .margin-content {
  @include adapt-margin-content-width($fluid: true);
}

@media screen and (max-width: $mobile-view) {
  .videos-header {
    flex-direction: column;
    align-items: center;
    height: auto;

    .title-page {
      margin-bottom: 10px;
      margin-right: 0px;
    }
  }
}