Skip to content

Change the sparkle #48

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
wants to merge 2 commits into
base: tools
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion _build/js/src/ui/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,33 @@ export const triangleError = `<svg xmlns="http://www.w3.org/2000/svg" width="24"

export const x = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-x"><path d="M18 6 6 18"></path><path d="m6 6 12 12"></path></svg>`;

export const sparkle = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkle"><path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"></path></svg>`;
export const sparkle = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-sparkle">
<style>
@media (prefers-reduced-motion: no-preference) {
@keyframes sparkleAnim {
0%, 100% { opacity: 1; transform: scale(1); }
50% { opacity: 0; transform: scale(0); }
}
.bonus-sparkle-1 {
animation: sparkleAnim 5s ease-in-out;
animation-iteration-count: infinite;
animation-delay: 0s;
transform-origin: center;
transform-box: fill-box;
}
.bonus-sparkle-2 {
animation: sparkleAnim 5s ease-in-out;
animation-iteration-count: infinite;
animation-delay: 4s;
transform-origin: center;
transform-box: fill-box;
}
}
</style>
<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"></path>
<path class="bonus-sparkle-1" d="M20 2.5a1 1 0 0 0-1-1 1 1 0 0 0 0 2 1 1 0 0 0 1-1z" stroke-width="1"></path>
<path class="bonus-sparkle-2" d="M5 21.5a1 1 0 0 0-1-1 1 1 0 0 0 0 2 1 1 0 0 0 1-1z" stroke-width="1"></path>
</svg>`;

export const arrowLeft = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="4" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg>`;

Expand Down
36 changes: 31 additions & 5 deletions assets/components/modai/css/modai.css
Original file line number Diff line number Diff line change
Expand Up @@ -991,7 +991,33 @@
align-items: center;
}

.btn,
.btn {
--button-h: 222;
--button-s: 49%;
--button-l: 60%;
--button-color: hsl(var(--button-h), var(--button-s), var(--button-l));
display: inline-block;
cursor: pointer;
color: var(--button-color);
background: transparent;
border: none;
padding: 3px 6px 4px;
height: 100%;
transition: 200ms all;

&:hover {
transform: scale(1.15);
--button-h: 191;
--button-s: 100%;
--button-l: 44%;
}

&:disabled {
opacity: 0.5;
cursor: initial;
}
}

.history--next,
.history--prev {
--button-h: 191;
Expand All @@ -1000,8 +1026,8 @@
--button-hover-darken: 15%;
--button-border-darken: 20%;
--button-color: hsl(var(--button-h), var(--button-s), var(--button-l));
--button-color-border: hsl( var(--button-h), var(--button-s), calc(var(--button-l) - var(--button-border-darken)) );
--button-color-hover: hsl( var(--button-h), var(--button-s), calc(var(--button-l) - var(--button-hover-darken)) );
--button-color-border: hsl(var(--button-h), var(--button-s), calc(var(--button-l) - var(--button-border-darken)));
--button-color-hover: hsl(var(--button-h), var(--button-s), calc(var(--button-l) - var(--button-hover-darken)));
display: inline-block;
cursor: pointer;
background: var(--button-color);
Expand All @@ -1021,8 +1047,8 @@
}

&:disabled {
opacity:0.5;
cursor:initial;
opacity: 0.5;
cursor: initial;
}
}
}
Loading