account-video-channels.component.scss 2.9 KB
Newer Older
Chocobozzz's avatar
Chocobozzz committed
1
2
@import '_variables';
@import '_mixins';
Chocobozzz's avatar
Chocobozzz committed
3
@import '_miniature';
Chocobozzz's avatar
Chocobozzz committed
4

Chocobozzz's avatar
Chocobozzz committed
5
.margin-content {
Chocobozzz's avatar
Chocobozzz committed
6
  @include grid-videos-miniature-margins;
Chocobozzz's avatar
Chocobozzz committed
7
8
}

Chocobozzz's avatar
Chocobozzz committed
9
10
11
.channel {
  max-width: $max-channels-width;
  background-color: pvar(--channelBackgroundColor);
12
  padding: 30px;
Chocobozzz's avatar
Chocobozzz committed
13

Chocobozzz's avatar
Chocobozzz committed
14
  margin: 30px 0;
Chocobozzz's avatar
Chocobozzz committed
15

Chocobozzz's avatar
Chocobozzz committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 15px;
}

.channel-avatar-row {
  grid-column: 1;
  grid-row: 1;

  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto 1fr;

Chocobozzz's avatar
Chocobozzz committed
30
31
  my-actor-avatar {
    @include actor-avatar-size(75px);
Chocobozzz's avatar
Chocobozzz committed
32
    @include margin-right(15px);
Chocobozzz's avatar
Chocobozzz committed
33

Chocobozzz's avatar
Chocobozzz committed
34
35
36
37
38
    grid-column: 1;
    grid-row: 1 / 3;
  }

  a {
Chocobozzz's avatar
Chocobozzz committed
39
40
    @include peertube-word-wrap;

Chocobozzz's avatar
Chocobozzz committed
41
42
43
44
45
46
47
48
49
50
51
52
53
    color: pvar(--mainForegroundColor);
  }

  h2 {
    grid-row: 1;
    grid-column: 2;
    font-size: 20px;
    line-height: 1;
    font-weight: $font-bold;
    margin: 0;
  }

  .actor-counters {
Chocobozzz's avatar
Chocobozzz committed
54
55
    @include margin-left(15px);

Chocobozzz's avatar
Chocobozzz committed
56
57
58
59
60
    grid-row: 1;
    grid-column: 3;
    color: pvar(--greyForegroundColor);
    font-size: 16px;
    display: flex;
Chocobozzz's avatar
Chocobozzz committed
61
62
    align-items: center;
  }
Chocobozzz's avatar
Chocobozzz committed
63

Chocobozzz's avatar
Chocobozzz committed
64
65
66
67
68
  .actor-counters > *:not(:last-child)::after {
    content: '•';
    margin: 0 10px;
    color: pvar(--mainColor);
  }
Chocobozzz's avatar
Chocobozzz committed
69

Chocobozzz's avatar
Chocobozzz committed
70
  .description-html {
Chocobozzz's avatar
Chocobozzz committed
71
72
    @include fade-text(30px, pvar(--channelBackgroundColor));

Chocobozzz's avatar
Chocobozzz committed
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
    grid-column: 2 / 4;
    grid-row: 2;

    max-height: 80px;
    font-size: 16px;
  }
}

my-subscribe-button {
  grid-row: 1;
  grid-column: 2;
}

.videos {
  display: flex;
  grid-column: 1 / 3;
  grid-row: 2;
  margin-top: 30px;

  position: relative;
  overflow: hidden;

  my-video-miniature {
Chocobozzz's avatar
Chocobozzz committed
96
    @include margin-right(15px);
Chocobozzz's avatar
Chocobozzz committed
97
98
    min-width: $video-thumbnail-medium-width;
    max-width: $video-thumbnail-medium-width;
Chocobozzz's avatar
Chocobozzz committed
99
  }
Chocobozzz's avatar
Chocobozzz committed
100

Chocobozzz's avatar
Chocobozzz committed
101
102
  .no-results {
    height: auto;
Chocobozzz's avatar
Chocobozzz committed
103
  }
Chocobozzz's avatar
Chocobozzz committed
104
}
Chocobozzz's avatar
Chocobozzz committed
105

Chocobozzz's avatar
Chocobozzz committed
106
107
108
109
110
.miniature-show-channel {
  height: 100%;
  position: absolute;
  right: 0;
  background: linear-gradient(90deg, transparent 0, pvar(--channelBackgroundColor) 45px);
Chocobozzz's avatar
Chocobozzz committed
111
  padding: ($video-thumbnail-medium-height / 2 - 10px) 15px 0 60px;
Chocobozzz's avatar
Chocobozzz committed
112
113
114
115
116
117
118
119
120
121
122
123
124
  z-index: z(miniature) + 1;

  a {
    color: pvar(--mainColor);
    font-size: 16px;
    font-weight: $font-semibold;
  }
}

.button-show-channel {
  display: none;
}

125
@media screen and (max-width: $mobile-view) {
126
127
128
129
  .channel {
    padding: 15px;
  }

Chocobozzz's avatar
Chocobozzz committed
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
  .channel-avatar-row {
    grid-template-columns: auto auto auto 1fr;

    .avatar-link {
      grid-row: 1 / 4;
    }

    h2 {
      font-size: 16px;
    }

    .actor-counters {
      margin: 0;
      font-size: 13px;
      grid-row: 2;
      grid-column: 2 / 4;
    }

    .description-html {
      grid-row: 3;
      font-size: 14px;
151
152
    }
  }
Chocobozzz's avatar
Chocobozzz committed
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177

  .show-channel a {
    @include peertube-button-link;
    @include orange-button-inverted;
  }

  .videos {
    display: none;
  }

  my-subscribe-button,
  .button-show-channel {
    grid-column: 1 / 4;
    grid-row: 3;
    margin-top: 15px;
  }

  my-subscribe-button {
    justify-self: start;
  }

  .button-show-channel {
    display: block;
    justify-self: end;
  }
178
}