aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-video-miniature/videos-list.component.scss
blob: 209201a5c05126c103eda8766011f371fdbba53e (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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
@use '_bootstrap-variables';
@use '_variables' as *;
@use '_mixins' as *;
@use '_miniature' as *;

// Cannot set margin top to videos-header because of the main header fixed position
$margin-top: 30px;

.videos-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  margin-bottom: 30px;

  .title,
  .title-subscription {
    grid-column: 1;
  }

  .title {
    font-size: 18px;
    color: pvar(--mainForegroundColor);
    display: inline-block;
    font-weight: $font-semibold;

    margin-top: $margin-top;
    margin-bottom: 0;
  }

  .title-subscription {
    grid-row: 2;
    font-size: 14px;
    color: pvar(--greyForegroundColor);

    &.no-title {
      margin-top: 10px;
    }
  }

  .action-block {
    grid-column: 3;
    grid-row: 1/3;
    margin-top: $margin-top;
  }

  my-feed {
    @include margin-left(5px);

    display: inline-block;
    width: 16px;
    color: pvar(--mainColor);
    position: relative;
    top: -2px;
  }
}

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

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

  &:not(:first-child) {
    margin-top: .5rem;
    padding-top: 20px;
    border-top: 1px solid $separator-border-color;
  }
}

.margin-content {
  @include grid-videos-miniature-layout-with-margins;
}

.display-as-row.videos {
  @include margin-left(pvar(--horizontalMarginContent));
  @include margin-right(pvar(--horizontalMarginContent));

  .video-wrapper {
    margin-bottom: 15px;
  }
}

@media screen and (max-width: $mobile-view) {
  .videos-header,
  my-video-filters-header {
    @include margin-left(15px);
    @include margin-right(15px);

    display: inline-block;
  }

  .date-title {
    text-align: center;
  }

  .videos-header {
    flex-direction: column;
    align-items: center;
    height: auto;
    margin-bottom: 10px;

    .title-page {
      @include margin-right(0);

      margin-bottom: 10px;
    }
  }
}