-
-
Notifications
You must be signed in to change notification settings - Fork 233
Add Mosaic Poster plugin #743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
suzuhiroruri
wants to merge
2
commits into
stashapp:main
Choose a base branch
from
suzuhiroruri:plugin/mosaic-poster
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Generated contact sheets (disposable cache, regenerated on demand) | ||
| generated/ | ||
| # Python bytecode | ||
| __pycache__/ | ||
| *.pyc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,125 @@ | ||
| /* Mosaic Poster — mosaic overlay + toggle/size buttons on the scene detail poster */ | ||
|
|
||
| /* Mosaic layer: covers the cover art underneath. When .mp-seekable, tapping a | ||
| cell seeks the video to that point in time; otherwise clicks pass through. */ | ||
| .vjs-poster .mp-overlay { | ||
| position: absolute; | ||
| inset: 0; | ||
| background-color: #000; | ||
| background-repeat: no-repeat; | ||
| background-position: center; | ||
| background-size: contain; | ||
| pointer-events: none; | ||
| z-index: 2; | ||
| } | ||
| .vjs-poster .mp-overlay.mp-seekable { | ||
| pointer-events: auto; | ||
| cursor: pointer; | ||
| } | ||
| /* hovered-cell highlight (desktop) — red, translucent */ | ||
| .vjs-poster .mp-overlay .mp-cell-hi { | ||
| position: absolute; | ||
| pointer-events: none; | ||
| box-sizing: border-box; | ||
| border: 2px solid rgba(255, 45, 45, 0.95); | ||
| background: rgba(255, 40, 40, 0.28); | ||
| box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55) inset; | ||
| transition: left 0.05s linear, top 0.05s linear, width 0.05s linear, height 0.05s linear; | ||
| } | ||
| /* keep the big play button above the mosaic so its centre still plays from the | ||
| start; the surrounding cells seek */ | ||
| .video-js .vjs-big-play-button { | ||
| z-index: 3; | ||
| } | ||
|
|
||
| /* Mosaic on/off toggle: "Mosaic" label + a switch showing the current state | ||
| (top-right of the poster, pre-playback) */ | ||
| .vjs-poster .mp-toggle { | ||
| position: absolute; | ||
| top: 10px; | ||
| right: 10px; | ||
| z-index: 3; | ||
| pointer-events: auto; | ||
| display: inline-flex; | ||
| align-items: center; | ||
| gap: 7px; | ||
| background: rgba(0, 0, 0, 0.62); | ||
| color: #fff; | ||
| border: 1px solid rgba(255, 255, 255, 0.35); | ||
| border-radius: 6px; | ||
| padding: 6px 9px; | ||
| font-size: 12px; | ||
| line-height: 1; | ||
| cursor: pointer; | ||
| opacity: 0.85; | ||
| transition: opacity 0.12s ease, background 0.12s ease; | ||
| -webkit-user-select: none; | ||
| user-select: none; | ||
| } | ||
| .vjs-poster .mp-toggle:hover { | ||
| opacity: 1; | ||
| background: rgba(0, 0, 0, 0.8); | ||
| } | ||
| .vjs-poster .mp-toggle-label { font-weight: 600; } | ||
| /* loading spinner shown in the toggle while a sheet is being generated */ | ||
| .vjs-poster .mp-spin { | ||
| width: 13px; | ||
| height: 13px; | ||
| flex: none; | ||
| border: 2px solid rgba(255, 255, 255, 0.35); | ||
| border-top-color: #fff; | ||
| border-radius: 50%; | ||
| animation: mp-spin 0.7s linear infinite; | ||
| } | ||
| @keyframes mp-spin { to { transform: rotate(360deg); } } | ||
| /* switch track */ | ||
| .vjs-poster .mp-switch { | ||
| position: relative; | ||
| width: 34px; | ||
| height: 18px; | ||
| flex: none; | ||
| border-radius: 9px; | ||
| background: rgba(255, 255, 255, 0.3); | ||
| transition: background 0.15s ease; | ||
| } | ||
| .vjs-poster .mp-toggle.mp-on .mp-switch { background: #4caf50; } | ||
| /* switch knob */ | ||
| .vjs-poster .mp-knob { | ||
| position: absolute; | ||
| top: 2px; | ||
| left: 2px; | ||
| width: 14px; | ||
| height: 14px; | ||
| border-radius: 50%; | ||
| background: #fff; | ||
| transition: left 0.15s ease; | ||
| } | ||
| .vjs-poster .mp-toggle.mp-on .mp-knob { left: 18px; } | ||
|
|
||
| /* Grid-size button (top-left of the poster, shown only in mosaic mode) */ | ||
| .vjs-poster .mp-size { | ||
| position: absolute; | ||
| top: 10px; | ||
| left: 10px; | ||
| z-index: 3; | ||
| pointer-events: auto; | ||
| display: inline-flex; | ||
| align-items: center; | ||
| gap: 4px; | ||
| background: rgba(0, 0, 0, 0.62); | ||
| color: #fff; | ||
| border: 1px solid rgba(255, 255, 255, 0.35); | ||
| border-radius: 5px; | ||
| padding: 5px 9px; | ||
| font-size: 12px; | ||
| line-height: 1; | ||
| cursor: pointer; | ||
| opacity: 0.8; | ||
| transition: opacity 0.12s ease, background 0.12s ease; | ||
| -webkit-user-select: none; | ||
| user-select: none; | ||
| } | ||
| .vjs-poster .mp-size:hover { | ||
| opacity: 1; | ||
| background: rgba(0, 0, 0, 0.8); | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be excluded.