Move css to style.css

Since the the css is now static the clutter of an added style element is
no longer needed
This commit is contained in:
Austin Mroz
2024-10-04 13:42:16 -05:00
parent bc6630742b
commit 95cec85c3f
2 changed files with 21 additions and 24 deletions

View File

@@ -715,3 +715,24 @@ audio.comfy-audio.empty-audio-widget {
.p-tree-node-content {
padding: var(--comfy-tree-explorer-item-padding) !important;
}
.doc-node {
font-size: 1.5em
}
.doc-section {
background-color: var(--comfy-menu-bg)
}
.doc-item div {
margin-inline-start: 1vw;
}
@keyframes selectAnimation {
0% { background-color: #5555}
80% { background-color: #5555}
100% { background-color: #0000}
}
.doc-item:focus {
animation: selectAnimation 2s;
}
.DocumentationIcon:before {
font-size: 1.5em; content: '?';
}

View File

@@ -158,30 +158,6 @@ function updateNode(node?) {
}
}
}
let docStyleElement = document.createElement('style')
docStyleElement.innerHTML = `
.doc-node {
font-size: 1.5em
}
.doc-section {
background-color: var(--comfy-menu-bg)
}
.doc-item div {
margin-inline-start: 1vw;
}
@keyframes selectAnimation {
0% { background-color: #5555}
80% { background-color: #5555}
100% { background-color: #0000}
}
.doc-item:focus {
animation: selectAnimation 2s;
}
.DocumentationIcon:before {
font-size: 1.5em; content: '?';
}
`
document.body.append(docStyleElement)
var bringToFront
class DocumentationSidebar implements CustomSidebarTabExtension {