diff options
author | Chocobozzz <me@florianbigard.com> | 2020-08-05 09:44:58 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-07 08:58:29 +0200 |
commit | 4572c3d0d92f5b1b79b34dbe2c7b6557a8a5b7e4 (patch) | |
tree | 2c1aa81a536b50d6da0181aba6fce1db972f6191 /client/src/sass/include | |
parent | 5abc96fca2496f33075796db208fccc3543e0f65 (diff) | |
download | PeerTube-4572c3d0d92f5b1b79b34dbe2c7b6557a8a5b7e4.tar.gz PeerTube-4572c3d0d92f5b1b79b34dbe2c7b6557a8a5b7e4.tar.zst PeerTube-4572c3d0d92f5b1b79b34dbe2c7b6557a8a5b7e4.zip |
Handle basic playlist in embed
Diffstat (limited to 'client/src/sass/include')
-rw-r--r-- | client/src/sass/include/_miniature.scss | 13 | ||||
-rw-r--r-- | client/src/sass/include/_mixins.scss | 15 |
2 files changed, 16 insertions, 12 deletions
diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss index 976bbf4d6..97b4c690b 100644 --- a/client/src/sass/include/_miniature.scss +++ b/client/src/sass/include/_miniature.scss | |||
@@ -52,18 +52,7 @@ $play-overlay-width: 18px; | |||
52 | } | 52 | } |
53 | 53 | ||
54 | .icon { | 54 | .icon { |
55 | width: 0; | 55 | @include play-icon($play-overlay-height, $play-overlay-width); |
56 | height: 0; | ||
57 | |||
58 | position: absolute; | ||
59 | left: 50%; | ||
60 | top: 50%; | ||
61 | transform: translate(-50%, -50%) scale(0.5); | ||
62 | |||
63 | border-top: ($play-overlay-height / 2) solid transparent; | ||
64 | border-bottom: ($play-overlay-height / 2) solid transparent; | ||
65 | |||
66 | border-left: $play-overlay-width solid rgba(255, 255, 255, 0.95); | ||
67 | } | 56 | } |
68 | } | 57 | } |
69 | 58 | ||
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index ee2fe0497..e4c2dffa0 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -1019,3 +1019,18 @@ | |||
1019 | } | 1019 | } |
1020 | } | 1020 | } |
1021 | } | 1021 | } |
1022 | |||
1023 | @mixin play-icon ($width, $height) { | ||
1024 | width: 0; | ||
1025 | height: 0; | ||
1026 | |||
1027 | position: absolute; | ||
1028 | left: 50%; | ||
1029 | top: 50%; | ||
1030 | transform: translate(-50%, -50%) scale(0.5); | ||
1031 | |||
1032 | border-top: ($height / 2) solid transparent; | ||
1033 | border-bottom: ($height / 2) solid transparent; | ||
1034 | |||
1035 | border-left: $width solid rgba(255, 255, 255, 0.95); | ||
1036 | } | ||