mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 22:37:00 +08:00
558 lines
10 KiB
CSS
558 lines
10 KiB
CSS
/* Utilities */
|
|
@media only screen and (max-width: 779px) {
|
|
.sm-hide {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width: 780px) {
|
|
.sm-show {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
.relative {
|
|
position: relative;
|
|
}
|
|
.hidden {
|
|
display: none !important;
|
|
}
|
|
.mdi.rotate270::before {
|
|
transform: rotate(270deg);
|
|
}
|
|
|
|
/* Generic */
|
|
.comfyui-button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5em;
|
|
cursor: pointer;
|
|
border: none;
|
|
border-radius: 4px;
|
|
padding: 4px 8px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.comfyui-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
.primary .comfyui-button {
|
|
background-color: var(--primary-bg) !important;
|
|
color: var(--primary-fg) !important;
|
|
}
|
|
|
|
.primary .comfyui-button:not(:disabled):hover {
|
|
background-color: var(--primary-hover-bg) !important;
|
|
color: var(--primary-hover-fg) !important;
|
|
}
|
|
|
|
/* Popup */
|
|
.comfyui-popup {
|
|
position: absolute;
|
|
left: var(--left);
|
|
right: var(--right);
|
|
top: var(--top);
|
|
z-index: 2000;
|
|
max-height: calc(100vh - var(--top) - 10px);
|
|
box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.comfyui-popup:not(.open) {
|
|
display: none;
|
|
}
|
|
|
|
.comfyui-popup.right.open {
|
|
border-top-left-radius: 4px;
|
|
border-bottom-right-radius: 4px;
|
|
border-bottom-left-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
/* Split button */
|
|
.comfyui-split-button {
|
|
position: relative;
|
|
display: flex;
|
|
}
|
|
|
|
.comfyui-split-primary {
|
|
flex: auto;
|
|
}
|
|
|
|
.comfyui-split-primary .comfyui-button {
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
border-right: 1px solid var(--comfy-menu-bg);
|
|
width: 100%;
|
|
}
|
|
|
|
.comfyui-split-arrow .comfyui-button {
|
|
border-top-left-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
padding-left: 2px;
|
|
padding-right: 2px;
|
|
}
|
|
|
|
.comfyui-split-button-popup {
|
|
white-space: nowrap;
|
|
background-color: var(--border-color);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: auto;
|
|
}
|
|
|
|
.comfyui-split-button-popup > .comfyui-button {
|
|
border: none;
|
|
background-color: transparent;
|
|
color: var(--fg-color);
|
|
padding: 8px 12px 8px 8px;
|
|
}
|
|
|
|
.comfyui-split-button-popup > .comfyui-button:not(:disabled):hover {
|
|
background-color: var(--comfy-input-bg);
|
|
}
|
|
|
|
/* Button group */
|
|
.comfyui-button-group {
|
|
display: flex;
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.comfyui-button-group > .comfyui-button,
|
|
.comfyui-button-group > .comfyui-button-wrapper > .comfyui-button {
|
|
padding: 4px 10px;
|
|
border-radius: 0;
|
|
}
|
|
|
|
/* Menu */
|
|
.comfyui-menu {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
background: var(--comfy-menu-bg);
|
|
color: var(--fg-color);
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
font-size: 0.8em;
|
|
display: flex;
|
|
padding: 4px 8px;
|
|
align-items: center;
|
|
gap: 0.8em;
|
|
box-sizing: border-box;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.comfyui-menu .mdi::before {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.comfyui-menu .comfyui-button {
|
|
background: var(--comfy-input-bg);
|
|
color: var(--fg-color);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.comfyui-menu .comfyui-button:not(:disabled):hover {
|
|
background: var(--border-color);
|
|
}
|
|
|
|
.comfyui-menu .comfyui-split-button-popup > .comfyui-button {
|
|
border-radius: 0;
|
|
background-color: transparent;
|
|
}
|
|
|
|
.comfyui-menu .comfyui-split-button-popup > .comfyui-button:not(:disabled):hover {
|
|
background-color: var(--comfy-input-bg);
|
|
}
|
|
|
|
.comfyui-menu .comfyui-split-button-popup.left {
|
|
border-top-right-radius: 4px;
|
|
border-bottom-left-radius: 4px;
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
|
|
.comfyui-menu .comfyui-button.popup-open {
|
|
background-color: var(--border-color);
|
|
}
|
|
.comfyui-menu-push {
|
|
margin-left: -0.8em;
|
|
flex: auto;
|
|
}
|
|
|
|
.comfyui-logo {
|
|
font-size: 1.2em;
|
|
margin: 0;
|
|
user-select: none;
|
|
cursor: default;
|
|
}
|
|
|
|
@media only screen and (min-width: 780px) {
|
|
.comfyui-menu > .comfyui-menu-mobile-collapse .comfyui-button span,
|
|
.comfyui-menu > .comfyui-menu-mobile-collapse.comfyui-button span {
|
|
display: none;
|
|
}
|
|
.comfyui-menu > .comfyui-menu-mobile-collapse .comfyui-popup .comfyui-button span {
|
|
display: unset;
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 779px) {
|
|
.comfyui-menu {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.comfyui-menu > *:not(.comfyui-menu-mobile-collapse) {
|
|
order: 1;
|
|
}
|
|
|
|
.comfyui-menu > .comfyui-menu-mobile-collapse {
|
|
order: 9999;
|
|
width: 100%;
|
|
}
|
|
|
|
.comfyui-menu > .comfyui-menu-mobile-collapse.comfyui-button-group {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.comfyui-menu > .comfyui-menu-mobile-collapse .comfyui-button,
|
|
.comfyui-menu > .comfyui-menu-mobile-collapse.comfyui-button {
|
|
padding: 10px;
|
|
}
|
|
.comfyui-menu > .comfyui-menu-mobile-collapse .comfyui-button,
|
|
.comfyui-menu > .comfyui-menu-mobile-collapse .comfyui-button-wrapper {
|
|
width: 100%;
|
|
}
|
|
|
|
.comfyui-menu > .comfyui-menu-mobile-collapse .comfyui-popup {
|
|
position: static;
|
|
background-color: var(--comfy-input-bg);
|
|
max-width: unset;
|
|
max-height: 50vh;
|
|
overflow: auto;
|
|
}
|
|
|
|
.comfyui-menu:not(.expanded) > .comfyui-menu-mobile-collapse {
|
|
display: none;
|
|
}
|
|
|
|
.comfyui-queue-button {
|
|
margin-right: 44px;
|
|
}
|
|
|
|
.comfyui-menu-button {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 8px;
|
|
}
|
|
|
|
.comfyui-menu > .comfyui-menu-mobile-collapse .comfyui-view-list-popup {
|
|
border-radius: 0;
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 520px) {
|
|
.comfyui-workflows-label {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-width: 370px) {
|
|
.comfyui-queue-button {
|
|
margin-right: 0;
|
|
width: 100%;
|
|
}
|
|
.comfyui-queue-button .comfyui-button {
|
|
justify-content: center;
|
|
}
|
|
.comfyui-interrupt-button {
|
|
margin-right: 45px;
|
|
}
|
|
}
|
|
|
|
/* Workflows */
|
|
.comfyui-workflows-button {
|
|
flex-direction: row-reverse;
|
|
max-width: 200px;
|
|
}
|
|
|
|
.comfyui-workflows-button.popup-open {
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
}
|
|
.comfyui-workflows-button.unsaved {
|
|
font-style: italic;
|
|
}
|
|
|
|
.comfyui-workflows-button>span {
|
|
flex: auto;
|
|
text-align: left;
|
|
overflow: hidden;
|
|
}
|
|
.comfyui-workflows-button-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
}
|
|
.comfyui-workflows-label {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
direction: rtl;
|
|
flex: auto;
|
|
position: relative;
|
|
}
|
|
|
|
.comfyui-workflows-button.unsaved .comfyui-workflows-label {
|
|
padding-left: 8px;
|
|
}
|
|
|
|
.comfyui-workflows-button.unsaved .comfyui-workflows-label:after {
|
|
content: "*";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
.comfyui-workflows-button-inner .mdi-graph::before {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.comfyui-workflows-popup {
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
font-size: 0.8em;
|
|
padding: 10px;
|
|
overflow: auto;
|
|
background-color: var(--border-color);
|
|
border-top-right-radius: 4px;
|
|
border-bottom-right-radius: 4px;
|
|
border-bottom-left-radius: 4px;
|
|
}
|
|
|
|
.comfyui-workflows-panel {
|
|
min-height: 150px;
|
|
}
|
|
|
|
.comfyui-workflows-panel .lds-ring {
|
|
transform: translate(-50%);
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 75px;
|
|
}
|
|
.comfyui-workflows-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.comfyui-workflows-actions .comfyui-button {
|
|
background: var(--comfy-input-bg);
|
|
color: var(--input-text);
|
|
}
|
|
|
|
.comfyui-workflows-actions .comfyui-button:not(:disabled):hover {
|
|
background: var(--primary-bg);
|
|
color: var(--primary-fg);
|
|
}
|
|
|
|
.comfyui-workflows-favorites {
|
|
border-bottom: 1px solid var(--comfy-input-bg);
|
|
padding-bottom: 5px;
|
|
}
|
|
|
|
.comfyui-workflows-favorites:empty {
|
|
display: none;
|
|
}
|
|
|
|
.comfyui-workflows-tree {
|
|
padding: 0;
|
|
padding-top: 5px;
|
|
margin: 0;
|
|
}
|
|
|
|
.comfyui-workflows-tree:empty::after {
|
|
content: "No saved workflows";
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
.comfyui-workflows-tree>ul {
|
|
padding: 0;
|
|
}
|
|
|
|
.comfyui-workflows-tree>ul ul {
|
|
margin: 0;
|
|
padding: 0 0 0 25px;
|
|
}
|
|
|
|
.comfyui-workflows-tree .closed>ul {
|
|
display: none;
|
|
}
|
|
|
|
.comfyui-workflows-tree li,
|
|
.comfyui-workflows-tree-file {
|
|
--item-height: 31px;
|
|
list-style-type: none;
|
|
height: var(--item-height);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.comfyui-workflows-tree li:hover::before,
|
|
.comfyui-workflows-tree-file:hover::before {
|
|
content: "";
|
|
position: absolute;
|
|
width: 100%;
|
|
left: 0;
|
|
height: var(--item-height);
|
|
background-color: var(--comfy-input-bg);
|
|
z-index: -1;
|
|
}
|
|
|
|
.comfyui-workflows-tree-file span {
|
|
flex: auto;
|
|
}
|
|
|
|
.comfyui-workflows-tree-file span+.comfyui-workflows-file-action {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.comfyui-workflows-tree-file .comfyui-workflows-file-action {
|
|
opacity: 0;
|
|
background-color: transparent;
|
|
color: var(--fg-color);
|
|
padding: 2px 4px;
|
|
}
|
|
|
|
.comfyui-workflows-tree-file .comfyui-workflows-file-action:hover {
|
|
background-color: var(--primary-bg);
|
|
color: var(--primary-fg);
|
|
}
|
|
|
|
.comfyui-workflows-tree-file:hover .comfyui-workflows-file-action {
|
|
opacity: 1;
|
|
}
|
|
|
|
.comfyui-workflows-tree-file>.mdi-star {
|
|
color: orange
|
|
}
|
|
/* View List */
|
|
.comfyui-view-list-popup {
|
|
padding: 10px;
|
|
background-color: var(--border-color);
|
|
min-width: 170px;
|
|
min-height: 100px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
box-sizing: border-box;
|
|
}
|
|
.comfyui-view-list-popup h3 {
|
|
margin: 0 0 5px 0;
|
|
}
|
|
.comfyui-view-list-items {
|
|
width: 100%;
|
|
background: var(--comfy-menu-bg);
|
|
border-radius: 5px;
|
|
display: flex;
|
|
justify-content: center;
|
|
flex: auto;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
}
|
|
.comfyui-view-list-items section {
|
|
max-height: 400px;
|
|
overflow: auto;
|
|
width: 100%;
|
|
display: grid;
|
|
grid-template-columns: auto auto auto;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 5px;
|
|
padding: 5px 0;
|
|
}
|
|
.comfyui-view-list-items section + section {
|
|
border-top: 1px solid var(--border-color);
|
|
margin-top: 10px;
|
|
padding-top: 5px;
|
|
}
|
|
.comfyui-view-list-items section h5 {
|
|
grid-column: 1 / 4;
|
|
text-align: center;
|
|
margin: 5px;
|
|
}
|
|
.comfyui-view-list-items span {
|
|
text-align: center;
|
|
padding: 0 2px;
|
|
}
|
|
.comfyui-view-list-popup footer {
|
|
margin-top: 10px;
|
|
display: flex;
|
|
gap: 5px;
|
|
}
|
|
.comfyui-view-list-popup footer .comfyui-button {
|
|
border: 1px solid transparent;
|
|
}
|
|
.comfyui-view-list-popup footer .comfyui-button:not(:disabled):hover {
|
|
border: 1px solid var(--comfy-menu-bg);
|
|
}
|
|
/* Queue button */
|
|
.comfyui-queue-button .comfyui-split-primary .comfyui-button {
|
|
padding-right: 12px;
|
|
}
|
|
.comfyui-queue-count {
|
|
margin-left: 5px;
|
|
border-radius: 10px;
|
|
background-color: rgb(8, 80, 153);
|
|
padding: 2px 4px;
|
|
font-size: 10px;
|
|
min-width: 1em;
|
|
display: inline-block;
|
|
}
|
|
/* Queue options*/
|
|
.comfyui-queue-options {
|
|
padding: 10px;
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
font-size: 12px;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.comfyui-queue-batch {
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-right: 1px solid var(--comfy-menu-bg);
|
|
padding-right: 10px;
|
|
gap: 5px;
|
|
}
|
|
|
|
.comfyui-queue-batch input {
|
|
width: 145px;
|
|
}
|
|
|
|
.comfyui-queue-batch .comfyui-queue-batch-value {
|
|
width: 70px;
|
|
}
|
|
|
|
.comfyui-queue-mode {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.comfyui-queue-mode span {
|
|
font-weight: bold;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.comfyui-queue-mode label {
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
justify-content: start;
|
|
gap: 5px;
|
|
padding: 2px 0;
|
|
}
|
|
|
|
.comfyui-queue-mode label input {
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|