_actor.scss 1.4 KB
Newer Older
Chocobozzz's avatar
Chocobozzz committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@import '_variables';

@mixin section-label-responsive {
  color: pvar(--mainColor);
  font-size: 12px;
  margin-bottom: 15px;
  font-weight: $font-bold;
  letter-spacing: 2.5px;

  @media screen and (max-width: $mobile-view) {
    font-size: 10px;
    letter-spacing: 2.1px;
    margin-bottom: 5px;
  }
}

@mixin show-more-description {
  color: pvar(--mainColor);
  cursor: pointer;
Chocobozzz's avatar
Chocobozzz committed
20
  margin: 10px auto 45px;
Chocobozzz's avatar
Chocobozzz committed
21
22
23
24
25
26
27
}

@mixin avatar-row-responsive ($img-margin, $grey-font-size) {
  display: flex;
  grid-column: 1;
  margin-bottom: 30px;

Chocobozzz's avatar
Chocobozzz committed
28
29
  .main-avatar {
    @include actor-avatar-size(120px);
Chocobozzz's avatar
Chocobozzz committed
30
31
32
  }

  > div {
Chocobozzz's avatar
Chocobozzz committed
33
34
    @include margin-left($img-margin);

Chocobozzz's avatar
Chocobozzz committed
35
    min-width: 1px;
Chocobozzz's avatar
Chocobozzz committed
36
37
38
39
40
41
42
  }

  .actor-info {
    display: flex;

    > div:first-child {
      flex-grow: 1;
Chocobozzz's avatar
Chocobozzz committed
43
      min-width: 1px;
Chocobozzz's avatar
Chocobozzz committed
44
45
46
47
    }
  }

  .actor-display-name {
Chocobozzz's avatar
Chocobozzz committed
48
49
    @include peertube-word-wrap;

Chocobozzz's avatar
Chocobozzz committed
50
51
52
53
54
55
56
57
58
59
    display: flex;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 28px;
    font-weight: $font-bold;
    margin: 0;
  }

Chocobozzz's avatar
Chocobozzz committed
60
61
62
63
  .actor-handle {
    @include ellipsis;
  }

Chocobozzz's avatar
Chocobozzz committed
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
  .actor-handle,
  .actor-counters {
    color: pvar(--greyForegroundColor);
    font-size: $grey-font-size;
  }

  .actor-counters > *:not(:last-child)::after {
    content: '•';
    margin: 0 10px;
    color: pvar(--mainColor);
  }

  @media screen and (max-width: $mobile-view) {
    margin-bottom: 15px;

    h1 {
      font-size: 22px;
    }

Chocobozzz's avatar
Chocobozzz committed
83
84
    .main-avatar {
      @include actor-avatar-size(80px);
Chocobozzz's avatar
Chocobozzz committed
85
86
87
    }
  }
}