Krishya | 57cc17b | 2025-05-26 16:43:34 +0800 | [diff] [blame^] | 1 | .promotions-page { |
| 2 | padding: 20px; |
| 3 | font-family: Arial, sans-serif; |
| 4 | } |
| 5 | |
| 6 | .promotions-container { |
| 7 | max-width: 1200px; |
| 8 | margin: 0 auto; |
| 9 | background-color: #fff; |
| 10 | border-radius: 8px; |
| 11 | box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); |
| 12 | padding: 20px; |
| 13 | } |
| 14 | |
| 15 | h1, h2, h3 { |
| 16 | color: #333; |
| 17 | } |
| 18 | |
| 19 | .admin-actions { |
| 20 | margin-bottom: 20px; |
| 21 | } |
| 22 | |
| 23 | .create-button, .submit-button, .delete-button { |
| 24 | background-color: #4CAF50; |
| 25 | color: white; |
| 26 | border: none; |
| 27 | padding: 10px 15px; |
| 28 | border-radius: 4px; |
| 29 | cursor: pointer; |
| 30 | font-size: 14px; |
| 31 | transition: background-color 0.3s; |
| 32 | } |
| 33 | |
| 34 | .create-button:hover, .submit-button:hover { |
| 35 | background-color: #45a049; |
| 36 | } |
| 37 | |
| 38 | .delete-button { |
| 39 | background-color: #f44336; |
| 40 | margin-top: 10px; |
| 41 | } |
| 42 | |
| 43 | .delete-button:hover { |
| 44 | background-color: #d32f2f; |
| 45 | } |
| 46 | |
| 47 | .create-promotion-form { |
| 48 | background-color: #f9f9f9; |
| 49 | padding: 20px; |
| 50 | border-radius: 8px; |
| 51 | margin-bottom: 20px; |
| 52 | } |
| 53 | |
| 54 | .form-group { |
| 55 | margin-bottom: 15px; |
| 56 | } |
| 57 | |
| 58 | .form-row { |
| 59 | display: flex; |
| 60 | gap: 20px; |
| 61 | } |
| 62 | |
| 63 | .form-row .form-group { |
| 64 | flex: 1; |
| 65 | } |
| 66 | |
| 67 | label { |
| 68 | display: block; |
| 69 | margin-bottom: 5px; |
| 70 | font-weight: bold; |
| 71 | } |
| 72 | |
| 73 | input, select { |
| 74 | width: 100%; |
| 75 | padding: 8px; |
| 76 | border: 1px solid #ddd; |
| 77 | border-radius: 4px; |
| 78 | box-sizing: border-box; |
| 79 | } |
| 80 | |
| 81 | .error-message { |
| 82 | color: #f44336; |
| 83 | margin-bottom: 15px; |
| 84 | padding: 10px; |
| 85 | background-color: #ffebee; |
| 86 | border-radius: 4px; |
| 87 | } |
| 88 | |
| 89 | .promotions-grid { |
| 90 | display: grid; |
| 91 | grid-template-columns: 1fr 1fr; |
| 92 | gap: 20px; |
| 93 | } |
| 94 | |
| 95 | .promotions-list { |
| 96 | border-right: 1px solid #eee; |
| 97 | padding-right: 20px; |
| 98 | } |
| 99 | |
| 100 | .promotion-items { |
| 101 | max-height: 600px; |
| 102 | overflow-y: auto; |
| 103 | } |
| 104 | |
| 105 | .promotion-item { |
| 106 | background-color: #f9f9f9; |
| 107 | padding: 15px; |
| 108 | border-radius: 8px; |
| 109 | margin-bottom: 15px; |
| 110 | cursor: pointer; |
| 111 | transition: background-color 0.3s; |
| 112 | } |
| 113 | |
| 114 | .promotion-item:hover { |
| 115 | background-color: #f0f0f0; |
| 116 | } |
| 117 | |
| 118 | .promotion-item.active { |
| 119 | background-color: #e3f2fd; |
| 120 | border-left: 4px solid #2196F3; |
| 121 | } |
| 122 | |
| 123 | .promotion-header { |
| 124 | display: flex; |
| 125 | justify-content: space-between; |
| 126 | align-items: center; |
| 127 | margin-bottom: 10px; |
| 128 | } |
| 129 | |
| 130 | .promotion-type { |
| 131 | background-color: #2196F3; |
| 132 | color: white; |
| 133 | padding: 3px 8px; |
| 134 | border-radius: 12px; |
| 135 | font-size: 12px; |
| 136 | } |
| 137 | |
| 138 | .promotion-dates { |
| 139 | color: #666; |
| 140 | font-size: 14px; |
| 141 | margin-bottom: 10px; |
| 142 | } |
| 143 | |
| 144 | .promotion-coeffs { |
| 145 | display: flex; |
| 146 | gap: 15px; |
| 147 | font-weight: bold; |
| 148 | } |
| 149 | |
| 150 | .promotion-coeffs span { |
| 151 | background-color: #e3f2fd; |
| 152 | padding: 3px 8px; |
| 153 | border-radius: 4px; |
| 154 | } |
| 155 | |
| 156 | .promotion-details { |
| 157 | padding: 0 20px; |
| 158 | } |
| 159 | |
| 160 | .detail-item { |
| 161 | margin-bottom: 15px; |
| 162 | } |
| 163 | |
| 164 | .detail-item label { |
| 165 | font-weight: bold; |
| 166 | color: #555; |
| 167 | } |
| 168 | |
| 169 | .detail-item span { |
| 170 | display: block; |
| 171 | margin-top: 5px; |
| 172 | padding: 8px; |
| 173 | background-color: #f5f5f5; |
| 174 | border-radius: 4px; |
| 175 | } |
| 176 | |
| 177 | .no-promotions, .no-selection, .loading { |
| 178 | text-align: center; |
| 179 | padding: 40px; |
| 180 | color: #888; |
| 181 | } |
| 182 | |
| 183 | .pagination { |
| 184 | display: flex; |
| 185 | justify-content: center; |
| 186 | align-items: center; |
| 187 | gap: 15px; |
| 188 | margin-top: 20px; |
| 189 | } |
| 190 | |
| 191 | .pagination button { |
| 192 | padding: 5px 10px; |
| 193 | background-color: #f0f0f0; |
| 194 | border: 1px solid #ddd; |
| 195 | border-radius: 4px; |
| 196 | cursor: pointer; |
| 197 | } |
| 198 | |
| 199 | .pagination button:disabled { |
| 200 | opacity: 0.5; |
| 201 | cursor: not-allowed; |
| 202 | } |
| 203 | |
| 204 | .pagination span { |
| 205 | font-size: 14px; |
| 206 | } |