Josif_tepe

Untitled

Nov 3rd, 2025
785
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 3.30 KB | None | 0 0
  1. /* ===== General Page Layout ===== */
  2. body {
  3.     font-family: Arial, Helvetica, sans-serif;
  4.     margin: 20px;
  5.     background-color: #fafafa;
  6.     color: #333;
  7.   }
  8.  
  9.   h1 {
  10.     color: #333;
  11.     margin-bottom: 20px;
  12.   }
  13.  
  14.   /* ===== Filters Section ===== */
  15.   .filters {
  16.     margin-bottom: 20px;
  17.     padding: 15px;
  18.     background-color: #f9f9f9;
  19.     border: 1px solid #ddd;
  20.     border-radius: 5px;
  21.   }
  22.  
  23.   .filters > div {
  24.     display: inline-block;
  25.     margin-right: 15px;
  26.     margin-bottom: 10px;
  27.   }
  28.  
  29.   .filters label {
  30.     font-weight: bold;
  31.     margin-right: 5px;
  32.   }
  33.  
  34.   .filters input[type="text"],
  35.   .filters input[type="number"],
  36.   .filters select {
  37.     padding: 5px;
  38.     border: 1px solid #ccc;
  39.     border-radius: 3px;
  40.   }
  41.  
  42.   .filters button,
  43.   .btn {
  44.     padding: 6px 15px;
  45.     background-color: #007bff;
  46.     color: white;
  47.     border: none;
  48.     border-radius: 3px;
  49.     cursor: pointer;
  50.   }
  51.  
  52.   .filters button:hover,
  53.   .btn:hover {
  54.     background-color: #0056b3;
  55.   }
  56.  
  57.   /* ===== Table ===== */
  58.   .table {
  59.     width: 100%;
  60.     border-collapse: collapse;
  61.     margin-top: 10px;
  62.     background-color: white;
  63.   }
  64.  
  65.   .table th,
  66.   .table td {
  67.     border: 1px solid #ddd;
  68.     padding: 8px;
  69.     text-align: left;
  70.   }
  71.  
  72.   .table th {
  73.     background-color: #f2f2f2;
  74.     font-weight: bold;
  75.     cursor: pointer;
  76.   }
  77.  
  78.   .table th.sort-asc::after {
  79.     content: " ▲";
  80.     color: #007bff;
  81.   }
  82.  
  83.   .table th.sort-desc::after {
  84.     content: " ▼";
  85.     color: #007bff;
  86.   }
  87.  
  88.   .table tr:nth-child(even) {
  89.     background-color: #f9f9f9;
  90.   }
  91.  
  92.   .table tr:hover {
  93.     background-color: #f1f1f1;
  94.   }
  95.  
  96.   .table a {
  97.     color: #007bff;
  98.     text-decoration: none;
  99.   }
  100.  
  101.   .table a:hover {
  102.     text-decoration: underline;
  103.   }
  104.  
  105.   /* ===== Old grid layout (optional, kept for reference) ===== */
  106.   .author-header-table,
  107.   .author-row {
  108.     display: none; /* disabled in new version, since we use table instead */
  109.   }
  110.  
  111.   /* ===== Modal ===== */
  112.   .modal {
  113.     display: none;
  114.     position: fixed;
  115.     z-index: 10;
  116.     left: 0;
  117.     top: 0;
  118.     right: 0;
  119.     bottom: 0;
  120.     background-color: rgba(0, 0, 0, 0.6);
  121.     align-items: center;
  122.     justify-content: center;
  123.   }
  124.  
  125.   .modal-content {
  126.     background: #fff;
  127.     padding: 20px 30px;
  128.     border-radius: 6px;
  129.     max-width: 700px;
  130.     width: 90%;
  131.     box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  132.     position: relative;
  133.     animation: fadeIn 0.3s ease;
  134.   }
  135.  
  136.   @keyframes fadeIn {
  137.     from { opacity: 0; transform: scale(0.95); }
  138.     to { opacity: 1; transform: scale(1); }
  139.   }
  140.  
  141.   .close-btn {
  142.     position: absolute;
  143.     top: 10px;
  144.     right: 15px;
  145.     font-size: 20px;
  146.     background: none;
  147.     border: none;
  148.     color: #888;
  149.     cursor: pointer;
  150.   }
  151.  
  152.   .close-btn:hover {
  153.     color: #000;
  154.   }
  155.  
  156.   /* ===== Modal Books Table ===== */
  157.   #booksTable {
  158.     width: 100%;
  159.     border-collapse: collapse;
  160.     margin-top: 15px;
  161.   }
  162.  
  163.   #booksTable th,
  164.   #booksTable td {
  165.     border: 1px solid #ddd;
  166.     padding: 8px;
  167.     text-align: left;
  168.   }
  169.  
  170.   #booksTable th {
  171.     background-color: #f2f2f2;
  172.     font-weight: bold;
  173.   }
  174.  
  175.   /* ===== Sorting Indicators ===== */
  176.   .sorted {
  177.     color: #007bff;
  178.   }
  179.  
  180.   .unsorted {
  181.     color: gray;
  182.   }
  183.  
Advertisement
Add Comment
Please, Sign In to add comment