Skip to content

Commit

Permalink
Added Snippet (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
novaeon committed Jul 16, 2023
1 parent 8de01a8 commit 9113bc3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file added resources/assets/snippets/duotone-album-art.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/resources/snippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,4 +281,10 @@ export default [
"code": "[class^='playback-']:not(.volume-bar__slider-container > .playback-progressbar):before { content: ''; width: 32px; height: 32px; bottom: calc(100% - 7px); right: 10px; position: absolute; image-rendering: pixelated; background-size: 32px 32px; background-image: url('https://media1.giphy.com/media/v1.Y2lkPTc5MGI3NjExZzdsM2Y2aHh3cTQ2Z3JzbXAzMXJrZjdiM3IwMXhnaTFnc295ZnRkZCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9cw/cCOVfFwDI3awdse5A3/giphy.gif'); }",
"preview": "resources/assets/snippets/duck.png",
},
{
"title": "Duotone Album Art",
"description": "Changes the album art into a duotone version with two colors of your choice",
"code": ":root{--gmaa-base:#191414;--gmaa-bg-blend:lighten;--gmaa-blur:0;--gmaa-fg-blend:multiply;--gmaa-foreground:#1cb955;--gmaa-opacity:.74;--gmaa-spacing:0}.cover-art{background-color:var(--gmaa-base);display:flex;flex:1 1 100%;height:100%;overflow:hidden;position:relative}.cover-art img{filter:grayscale(100%) contrast(1) blur(var(--gmaa-blur));flex:1 0 100%;height:100%;max-width:100%;mix-blend-mode:var(--gmaa-bg-blend);object-fit:cover;opacity:var(--gmaa-opacity);position:relative;width:100%}.cover-art::before{background-color:var(--gmaa-foreground);bottom:0;content:'';height:100%;left:0;mix-blend-mode:var(--gmaa-fg-blend);position:absolute;right:0;top:0;width:100%;z-index:1}.cover-art-icon{display:none;visibility:hidden}",
"preview": "resources/assets/snippets/duotone-album-art.png",
},
];

0 comments on commit 9113bc3

Please sign in to comment.