From 1728e67d55b4b3f56a6903272bc302a60ded6d00 Mon Sep 17 00:00:00 2001 From: ValkyrJS Date: Sat, 5 Oct 2024 13:04:22 +0100 Subject: [PATCH] ValkyrSceneCards v1.1.1 --- plugins/ValkyrSceneCards/ValkyrSceneCards.css | 2 +- .../ValkyrSceneCards.js.LICENSE.txt | 15 +++++++++++++++ plugins/ValkyrSceneCards/ValkyrSceneCards.yml | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 plugins/ValkyrSceneCards/ValkyrSceneCards.js.LICENSE.txt diff --git a/plugins/ValkyrSceneCards/ValkyrSceneCards.css b/plugins/ValkyrSceneCards/ValkyrSceneCards.css index 42c3730..e4a4e59 100644 --- a/plugins/ValkyrSceneCards/ValkyrSceneCards.css +++ b/plugins/ValkyrSceneCards/ValkyrSceneCards.css @@ -1 +1 @@ -.valkyr-scene-card .vsc-performers-list{margin-top:.7142857143rem}.valkyr-scene-card .vsc-performers-list__avatars{display:flex;flex-wrap:wrap;gap:.3571428571rem;list-style:none;margin-bottom:0;padding-left:0}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer{align-items:center;background-color:var(--vsc-performer-avatar-bg-color);border-radius:50%;display:flex;height:var(--vsc-performer-avatar-size);justify-content:center;overflow:hidden;width:var(--vsc-performer-avatar-size)}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer a{align-items:center;display:flex;font-size:var(--vsc-performer-avatar-initials-size);font-weight:700;justify-content:center}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer svg{font-size:calc(var(--vsc-performer-avatar-size)*.6);margin:0;opacity:.2;position:absolute}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer>div{height:100%;width:100%}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .fa-venus{margin-left:2.25px}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-avatar{height:100%}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-avatar--profile{height:auto}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-avatar img{height:100%;object-fit:cover;object-position:top;width:100%}.valkyr-scene-card .vsc-performers-list__text>div{display:inline}.vsc-performer-text-list-popover-data{column-gap:.7142857143rem;display:flex;justify-content:center}.vsc-performer-text-list-popover-data:not(:first-child),.vsc-performer-text-list-popover-name:not(:first-child){margin-top:3px}.valkyr-scene-card .card-section{display:grid;grid-template-rows:[details-top top-line-top] auto [top-line-bottom title-top] auto [title-bottom key-data-top] auto [key-data-bottom description-top] 1fr [description-bottom director-top] auto [director-bottom performers-top] auto [performers-bottom stash-info-top] auto [stash-info-bottom details-bottom];height:100%}.valkyr-scene-card .card-section .vsc-top-line{column-gap:.7142857143rem;display:grid;font-size:var(--vsc-font-sm);grid-template-columns:[top-line-start studio-start] 1fr [studio-end user-data-start] max-content [user-data-end top-line-end];margin-bottom:3px;opacity:var(--vsc-top-line-opacity)}.valkyr-scene-card .card-section .vsc-top-line:empty{display:none}.valkyr-scene-card .card-section .vsc-studio{grid-column:studio-start/studio-end;grid-row:top-line-top/top-line-bottom}.valkyr-scene-card .card-section .vsc-user-data{column-gap:.7142857143rem;display:flex;grid-column:user-data-start/user-data-end;grid-row:top-line-top/top-line-bottom}.valkyr-scene-card .card-section .vsc-o-count,.valkyr-scene-card .card-section .vsc-organized,.valkyr-scene-card .card-section .vsc-play-count,.valkyr-scene-card .card-section .vsc-rating{align-items:center;display:flex}.valkyr-scene-card .card-section .vsc-o-count svg,.valkyr-scene-card .card-section .vsc-organized svg,.valkyr-scene-card .card-section .vsc-play-count svg,.valkyr-scene-card .card-section .vsc-rating svg{margin:0}.valkyr-scene-card .card-section .vsc-o-count svg:not(:last-child),.valkyr-scene-card .card-section .vsc-organized svg:not(:last-child),.valkyr-scene-card .card-section .vsc-play-count svg:not(:last-child),.valkyr-scene-card .card-section .vsc-rating svg:not(:last-child){margin-right:.3571428571rem}.valkyr-scene-card .card-section .vsc-title{grid-row:title-top/title-bottom}.valkyr-scene-card .card-section .vsc-key-data{column-gap:.7142857143rem;display:flex;font-size:var(--vsc-font-sm);grid-row:key-data-top/key-data-bottom;margin-top:3px}.valkyr-scene-card .card-section .vsc-resolution--icon{background-color:var(--vsc-resolution-icon-bg-color);color:var(--vsc-resolution-icon-color);display:inline;font-weight:900;padding:0 4px;user-select:none}.valkyr-scene-card .card-section .vsc-description{flex-grow:1}.valkyr-scene-card .card-section .vsc-description-inner{display:-webkit-box;-webkit-box-orient:vertical;margin-top:.7142857143rem;overflow:hidden;white-space:pre-line}.valkyr-scene-card .card-section .vsc-director{margin-top:.7142857143rem}.valkyr-scene-card .scene-card-preview{background-color:var(--vsc-preview-background-color)}.valkyr-scene-card .scene-card-preview.blurredBackground{background-position:50%}.valkyr-scene-card .scene-card-preview.blurredBackground .scene-card-preview-image{backdrop-filter:var(--vsc-preview-background-backdrop-filter)}.valkyr-scene-card .scene-card-preview .hide-cursor-on-video{cursor:none!important}:root{--vsc-font-sm:12px;--vsc-performer-avatar-bg-color:rgba(0,0,0,.6);--vsc-performer-avatar-initials-size:18px;--vsc-performer-avatar-size:60px;--vsc-resolution-icon-bg-color:#f5f8fa;--vsc-resolution-icon-color:#30404d;--vsc-top-line-opacity:0.8;--vsc-preview-background-backdrop-filter:blur(10px);--vsc-preview-background-color:#000;--vsc-gender-color--female:#f38cac;--vsc-gender-color--intersex:#c8a2c8;--vsc-gender-color--male:#89cff0;--vsc-gender-color--nonbinary:#c8a2c8;--vsc-gender-color--transfemale:#c8a2c8;--vsc-gender-color--transmale:#c8a2c8;--vsc-gender-color--unknown:#f5f8fa}.valkyr-scene-card{display:flex}.valkyr-scene-card .rating-banner,.valkyr-scene-card .scene-specs-overlay{display:none!important}.valkyr-scene-card .card-section{padding-bottom:.5rem}.valkyr-scene-card .card-section>a:first-child{display:none!important}.valkyr-scene-card .card-popovers:empty{height:0;padding-bottom:27px}.valkyr-scene-card.hide-progress-bar .progress-bar{display:none!important}.slick-slider .valkyr-scene-card{height:100%}.hover-popover-content .valkyr-scene-card{text-align:initial}.vsc-text-hover{padding:.3571428571rem}.vsc-gender-color--female{color:var(--vsc-gender-color--female)!important}.vsc-gender-color--intersex{color:var(--vsc-gender-color--intersex)!important}.vsc-gender-color--male{color:var(--vsc-gender-color--male)!important}.vsc-gender-color--nonbinary{color:var(--vsc-gender-color--nonbinary)!important}.vsc-gender-color--transfemale{color:var(--vsc-gender-color--transfemale)!important}.vsc-gender-color--transmale{color:var(--vsc-gender-color--transmale)!important}.vsc-gender-color--unknown{color:var(--vsc-gender-color--unknown)!important} \ No newline at end of file +.valkyr-scene-card .vsc-performers-list{margin-top:.7142857143rem}.valkyr-scene-card .vsc-performers-list__avatars{display:flex;flex-wrap:wrap;gap:.3571428571rem;list-style:none;margin-bottom:0;padding-left:0}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer{align-items:center;background-color:var(--vsc-performer-avatar-bg-color);border-radius:50%;display:flex;height:var(--vsc-performer-avatar-size);justify-content:center;overflow:hidden;width:var(--vsc-performer-avatar-size)}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer a{align-items:center;display:flex;font-size:var(--vsc-performer-avatar-initials-size);font-weight:700;justify-content:center}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer svg{font-size:calc(var(--vsc-performer-avatar-size)*.6);margin:0;opacity:.2;position:absolute}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer>div{height:100%;width:100%}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .fa-venus{margin-left:2.25px}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-avatar{height:100%}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-avatar--profile{height:auto}.valkyr-scene-card .vsc-performers-list__avatars .vsc-performer .vsc-performer-avatar img{height:100%;object-fit:cover;object-position:top;width:100%}.valkyr-scene-card .vsc-performers-list__text>div{display:inline}.vsc-performer-text-list-popover-data{column-gap:.7142857143rem;display:flex;justify-content:center}.vsc-performer-text-list-popover-data:not(:first-child),.vsc-performer-text-list-popover-name:not(:first-child){margin-top:3px}.valkyr-scene-card .card-section{display:grid;grid-template-rows:[details-top top-line-top] auto [top-line-bottom title-top] auto [title-bottom key-data-top] auto [key-data-bottom description-top] 1fr [description-bottom director-top] auto [director-bottom performers-top] auto [performers-bottom stash-info-top] auto [stash-info-bottom details-bottom];height:100%}.valkyr-scene-card .card-section .vsc-top-line{column-gap:.7142857143rem;display:grid;font-size:var(--vsc-font-sm);grid-template-columns:[top-line-start studio-start] 1fr [studio-end user-data-start] max-content [user-data-end top-line-end];margin-bottom:3px;opacity:var(--vsc-top-line-opacity)}.valkyr-scene-card .card-section .vsc-top-line:empty{display:none}.valkyr-scene-card .card-section .vsc-studio{grid-column:studio-start/studio-end;grid-row:top-line-top/top-line-bottom}.valkyr-scene-card .card-section .vsc-user-data{column-gap:.7142857143rem;display:flex;grid-column:user-data-start/user-data-end;grid-row:top-line-top/top-line-bottom}.valkyr-scene-card .card-section .vsc-o-count,.valkyr-scene-card .card-section .vsc-organized,.valkyr-scene-card .card-section .vsc-play-count,.valkyr-scene-card .card-section .vsc-rating{align-items:center;display:flex}.valkyr-scene-card .card-section .vsc-o-count svg,.valkyr-scene-card .card-section .vsc-organized svg,.valkyr-scene-card .card-section .vsc-play-count svg,.valkyr-scene-card .card-section .vsc-rating svg{margin:0}.valkyr-scene-card .card-section .vsc-o-count svg:not(:last-child),.valkyr-scene-card .card-section .vsc-organized svg:not(:last-child),.valkyr-scene-card .card-section .vsc-play-count svg:not(:last-child),.valkyr-scene-card .card-section .vsc-rating svg:not(:last-child){margin-right:.3571428571rem}.valkyr-scene-card .card-section .vsc-title{grid-row:title-top/title-bottom}.valkyr-scene-card .card-section .vsc-key-data{column-gap:.7142857143rem;display:flex;font-size:var(--vsc-font-sm);grid-row:key-data-top/key-data-bottom;margin-top:3px}.valkyr-scene-card .card-section .vsc-resolution--icon{background-color:var(--vsc-resolution-icon-bg-color);color:var(--vsc-resolution-icon-color);display:inline;font-weight:900;padding:0 4px;user-select:none}.valkyr-scene-card .card-section .vsc-description{flex-grow:1}.valkyr-scene-card .card-section .vsc-description-inner{display:-webkit-box;-webkit-box-orient:vertical;margin-top:.7142857143rem;overflow:hidden;white-space:pre-line}.valkyr-scene-card .card-section .vsc-director{margin-top:.7142857143rem}.valkyr-scene-card .scene-card-preview{background-color:var(--vsc-preview-background-color)}.valkyr-scene-card .scene-card-preview.blurredBackground{background-position:50%;background-size:cover}.valkyr-scene-card .scene-card-preview.blurredBackground .scene-card-preview-image{backdrop-filter:var(--vsc-preview-background-backdrop-filter)}.valkyr-scene-card .scene-card-preview .hide-cursor-on-video{cursor:none!important}:root{--vsc-font-sm:12px;--vsc-performer-avatar-bg-color:rgba(0,0,0,.6);--vsc-performer-avatar-initials-size:18px;--vsc-performer-avatar-size:60px;--vsc-resolution-icon-bg-color:#f5f8fa;--vsc-resolution-icon-color:#30404d;--vsc-top-line-opacity:0.8;--vsc-preview-background-backdrop-filter:blur(10px);--vsc-preview-background-color:#000;--vsc-gender-color--female:#f38cac;--vsc-gender-color--intersex:#c8a2c8;--vsc-gender-color--male:#89cff0;--vsc-gender-color--nonbinary:#c8a2c8;--vsc-gender-color--transfemale:#c8a2c8;--vsc-gender-color--transmale:#c8a2c8;--vsc-gender-color--unknown:#f5f8fa}.valkyr-scene-card{display:flex}.valkyr-scene-card .rating-banner,.valkyr-scene-card .scene-specs-overlay{display:none!important}.valkyr-scene-card .card-section{padding-bottom:.5rem}.valkyr-scene-card .card-section>a:first-child{display:none!important}.valkyr-scene-card .card-popovers:empty{height:0;padding-bottom:27px}.valkyr-scene-card.hide-progress-bar .progress-bar{display:none!important}.slick-slider .valkyr-scene-card{height:100%}.hover-popover-content .valkyr-scene-card{text-align:initial}.vsc-text-hover{padding:.3571428571rem}.vsc-gender-color--female{color:var(--vsc-gender-color--female)!important}.vsc-gender-color--intersex{color:var(--vsc-gender-color--intersex)!important}.vsc-gender-color--male{color:var(--vsc-gender-color--male)!important}.vsc-gender-color--nonbinary{color:var(--vsc-gender-color--nonbinary)!important}.vsc-gender-color--transfemale{color:var(--vsc-gender-color--transfemale)!important}.vsc-gender-color--transmale{color:var(--vsc-gender-color--transmale)!important}.vsc-gender-color--unknown{color:var(--vsc-gender-color--unknown)!important} \ No newline at end of file diff --git a/plugins/ValkyrSceneCards/ValkyrSceneCards.js.LICENSE.txt b/plugins/ValkyrSceneCards/ValkyrSceneCards.js.LICENSE.txt new file mode 100644 index 0000000..2a5873c --- /dev/null +++ b/plugins/ValkyrSceneCards/ValkyrSceneCards.js.LICENSE.txt @@ -0,0 +1,15 @@ +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/ + +/** + * @license + * Lodash (Custom Build) + * Build: `lodash modularize exports="es" -o ./` + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ diff --git a/plugins/ValkyrSceneCards/ValkyrSceneCards.yml b/plugins/ValkyrSceneCards/ValkyrSceneCards.yml index 0979ab9..079e499 100644 --- a/plugins/ValkyrSceneCards/ValkyrSceneCards.yml +++ b/plugins/ValkyrSceneCards/ValkyrSceneCards.yml @@ -1,7 +1,7 @@ name: Valkyr Scene Cards description: A rework of the scene card component for Stash. url: https://github.com/Valkyr-JS/ValkyrSceneCards -version: 1.1.0 +version: 1.1.1 ui: javascript: - ValkyrSceneCards.js