aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/player/dock.scss
blob: 1dce24d30bf7f9c5edde5ecffdb3d0801d1754e9 (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
110
111
112
@use 'sass:math';
@use '_variables' as *;
@use '_mixins' as *;
@use './_player-variables' as *;

.video-js.vjs-peertube-skin {

  .peertube-dock {
    --avatarSize: 48px;

    @include padding-right(60px);

    transition: opacity 0.1s;

    display: flex;
    align-items: center;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    font-size: 23px;
    padding: $dock-padding;
    background: linear-gradient(to bottom, rgba(20, 20, 20, .7) 0, rgba(20, 20, 20, 0));
  }

  .peertube-dock-avatar {
    border-radius: 50%;
    margin-right: 10px;
    min-width: var(--avatarSize);
    min-height: var(--avatarSize);
    max-height: var(--avatarSize);
    max-height: var(--avatarSize);
  }

  .peertube-dock-title-description {
    // For ellipsis
    min-width: 0;
  }

  .peertube-dock-title {
    font-weight: $font-semibold;
    letter-spacing: 1px;
    line-height: normal;
    min-width: 0;
  }

  .peertube-dock-title,
  .peertube-dock-description {
    @include ellipsis;

    text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  }

  .peertube-dock-title + .peertube-dock-description {
    margin-top: 3px;
  }

  .peertube-dock-description {
    font-size: 11px;
    line-height: 1.5;

    .text::before {
      @include margin-right(4px);
    }

    .text::after {
      @include margin-left(4px);
      transform: scale(-1, 1);
    }
  }

  @media screen and (max-width: $screen-width-750) {
    .peertube-dock-avatar {
      --avatarSize: 40px;
    }

    .peertube-dock {
      font-size: 16px;
    }

    .peertube-dock-description {
      font-size: 9px;
    }
  }

  @media screen and (max-width: $screen-width-570) {
    .peertube-dock-avatar {
      --avatarSize: 35px;
    }

    .peertube-dock {
      font-size: 14px;
    }
  }

  @media screen and (max-width: $screen-width-350) {
    .peertube-dock-avatar {
      --avatarSize: 30px;
    }

    .peertube-dock {
      font-size: 13px;
    }
  }

  &.vjs-playing.vjs-user-inactive .peertube-dock {
    opacity: 0;
    transition: opacity 1s;
  }
}