Files
Kinglord-ComfyUI_LoRA_Sidebar/web/css/lora-sidebar.css
T

1312 lines
26 KiB
CSS

.lora-sidebar {
display: flex;
flex-direction: column;
height: 100%;
box-sizing: border-box;
position: relative;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.lora-sidebar-content {
flex-grow: 1;
overflow-y: auto;
padding: 10px;
}
.lora-sidebar h3 {
margin-top: 0;
margin-bottom: 1px;
}
.lora-sidebar input[type="text"] {
width: 100%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
.lora-gallery-container {
display: flex;
flex-direction: column;
gap: 20px;
}
.lora-item {
position: relative;
width: 100%;
aspect-ratio: 2 / 3;
margin-bottom: 10px;
border-radius: 8px;
overflow: hidden;
cursor: grab;
display: flex;
flex-direction: column;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
transition: transform 0.2s, box-shadow 0.2s;
}
.lora-item:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.lora-item img {
width: 100%;
height: 100%;
object-fit: cover;
}
.lora-item video {
width: 100%;
height: 100%;
object-fit: cover;
}
.lora-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: flex;
flex-direction: column;
justify-content: space-between;
background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
opacity: 0;
transition: opacity 0.2s;
}
.lora-item:hover .lora-overlay {
opacity: 1;
}
.lora-buttons {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
padding: 5px;
}
.lora-buttons button {
background: rgba(128, 128, 128, 0.7);
border: none;
border-radius: 4px;
color: white;
cursor: pointer;
width: 30px;
height: 30px;
font-size: 16px;
display: flex;
align-items: center;
justify-content: center;
margin: 2px;
transition: background 0.2s;
}
.lora-buttons button:hover {
background: rgba(128, 128, 128, 0.9);
}
.lora-title {
background: rgba(0, 0, 0, 0.7);
color: white;
padding: 6px;
width: 100%;
position: absolute;
bottom: 0;
left: 0;
box-sizing: border-box;
display: flex; /* Center the content */
justify-content: center;
align-items: center;
}
.lora-title h4 {
margin: 0;
font-weight: normal;
white-space: normal; /* Allow wrapping */
display: -webkit-box; /* Necessary for line clamping */
-webkit-box-orient: vertical; /* Define box orientation */
-webkit-line-clamp: 2; /* Limit to 2 lines */
line-clamp: 2; /* Limit to 2 lines */
overflow: hidden; /* Hide overflowing text */
text-overflow: ellipsis; /* Add ellipsis for overflow */
max-width: 100%;
text-align: center;
transition: font-size 0.2s ease; /* Smooth transition for resizing if needed */
}
.lora-size-slider {
width: 100%;
margin: 10px 0;
padding: 10px 0;
border-top: 1px solid #ccc;
border-bottom: 1px solid #ccc;
margin-bottom: 15px;
}
.loading-indicator {
text-align: center;
padding: 20px;
}
.loading-indicator progress {
width: 100%;
}
.model-info-popup {
position: absolute;
z-index: 1000;
background-color: #222;
border: 1px solid #444;
padding: 10px;
border-radius: 5px;
color: #fff;
max-width: 400px;
max-height: 80vh;
overflow: auto;
transition: opacity 0.3s ease, transform 0.3s ease;
opacity: 0;
transform: translateY(-10px);
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
.model-info-popup.show {
opacity: 1;
transform: translateY(0);
}
.model-info-popup.hide {
opacity: 0;
}
.model-info-popup .close-button {
position: sticky;
top: 0;
right: 0;
float: right;
background: rgba(34, 34, 34, 0.9); /* Match popup background with some opacity */
border: none;
color: #fff;
font-size: 20px;
cursor: pointer;
pointer-events: auto;
z-index: 1100;
padding: 5px 10px;
margin: -10px -10px 0 0; /* Negative margin to offset parent padding */
border-radius: 0 5px 0 5px; /* Round bottom-left corner only */
transition: background-color 0.2s ease;
}
.model-info-popup .close-button:hover {
background-color: rgba(68, 68, 68, 0.9);
}
/* Add a subtle shadow to help it stand out */
.model-info-popup .close-button::after {
content: '';
position: absolute;
bottom: -4px;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(rgba(0, 0, 0, 0.2), transparent);
}
.model-info-popup .popup-content {
position: relative;
margin-top: 8px;
z-index: 1;
}
.info-top-row {
padding: 0 2px;
}
.model-info-popup .popup-drag-area {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
z-index: 2; /* Place it above other content */
cursor: grab;
background: transparent;
pointer-events: auto; /* Make it catch drag events */
}
/* Make interactive elements pierce through the drag area */
.model-info-popup .button-row,
.model-info-popup .word-pills,
.model-info-popup .label-pills,
.model-info-popup .info-button,
.model-info-popup .favorite-toggle,
.model-info-popup .description-icon,
.model-info-popup .media-container,
.model-info-popup input,
.model-info-popup .civitai-link,
.model-info-popup .lora-name,
.model-info-popup .version-desc,
.model-info-popup .weight-edit-icon,
.model-info-popup .weight-save-icon,
.model-info-popup .copy-all-button,
.model-info-popup .weight-input,
.model-info-popup .expand-desc-button,
.model-info-popup .version-desc-container,
.model-info-popup .version-desc,
.model-info-popup .version-id-container,
.model-info-popup .version-input,
.model-info-popup .version-edit-icon,
.model-info-popup .version-save-icon,
.model-info-popup .weight-display {
position: relative;
z-index: 3;
pointer-events: auto;
}
/* Make text selectable where needed */
.model-info-popup .lora-name,
.model-info-popup .version-desc {
user-select: text;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
}
/* Ensure scrollbar is accessible */
.model-info-popup .version-desc-container::-webkit-scrollbar,
.model-info-popup .version-desc-container::-webkit-scrollbar-thumb {
position: relative;
z-index: 3;
pointer-events: auto;
}
.favorite-toggle {
padding: 5px; /* Add some padding for better click target */
transition: transform 0.2s ease;
}
.favorite-toggle:hover {
transform: scale(1.1);
}
.model-info-popup .civitai-link {
color: #4a6da7;
text-decoration: underline;
}
.model-info-popup .lora-name {
margin: 5px 0 5px 0;
font-size: 1.4em;
word-break: break-word;
}
.model-info-popup .version-name {
margin: 0;
font-size: 0.9em;
color: #aaa;
}
.model-info-popup .lora-subdir {
margin: 5px 0;
font-size: 0.9em;
color: #aaa;
}
.model-info-popup .header-container {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 10px;
}
.model-info-popup .name-container {
margin-bottom: 10px;
display: flex;
flex-direction: column;
gap: 8px;
}
.model-info-popup .name-row {
display: flex;
align-items: center;
gap: 8px;
}
.model-info-popup .media-controls {
position: absolute;
top: 10px;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
padding: 0 5px;
z-index: 3;
}
.model-info-popup .media-controls-left,
.model-info-popup .media-controls-right {
display: flex;
gap: 5px;
}
.model-info-popup .media-control-button {
background: rgba(0, 0, 0, 0.6);
border: none;
color: white;
width: 32px;
height: 32px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-color 0.2s ease;
}
.model-info-popup .media-control-button:hover {
background: rgba(0, 0, 0, 0.8);
transform: translateY(-1px);
}
.model-info-popup .media-control-button i {
font-size: 1rem;
line-height: 1;
}
.image-popup {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
background: rgba(33, 33, 33, 0.88);
display: flex;
justify-content: center;
align-items: center;
}
.image-popup .image-container {
position: relative;
max-width: 95vw;
max-height: 95vh;
display: flex;
justify-content: center;
align-items: center;
}
.image-popup img {
max-width: 95vw;
max-height: 95vh;
object-fit: contain;
}
.image-popup .popup-controls {
position: absolute;
top: 20px;
right: 20px;
display: flex;
gap: 10px;
z-index: 2;
}
.image-popup .popup-control-button {
background: rgba(0, 0, 0, 0.6);
border: none;
color: white;
width: 32px;
height: 32px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-color 0.2s;
}
.image-popup .popup-control-button:hover {
background: rgba(0, 0, 0, 0.8);
}
.image-popup .nav-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
background: rgba(0, 0, 0, 0.6);
border: none;
color: white;
width: 40px;
height: 40px;
border-radius: 20px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 2;
transition: background-color 0.2s;
}
.image-popup .nav-button:hover {
background: rgba(0, 0, 0, 0.8);
}
.image-popup .nav-button.prev {
left: 20px;
}
.image-popup .nav-button.next {
right: 20px;
}
.popup-prompt-container {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(transparent, rgba(0, 0, 0, 0.8) 20%);
padding: 20px 20px 25px 20px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
}
.popup-prompt-content {
flex: 1;
color: white;
font-family: monospace;
font-size: clamp(9px, 1vw, 14px); /* Responsive font size with min/max */
line-height: 1.4;
white-space: pre-wrap;
word-break: break-word;
text-overflow: ellipsis;
overflow: hidden;
max-height: 20vh; /* Limit height to 20% of viewport height */
user-select: text;
}
.popup-prompt-copy {
background: rgba(255, 255, 255, 0.2);
border: none;
color: white;
width: 36px;
height: 36px;
border-radius: 4px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background-color 0.2s ease;
flex-shrink: 0;
}
.popup-prompt-copy:hover {
background: rgba(255, 255, 255, 0.3);
}
.image-info-popup {
position: absolute;
background: #2a2a2a;
border: 1px solid #444;
border-radius: 4px;
padding: 10px;
max-width: 300px;
max-height: 400px;
overflow-y: auto;
z-index: 1002;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
color: #fff;
font-size: 0.9em;
word-wrap: break-word;
}
.image-info-content {
white-space: pre-wrap;
font-family: monospace;
line-height: 1.4;
}
.model-info-popup .button-row {
display: flex;
gap: 10px;
margin-top: 10px;
padding-top: 5px;
border-top: 1px solid #444;
flex-wrap: wrap;
justify-content: center;
}
.model-info-popup .info-button {
padding: 3px 5px;
border: none;
border-radius: 2px;
cursor: pointer;
font-size: 0.9em;
transition: all 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 3px;
}
/* Style for icon buttons */
.model-info-popup .info-button.icon-button {
width: 36px;
height: 36px;
padding: 8px;
min-width: unset;
}
.model-info-popup .info-button.nsfw-toggle {
min-width: 36px;
}
.model-info-popup .info-button.nsfw-toggle.nsfw-true {
background-color: #ff4444;
color: white;
}
.model-info-popup .info-button.nsfw-toggle.nsfw-false {
background-color: #4CAF50;
color: white;
}
.model-info-popup .info-button.icon-button {
background-color: #555;
color: white;
}
.model-info-popup .info-button:hover {
filter: brightness(1.1);
transform: translateY(-1px);
}
.model-info-popup .info-button.icon-button.delete-button {
background-color: #ff4444;
}
.model-info-popup .info-button.icon-button.refresh-button {
background-color: #0033ff;
}
.model-info-popup .delete-button:hover {
background-color: #ff6666;
}
.confirm-delete-popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #222;
padding: 20px;
border-radius: 8px;
z-index: 1001;
max-width: 500px;
text-align: center;
}
.confirm-delete-popup .file-location-label {
text-align: center;
margin-bottom: 4px;
color: #d1d1d1;
}
.confirm-delete-popup .file-location {
text-align: center;
font-size: 0.9em;
color: #000000;
font-weight: bold;
padding: 8px;
background: #f0f0f0;
border-radius: 4px;
margin: 0 0 10px 0;
word-break: break-all;
font-family: monospace;
}
.confirm-delete-popup p {
margin-bottom: 20px;
}
.confirm-buttons {
display: flex;
justify-content: space-around;
}
.confirm-buttons button {
padding: 8px 16px;
border: none;
border-radius: 4px;
cursor: pointer;
}
.confirm-buttons button:first-child {
background-color: #ccc;
color: #333;
}
.confirm-buttons button:last-child {
background-color: #ff4444;
color: white;
}
.model-info-popup h4 {
margin: 0;
color: #aaa;
}
.model-info-popup .trained-words,
.model-info-popup .tags {
margin-bottom: 10px;
}
.word-pills {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin-top: 5px;
}
.word-pill {
background-color: #4a6da7;
color: white;
padding: 3px 8px;
border-radius: 12px;
font-size: 0.9em;
cursor: pointer;
transition: background-color 0.2s;
}
.word-pill:hover {
background-color: #5a7db7;
}
.copy-all-button {
background-color: #4CAF50;
color: white;
border: none;
padding: 5px 10px;
border-radius: 4px;
cursor: pointer;
margin-top: 10px;
}
.copy-all-button:hover {
background-color: #45a049;
}
.model-info-popup .media-container {
position: relative;
margin: 15px 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 320px; /* So window doesn't pop closed */
overflow: visible; /* Allow content to overflow for zoom effect */
}
.model-info-popup .media-container img,
.model-info-popup .media-container video {
max-width: 100%;
max-height: 300px; /* Adjust this value based on your needs */
object-fit: contain;
border-radius: 5px;
transition: transform 0.3s ease, z-index 0.3s ease;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.model-info-popup .carousel-button {
background: rgba(0, 0, 0, 0.5);
border: none;
color: #fff;
font-size: 18px;
padding: 8px 12px;
cursor: pointer;
position: absolute;
top: 50%;
transform: translateY(-50%);
border-radius: 50%;
transition: background-color 0.2s ease;
z-index: 2;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-user-drag: none;
}
.model-info-popup .carousel-button:hover {
background-color: rgba(0, 0, 0, 0.7);
}
.model-info-popup .carousel-button.prev {
left: 10px;
}
.model-info-popup .carousel-button.next {
right: 10px;
}
.label-pills {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: 8px 0;
}
.label-pill {
padding: 3px 8px;
border-radius: 12px;
font-size: 0.85em;
font-weight: 500;
height: 21px;
display: inline-flex;
align-items: center;
justify-content: center;
line-height: 21px;
min-width: 30px;
box-sizing: border-box;
}
.label-pill.model {
background-color: #666666;
color: white;
font-weight: 750;
}
.label-pill.type {
background-color: #ff9944;
color: white;
font-weight: 550;
}
.weight-container {
margin: 10px 0;
display: flex;
align-items: center;
gap: 8px;
}
.weight-container h4 {
margin: 0;
color: #aaa;
}
.weight-display {
display: flex;
align-items: center;
gap: 8px;
}
.weight-value {
font-size: 1em;
color: white;
}
.weight-input {
width: 60px;
background-color: #333;
border: 1px solid #555;
color: white;
padding: 2px 4px;
border-radius: 4px;
font-size: 1em;
}
.weight-edit-icon {
cursor: pointer;
color: #4a6da7;
padding: 4px;
border-radius: 4px;
transition: background-color 0.2s ease;
}
.weight-edit-icon:hover {
background-color: rgba(74, 109, 167, 0.2);
}
.weight-save-icon {
cursor: pointer;
color: #4CAF50;
padding: 4px;
border-radius: 4px;
transition: background-color 0.2s ease;
}
.weight-save-icon:hover {
background-color: rgba(76, 175, 80, 0.2);
}
.version-id-container {
margin: 10px 0;
display: flex;
align-items: center;
gap: 8px;
}
.version-id-container h4 {
margin: 0;
color: #aaa;
}
.version-display {
display: flex;
align-items: center;
gap: 8px;
}
.version-value {
font-size: 1em;
color: white;
}
.version-input {
width: 100px;
background-color: #333;
border: 1px solid #555;
color: white;
padding: 2px 4px;
border-radius: 4px;
font-size: 1em;
}
.version-edit-icon {
cursor: pointer;
color: #4a6da7;
padding: 4px;
border-radius: 4px;
transition: background-color 0.2s ease;
}
.version-edit-icon:hover {
background-color: rgba(74, 109, 167, 0.2);
}
.version-save-icon {
cursor: pointer;
color: #4CAF50;
padding: 4px;
border-radius: 4px;
transition: background-color 0.2s ease;
}
.version-save-icon:hover {
background-color: rgba(76, 175, 80, 0.2);
}
.lora-preview-popup {
background: #1f1f1f;
border: 1px solid #333;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
padding: 12px;
width: 100%;
max-width: 256px; /* Ensure it doesn't grow */
}
.lora-preview-popup .p-panel-content {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
width: 100%;
}
.lora-preview-popup img {
display: block;
border-radius: 4px;
}
.lora-preview-popup .mt-2 {
margin-top: 0.75rem;
width: 100%;
}
.lora-preview-popup .text-sm {
width: 100%;
margin-top: 0.5rem;
word-wrap: break-word; /* Ensure text wraps */
overflow-wrap: break-word;
}
.lora-preview-info {
display: flex;
flex-direction: column;
gap: 4px;
}
.lora-preview-info .lora-name {
font-weight: bold;
color: var(--fg-color);
}
.lora-preview-info .lora-description {
font-size: 0.9em;
color: var(--fg-color);
opacity: 0.8;
}
.lora-preview-info .lora-trigger {
font-size: 0.9em;
color: var(--fg-color);
opacity: 0.7;
font-style: italic;
}
.description-icon {
cursor: pointer;
color: #4a6da7;
font-size: 18px;
padding: 4px;
border-radius: 50%;
transition: background-color 0.2s ease;
}
.description-icon:hover {
background-color: rgba(74, 109, 167, 0.2);
}
.description-popup {
position: fixed;
background: #2a2a2a;
border: 1px solid #444;
border-radius: 8px;
padding: 15px;
padding-right: 35px;
width: 350px;
max-width: 90vw;
max-height: 80vh;
overflow-y: auto;
overflow-x: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
z-index: 1002;
}
.description-popup a {
color: #4a6da7;
text-decoration: underline;
}
.description-popup.has-media {
width: auto;
min-width: 350px;
}
.description-popup img {
max-width: 100%;
height: auto;
}
.description-popup p {
margin: 8px 0;
word-wrap: break-word;
}
.description-popup:empty {
display: none;
}
.model-info-popup .version-info {
display: flex;
flex-direction: column;
gap: 4px;
}
.version-desc {
font-style: italic;
color: #ccc;
margin-top: -3px; /* Reduce space between version name and description */
}
.version-desc-container {
white-space: pre-wrap; /* CSS3 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
word-break: break-word; /* For very long unbroken strings */
max-width: 100%;
}
.version-desc p {
margin: 3px 0;
}
.version-desc pre {
background-color: #2a2a2a;
padding: 5px;
border-radius: 3px;
}
.version-desc code {
font-family: monospace;
background-color: #2a2a2a;
padding: 1px 3px;
border-radius: 2px;
}
.description-popup .close-button {
position: absolute;
top: 8px;
right: 8px;
background: none;
border: none;
color: #fff;
font-size: 18px;
cursor: pointer;
padding: 4px 8px;
border-radius: 4px;
}
.description-popup .close-button:hover {
background-color: rgba(255, 255, 255, 0.1);
}
.lora-category {
margin-bottom: 5px;
}
.category-header {
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
padding: 3px;
background-color: #3b3b3b;
border-radius: 5px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.category-title {
margin: 0;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.category-toggle {
font-size: 12px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.lora-items-container {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 3px;
padding-top: 5px;
justify-content: center;
transition: max-height 0.3s ease-out;
overflow: hidden;
}
.search-container {
display: flex;
margin-bottom: 10px;
position: relative;
border: 1px solid #ccc;
border-radius: 4px;
overflow: hidden; /* This ensures the child elements don't overflow the rounded corners */
}
.search-input {
width: 100%;
padding: 8px;
padding-right: 30px; /* Make room for the clear button */
border: none; /* Remove the border from the input */
font-size: 14px;
background-color: rgba(255, 255, 255, 0.1);
color: inherit;
}
.search-clear {
position: absolute;
right: 0;
top: 0;
bottom: 0;
width: 30px; /* Fixed width for the button */
background: none;
border: none;
border-left: 1px solid #ccc; /* Add a left border */
cursor: pointer;
font-size: 18px;
color: #888;
transition: color 0.2s ease, background-color 0.2s ease;
display: flex;
align-items: center;
justify-content: center;
}
.search-clear:hover {
color: #ff4444;
background-color: rgba(255, 255, 255, 0.1); /* Slight background on hover */
}
.model-filter-dropdown {
width: 100%;
padding: 8px;
margin-bottom: 10px;
border: 1px solid var(--border-color-light, #4B5563);
border-radius: 4px;
background-color: var(--input-background-color, #2a2e33);
color: var(--input-text-color, #E2E8F0);
font-size: 14px;
}
.lora-item.nsfw {
position: relative;
}
.lora-item.nsfw::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.75);
z-index: 1;
pointer-events: none;
}
.lora-item .nsfw-label {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #ff4444;
color: white;
padding: 5px 10px;
border-radius: 5px;
font-weight: bold;
z-index: 2;
}
.nsfw-warning {
background-color: #ffeeee;
border: 1px solid #ffcccc;
padding: 10px;
margin-top: 10px;
border-radius: 5px;
}
.loading-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
height: 100vh;
width: 100%;
background-color: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
backdrop-filter: blur(2px);
}
.spinner-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
margin-top: -25vh;
}
.spinner {
width: 50px;
height: 50px;
border: 5px solid transparent;
border-top-color: transparent;
border-radius: 50%;
background-image: conic-gradient(red, orange, yellow, green, blue, indigo, violet, red);
animation: spin 1s linear infinite, rainbow 3s linear infinite;
mask: radial-gradient(farthest-side, transparent calc(100% - 5px), black);
}
.spinner-container p {
font-weight: 125;
text-align: center;
padding: 20px;
}
.spinner-container h2 {
font-size: 18px;
}
.loading-text {
color: white;
margin: 0;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
@keyframes rainbow {
0% { filter: hue-rotate(0deg); }
100% { filter: hue-rotate(360deg); }
}
progress {
width: 100%;
height: 5px;
margin-top: 10px;
}
progress::-webkit-progress-bar {
background-color: #f0f0f0;
border-radius: 2px;
}
progress::-webkit-progress-value {
background-color: #4CAF50;
border-radius: 2px;
}
progress::-moz-progress-bar {
background-color: #4CAF50;
border-radius: 2px;
}
@media (max-width: 768px) {
.lora-items-container {
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
}
.lora-item {
min-width: 100px;
}
.lora-buttons button {
width: 20px;
height: 20px;
font-size: 12px;
}
}