mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-08 09:00:05 +00:00
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:
@@ -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: '?';
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user