Gitlab@Informatics

Skip to content
Snippets Groups Projects
Select Git revision
  • 38495ff0f1cf47a2add6053e3584ab39678966fb
  • master default protected
2 results

brand-list.css

Blame
  • 65160256's avatar
    65160256 authored
    38495ff0
    History
    brand-list.css 5.41 KiB
    /* Reset some default styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      
      /* Basic body and background */
      body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #f4f6f9;
        color: #333;
        line-height: 1.6;
      }
      
      /* Navbar styling */
      .navbar {
        background-color: #007bff;
        color: white;
        padding: 15px 40px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        position: sticky;
        top: 0;
        z-index: 1000;
        border-radius: 10px;
      }
      
      .navbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 1200px;
        margin: 0 auto;
      }
      
      .logo {
        font-size: 28px;
        font-weight: bold;
        color: white;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 1.5px;
      }
      
      .navbar-links {
        list-style: none;
        display: flex;
        margin: 0;
      }
      
      .navbar-links li {
        margin-left: 25px;
      }
      
      .navbar-links a {
        color: white;
        text-decoration: none;
        font-size: 16px;
        padding: 10px 15px;
        border-radius: 5px;
        font-weight: 500;
        transition: background-color 0.3s, transform 0.3s ease;
      }
      
      .navbar-links a:hover {
        background-color: #2980b9;
        text-decoration: none;
        transform: scale(1.05);
      }
      
      /* รายการแบรนด์ */
      .brand-list-container {
        max-width: 900px;
        margin: 50px auto;
        padding: 30px;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      }
      
      .brand-list-container h1 {
        text-align: center;
        font-size: 28px;
        color: #343a40;
        margin-bottom: 30px;
      }
      
      /* ปุ่มสร้างแบรนด์ */
      .create-brand-btn {
        padding: 12px 25px;
        background-color: #28a745;
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-size: 16px;
        cursor: pointer;
        display: block;
        margin-bottom: 20px;
        text-align: center;
        transition: background-color 0.3s ease;
      }
      
      .create-brand-btn:hover {
        background-color: #218838;
      }
      
      /* ตารางแสดงข้อมูลแบรนด์ */
      .brand-table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 20px;
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      }
      
      .brand-table th,
      .brand-table td {
        padding: 12px;
        text-align: left;
        border-bottom: 1px solid #ddd;
      }
      
      .brand-table th {
        background-color: #007bff;
        color: white;
      }
      
      .brand-table td {
        background-color: #f9f9f9;
      }
      
      /* การจัดวางปุ่ม Edit และ Delete */
      .action-buttons {
        display: flex;
        gap: 10px; /* เพิ่มช่องว่างระหว่างปุ่ม */
      }
      
      .edit-btn,
      .delete-btn {
        padding: 6px 12px;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        transition: background-color 0.3s ease;
      }
      
      .edit-btn {
        background-color: #007bff;
      }
      
      .edit-btn:hover {
        background-color: #0056b3;
      }
      
      .delete-btn {
        background-color: #dc3545;
      }
      
      .delete-btn:hover {
        background-color: #c82333;
      }
      
      /* Responsive Design */
      @media (max-width: 768px) {
        .brand-list-container {
          padding: 20px;
        }
      
        .brand-table {
          font-size: 14px;
        }
      
        .create-brand-btn {
          width: 100%;
        }
      }
      
      /* ป๊อปอัพการยืนยันการลบ */
    #deletePopup {
      display: none;  /* ซ่อนป๊อปอัพเริ่มต้น */
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);  /* พื้นหลังโปร่งแสง */
      justify-content: center;
      align-items: center;
      z-index: 9999;
    }
    
    /* ป๊อปอัพที่อยู่ตรงกลาง */
    #deletePopup .popup-content {
      background-color: #fff;
      padding: 30px;
      border-radius: 8px;
      text-align: center;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      width: 400px;
      max-width: 90%;  /* ทำให้ป๊อปอัพมีขนาดย่อได้บนหน้าจอเล็ก */
    }
    
    #deletePopup .popup-content h3 {
      margin-bottom: 20px;
      font-size: 18px;
      font-weight: bold;
      color: #333;
    }
    
    #deletePopup .popup-content p {
      font-size: 16px;
      color: #666;
      margin-bottom: 20px;
    }
    
    #deletePopup .popup-content button {
      padding: 12px 20px;
      margin: 10px;
      background-color: #dc3545;  /* สีแดงสำหรับปุ่มยืนยันการลบ */
      color: white;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: 16px;
      transition: background-color 0.3s ease, transform 0.3s ease;
    }
    
    #deletePopup .popup-content button:hover {
      background-color: #c82333;  /* สีแดงเข้มเมื่อ hover */
      transform: scale(1.05);  /* ขยายขนาดเมื่อ hover */
    }
    
    #deletePopup .popup-content .cancel-btn {
      background-color: #6c757d;  /* สีเทาสำหรับปุ่มยกเลิก */
    }
    
    #deletePopup .popup-content .cancel-btn:hover {
      background-color: #5a6268;  /* สีเทาเข้มเมื่อ hover */
    }