Skip to content
Snippets Groups Projects
Select Git revision
  • 8b27cc75f65be04ccdb630389ade78b49ffbef8d
  • main default protected
2 results

MyCombinationPage.css

Blame
  • MyCombinationPage.css 9.73 KiB
    .layout {
      display: flex;
      min-height: calc(100vh - 64px);
      background-color: var(--background-light);
      gap: 2rem;
      padding: 2rem;
    }
    
    .sidebar {
      position: sticky;
      top: 2rem;
      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;
      padding: 1rem;
      border-radius: 8px;
      background: linear-gradient(135deg, var(--background-white) 0%, rgba(var(--primary-rgb), 0.03) 100%);
      box-shadow: var(--shadow-sm);
      transition: all 0.3s ease;
      border: 1px solid rgba(var(--primary-rgb), 0.08);
      position: relative;
      overflow: hidden;
    }
    
    .part-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      width: 4px;
      height: 100%;
      background-color: var(--primary-light);
      transition: all 0.3s ease;
    }
    
    .part-main-info {
      display: flex;
      gap: 1.5rem;
      align-items: center;
      width: 100%;
      padding-left: 0.5rem;
    }
    
    .part-image {
      width: 100px;
      height: 100px;
      object-fit: contain;
      padding: 0.75rem;
      background-color: var(--background-light);
      border-radius: 8px;
      transition: all 0.3s ease;
      flex-shrink: 0;
    }
    
    .part-info {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .part-type {
      display: inline-block;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--primary-color);
      background-color: var(--background-light);
      padding: 0.4rem 0.8rem;
      border-radius: 6px;
      border: 1px solid var(--primary-light);
      letter-spacing: 0.5px;
      width: fit-content;
      transition: all 0.3s ease;
    }
    
    .part-name {
      font-size: 1.1rem;
      color: var(--text-primary);
      font-weight: 500;
      margin: 0;
    }
    
    .part-description {
      font-size: 0.95rem;
      color: var(--text-secondary);
      line-height: 1.4;
      margin: 0;
    }
    
    .part-item:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
      background: linear-gradient(135deg, var(--background-white) 0%, rgba(var(--primary-rgb), 0.07) 100%);
      border-color: var(--primary-color);
    }
    
    .part-item:hover .part-image {
      background-color: white;
      box-shadow: var(--shadow-sm);
    }
    
    .part-item:hover .part-type {
      background-color: var(--primary-color);
      color: white;
      border-color: var(--primary-color);
    }
    
    .part-item:hover::before {
      background-color: var(--primary-color);
    }
    
    @media (max-width: 768px) {
      .layout {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
      }
    
      .sidebar {
        position: static;
        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;
    }
    
    .part-list-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.5rem 2rem;
      margin-bottom: 1.5rem;
      background: linear-gradient(135deg, var(--background-white) 0%, var(--primary-light) 100%);
      border-radius: 12px;
      box-shadow: var(--shadow-sm);
      border: 1px solid rgba(var(--primary-rgb), 0.1);
      position: relative;
      overflow: hidden;
    }
    
    /* 배경에 부드러운 장식 효과 추가 */
    .part-list-header::before {
      content: '';
      position: absolute;
      top: 0;
      right: 0;
      width: 200px;
      height: 200px;
      background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
      transform: translate(30%, -30%);
    }
    
    .part-list-header h2 {
      margin: 0;
      font-size: 1.8rem;
      font-weight: 600;
      color: var(--text-primary);
      position: relative; /* 텍스트를 장식 위에 표시 */
    }
    
    .share-button {
      padding: 0.75rem 1.5rem;
      background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark, #0056b3) 100%);
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 1.1rem;
      font-weight: 500;
      transition: all 0.2s ease;
      box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.2);
      position: relative;
      overflow: hidden;
    }
    
    /* 버튼에 빛나는 효과 추가 */
    .share-button::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
      );
      transition: 0.5s;
    }
    
    .share-button:hover {
      background: linear-gradient(135deg, var(--primary-dark, #0056b3) 0%, var(--primary-color) 100%);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3);
    }
    
    .share-button:hover::before {
      left: 100%;
    }
    
    .share-button:active {
      transform: translateY(0);
    }
    
    /* 부품 아이템 카드도 파스텔톤으로 개선 */
    .part-item {
      display: flex;
      padding: 1.5rem;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--background-white) 0%, rgba(var(--primary-rgb), 0.03) 100%);
      box-shadow: var(--shadow-sm);
      transition: all 0.3s ease;
      border: 1px solid rgba(var(--primary-rgb), 0.08);
    }
    
    .part-main-info {
      display: flex;
      gap: 1.5rem;
      align-items: center;
      width: 100%;
    }
    
    .part-image {
      width: 100px;
      height: 100px;
      object-fit: contain;
      padding: 0.75rem;
      background-color: var(--background-light);
      border-radius: 8px;
      transition: all 0.3s ease;
      flex-shrink: 0;
    }
    
    .part-info {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }
    
    .part-type {
      display: inline-block;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--primary-color);
      background-color: var(--background-light);
      padding: 0.4rem 0.8rem;
      border-radius: 6px;
      border: 1px solid var(--primary-light);
      letter-spacing: 0.5px;
      width: fit-content;
      transition: all 0.3s ease;
    }
    
    .part-name {
      font-size: 1.1rem;
      color: var(--text-primary);
      font-weight: 500;
      margin: 0;
    }
    
    .part-description {
      font-size: 0.95rem;
      color: var(--text-secondary);
      line-height: 1.4;
      margin: 0;
    }
    
    /* 모바일 대응 */
    @media (max-width: 768px) {
      .part-list-header {
        padding: 1.2rem;
      }
    
      .part-list-header h2 {
        font-size: 1.5rem;
      }
    
      .share-button {
        padding: 0.5rem 1rem;
        font-size: 1rem;
      }
    }