Gitlab@Informatics

Skip to content
Snippets Groups Projects
Select Git revision
  • 5327b6bb52126d2c30a109783574f3f83f0bf6ec
  • main default protected
2 results

styles.css

Blame
  • styles.css 3.28 KiB
    /* รีเซ็ตค่าเริ่มต้น */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Arial', sans-serif;
    }
    
    body {
      background-color: #f4f4f4;
      color: #333;
      line-height: 1.6;
    }
    
    /* HEADER */
    header {
      background: #4D55CC;
      color: #fff;
      padding: 20px;
      text-align: center;
    }
    
    nav {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin-top: 10px;
    }
    
    nav a {
      color: #fff;
      text-decoration: none;
      font-weight: bold;
      padding: 10px 15px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 5px;
      transition: 0.3s;
    }
    
    nav a:hover {
      background: rgba(255, 255, 255, 0.5);
    }
    
    .header {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 20px;
      background-color: #4c4cd9; /* สีพื้นหลัง */
      color: white;
    }
    
    .login-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      background-color: transparent;
      color: white;
      border: 2px solid white;
      padding: 10px 20px;
      font-size: 16px;
      font-weight: bold;
      cursor: pointer;
      border-radius: 8px;
      transition: all 0.3s ease;
    }
    
    .login-btn:hover {
      background-color: rgba(255, 255, 255, 0.2);
    }
    
    .login-btn i {
      font-size: 18px;
    }
    
    /* SEARCH BAR */
    form {
      display: inline-flex;
      margin-top: 10px;
    }
    
    button {
      padding: 8px 12px;
      border: none;
      background: #ff5722;
      color: white;
      border-radius: 0 5px 5px 0;
      cursor: pointer;
      transition: 0.3s;
    }
    
    button:hover {
      background: #e64a19;
    }
    
    /* SECTION */
    section {
      max-width: 800px;
      margin: 30px auto;
      background: white;
      padding: 20px;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
      border-radius: 10px;
    }
    
    h2 {
      color: #0073e6;
      text-align: center;
      margin-bottom: 15px;
    }
    
    /* TOUR LIST */
    ul {
      list-style: none;
    }
    
    ul li {
      background: #fff;
      padding: 15px;
      margin: 10px 0;
      border-left: 5px solid #0073e6;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    ul li a {
      text-decoration: none;
      color: #0073e6;
      font-weight: bold;
    }
    
    ul li a:hover {
      text-decoration: underline;
    }
    
    /* BUTTONS */
    .btn-create, .btn-edit, .btn-delete {
      padding: 8px 12px;
      border: none;
      color: white;
      border-radius: 5px;
      text-decoration: none;
      cursor: pointer;
      transition: 0.3s;
    }
    
    .btn-create {
      background: #28a745;
    }
    
    .btn-edit {
      background: #ffc107;
    }
    
    .btn-delete {
      background: #dc3545;
    }
    
    .btn-create:hover {
      background: #218838;
    }
    
    .btn-edit:hover {
      background: #e0a800;
    }
    
    .btn-delete:hover {
      background: #c82333;
    }
    
    /* FOOTER */
    footer {
      text-align: center;
      padding: 20px;
      background: #333;
      color: white;
      margin-top: 30px;
    }
    
    .search-container {
      display: flex;
      align-items: center;
      width: 100%;
      max-width: 400px;
      border: 2px solid #007BFF;
      border-radius: 25px;
      overflow: hidden;
      background: white;
    }
    
    .search-container input {
      flex: 1;
      padding: 10px 15px;
      border: none;
      outline: none;
      font-size: 16px;
    }
    
    .search-container button {
      background-color: #007BFF;
      color: white;
      border: none;
      padding: 10px 20px;
      font-size: 16px;
      cursor: pointer;
      transition: background-color 0.3s ease, transform 0.2s ease;
    }
    
    .search-container button:hover {
      background-color: #0056b3;
      transform: scale(1.05);
    }
    
    .search-container button:active {
      background-color: #004494;
      transform: scale(0.98);
    }