From 830b4faff15fb9c81d88e8e69fcdf94aad32bef8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 6 Mar 2019 15:36:44 +0100 Subject: Add/update/delete/list my playlists --- client/src/sass/include/_miniature.scss | 133 ++++++++++++++++++++++++++++++++ client/src/sass/include/_mixins.scss | 28 ------- 2 files changed, 133 insertions(+), 28 deletions(-) create mode 100644 client/src/sass/include/_miniature.scss (limited to 'client/src/sass/include') diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss new file mode 100644 index 000000000..36d4e84d3 --- /dev/null +++ b/client/src/sass/include/_miniature.scss @@ -0,0 +1,133 @@ +@import '_variables'; +@import '_mixins'; + +@mixin miniature-name { + @include ellipsis-multiline( + $font-size: 1rem, + $line-height: 1, + $lines-to-show: 2 + ); + transition: color 0.2s; + font-size: 16px; + font-weight: $font-semibold; + color: var(--mainForegroundColor); + margin-top: 5px; + margin-bottom: 5px; + + &:hover { + text-decoration: none; + } + + &.blur-filter { + filter: blur(3px); + padding-left: 4px; + } +} + +$play-overlay-transition: 0.2s ease; +$play-overlay-height: 26px; +$play-overlay-width: 18px; + +@mixin miniature-thumbnail { + @include disable-outline; + + display: inline-block; + position: relative; + border-radius: 3px; + overflow: hidden; + width: $video-thumbnail-width; + height: $video-thumbnail-height; + background-color: #ececec; + transition: filter $play-overlay-transition; + + .play-overlay { + position: absolute; + right: 0; + bottom: 0; + + width: $video-thumbnail-width; + height: $video-thumbnail-height; + opacity: 0; + background-color: rgba(0, 0, 0, 0.7); + + &, .icon { + transition: all $play-overlay-transition; + } + + .icon { + width: 0; + height: 0; + + position: absolute; + left: 50%; + top: 50%; + transform: translate(-50%, -50%) scale(0.5); + + border-top: ($play-overlay-height / 2) solid transparent; + border-bottom: ($play-overlay-height / 2) solid transparent; + + border-left: $play-overlay-width solid rgba(255, 255, 255, 0.95); + } + } + + &:hover { + text-decoration: none !important; + + .play-overlay { + opacity: 1; + + .icon { + transform: translate(-50%, -50%) scale(1); + } + } + } + + &.focus-visible { + box-shadow: 0 0 0 2px var(--mainColor); + } + + img { + width: $video-thumbnail-width; + height: $video-thumbnail-height; + + &.blur-filter { + filter: blur(5px); + transform : scale(1.03); + } + } +} + +@mixin static-thumbnail-overlay { + display: inline-block; + background-color: rgba(0, 0, 0, 0.7); + color: #fff; +} + +@mixin video-miniature-small-screen { + text-align: center; + + /deep/ .video-miniature { + padding-right: 0; + height: auto; + width: 100%; + margin-bottom: 20px; + + .video-miniature-information { + width: 100% !important; + + span { + width: 100%; + } + } + + .video-thumbnail { + width: 100%; + height: auto; + + img { + width: 100%; + height: auto; + } + } + } +} diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index c2e200a14..59b2f42a5 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss @@ -516,31 +516,3 @@ } } -@mixin video-miniature-small-screen { - text-align: center; - - /deep/ .video-miniature { - padding-right: 0; - height: auto; - width: 100%; - margin-bottom: 20px; - - .video-miniature-information { - width: 100% !important; - - span { - width: 100%; - } - } - - .video-thumbnail { - width: 100%; - height: auto; - - img { - width: 100%; - height: auto; - } - } - } -} -- cgit v1.2.3