aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/include/_actor.scss
blob: bf73b52dc9622e5fa734607254e69a5ed444f922 (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
@use '_variables' as *;
@use '_mixins' as *;

@mixin actor-row ($avatar-margin-right: 10px, $min-height: 130px, $separator: true) {
  @include row-blocks($min-height: $min-height, $separator: $separator);

  > my-actor-avatar {
    @include margin-right($avatar-margin-right);
  }

  .actor-info {
    flex-grow: 1;
  }

  .actor-names {
    @include disable-default-a-behaviour;

    width: fit-content;
    display: flex;
    align-items: baseline;
    color: pvar(--mainForegroundColor);
  }

  .actor-display-name {
    font-weight: $font-semibold;
    font-size: 18px;
  }

  .actor-name {
    @include margin-left(5px);

    font-size: 14px;
    color: $grey-actor-name;
  }

  .actor-owner {
    @include disable-default-a-behaviour;

    color: pvar(--mainForegroundColor);
    display: flex;
    align-items: center;

    span:hover {
      opacity: 0.8;
    }

    my-actor-avatar {
      @include margin-left(5px);
    }
  }

  @media screen and (max-width: $small-view) {
    .actor-info {
      padding-bottom: 10px;
      text-align: center;

      .actor-names {
        flex-direction: column;
        align-items: center !important;
        margin: auto;
      }
    }
  }
}