🛠️ app/css/base_style_sb.css (commented out position and bottom) for layout adjustment
1361 lines
32 KiB
CSS
1361 lines
32 KiB
CSS
|
|
|
|
|
|
.litegraph .dialog {
|
|
z-index: 100 !important;
|
|
}
|
|
|
|
:root {
|
|
--n-sidebar-width: 30px;
|
|
--sidebar-menu-item-width: 24px;
|
|
--main-menubar-height:35px;
|
|
}
|
|
.sidebar {
|
|
|
|
position: absolute;
|
|
top: 0;
|
|
left: -250px;
|
|
left: -250px;
|
|
width: fit-content;
|
|
height: calc(100% - 19px);
|
|
color: var(--drag-text);
|
|
transition: left 0.3s ease;
|
|
z-index: 2;
|
|
padding-top: 19px;
|
|
left: 0;
|
|
user-select: none;
|
|
box-sizing: content-box;
|
|
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-around;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
|
|
sidebar * {
|
|
box-sizing: revert;
|
|
}
|
|
|
|
.sidebar ul {
|
|
list-style-type: none;
|
|
/* border-bottom: 6px solid rgb(from var(--comfy-input-bg) r g b / 60%);*/
|
|
|
|
padding-left: 5px;
|
|
padding-right: 5px;
|
|
/*margin-bottom: 8px;*/
|
|
margin-top: 0;
|
|
padding-top: 5px;
|
|
width: 100%;
|
|
}
|
|
|
|
.sidebar li {
|
|
padding: 10px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
color: var(--input-text);
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.content_sidebar {
|
|
|
|
background: rgb(from var(--comfy-menu-bg) r g b / 100%);
|
|
overflow-y: scroll;
|
|
overflow-x: hidden;
|
|
height: 100%;
|
|
float: left;
|
|
backdrop-filter: blur(5px);
|
|
width: calc(100% - 45px);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
.dragHandle {
|
|
position: relative;
|
|
float: left;
|
|
right: 5;
|
|
top: 0;
|
|
height: 100%;
|
|
width: 5px;
|
|
cursor: ew-resize;
|
|
background: rgb(119 111 111 / 0%);
|
|
/*background: linear-gradient(90deg, rgb(62 62 62 / 46%) 0%, rgb(39 39 39 / 47%) 50%, rgb(28 28 28 / 31%) 100%);*/
|
|
}
|
|
|
|
.dragHandleTB {
|
|
background: #ffffff00;
|
|
height: 10px;
|
|
width: calc(100% - 10px);
|
|
position: absolute;
|
|
cursor: n-resize;
|
|
|
|
}
|
|
|
|
#dragHandleV {
|
|
bottom: -5px;
|
|
}
|
|
|
|
#dragHandleT {
|
|
|
|
top: 15px;
|
|
z-index: 999999;
|
|
}
|
|
#searchInputSB {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
border-radius: 5px;
|
|
padding: 10px;
|
|
border: none;
|
|
user-select: none;
|
|
background: var(--comfy-input-bg);
|
|
color: var(--input-text);
|
|
line-height: 1.4;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.sidebar-header {
|
|
position: absolute;
|
|
width: calc(100% - 75px);
|
|
margin-top: 5px;
|
|
margin-bottom: 10px;
|
|
margin-left: var(--n-sidebar-width);
|
|
|
|
z-index: 400;
|
|
width: calc(100% - 60px);
|
|
margin-top: 5px;
|
|
left: 11px;
|
|
}
|
|
|
|
.clearIcon, .searchCategoryIcon, .clearIconCustomCategory, .searchCategoryIconCustomCategory, .clearIconCustomTemplate, .searchTemplateIconCustomTemplate, .clearIconCustomWorkflow, .searchWorkflowIconCustomWorkflow {
|
|
position: absolute;
|
|
padding: 5px;
|
|
right: 30px;
|
|
color: var(--input-text);
|
|
font-size: larger;
|
|
cursor: pointer;
|
|
opacity: 0.5;
|
|
user-select: none;
|
|
line-height: 1.6;
|
|
top: 0;
|
|
|
|
|
|
display: flex;
|
|
align-content: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: -moz-available; /* WebKit-based browsers will ignore this. */
|
|
height: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
|
|
height: fill-available;
|
|
}
|
|
|
|
|
|
.clearIcon:hover, .clearIconCustomCategory:hover, .clearIconCustomTemplate:hover, .clearIconCustomWorkflow:hover {
|
|
opacity: 1.0;
|
|
}
|
|
.clearIcon,.clearIconCustomTemplate,.clearIconCustomWorkflow {
|
|
line-height: 1.6 !important
|
|
}
|
|
|
|
.searchCategoryIcon, .searchCategoryIconCustomCategory, .searchTemplateIconCustomTemplate, .searchWorkflowIconCustomWorkflow {
|
|
right: 0px;
|
|
padding: 6px;
|
|
font-size: larger;
|
|
background: var(--border-color);
|
|
color: var(--drag-text);
|
|
margin: 4px;
|
|
border-radius: 5px;
|
|
|
|
/* text-align: center; */
|
|
height: -moz-available; /* WebKit-based browsers will ignore this. */
|
|
height: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
|
|
height: fill-available;
|
|
|
|
/* top: 0; */
|
|
/* box-sizing: content-box; */
|
|
display: flex;
|
|
align-content: center;
|
|
justify-content: center;
|
|
line-height: 1;
|
|
align-items: center;
|
|
|
|
|
|
}
|
|
|
|
.searchCategoryIcon:hover, .searchCategoryIconCustomCategory:hover, .searchTemplateIconCustomTemplate:hover, .searchWorkflowIconCustomWorkflow:hover {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.sidebarCategory, #sidebarBookmarks {
|
|
list-style-type: none;
|
|
font-family: 'Open Sans', sans-serif;
|
|
text-transform: capitalize;
|
|
margin: 2px;
|
|
background-color: var(--comfy-input-bg);
|
|
opacity: 1;
|
|
border-radius: 8px;
|
|
padding-top: 11px;
|
|
font-size: 15px;
|
|
padding-bottom: 8px;
|
|
}
|
|
.sidebarCategory {
|
|
border-bottom:var(--comfy-input-bg) solid 1px;
|
|
text-wrap: nowrap;
|
|
}
|
|
#sidebarCustomNodes {
|
|
list-style-type: none;
|
|
font-family: 'Open Sans', sans-serif;
|
|
text-transform: capitalize;
|
|
margin: 0px;
|
|
background-color: transparent;
|
|
opacity: 1;
|
|
border-radius: 8px;
|
|
font-size: 15px;
|
|
padding-left: 0;
|
|
padding-right: 0px;
|
|
padding-top: 0px;
|
|
padding-bottom: 40px;
|
|
}
|
|
|
|
.sidebarItem:hover {
|
|
background: color-mix(in srgb, currentColor 15%, transparent);
|
|
}
|
|
|
|
.sidebarItem {
|
|
list-style-type: none;
|
|
font-family: 'Open Sans', sans-serif;
|
|
text-transform: capitalize;
|
|
margin: 2px;
|
|
background: color-mix(in srgb, var(--border-color) 35%, transparent);
|
|
opacity: 1;
|
|
border-radius: 8px;
|
|
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
/*max-width: calc(100% - 39px);*/
|
|
}
|
|
|
|
.displayName{
|
|
float: left;
|
|
width: 87%;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
/* margin: 2% auto;*/
|
|
/*display: flex;*/
|
|
align-items: center;
|
|
padding-left: 3%;
|
|
/*height: 14px;*/
|
|
}
|
|
.categoryName{
|
|
|
|
width: 100%;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Firefox-specific styles */
|
|
@-moz-document url-prefix() {
|
|
.content_sidebar,#settingsContainer {
|
|
scrollbar-width: thin; /* Scrollbar thickness */
|
|
scrollbar-color: hsla(0, 0%, 50%, .8) transparent; /* Thumb and track colors */
|
|
}
|
|
#settingsContainer::-moz-scrollbar-thumb:hover,
|
|
.content_sidebar::-moz-scrollbar-thumb:hover {
|
|
background-color: rgba(150, 150, 150, 1); /* Thumb color on hover */
|
|
}
|
|
|
|
#settingsContainer::-moz-scrollbar-thumb,
|
|
.content_sidebar::-moz-scrollbar-thumb {
|
|
background-color: hsla(0, 0%, 50%, .8); /* Thumb color */
|
|
border-radius: 9px;
|
|
}
|
|
}
|
|
#settingsContainer::-webkit-scrollbar,
|
|
.content_sidebar::-webkit-scrollbar {
|
|
margin-top: 0.5rem;
|
|
height: 1rem;
|
|
width: .5rem;
|
|
top: 10px;
|
|
}
|
|
#settingsContainer::-webkit-scrollbar:horizontal,
|
|
.content_sidebar::-webkit-scrollbar:horizontal {
|
|
height: .5rem;
|
|
width: 1rem
|
|
}
|
|
|
|
#settingsContainer::-webkit-scrollbar-track,
|
|
.content_sidebar::-webkit-scrollbar-track {
|
|
background-color: transparent !important;
|
|
border-radius: 9999px
|
|
}
|
|
|
|
#settingsContainer::-webkit-scrollbar-thumb,
|
|
.content_sidebar::-webkit-scrollbar-thumb {
|
|
--tw-border-opacity: 1;
|
|
background-color: hsla(0, 0%, 50%, .8);
|
|
border-color: rgba(255, 255, 255, 0, 0, 0);
|
|
border-radius: 9999px;
|
|
border-width: 1px
|
|
}
|
|
|
|
#settingsContainer::-webkit-scrollbar-thumb:hover,
|
|
.content_sidebar::-webkit-scrollbar-thumb:hover {
|
|
--tw-bg-opacity: 1;
|
|
|
|
background-color: rgba(150, 150, 150, var(--tw-bg-opacity))
|
|
}
|
|
|
|
#spacer {
|
|
height: 45px;
|
|
}
|
|
|
|
|
|
.view_button {
|
|
position: relative;
|
|
float: unset;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
padding: 5px 0 5px;
|
|
font-size: 20px;
|
|
/*background-color: var(--comfy-input-bg);*/
|
|
opacity: 0.7;
|
|
/*border-radius: 5px;*/
|
|
|
|
margin-top:2px;
|
|
box-sizing: content-box;
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: var(--sidebar-menu-item-width);
|
|
/*border-right: 2px solid var(--content-bg);*/
|
|
border-color: var(--content-bg);
|
|
|
|
}
|
|
.view_button:hover {
|
|
opacity: 1.0;
|
|
}
|
|
|
|
|
|
.sb_button_active {
|
|
border-color: var(--content-hover-fg);
|
|
color: var(--content-hover-fg);
|
|
}
|
|
#sidebar_views {
|
|
position: relative;
|
|
float: left;
|
|
text-align: center;
|
|
|
|
cursor: pointer;
|
|
user-select: none;
|
|
padding: 0px 2px 2px 2px;
|
|
font-size: 20px;
|
|
|
|
height: 100%;
|
|
width: var(--n-sidebar-width);
|
|
border: 0;
|
|
border-left: 2px rgb(from var(--comfy-menu-bg) r g b / 100%);
|
|
border-style: solid;
|
|
padding-bottom: 0px;
|
|
backdrop-filter: blur(16px) !important;
|
|
background: rgb(from var(--comfy-menu-bg) r g b / 100%);
|
|
z-index: 99999;
|
|
}
|
|
|
|
|
|
#searchInputSB.closed {
|
|
display: none;
|
|
}
|
|
|
|
.content_sidebar.closed {
|
|
width: 0 !important;
|
|
}
|
|
|
|
.searchCategoryIcon.closed {
|
|
display: none;
|
|
}
|
|
|
|
.clearIcon.closed {
|
|
display: none;
|
|
}
|
|
|
|
.sidebarCategory .pinButton, .sidebarItem .pinButton {
|
|
background-color: transparent;
|
|
border: 0;
|
|
position: absolute;
|
|
width: 10%;
|
|
float: left;
|
|
/* padding-top: 4px; */
|
|
/* font-size: 39px; */
|
|
height: 1.5em;
|
|
}
|
|
|
|
#sb_scrollToTopButton.closed {
|
|
display: none !important;
|
|
}
|
|
|
|
#sidebarBookmarks .pinButton {
|
|
|
|
background-color: transparent;
|
|
border: 0;
|
|
|
|
/*position: absolute;
|
|
right: 0;*/
|
|
|
|
position: relative;
|
|
width: 10%;
|
|
float: left;
|
|
|
|
}
|
|
|
|
.previewButton {
|
|
background-color: transparent;
|
|
border: 0;
|
|
position: absolute;
|
|
right: 35px;
|
|
}
|
|
|
|
.pinned {
|
|
fill: var(--descrip-text) !important;
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
.svg_class {
|
|
width: 24px;
|
|
height: 18px;
|
|
fill: var(--border-color);
|
|
cursor: pointer;
|
|
/* hacky fix
|
|
margin-top: -5px;
|
|
margin-left: -25px;*/
|
|
}
|
|
|
|
.pin_normal {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.pin_normal:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.svg_class:hover {
|
|
fill: var(--border-color);
|
|
|
|
}
|
|
|
|
|
|
#sidebarBookmarks .sidebarItem {
|
|
margin-left: 0px;
|
|
margin-right: 0px;
|
|
|
|
}
|
|
#sidebarBookmarks {
|
|
width: calc(100% - 16px);
|
|
margin-left: 3px;
|
|
}
|
|
.sb_label {
|
|
font-family: 'Open Sans', sans-serif;
|
|
position: relative;
|
|
margin: 5px;
|
|
font-weight: bold;
|
|
|
|
background: var(--comfy-input-bg);
|
|
border-radius: 3px;
|
|
padding-left: 6px;
|
|
padding-right: 6px;
|
|
display: block;
|
|
display: flex;
|
|
width: calc(100% - 20px);
|
|
text-align: center;
|
|
user-select: none;
|
|
cursor: pointer;
|
|
|
|
align-items: center;
|
|
height: 28px;
|
|
justify-content: center;
|
|
padding-top: 1px;
|
|
}
|
|
|
|
.expand_node, .pin_node {
|
|
position: absolute !important;
|
|
right: 5px;
|
|
background: transparent;
|
|
border: 0;
|
|
|
|
}
|
|
|
|
.expand_node svg, .pin_node svg {
|
|
|
|
width: 20px;
|
|
height: 20px;
|
|
background: transparent;
|
|
fill: var(--input-text);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.sb_dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background-color: grey;
|
|
}
|
|
|
|
.node_header {
|
|
line-height: 1;
|
|
padding: 8px 13px 7px;
|
|
background: var(--comfy-input-bg);
|
|
margin-bottom: 5px;
|
|
font-size: 15px;
|
|
text-wrap: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.headdot {
|
|
width: 10px;
|
|
height: 10px;
|
|
float: inline-start;
|
|
margin-right: 8px;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
|
|
.IMAGE {
|
|
background-color: #64b5f6;
|
|
}
|
|
|
|
.VAE {
|
|
background-color: #ff6e6e;
|
|
}
|
|
|
|
.LATENT {
|
|
background-color: #ff9cf9;
|
|
}
|
|
|
|
.MASK {
|
|
background-color: #81c784;
|
|
}
|
|
|
|
.CONDITIONING {
|
|
background-color: #ffa931;
|
|
}
|
|
|
|
.CLIP {
|
|
background-color: #ffd500;
|
|
}
|
|
|
|
.MODEL {
|
|
background-color: #b39ddb;
|
|
}
|
|
|
|
.CONTROL_NET {
|
|
background-color: #a5d6a7;
|
|
}
|
|
|
|
|
|
#previewDiv {
|
|
position: absolute;
|
|
background-color: var(--comfy-menu-bg);
|
|
font-family: 'Open Sans', sans-serif;
|
|
font-size: small;
|
|
color: var(--descrip-text);
|
|
border: 1px solid var(--descrip-text);
|
|
display: none;
|
|
min-width: 300px;
|
|
width: min-content;
|
|
height: fit-content;
|
|
z-index: 9999;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
font-size: 12px;
|
|
padding-bottom: 10px;
|
|
|
|
}
|
|
|
|
#previewDiv .sb_description {
|
|
margin: 10px;
|
|
padding: 6px;
|
|
background: var(--border-color);
|
|
border-radius: 5px;
|
|
font-style: italic;
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.sb_table {
|
|
display: grid;
|
|
|
|
grid-column-gap: 10px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
.sb_row {
|
|
display: grid;
|
|
grid-template-columns: 10px 1fr 1fr 0fr 10px;
|
|
grid-column-gap: 10px;
|
|
align-items: baseline;
|
|
padding-left: 9px;
|
|
padding-right: 9px;
|
|
}
|
|
|
|
.sb_row_string {
|
|
grid-template-columns: 10px 1fr 1fr 10fr 1fr;
|
|
}
|
|
|
|
.sb_col {
|
|
border: 0px solid #000;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
flex-direction: row-reverse;
|
|
flex-wrap: nowrap;
|
|
align-content: flex-start;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.sb_inherit {
|
|
display: inherit;
|
|
width: max-content;
|
|
flex: revert-layer;
|
|
}
|
|
|
|
.sb_inherit_orig {
|
|
display: inherit;
|
|
|
|
}
|
|
|
|
.long_field {
|
|
background: var(--bg-color);
|
|
border: 2px solid var(--border-color);
|
|
margin: 5px 5px 0 5px;
|
|
border-radius: 10px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.sb_arrow {
|
|
color: var(--fg-color);
|
|
}
|
|
|
|
.sb_preview_badge {
|
|
text-align: center;
|
|
background: var(--comfy-input-bg);
|
|
font-weight: bold;
|
|
color: var(--error-text);
|
|
margin-bottom: 3px;
|
|
}
|
|
|
|
#sb_scrollToTopButton {
|
|
position: absolute;
|
|
bottom: 5px;
|
|
right: 56px;
|
|
cursor: pointer;
|
|
display: none;
|
|
|
|
border-radius: 20%;
|
|
background: var(--comfy-menu-bg);
|
|
padding: 4px;
|
|
border: 1px solid #4c4c4c;
|
|
}
|
|
|
|
#sb_scrollToTopButton svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: var(--descrip-text);
|
|
}
|
|
|
|
|
|
|
|
|
|
.panel_sidebar{
|
|
min-height: 200px;
|
|
|
|
border-radius: 5px;
|
|
margin-left: 7px;
|
|
|
|
}
|
|
|
|
.panel_sidebar label{
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.custom-menu {
|
|
box-shadow: inset 0px 0px 0px rgb(44 44 44 / 5%), inset 1px -1px 0px 0px rgb(22 22 22 / 50%), 0px 0px 9px 0px rgb(0, 0, 0);
|
|
font-family: Arial, sans-serif;
|
|
display: none;
|
|
position: absolute;
|
|
background-color: var(--bg-color);
|
|
border: 0px solid #313131;
|
|
color: var(--input-text);
|
|
padding: 5px 0;
|
|
border-radius: 5px;
|
|
z-index: 9999;
|
|
/* backdrop-filter: blur(5px);
|
|
background: rgb(from #353535 r g b / 50%);*/
|
|
}
|
|
.custom-menu ul {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
width: 100%;
|
|
}
|
|
.custom-menu li {
|
|
padding: 8px 15px;
|
|
cursor: pointer;
|
|
|
|
}
|
|
#menu-options li {
|
|
|
|
min-width: 134px;
|
|
}
|
|
|
|
|
|
|
|
.custom-menu .sub-menu li:first-child {
|
|
border-top-left-radius: 5px;
|
|
border-top-right-radius: 5px;
|
|
}
|
|
|
|
|
|
.custom-menu .sub-menu li:last-child {
|
|
border-bottom-left-radius: 5px;
|
|
border-bottom-right-radius: 5px;
|
|
}
|
|
.custom-menu li:hover {
|
|
background-color: var(--border-color);
|
|
}
|
|
.sub-menu {
|
|
|
|
box-shadow: inset 0px 0px 0px rgb(44 44 44 / 5%), inset 1px -1px 0px 0px rgb(22 22 22 / 50%), 0px 0px 9px 0px rgb(0, 0, 0);
|
|
font-family: Arial, sans-serif;
|
|
display: none;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 100%;
|
|
background-color: var(--bg-color);
|
|
border: 0px solid #313131;
|
|
border-radius: 5px;
|
|
border-top-left-radius: 0px;
|
|
|
|
z-index: 1001; /* Ensure sub-menu appears above main menu */
|
|
/*
|
|
backdrop-filter: blur(5px);
|
|
background: rgb(from #353535 r g b / 50%);*/
|
|
}
|
|
|
|
.cat_empty {
|
|
display: none !important;
|
|
}
|
|
|
|
|
|
|
|
/* Settings */
|
|
#switch_settings{
|
|
/*bottom: 5px;
|
|
position: absolute;*/
|
|
width: -moz-available; /* WebKit-based browsers will ignore this. */
|
|
width: -webkit-fill-available; /* Mozilla-based browsers will ignore this. */
|
|
width: fill-available;
|
|
height: 20px;
|
|
border: 0 !important;
|
|
line-height: 1;
|
|
box-sizing: content-box;
|
|
}
|
|
|
|
#sb_settingsDiv,#sb_settingsDiv_export, #sb_settingsDiv_import, #sb_settingsDiv_shortcut {
|
|
outline: 0;
|
|
border: 0;
|
|
border-radius: 6px;
|
|
background: var(--bg-color);
|
|
color: var(--input-text);
|
|
box-shadow: inset 1px 1px 0px rgba(255, 255, 255, 0.05), inset -1px -1px 0px rgba(0, 0, 0, 0.5), 2px 2px 20px rgb(0, 0, 0);
|
|
max-width: 800px;
|
|
width: 650px;
|
|
box-sizing: border-box;
|
|
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
|
font-size: 0.8rem;
|
|
padding: 5px 20px 20px 20px;
|
|
position: fixed;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
z-index: 1001;
|
|
text-transform: uppercase;
|
|
font-weight: bold;
|
|
}
|
|
#sb_settingsDiv_export, #sb_settingsDiv_import{
|
|
z-index: 1005;
|
|
width: 30vh;
|
|
}
|
|
#sb_settingsDiv_shortcut {
|
|
z-index: 1005;
|
|
width: 100%;
|
|
}
|
|
#sb_settingsDiv .setting{
|
|
height: 28px;
|
|
width: 100%;
|
|
margin-bottom: 7px;
|
|
}
|
|
#sb_settingsDiv .setting input[type="range"]{
|
|
height: 28px;
|
|
|
|
}
|
|
|
|
#sb_settingsDiv .setting input[type="text"], #sb_settingsDiv_shortcut .setting input[type="text"]{
|
|
background: var(--comfy-menu-bg);
|
|
color: var(--drag-text);
|
|
padding: 5px;
|
|
float: right;
|
|
width: 60%;
|
|
margin-right: 0px;
|
|
border-radius: 5px;
|
|
border: solid 1px var(--descrip-text);
|
|
}
|
|
|
|
#sb_settingsDiv_shortcut .setting input[type="text"] {
|
|
|
|
width: 48% !important;
|
|
}
|
|
#sb_settingsDiv .setting textarea{
|
|
background: var(--comfy-menu-bg);
|
|
color: var(--drag-text);
|
|
padding: 5px;
|
|
float: right;
|
|
width: calc(100% - 60px);
|
|
resize: vertical;
|
|
margin-right: 47px;
|
|
border-radius: 5px;
|
|
border: solid 1px var(--descrip-text);
|
|
margin-bottom: 20px;
|
|
}
|
|
#sb_settingsDiv .setting input[type="checkbox"], #sb_settingsDiv_export .setting input[type="checkbox"], #sb_settingsDiv_import .setting input[type="checkbox"]{
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
#sb_settingsDiv_export .setting, #sb_settingsDiv_import .setting , #sb_settingsDiv_shortcut .setting{
|
|
height: 36px;
|
|
}
|
|
#sb_settingsDiv .setting input, #sb_settingsDiv_export .setting input , #sb_settingsDiv_import .setting input, #sb_settingsDiv_shortcut .setting input{
|
|
float: right;
|
|
}
|
|
#sb_settingsDiv .setting label{
|
|
line-height: 1.8;
|
|
}
|
|
#sb_settingsDiv .slider-container{
|
|
float: right;
|
|
width: 36px;
|
|
background: var(--comfy-menu-bg);
|
|
padding: 3px;
|
|
border-radius: 5px;
|
|
text-align: center;
|
|
margin: 5px auto;
|
|
}
|
|
|
|
#sb_settingsDiv_export h1, #sb_settingsDiv_import h1, #sb_settingsDiv_shortcut h1{
|
|
font-size: medium;
|
|
|
|
}
|
|
|
|
#sb_settingsDiv h1,#sb_settingsDiv_export h1, #sb_settingsDiv_import h1 , #sb_settingsDiv_shortcut h1{
|
|
margin: 0 0 20px 0;
|
|
padding: 0 0 5px 0;
|
|
text-align: center;
|
|
border-bottom: 5px solid var(--border-color);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
#settingsContainer button{
|
|
|
|
padding: 9px;
|
|
/* position: absolute; */
|
|
bottom: 0;
|
|
width: 100%;
|
|
margin: 0 0 20px 0;
|
|
background: var(--comfy-menu-bg);
|
|
color: var(--input-text);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
text-transform: uppercase;
|
|
font-weight: bold;
|
|
}
|
|
#settingsContainer button:hover{
|
|
filter: brightness(120%);
|
|
}
|
|
#settingsContainer{
|
|
height: 50vh;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
margin-right: -10px;
|
|
padding-right: 10px;
|
|
}
|
|
#sb_buttonsContainer {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr); /* Due colonne, larghezza uguale */
|
|
grid-template-rows: auto; /* Le righe si adattano all'altezza degli elementi */
|
|
gap: 5px; /* Spaziatura tra i bottoni */
|
|
width: 100%; /* Si adatta alla larghezza del contenitore padre */
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
#sb_buttonsContainer button, #sb_buttonsContainerCustomize button {
|
|
padding: 9px;
|
|
width: 100%; /* Il bottone si adatta alla colonna */
|
|
background: var(--comfy-menu-bg);
|
|
color: var(--input-text);
|
|
border: 1px solid var(--border-color);
|
|
margin: 0 0 0px 0;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
text-transform: uppercase;
|
|
font-weight: bold;
|
|
box-sizing: border-box; /* Include il padding e il bordo nel calcolo della larghezza */
|
|
}
|
|
|
|
#sb_buttonsContainer #sb_runExportButton{
|
|
width: 200%;
|
|
}
|
|
|
|
|
|
|
|
#sb_buttonsContainerCustomize{
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr); /* Due colonne, larghezza uguale */
|
|
grid-template-rows: auto; /* Le righe si adattano all'altezza degli elementi */
|
|
gap: 5px; /* Spaziatura tra i bottoni */
|
|
width: 100%; /* Si adatta alla larghezza del contenitore padre */
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
#sb_settingsDiv i{
|
|
margin-left: 4px;
|
|
color: #0075ff;
|
|
font-style: normal;
|
|
font-size: larger;
|
|
}
|
|
|
|
.remove-section-btn{
|
|
padding: 5px;
|
|
position: static;
|
|
float: right;
|
|
right: 25px;
|
|
}
|
|
/* MODALS */
|
|
.sb-modal-title{
|
|
position: absolute;
|
|
top: 4px;
|
|
margin-top: 0;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.sb-modal-backdrop, .sb-modal-backdrop-settings {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.2); /* Add desired opacity */
|
|
z-index: 1000; /* Make sure the backdrop is behind the modal */
|
|
}
|
|
|
|
|
|
#sb_settingsDiv select{
|
|
background: var(--comfy-menu-bg);
|
|
color: var(--drag-text);
|
|
padding: 5px;
|
|
float: right;
|
|
width: 129px;
|
|
margin-right: 47px;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.colorBlob {
|
|
float: right;
|
|
overflow: hidden;
|
|
margin-top: 34px;
|
|
width: 100%;
|
|
height: 125px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.colorBlob input[type='color'] {
|
|
width: 106%;
|
|
height: 112%;
|
|
margin: -6px;
|
|
}
|
|
|
|
|
|
|
|
/*#switch_home,#switch_custom_view{
|
|
width: 1.3rem;
|
|
height: 1.3rem;
|
|
|
|
}*/
|
|
|
|
#switch_sidebar{
|
|
|
|
margin-top: 5px;
|
|
}
|
|
|
|
#sbModal{
|
|
display: none;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.full_rounded{
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.p-button {
|
|
overflow: visible !important;
|
|
|
|
}
|
|
/*************/
|
|
/*ALPHA: INGLOBE SIDEBAR */
|
|
|
|
.splitter-overlay{
|
|
/*width: 486px !important;*/
|
|
z-index: 100 !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#official_button{
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: absolute;
|
|
height: auto;
|
|
bottom: 50%;
|
|
|
|
}
|
|
|
|
#official_button button{
|
|
width: var(--n-sidebar-width);
|
|
height: var(--n-sidebar-width);
|
|
}
|
|
|
|
#official_button i {
|
|
font-size: 20px !important;
|
|
}
|
|
|
|
/* setup tooltips */
|
|
|
|
#openModalButton{
|
|
z-index: 1000 !important;
|
|
}
|
|
|
|
|
|
[data-tooltip] {
|
|
--arrow-size: 5px;
|
|
position: relative;
|
|
/*z-index: 10;*/
|
|
}
|
|
|
|
/* Positioning and visibility settings of the tooltip */
|
|
[data-tooltip]:before,
|
|
[data-tooltip]:after {
|
|
position: absolute;
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
left: 50%;
|
|
bottom: calc(100% + var(--arrow-size));
|
|
pointer-events: none;
|
|
transition: 0.2s;
|
|
will-change: transform;
|
|
}
|
|
|
|
/* The actual tooltip with a dynamic width */
|
|
[data-tooltip]:before {
|
|
content: attr(data-tooltip);
|
|
padding: 10px 18px;
|
|
min-width: 50px;
|
|
max-width: 350px;
|
|
width: max-content;
|
|
width: -moz-max-content;
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
background-color: var(--border-color);;
|
|
background-image: linear-gradient(30deg,
|
|
rgba(59, 72, 80, 0.44),
|
|
rgba(59, 68, 75, 0.44),
|
|
rgba(60, 82, 88, 0.44));
|
|
box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.2);
|
|
color: #fff;
|
|
white-space: pre-wrap;
|
|
transform: translate(-50%, calc(0px - var(--arrow-size))) scale(0.5);
|
|
z-index: 10;
|
|
}
|
|
|
|
/* Tooltip arrow */
|
|
[data-tooltip]:after {
|
|
content: '';
|
|
border-style: solid;
|
|
border-width: var(--arrow-size) var(--arrow-size) 0px var(--arrow-size); /* CSS triangle */
|
|
border-color: var(--border-color) transparent transparent transparent;
|
|
transition-duration: 0s; /* If the mouse leaves the element,
|
|
the transition effects for the
|
|
tooltip arrow are "turned off" */
|
|
transform-origin: top; /* Orientation setting for the
|
|
slide-down effect */
|
|
transform: translateX(-50%) scaleY(0);
|
|
}
|
|
|
|
/* Tooltip becomes visible at hover */
|
|
[data-tooltip]:hover:before,
|
|
[data-tooltip]:hover:after {
|
|
visibility: visible;
|
|
opacity: 1;
|
|
}
|
|
/* Scales from 0.5 to 1 -> grow effect */
|
|
[data-tooltip]:hover:before {
|
|
transition-delay: 0.8s;
|
|
transform: translate(-50%, calc(0px - var(--arrow-size))) scale(1);
|
|
}
|
|
/*
|
|
Arrow slide down effect only on mouseenter (NOT on mouseleave)
|
|
*/
|
|
[data-tooltip]:hover:after {
|
|
transition-delay: 0.8s; /* Starting after the grow effect */
|
|
transition-duration: 0.2s;
|
|
transform: translateX(-50%) scaleY(1);
|
|
}
|
|
/*
|
|
That's it for the basic tooltip.
|
|
|
|
If you want some adjustability
|
|
here are some orientation settings you can use:
|
|
*/
|
|
|
|
/* LEFT */
|
|
/* Tooltip + arrow */
|
|
.left:before,
|
|
.left:after {
|
|
left: auto;
|
|
right: calc(100% + var(--arrow-size));
|
|
bottom: 50%;
|
|
}
|
|
|
|
/* Tooltip */
|
|
.left:before {
|
|
transform: translate(calc(0px - var(--arrow-size)), 50%) scale(0.5);
|
|
}
|
|
.left:hover:before {
|
|
transform: translate(calc(0px - var(--arrow-size)), 50%) scale(1);
|
|
}
|
|
|
|
/* Arrow */
|
|
.left:after {
|
|
border-width: var(--arrow-size) 0px var(--arrow-size) var(--arrow-size);
|
|
border-color: transparent transparent transparent var(--border-color);;
|
|
transform-origin: left;
|
|
transform: translateY(50%) scaleX(0);
|
|
}
|
|
.left:hover:after {
|
|
transform: translateY(50%) scaleX(1);
|
|
}
|
|
|
|
|
|
|
|
/* RIGHT */
|
|
.right:before,
|
|
.right:after {
|
|
left: calc(100% + var(--arrow-size));
|
|
bottom: 50%;
|
|
}
|
|
|
|
.right:before {
|
|
transform: translate(var(--arrow-size), 50%) scale(0.5);
|
|
}
|
|
.right:hover:before {
|
|
transform: translate(var(--arrow-size), 50%) scale(1);
|
|
}
|
|
|
|
.right:after {
|
|
border-width: var(--arrow-size) var(--arrow-size) var(--arrow-size) 0px;
|
|
border-color: transparent var(--border-color) transparent transparent;
|
|
transform-origin: right;
|
|
transform: translateY(50%) scaleX(0);
|
|
}
|
|
.right:hover:after {
|
|
transform: translateY(50%) scaleX(1);
|
|
}
|
|
|
|
|
|
|
|
/* BOTTOM */
|
|
[data-tooltip-location="bottom"]:before,
|
|
[data-tooltip-location="bottom"]:after {
|
|
top: calc(100% + var(--arrow-size));
|
|
bottom: auto;
|
|
}
|
|
|
|
[data-tooltip-location="bottom"]:before {
|
|
transform: translate(-50%, var(--arrow-size)) scale(0.5);
|
|
}
|
|
[data-tooltip-location="bottom"]:hover:before {
|
|
transform: translate(-50%, var(--arrow-size)) scale(1);
|
|
}
|
|
|
|
[data-tooltip-location="bottom"]:after {
|
|
border-width: 0px var(--arrow-size) var(--arrow-size) var(--arrow-size);
|
|
border-color: transparent transparent var(--border-color) transparent;
|
|
transform-origin: bottom;
|
|
}
|
|
|
|
|
|
|
|
/* Settings that make the pen look nicer */
|
|
|
|
@keyframes moveFocus {
|
|
0% { background-position: 0% 100% }
|
|
100% { background-position: 100% 0% }
|
|
}
|
|
|
|
|
|
|
|
@media (max-height: 450px) {
|
|
main {
|
|
margin: 2rem 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 800px) {
|
|
html {
|
|
font-size: 0.9em;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*SETTINGS TAB&CUSTOMIZE*/
|
|
|
|
.n-sb-tab-container {
|
|
margin-bottom: 1rem;
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
grid-template-rows: auto;
|
|
gap: 5px;
|
|
width: 100%;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.n-sb-tab {
|
|
padding: 10px 20px;
|
|
cursor: pointer;
|
|
margin-right: 5px;
|
|
border-bottom: 3px solid rgb(255, 255, 255);
|
|
text-align: center;
|
|
}
|
|
|
|
.n-sb-tab.n-sb-active {
|
|
|
|
border-color: #0075ff;
|
|
}
|
|
|
|
|
|
.n-sb-tab-content {
|
|
display: none;
|
|
height: 50vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.n-sb-active {
|
|
display: block !important;
|
|
}
|
|
|
|
.sb_hidden {
|
|
display: none;
|
|
}
|
|
|
|
.n-sb-tab-container .n-sb-tab {
|
|
padding: 9px;
|
|
width: 100%;
|
|
color: var(--input-text);
|
|
margin: 0 0 0px 0;
|
|
cursor: pointer;
|
|
text-transform: uppercase;
|
|
font-weight: bold;
|
|
box-sizing: border-box;
|
|
font-size: medium;
|
|
}
|
|
|
|
.n-sb-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: 20px;
|
|
padding: 10px;
|
|
|
|
border-radius: 5px;
|
|
background-color: var(--comfy-menu-bg);
|
|
}
|
|
.n-sb-section-header {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
.n-sb-section-header input {
|
|
margin-left: 10px;
|
|
height: 23px;
|
|
}
|
|
.n-sb-section-panels {
|
|
|
|
margin-bottom: 10px;
|
|
}
|
|
.n-sb-section-panels .add-panel-btn{
|
|
padding: 5px;
|
|
float: right;
|
|
}
|
|
.draggable {
|
|
cursor: move;
|
|
}
|
|
.panel-list {
|
|
list-style-type: none;
|
|
padding: 0;
|
|
}
|
|
.panel-list li {
|
|
margin-bottom: 5px;
|
|
margin-right: 5px;
|
|
padding: 5px !important;
|
|
background: var(--bg-color);
|
|
}
|
|
.panel-select{
|
|
margin-left: 9px !important;
|
|
width: 70% !important;
|
|
float: left !important;
|
|
}
|
|
.remove-panel {
|
|
bottom: 0;
|
|
float: right;
|
|
background: var(--comfy-menu-bg);
|
|
color: var(--input-text);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
text-transform: uppercase;
|
|
font-weight: bold;
|
|
}
|
|
.n-sb-section-header label {
|
|
padding: 0 0 0px 10px;
|
|
}
|
|
.icon-input{
|
|
width: 20px;
|
|
text-align: center;
|
|
} |