]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/player/dock.scss
Refactoring margin and padding mixins
[github/Chocobozzz/PeerTube.git] / client / src / sass / player / dock.scss
CommitLineData
a5a79d15
C
1@use 'sass:math';
2@use '_variables' as *;
3@use '_mixins' as *;
4@use './_player-variables' as *;
5
6.video-js.vjs-peertube-skin {
01dd04cd
C
7
8 .peertube-dock {
9 --avatarSize: 48px;
10
a5a79d15
C
11 @include padding-right(60px);
12
01dd04cd
C
13 transition: opacity 0.1s;
14
15 display: flex;
16 align-items: center;
17 pointer-events: none;
18 position: absolute;
19 top: 0;
20 left: 0;
21 width: 100%;
22
23 font-size: 23px;
a5a79d15 24 padding: $dock-padding;
90370f7c
C
25 background: linear-gradient(to bottom, rgba(20, 20, 20, .7) 0, rgba(20, 20, 20, 0));
26 }
27
01dd04cd
C
28 .peertube-dock-avatar {
29 border-radius: 50%;
30 margin-right: 10px;
31 min-width: var(--avatarSize);
32 min-height: var(--avatarSize);
33 max-height: var(--avatarSize);
34 max-height: var(--avatarSize);
35 }
36
37 .peertube-dock-title-description {
38 // For ellipsis
39 min-width: 0;
40 }
41
42 .peertube-dock-title {
90370f7c 43 font-weight: $font-semibold;
01dd04cd
C
44 letter-spacing: 1px;
45 line-height: normal;
46 min-width: 0;
a5a79d15
C
47 }
48
01dd04cd
C
49 .peertube-dock-title,
50 .peertube-dock-description {
51 @include ellipsis;
52
90370f7c 53 text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
a5a79d15
C
54 }
55
01dd04cd
C
56 .peertube-dock-title + .peertube-dock-description {
57 margin-top: 3px;
58 }
59
60 .peertube-dock-description {
a5a79d15 61 font-size: 11px;
01dd04cd 62 line-height: 1.5;
a5a79d15
C
63
64 .text::before {
65 @include margin-right(4px);
66 }
67
68 .text::after {
69 @include margin-left(4px);
70 transform: scale(-1, 1);
71 }
72 }
73
74 @media screen and (max-width: $screen-width-750) {
01dd04cd
C
75 .peertube-dock-avatar {
76 --avatarSize: 40px;
77 }
78
79 .peertube-dock {
a5a79d15
C
80 font-size: 16px;
81 }
82
01dd04cd 83 .peertube-dock-description {
a5a79d15
C
84 font-size: 9px;
85 }
86 }
87
88 @media screen and (max-width: $screen-width-570) {
01dd04cd
C
89 .peertube-dock-avatar {
90 --avatarSize: 35px;
91 }
92
93 .peertube-dock {
a5a79d15
C
94 font-size: 14px;
95 }
96 }
97
98 @media screen and (max-width: $screen-width-350) {
01dd04cd
C
99 .peertube-dock-avatar {
100 --avatarSize: 30px;
101 }
102
103 .peertube-dock {
a5a79d15
C
104 font-size: 13px;
105 }
106 }
01dd04cd 107
637a10af 108 &.vjs-playing.vjs-user-inactive .peertube-dock {
01dd04cd
C
109 opacity: 0;
110 transition: opacity 1s;
111 }
a5a79d15 112}