Skip to content

Commit

Permalink
Move css to style.css
Browse files Browse the repository at this point in the history
Since the the css is now static the clutter of an added style element is
no longer needed
  • Loading branch information
AustinMroz committed Oct 4, 2024
1 parent 007db80 commit afadbcb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
21 changes: 21 additions & 0 deletions src/assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -714,3 +714,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: '?';
}
24 changes: 0 additions & 24 deletions src/extensions/core/documentationSidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit afadbcb

Please sign in to comment.