mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-20 22:57:00 +08:00
374 lines
7.3 KiB
CSS
374 lines
7.3 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;
|
|
}
|
|
|
|
/* 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: 1000;
|
|
max-height: calc(100vh - var(--top) - 10px);
|
|
max-width: calc(100vw - var(--left) - 10px);
|
|
}
|
|
|
|
.comfyui-popup:not(.open) {
|
|
display: none;
|
|
}
|
|
|
|
/* 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: 490px) {
|
|
.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;
|
|
}
|
|
|
|
.comfyui-workflows-button.unsaved {
|
|
font-style: italic;
|
|
}
|
|
|
|
.comfyui-workflows-button.unsaved .comfyui-workflows-label:after {
|
|
content: "*";
|
|
}
|
|
|
|
.comfyui-workflows-button-inner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
}
|
|
|
|
.comfyui-workflows-button-inner .mdi-graph::before {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.comfyui-workflows-popup {
|
|
width: 100%;
|
|
max-width: 350px;
|
|
padding: 10px;
|
|
overflow: auto;
|
|
background-color: var(--border-color);
|
|
border-top-right-radius: 4px;
|
|
border-bottom-right-radius: 4px;
|
|
border-bottom-left-radius: 4px;
|
|
}
|
|
|
|
/* 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;
|
|
border-top-left-radius: 4px;
|
|
border-bottom-right-radius: 4px;
|
|
border-bottom-left-radius: 4px;
|
|
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;
|
|
}
|