mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-03 22:59:14 +00:00
## Summary Applied stylelint auto-fixes and resolved manual CSS issues across 25 files to achieve full compliance with stylelint rules. ## Changes - **What**: Auto-fixed 68 CSS issues (legacy color functions, font-weight keywords, shorthand properties, pseudo-element notation) and manually resolved 6 remaining issues (duplicate selectors, vendor prefix duplicates, font fallbacks, Vue v-bind whitelisting) - **Config**: Disabled `no-descending-specificity` rule (43 warnings require architectural CSS refactor) ## Review Focus Verify no visual regressions from modernized CSS syntax: - Modern [color function notation](https://www.w3.org/TR/css-color-4/#funcdef-rgb): `rgba(0, 0, 0, 0.5)` → `rgb(0 0 0 / 50%)` - Numeric font weights: `bold`/`normal` → `700`/`400` - Pseudo-element double colons: `:before` → `::before ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5940-apply-stylelint-auto-fixes-2846d73d365081ee8031c212a69a4bd4) by [Unito](https://www.unito.io) --------- Co-authored-by: DrJKL <DrJKL0424@gmail.com>
149 lines
3.1 KiB
CSS
149 lines
3.1 KiB
CSS
.comfy-group-manage {
|
|
background: var(--bg-color);
|
|
color: var(--fg-color);
|
|
padding: 0;
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
border-color: black;
|
|
margin: 20vh auto;
|
|
max-height: 60vh;
|
|
}
|
|
.comfy-group-manage-outer {
|
|
max-height: 60vh;
|
|
min-width: 500px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.comfy-group-manage-outer > header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
justify-content: space-between;
|
|
background: var(--comfy-menu-bg);
|
|
padding: 15px 20px;
|
|
}
|
|
.comfy-group-manage-outer > header select {
|
|
background: var(--comfy-input-bg);
|
|
border: 1px solid var(--border-color);
|
|
color: var(--input-text);
|
|
padding: 5px 10px;
|
|
border-radius: 5px;
|
|
}
|
|
.comfy-group-manage h2 {
|
|
margin: 0;
|
|
font-weight: 400;
|
|
}
|
|
.comfy-group-manage main {
|
|
display: flex;
|
|
overflow: hidden;
|
|
}
|
|
.comfy-group-manage .drag-handle {
|
|
font-weight: 700;
|
|
}
|
|
.comfy-group-manage-list {
|
|
border-right: 1px solid var(--comfy-menu-bg);
|
|
}
|
|
.comfy-group-manage-list ul {
|
|
margin: 40px 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
.comfy-group-manage-list-items {
|
|
max-height: calc(100% - 40px);
|
|
overflow: hidden scroll;
|
|
}
|
|
.comfy-group-manage-list li {
|
|
display: flex;
|
|
padding: 10px 20px 10px 10px;
|
|
cursor: pointer;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
.comfy-group-manage-list div {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.comfy-group-manage-list li:not(.selected):hover div {
|
|
text-decoration: underline;
|
|
}
|
|
.comfy-group-manage-list li.selected {
|
|
background: var(--border-color);
|
|
}
|
|
.comfy-group-manage-list li span {
|
|
opacity: 0.7;
|
|
font-size: smaller;
|
|
}
|
|
.comfy-group-manage-node {
|
|
flex: auto;
|
|
background: var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.comfy-group-manage-node > div {
|
|
overflow: auto;
|
|
}
|
|
.comfy-group-manage-node header {
|
|
display: flex;
|
|
background: var(--bg-color);
|
|
height: 40px;
|
|
}
|
|
.comfy-group-manage-node header a {
|
|
text-align: center;
|
|
flex: auto;
|
|
border-right: 1px solid var(--comfy-menu-bg);
|
|
border-bottom: 1px solid var(--comfy-menu-bg);
|
|
padding: 10px;
|
|
cursor: pointer;
|
|
font-size: 15px;
|
|
}
|
|
.comfy-group-manage-node header a:last-child {
|
|
border-right: none;
|
|
}
|
|
.comfy-group-manage-node header a:not(.active):hover {
|
|
text-decoration: underline;
|
|
}
|
|
.comfy-group-manage-node header a.active {
|
|
background: var(--border-color);
|
|
border-bottom: none;
|
|
}
|
|
.comfy-group-manage-node-page {
|
|
display: none;
|
|
overflow: auto;
|
|
}
|
|
.comfy-group-manage-node-page.active {
|
|
display: block;
|
|
}
|
|
.comfy-group-manage-node-page div {
|
|
padding: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
.comfy-group-manage-node-page input {
|
|
border: none;
|
|
color: var(--input-text);
|
|
background: var(--comfy-input-bg);
|
|
padding: 5px 10px;
|
|
}
|
|
.comfy-group-manage-node-page input[type="text"] {
|
|
flex: auto;
|
|
}
|
|
.comfy-group-manage-node-page label {
|
|
display: flex;
|
|
gap: 5px;
|
|
align-items: center;
|
|
}
|
|
.comfy-group-manage footer {
|
|
border-top: 1px solid var(--comfy-menu-bg);
|
|
padding: 10px;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
.comfy-group-manage footer button {
|
|
font-size: 14px;
|
|
padding: 5px 10px;
|
|
border-radius: 0;
|
|
}
|
|
.comfy-group-manage footer button:first-child {
|
|
margin-right: auto;
|
|
}
|