Привет, вот мой css: [code] Можешь пожалуйста привести его в норму. Сейчас это просто хаос
- User
Привет, вот мой css:
/* workspace.css */ .workspace-tab { display: flex; padding: var(--base-gap); /* Add padding */ width: 100%; max-width: 1000px; flex-direction: column; align-items: center; font-size: 20px; } .workspace-tab h2 { font-size: 25px; /* Consistent title size */ color: var(--white-color); /* Consistent text color */ margin-bottom: var(--base-gap); /* Add margin below title */ } #username { color: var(--white-color); margin-bottom: 10px; } .progress-container { display: flex; align-items: center; color: var(--white-color); margin-bottom: var(--base-gap); } .workspace-container { display: flex; gap: var(--base-gap); /* Use base gap */ } .image-container { position: relative; /* For absolute positioning of annotations */ border: 1px solid var(--light-color-border); border-radius: var(--base-border-radius); overflow: hidden; /* Contains the image within its bounds */ } #image-display { width: 100%; /* Ensures the image fills its container */ height: auto; /* Maintains aspect ratio */ display: block; /* Prevents default spacing below the image */ } .classes-list { background-color: var(--light-color); border: 1px solid var(--light-color-border); border-radius: var(--base-border-radius); padding: var(--base-gap); } .class-item { cursor: pointer; color: white; padding: 3px 10px; margin-bottom: 10px; border-radius: 10px; border: 2px solid #ffffff; } .class-item.selected { outline: 2px solid #fff; } /* Annotation mode indicator */ #annotation-mode-indicator { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: var(--light-color); padding: 10px; border-radius: 10px; display: flex; align-items: center; gap: 10px; } #annotation-mode-indicator button { padding: 5px 10px; background-color: rgba(255, 0, 0, 0.8); color: white; border: none; border-radius: 5px; } #annotation-mode-indicator.hidden { display: none; } /* Rectangle styles */ .annotation { position: absolute; border: 2px dashed; cursor: move; } /* Остальное содержимое CSS */ /* Изменение стилей кнопки удаления */ .annotation .delete-handle { position: absolute; top: -10px; right: -10px; width: 20px; height: 20px; background-color: rgba(255,0,0,0.8); color: white; border-radius: 50%; text-align: center; line-height: 20px; font-size: 14px; cursor: pointer; display: none; /* Скрываем по умолчанию */ } .annotation:hover .delete-handle { display: block; /* Показываем при наведении на аннотацию */ } /* Стили для угловых точек ресайза */ /* Стандартные стили для .resize-handle */ .annotation .resize-handle { position: absolute; background-color: white; border: 1px solid black; cursor: nwse-resize; /* Начальные размеры устанавливаем на 0 */ width: 10px; height: 10px; transform: scale(0); opacity: 0; transition: transform 0.2s ease, opacity 0.2s ease; } /* Позиции для угловых точек */ .annotation .resize-handle.nw { top: -5px; left: -5px; } .annotation .resize-handle.ne { top: -5px; right: -5px; } .annotation .resize-handle.sw { bottom: -5px; left: -5px; } .annotation .resize-handle.se { bottom: -5px; right: -5px; } /* Класс для видимого состояния */ .annotation .resize-handle.visible { transform: scale(1); opacity: 1; } /* Дополнительный стиль для более плавной анимации появления */ .annotation .resize-handle { transition: all 0.2s ease; } #next-btn { background-color: rgba(0, 0, 255, 0.34); /* Consistent button style */ font-size: 15px; border-radius: 10px; color: white; font-weight: 700; margin-top: 10px; padding: var(--base-gap); /* Add padding to button */ } - Assistant