Files
alexopus-ComfyUI-Notes-Sidebar/js/notes-sidebar.css
T
2025-07-19 23:49:17 +02:00

189 lines
3.0 KiB
CSS

/* Notes Sidebar Styles */
.notes-sidebar {
display: flex;
flex-direction: column;
height: 100%;
font-family: Arial, sans-serif;
color: #fff;
}
.notes-tabs-wrapper {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 10px;
background: #1a1a1a;
border-bottom: 1px solid #444;
min-height: 40px;
}
.notes-tabs-container {
display: flex;
flex-wrap: wrap;
gap: 2px;
flex: 1;
}
.notes-new-tab-btn {
background: #444;
border: none;
color: #fff;
padding: 5px 10px;
cursor: pointer;
border-radius: 3px;
font-size: 16px;
height: 32px;
}
.notes-new-tab-btn:hover {
background: #555;
}
.note-tab {
background: #444;
border: none;
color: #fff;
padding: 5px 10px;
cursor: pointer;
border-radius: 3px;
font-size: 12px;
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
height: 32px;
}
.note-tab:hover {
background: #555;
}
.note-tab.active {
background: #4CAF50;
}
.notes-content-area {
flex: 1;
display: flex;
flex-direction: column;
padding: 15px;
gap: 10px;
}
.notes-textarea {
flex: 1;
background: #1a1a1a;
border: 1px solid #444;
color: #fff;
padding: 10px;
font-family: monospace;
font-size: 14px;
resize: none;
outline: none;
}
.notes-textarea:focus {
border-color: #4CAF50;
}
.notes-textarea:disabled {
background: #111;
color: #666;
cursor: not-allowed;
}
.notes-button-container {
display: flex;
gap: 10px;
justify-content: space-between;
padding: 10px;
background: #1a1a1a;
border-bottom: 1px solid #444;
}
.notes-button-group {
display: flex;
gap: 2px;
}
.notes-btn {
border: none;
color: white;
padding: 8px 9px;
cursor: pointer;
border-radius: 4px;
font-size: 14px;
height: 32px;
}
.notes-btn:hover {
opacity: 0.8;
}
.notes-btn:disabled {
background: #333 !important;
color: #666 !important;
cursor: not-allowed !important;
opacity: 0.5;
}
.notes-btn:disabled:hover {
opacity: 0.5 !important;
}
.notes-btn.delete {
background: #ff4444;
}
.notes-btn.save {
background: #4CAF50;
}
.notes-btn.refresh {
background: #2196F3;
}
.notes-btn.rename {
background: #FF9800;
}
.notes-btn.append-loras {
background: #9C27B0;
}
/* Submenu styles */
.notes-submenu-container {
position: relative;
display: inline-block;
}
.notes-submenu {
position: absolute;
top: 100%;
left: 0;
background: #2a2a2a;
border: 1px solid #444;
border-radius: 4px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
z-index: 1000;
min-width: 200px;
margin-top: 2px;
}
.notes-submenu-item {
padding: 8px 12px;
color: #fff;
cursor: pointer;
border-bottom: 1px solid #444;
font-size: 12px;
white-space: nowrap;
}
.notes-submenu-item:last-child {
border-bottom: none;
}
.notes-submenu-item:hover {
background: #444;
}