Skip to content

Commit

Permalink
improved lightshow
Browse files Browse the repository at this point in the history
  • Loading branch information
Unreal-Dan committed Aug 17, 2024
1 parent d1b40f2 commit c55126a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions docs/assets/js/ColorSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ function renderSlots() {
function startFlashingRed(index) {
const slotElement = document.querySelector(`[data-slot="${index}"]`);
slotElement.style.animation = 'flashRed 1s infinite';
void slotElement.offsetWidth; // This line forces the reflow
deleteMode = true;
}

Expand Down
4 changes: 0 additions & 4 deletions docs/color_select_menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ grand_parent: Vortex Engine
padding:0;
}

@media (
prefers-color-scheme: dark
)

@keyframes flashRed {
0% { background-color: inherit; }
50% { background-color: #700000; }
Expand Down

0 comments on commit c55126a

Please sign in to comment.