MCPcopy Create free account
hub / github.com/error311/FileRise / paintCloseBase

Function paintCloseBase

public/js/filePreview.js:381–385  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

379 // theme the close “×” for visibility + hover rules that match your site:
380 const closeBtn = overlay.querySelector("#closeFileModal");
381 function paintCloseBase() {
382 closeBtn.style.backgroundColor = 'transparent';
383 closeBtn.style.color = '#e11d48'; // base red X
384 closeBtn.style.boxShadow = 'none';
385 }
386 function onCloseHoverEnter() {
387 const dark = document.documentElement.classList.contains('dark-mode');
388 closeBtn.style.backgroundColor = '#ef4444'; // red fill

Callers 2

onCloseHoverLeaveFunction · 0.85
ensureMediaModalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected