Select Git revision
MyCombinationPage.css 5.70 KiB
.layout {
display: flex;
min-height: calc(100vh - 64px);
background-color: var(--background-light);
gap: 2rem;
padding: 2rem;
}
.sidebar {
flex: 1;
max-width: 300px;
padding: 1.5rem;
background-color: var(--background-white);
border-radius: 12px;
box-shadow: var(--shadow-sm);
height: fit-content;
}
.sidebar h3 {
color: var(--primary-color);
font-size: 1.5rem;
margin-bottom: 1.5rem;
font-weight: 600;
text-align: center;
}
.pc-item {
position: relative;
padding: 10px;
border-bottom: 1px solid #eee;
transition: all 0.3s ease;
}
.pc-item.active {
background-color: var(--primary-light);
border-radius: 8px;
border-bottom: 1px solid var(--primary-light);
}
.pc-item.active .pc-item-content span {
color: var(--primary-color);
font-weight: 500;
}
.pc-item-content {
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
padding: 4px;
}
.edit-name-container {
display: flex;
flex-direction: column;
gap: 8px;
padding: 4px;
}
.edit-name-container input {
padding: 8px 12px;
border: 1px solid var(--border-color);
border-radius: 8px;
font-size: 14px;
transition: all 0.3s ease;
}
.edit-name-container input:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 2px var(--primary-light);
}
.edit-buttons {
display: flex;
gap: 8px;
}
.edit-buttons button {
padding: 6px 12px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
}
.edit-buttons button:first-child {
background-color: var(--primary-color);
color: white;
border: 1px solid var(--primary-color);
}
.edit-buttons button:first-child:hover {
background-color: var(--primary-color);
box-shadow: 0 0 0 3px var(--primary-light);
transform: translateY(-1px);
}
.edit-buttons button:first-child:disabled {
background-color: var(--primary-light);
border-color: var(--primary-light);
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.cancel-button {
background-color: var(--background-light);
border: 1px solid var(--border-color);
color: var(--text-primary);
}
.cancel-button:hover {
background-color: var(--background-white);
border-color: var(--text-primary);
transform: translateY(-1px);
}
.cancel-button:disabled {
background-color: var(--background-light);
border-color: var(--border-color);
color: var(--text-secondary);
cursor: not-allowed;
transform: none;
}
.edit-button {
padding: 4px 12px;
font-size: 13px;
background-color: var(--primary-color);
border: 1px solid var(--primary-color);
border-radius: 8px;
color: white;
cursor: pointer;
transition: all 0.3s ease;
}
.edit-button:hover {
background-color: var(--primary-color);
box-shadow: 0 0 0 3px var(--primary-light);
transform: translateY(-1px);
}
.error-message {
color: var(--error-color);
font-size: 12px;
margin-top: 4px;
}
.add-pc-btn {
width: 100%;
margin-top: 1.5rem;
padding: 0.75rem;
background-color: var(--background-light);
color: var(--primary-color);
border: 1px solid var(--primary-color);
border-radius: 8px;
cursor: pointer;
font-weight: 600;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.add-pc-btn:hover {
background-color: var(--primary-color);
color: white;
transform: translateY(-2px);
}
.add-pc-btn-link {
text-decoration: none;
color: inherit;
transition: color 0.3s ease;
}
.part-list {
flex: 3;
display: flex;
flex-direction: column;
gap: 1rem;
transition: opacity 0.3s ease;
opacity: 1;
}
.part-list.loading {
opacity: 0.5;
}
.part-item {
display: flex;
align-items: center;
padding: 1.5rem;
border-radius: 12px;
background-color: var(--background-white);
box-shadow: var(--shadow-sm);
transition: all 0.3s ease;
border: 1px solid transparent;
}
.part-item:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-md);
border-color: var(--primary-light);
}
.part-image {
width: 100px;
height: 100px;
margin-right: 1.5rem;
object-fit: contain;
padding: 0.75rem;
background-color: var(--background-light);
border-radius: 8px;
transition: all 0.3s ease;
}
.part-item:hover .part-image {
background-color: white;
box-shadow: var(--shadow-sm);
}
.part-info {
flex: 1;
}
.part-type {
display: inline-block;
font-size: 0.85rem;
font-weight: 600;
color: var(--primary-color);
margin-bottom: 0.75rem;
background-color: var(--background-light);
padding: 0.4rem 0.8rem;
border-radius: 6px;
border: 1px solid var(--primary-light);
letter-spacing: 0.5px;
}
.part-item:hover .part-type {
background-color: var(--primary-color);
color: white;
border-color: var(--primary-color);
}
.part-name {
font-size: 1.1rem;
color: var(--text-primary);
font-weight: 500;
line-height: 1.4;
}
@media (max-width: 768px) {
.layout {
flex-direction: column;
padding: 1rem;
gap: 1rem;
}
.sidebar {
max-width: 100%;
}
.part-item {
padding: 1rem;
}
.part-image {
width: 80px;
height: 80px;
margin-right: 1rem;
}
}
.pc-item-buttons {
display: flex;
gap: 8px;
}
.edit-button,
.delete-button {
padding: 4px 12px;
font-size: 13px;
background-color: var(--primary-color);
border: 1px solid var(--primary-color);
border-radius: 8px;
color: white;
cursor: pointer;
transition: all 0.3s ease;
}
.edit-button:hover,
.delete-button:hover {
background-color: var(--primary-color);
box-shadow: 0 0 0 3px var(--primary-light);
transform: translateY(-1px);
}
.edit-button:disabled,
.delete-button:disabled {
background-color: var(--primary-light);
border-color: var(--primary-light);
cursor: not-allowed;
transform: none;
box-shadow: none;
}