global: i don't like div soup
This commit is contained in:
parent
08db095418
commit
77a9362425
2 changed files with 5 additions and 6 deletions
|
|
@ -2,12 +2,11 @@
|
||||||
if (window._contextMenuInitialized) return;
|
if (window._contextMenuInitialized) return;
|
||||||
window._contextMenuInitialized = true;
|
window._contextMenuInitialized = true;
|
||||||
|
|
||||||
const menu = document.createElement('div');
|
const menu = document.createElement('helo');
|
||||||
menu.className = 'context-menu';
|
|
||||||
menu.innerHTML = `
|
menu.innerHTML = `
|
||||||
<helo>
|
<helo-content>
|
||||||
<img src="/static/assets/gifs/helo.gif"/>
|
<img src="/static/assets/gifs/helo.gif"/>
|
||||||
</helo>
|
</helo-content>
|
||||||
`;
|
`;
|
||||||
menu.style.display = 'none';
|
menu.style.display = 'none';
|
||||||
document.body.appendChild(menu);
|
document.body.appendChild(menu);
|
||||||
|
|
|
||||||
|
|
@ -926,7 +926,7 @@ mini-player {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Context Menu */
|
/* Context Menu */
|
||||||
.context-menu {
|
helo {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background: var(--win-bg-grey);
|
background: var(--win-bg-grey);
|
||||||
border: 2px solid;
|
border: 2px solid;
|
||||||
|
|
@ -939,7 +939,7 @@ mini-player {
|
||||||
font-family: 'VT323', monospace;
|
font-family: 'VT323', monospace;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
|
|
||||||
helo {
|
helo-content {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue