potree_build/src/components/ModelSelection.css
Georgy Shive 1fd0f658ea добавлены кнопки переключения режима просмотра и редактирования
как в меню выбора модели так и в панели настроек модели
добавлено исключающее отображение панели настроек в режиме просмотра
расположение сайдбара и панели настроек располагаются в верхней левой части экрана
2025-06-10 13:48:48 +07:00

773 lines
15 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* Страница выбора моделей в фирменном стиле */
.model-selection-page {
min-height: 100vh;
background: linear-gradient(135deg, #f5f8fa 0%, #e4e6ef 50%, #f5f8fa 100%);
position: relative;
overflow: hidden;
padding: 1rem;
}
/* Анимированный фон */
.model-selection-page::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(circle at 20% 80%, rgba(54, 153, 255, 0.1) 0%, transparent 50%),
radial-gradient(circle at 80% 20%, rgba(54, 153, 255, 0.1) 0%, transparent 50%),
radial-gradient(circle at 40% 40%, rgba(54, 153, 255, 0.05) 0%, transparent 50%);
animation: backgroundPulse 8s ease-in-out infinite;
}
@keyframes backgroundPulse {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}
/* Основной контейнер */
.model-selection-container {
position: relative;
z-index: 1;
max-width: 1400px;
margin: 0 auto;
animation: containerSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
/* Заголовок страницы */
.model-selection-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 3rem;
backdrop-filter: blur(10px);
border-radius: 16px;
padding: 2rem;
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(54, 153, 255, 0.1);
box-shadow:
0 20px 40px rgba(54, 153, 255, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
animation: headerFadeIn 1s ease-out both;
}
.header-content {
flex: 1;
text-align: center;
}
.model-selection-title {
font-size: 2.5rem;
font-weight: 700;
color: #181c32;
margin: 0 0 0.5rem 0;
background: linear-gradient(135deg, #3699ff, #009ef6);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-shadow: 0 2px 10px rgba(54, 153, 255, 0.2);
}
.model-selection-subtitle {
font-size: 1.1rem;
color: #7e8299;
margin: 0;
font-weight: 400;
}
/* Кнопка выхода справа сверху */
.logout-btn {
background: rgba(246, 78, 96, 0.1);
border: 1px solid rgba(246, 78, 96, 0.2);
border-radius: 12px;
width: 48px;
height: 48px;
font-size: 20px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
display: flex;
align-items: center;
justify-content: center;
color: #f64e60;
backdrop-filter: blur(10px);
position: relative;
overflow: hidden;
flex-shrink: 0;
}
.logout-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(246, 78, 96, 0.1), transparent);
transition: left 0.5s ease;
}
.logout-btn:hover::before {
left: 100%;
}
.logout-btn:hover {
background: rgba(246, 78, 96, 0.2);
border-color: rgba(246, 78, 96, 0.3);
transform: scale(1.05);
box-shadow: 0 4px 15px rgba(246, 78, 96, 0.2);
color: #ee2d41;
}
.header-actions {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
/* Кнопки в фирменном стиле */
.model-btn {
padding: 12px 24px;
border: none;
border-radius: 8px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
text-decoration: none;
display: inline-flex;
align-items: center;
gap: 8px;
backdrop-filter: blur(10px);
position: relative;
overflow: hidden;
}
.model-btn::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
transition: left 0.5s ease;
}
.model-btn:hover::before {
left: 100%;
}
.model-btn-primary {
background: linear-gradient(135deg, #3699ff, #009ef6);
color: white;
box-shadow: 0 4px 15px rgba(54, 153, 255, 0.3);
}
.model-btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(54, 153, 255, 0.4);
}
.model-btn-secondary {
background: #f5f8fa;
color: #7e8299;
border: 1px solid #e4e6ef;
}
.model-btn-secondary:hover {
background: #eff2f5;
color: #5e6278;
transform: translateY(-2px);
}
.model-btn-danger {
background: linear-gradient(135deg, #f64e60, #ee2d41);
color: white;
box-shadow: 0 4px 15px rgba(246, 78, 96, 0.3);
}
.model-btn-danger:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(246, 78, 96, 0.4);
}
/* Сетка моделей */
.models-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 2rem;
animation: gridFadeIn 1.2s ease-out both;
}
/* Карточка модели */
.model-card {
backdrop-filter: blur(10px);
border-radius: 16px;
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(54, 153, 255, 0.1);
box-shadow:
0 20px 40px rgba(54, 153, 255, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
overflow: hidden;
position: relative;
animation: cardSlideUp 0.8s ease-out both;
}
.model-card:nth-child(1) { animation-delay: 0.1s; }
.model-card:nth-child(2) { animation-delay: 0.2s; }
.model-card:nth-child(3) { animation-delay: 0.3s; }
.model-card:nth-child(4) { animation-delay: 0.4s; }
.model-card:nth-child(5) { animation-delay: 0.5s; }
.model-card:nth-child(6) { animation-delay: 0.6s; }
.model-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow:
0 30px 60px rgba(54, 153, 255, 0.2),
0 0 30px rgba(54, 153, 255, 0.15),
inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
/* Предпросмотр модели */
.model-preview {
position: relative;
height: 220px;
overflow: hidden;
background: linear-gradient(135deg, rgba(54, 153, 255, 0.1), rgba(54, 153, 255, 0.05));
}
.preview-image {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.4s ease;
}
.model-card:hover .preview-image {
transform: scale(1.1);
}
.preview-placeholder {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
color: #7e8299;
background: linear-gradient(135deg, rgba(54, 153, 255, 0.1), rgba(54, 153, 255, 0.05));
}
.preview-placeholder.hidden {
display: none;
}
.preview-icon {
font-size: 48px;
margin-bottom: 10px;
opacity: 0.5;
}
/* Контролы предпросмотра */
.preview-controls {
position: absolute;
top: 12px;
right: 12px;
display: flex;
gap: 8px;
align-items: center;
}
.btn-upload-image {
background: rgba(255, 255, 255, 0.9);
border: none;
border-radius: 50%;
width: 44px;
height: 44px;
font-size: 20px;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
color: #7e8299;
backdrop-filter: blur(10px);
border: 1px solid rgba(54, 153, 255, 0.2);
}
.btn-upload-image:hover {
background: rgba(54, 153, 255, 0.9);
color: white;
transform: scale(1.1);
box-shadow: 0 4px 15px rgba(54, 153, 255, 0.4);
}
.btn-upload-image:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.custom-preview-badge {
background: linear-gradient(135deg, #FFD700, #FFA500);
color: white;
border-radius: 50%;
width: 36px;
height: 36px;
display: flex;
align-items: center;
justify-content: center;
font-size: 16px;
box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
animation: sparkle 2s ease-in-out infinite;
}
@keyframes sparkle {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.1); }
}
/* Информация о модели */
.model-info {
padding: 2rem;
color: #181c32;
}
.model-alias {
margin-bottom: 1.5rem;
}
.alias-display {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
}
.alias-display h3 {
margin: 0;
color: #181c32;
font-size: 1.4rem;
font-weight: 600;
flex: 1;
word-break: break-word;
}
.btn-edit-alias {
background: #f5f8fa;
border: 1px solid #e4e6ef;
font-size: 16px;
padding: 8px;
cursor: pointer;
opacity: 0.7;
transition: all 0.3s ease;
border-radius: 6px;
color: #7e8299;
backdrop-filter: blur(10px);
}
.btn-edit-alias:hover {
opacity: 1;
background: rgba(54, 153, 255, 0.1);
border-color: rgba(54, 153, 255, 0.2);
color: #3699ff;
transform: scale(1.1);
}
/* Редактирование алиаса */
.alias-edit {
display: flex;
gap: 10px;
align-items: center;
}
.alias-input {
flex: 1;
padding: 12px 16px;
border: 2px solid rgba(54, 153, 255, 0.3);
border-radius: 8px;
font-size: 16px;
font-weight: 600;
outline: none;
transition: all 0.3s ease;
background: #ffffff;
color: #181c32;
backdrop-filter: blur(10px);
}
.alias-input:focus {
border-color: #3699ff;
box-shadow: 0 0 20px rgba(54, 153, 255, 0.3);
background: #ffffff;
}
.alias-input::placeholder {
color: #b5b5c3;
}
.alias-actions {
display: flex;
gap: 6px;
}
.btn-save {
background: linear-gradient(135deg, #1bc5bd, #0bb7af);
color: white;
border: none;
border-radius: 6px;
padding: 8px 12px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
}
.btn-save:hover {
transform: scale(1.05);
box-shadow: 0 4px 15px rgba(27, 197, 189, 0.4);
}
.btn-cancel {
background: linear-gradient(135deg, #f64e60, #ee2d41);
color: white;
border: none;
border-radius: 6px;
padding: 8px 12px;
cursor: pointer;
transition: all 0.3s ease;
font-weight: 600;
}
.btn-cancel:hover {
transform: scale(1.05);
box-shadow: 0 4px 15px rgba(246, 78, 96, 0.4);
}
/* Детали модели */
.model-details {
padding: 1.5rem;
color: #181c32;
}
.model-filename {
font-size: 0.9rem;
color: #7e8299;
margin-bottom: 0.5rem;
word-break: break-word;
}
.model-meta {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
font-size: 0.8rem;
}
.model-size,
.model-date {
color: #5e6278;
background: #f5f8fa;
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
}
.model-type {
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.model-type-potree {
background: linear-gradient(135deg, #1bc5bd, #0bb7af);
color: white;
}
.model-type-copc {
background: linear-gradient(135deg, #3699ff, #009ef6);
color: white;
}
.model-type-las,
.model-type-laz {
background: linear-gradient(135deg, #ffa800, #ee9d01);
color: white;
}
.model-type-ply {
background: linear-gradient(135deg, #8950fc, #7337ee);
color: white;
}
/* Контейнер кнопок действий */
.model-actions {
display: flex;
gap: 8px;
width: 100%;
}
/* Базовые стили кнопок выбора модели */
.btn-select {
flex: 1;
padding: 12px 16px;
font-size: 14px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
border: none;
border-radius: 8px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
position: relative;
overflow: hidden;
}
.btn-select::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: left 0.5s ease;
}
.btn-select:hover::before {
left: 100%;
}
.btn-select:hover {
transform: translateY(-2px);
}
/* Кнопка просмотра */
.btn-view {
background: linear-gradient(135deg, #50cd89, #47be7d);
color: white;
}
.btn-view:hover {
box-shadow: 0 6px 20px rgba(80, 205, 137, 0.4);
}
/* Кнопка редактирования */
.btn-edit {
background: linear-gradient(135deg, #3699ff, #009ef6);
color: white;
}
.btn-edit:hover {
box-shadow: 0 6px 20px rgba(54, 153, 255, 0.4);
}
/* Состояние отсутствия моделей */
.no-models {
text-align: center;
padding: 4rem 2rem;
backdrop-filter: blur(10px);
border-radius: 16px;
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(54, 153, 255, 0.1);
box-shadow:
0 20px 40px rgba(54, 153, 255, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
margin: 0 auto;
max-width: 600px;
animation: containerSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.no-models-icon {
font-size: 72px;
margin-bottom: 2rem;
opacity: 0.6;
}
.no-models h3 {
color: #181c32;
margin-bottom: 1rem;
font-size: 1.8rem;
font-weight: 600;
}
.no-models p {
color: #7e8299;
margin-bottom: 1rem;
line-height: 1.6;
font-size: 1.1rem;
}
/* Контейнер ошибки */
.error-container {
text-align: center;
padding: 4rem 2rem;
backdrop-filter: blur(10px);
border-radius: 16px;
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(246, 78, 96, 0.2);
box-shadow:
0 20px 40px rgba(246, 78, 96, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
margin: 0 auto;
max-width: 600px;
animation: containerSlideIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.error-container h2 {
color: #f64e60;
margin-bottom: 1rem;
font-size: 1.8rem;
}
.error-container p {
color: #7e8299;
margin-bottom: 2rem;
line-height: 1.6;
font-size: 1.1rem;
}
.error-actions {
display: flex;
gap: 1rem;
justify-content: center;
flex-wrap: wrap;
}
/* Анимации */
@keyframes containerSlideIn {
0% {
opacity: 0;
transform: translateY(50px) scale(0.9);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@keyframes headerFadeIn {
0% {
opacity: 0;
transform: translateY(-30px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes gridFadeIn {
0% {
opacity: 0;
transform: translateY(40px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
@keyframes cardSlideUp {
0% {
opacity: 0;
transform: translateY(60px) scale(0.8);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* Адаптивность */
@media (max-width: 768px) {
.model-selection-page {
padding: 0.5rem;
}
.model-selection-header {
padding: 1.5rem;
margin-bottom: 2rem;
flex-direction: column;
align-items: center;
gap: 1rem;
}
.header-content {
order: 2;
}
.logout-btn {
order: 1;
align-self: flex-end;
}
.model-selection-title {
font-size: 2rem;
}
.model-selection-subtitle {
font-size: 1rem;
}
.models-grid {
grid-template-columns: 1fr;
gap: 1.5rem;
}
.model-card {
margin: 0;
}
.model-info {
padding: 1.5rem;
}
.detail-value {
max-width: 150px;
}
.error-actions {
flex-direction: column;
align-items: center;
}
.no-models, .error-container {
padding: 2rem 1rem;
}
.model-actions {
flex-direction: column;
gap: 6px;
}
.btn-select {
padding: 10px 12px;
font-size: 13px;
}
}
@media (max-width: 480px) {
.model-selection-header {
padding: 1rem;
}
.model-selection-title {
font-size: 1.6rem;
}
.model-selection-subtitle {
font-size: 0.9rem;
}
.logout-btn {
width: 40px;
height: 40px;
font-size: 18px;
}
}