admin-styles.css
2 weeks ago
admin-styles.min.css
2 weeks ago
author-dashboard.css
2 weeks ago
author-dashboard.min.css
2 weeks ago
front-dark.css
5 months ago
front-dark.min.css
5 months ago
front.css
2 weeks ago
front.min.css
2 weeks ago
gutenberg-styles.css
5 years ago
gutenberg-styles.min.css
7 months ago
jquery.dataTables.css
6 years ago
jquery.dataTables.min.css
1 year ago
jqueryFileTree.css
5 years ago
jqueryFileTree.min.css
5 years ago
kitchen-sink.html
2 weeks ago
wpdm-dashboard.css
2 weeks ago
wpdm-dashboard.min.css
2 weeks ago
wpdm-elegant-history.css
2 weeks ago
wpdm-elegant-history.min.css
2 weeks ago
wpdm-elegant-insights.css
2 weeks ago
wpdm-elegant-insights.min.css
2 weeks ago
wpdm-elegant-overview.css
2 weeks ago
wpdm-elegant-overview.min.css
2 weeks ago
wpdm-gallery.css
2 weeks ago
wpdm-lock-options.css
1 week ago
wpdm-lock-options.css
412 lines
| 1 | /** |
| 2 | * WPDM Admin — Lock Options (Download Protection) |
| 3 | * Card-based UI matching the front-end author dashboard. Scoped to |
| 4 | * #lock-options so it never leaks into the rest of the admin, and guarded |
| 5 | * with !important where it must beat WP-admin's native input styling. |
| 6 | */ |
| 7 | |
| 8 | #lock-options .wpdm-locks { padding: 0; } |
| 9 | |
| 10 | #lock-options .wpdm-locks__header { |
| 11 | display: flex; |
| 12 | align-items: flex-start; |
| 13 | gap: 14px; |
| 14 | padding: 0 0 20px; |
| 15 | margin-bottom: 20px; |
| 16 | border-bottom: 1px solid var(--color-light-hover, #f1f5f9); |
| 17 | } |
| 18 | |
| 19 | #lock-options .wpdm-locks__header-icon { |
| 20 | width: 44px; |
| 21 | height: 44px; |
| 22 | display: flex; |
| 23 | align-items: center; |
| 24 | justify-content: center; |
| 25 | background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); |
| 26 | border-radius: 12px; |
| 27 | color: #d97706; |
| 28 | flex-shrink: 0; |
| 29 | } |
| 30 | |
| 31 | #lock-options .wpdm-locks__header-text h4 { |
| 32 | margin: 0 0 4px; |
| 33 | font-size: 16px; |
| 34 | font-weight: 600; |
| 35 | color: var(--color-dark, #1e293b); |
| 36 | } |
| 37 | |
| 38 | #lock-options .wpdm-locks__header-text p { |
| 39 | margin: 0; |
| 40 | font-size: 13px; |
| 41 | color: var(--color-muted, #64748b); |
| 42 | } |
| 43 | |
| 44 | #lock-options .wpdm-locks__section-header { |
| 45 | display: flex; |
| 46 | align-items: center; |
| 47 | gap: 8px; |
| 48 | padding: 16px 0 12px; |
| 49 | margin-top: 8px; |
| 50 | font-size: 12px; |
| 51 | font-weight: 600; |
| 52 | color: var(--color-muted, #64748b); |
| 53 | text-transform: uppercase; |
| 54 | letter-spacing: 0.05em; |
| 55 | } |
| 56 | |
| 57 | #lock-options .wpdm-locks__section-header svg { opacity: 0.6; } |
| 58 | |
| 59 | #lock-options .wpdm-locks__list { |
| 60 | display: flex; |
| 61 | flex-direction: column; |
| 62 | gap: 12px; |
| 63 | } |
| 64 | |
| 65 | /* Lock Card */ |
| 66 | #lock-options .wpdm-lock-card { |
| 67 | background: #fff; |
| 68 | border: 1px solid var(--color-border, #e2e8f0); |
| 69 | border-radius: 12px; |
| 70 | overflow: hidden; |
| 71 | transition: all 0.2s ease; |
| 72 | } |
| 73 | |
| 74 | #lock-options .wpdm-lock-card:hover { border-color: #cbd5e1; } |
| 75 | |
| 76 | #lock-options .wpdm-lock-card--active { |
| 77 | border-color: var(--color-primary, #6366f1); |
| 78 | box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); |
| 79 | } |
| 80 | |
| 81 | #lock-options .wpdm-lock-card__header { |
| 82 | display: flex; |
| 83 | align-items: center; |
| 84 | gap: 14px; |
| 85 | padding: 16px; |
| 86 | } |
| 87 | |
| 88 | #lock-options .wpdm-lock-card__icon { |
| 89 | width: 40px; |
| 90 | height: 40px; |
| 91 | display: flex; |
| 92 | align-items: center; |
| 93 | justify-content: center; |
| 94 | border-radius: 10px; |
| 95 | flex-shrink: 0; |
| 96 | } |
| 97 | |
| 98 | #lock-options .wpdm-lock-card__icon--terms { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #2563eb; } |
| 99 | #lock-options .wpdm-lock-card__icon--password { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #d97706; } |
| 100 | #lock-options .wpdm-lock-card__icon--email { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); color: #059669; } |
| 101 | #lock-options .wpdm-lock-card__icon--linkedin { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #0077b5; } |
| 102 | #lock-options .wpdm-lock-card__icon--twitter { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); color: #000; } |
| 103 | #lock-options .wpdm-lock-card__icon--twitter-follow { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); color: #374151; } |
| 104 | #lock-options .wpdm-lock-card__icon--facebook { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1877f2; } |
| 105 | #lock-options .wpdm-lock-card__icon--google { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #ea4335; } |
| 106 | #lock-options .wpdm-lock-card__icon--captcha { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); color: #7c3aed; } |
| 107 | |
| 108 | #lock-options .wpdm-lock-card__icon i { font-size: 17px; line-height: 1; } |
| 109 | |
| 110 | #lock-options .wpdm-lock-card__info { flex: 1; min-width: 0; } |
| 111 | |
| 112 | #lock-options .wpdm-lock-card__title { |
| 113 | display: block; |
| 114 | font-size: 14px; |
| 115 | font-weight: 600; |
| 116 | color: var(--color-dark, #1e293b); |
| 117 | margin-bottom: 2px; |
| 118 | } |
| 119 | |
| 120 | #lock-options .wpdm-lock-card__desc { |
| 121 | display: block; |
| 122 | font-size: 12px; |
| 123 | color: var(--color-muted, #64748b); |
| 124 | } |
| 125 | |
| 126 | /* Toggle Switch */ |
| 127 | #lock-options .wpdm-toggle { |
| 128 | position: relative; |
| 129 | display: inline-block; |
| 130 | width: 44px; |
| 131 | height: 24px; |
| 132 | flex-shrink: 0; |
| 133 | margin: 0; |
| 134 | } |
| 135 | |
| 136 | #lock-options .wpdm-toggle input { |
| 137 | position: absolute !important; |
| 138 | opacity: 0 !important; |
| 139 | width: 0 !important; |
| 140 | height: 0 !important; |
| 141 | margin: 0 !important; |
| 142 | -webkit-appearance: none; |
| 143 | appearance: none; |
| 144 | box-shadow: none !important; |
| 145 | } |
| 146 | |
| 147 | #lock-options .wpdm-toggle__slider { |
| 148 | position: absolute; |
| 149 | cursor: pointer; |
| 150 | inset: 0; |
| 151 | background: #e2e8f0; |
| 152 | border-radius: 24px; |
| 153 | transition: all 0.2s ease; |
| 154 | } |
| 155 | |
| 156 | #lock-options .wpdm-toggle__slider::before { |
| 157 | content: ''; |
| 158 | position: absolute; |
| 159 | height: 18px; |
| 160 | width: 18px; |
| 161 | left: 3px; |
| 162 | bottom: 3px; |
| 163 | background: #fff; |
| 164 | border-radius: 50%; |
| 165 | transition: all 0.2s ease; |
| 166 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); |
| 167 | } |
| 168 | |
| 169 | #lock-options .wpdm-toggle input:checked + .wpdm-toggle__slider { |
| 170 | background: var(--color-primary, #6366f1); |
| 171 | } |
| 172 | |
| 173 | #lock-options .wpdm-toggle input:checked + .wpdm-toggle__slider::before { |
| 174 | transform: translateX(20px); |
| 175 | } |
| 176 | |
| 177 | /* Lock Card Body */ |
| 178 | #lock-options .wpdm-lock-card__body { |
| 179 | padding: 0 16px 16px; |
| 180 | border-top: 1px solid #f1f5f9; |
| 181 | } |
| 182 | |
| 183 | /* Lock Fields */ |
| 184 | #lock-options .wpdm-lock-field { margin-top: 14px; } |
| 185 | #lock-options .wpdm-lock-field:first-child { margin-top: 16px; } |
| 186 | |
| 187 | #lock-options .wpdm-lock-field__label { |
| 188 | display: block; |
| 189 | font-size: 12px; |
| 190 | font-weight: 600; |
| 191 | color: #374151; |
| 192 | margin-bottom: 6px; |
| 193 | } |
| 194 | |
| 195 | #lock-options .wpdm-lock-field__hint { |
| 196 | font-weight: 400; |
| 197 | color: var(--color-muted, #64748b); |
| 198 | margin-left: 8px; |
| 199 | } |
| 200 | |
| 201 | #lock-options .wpdm-lock-field__input, |
| 202 | #lock-options .wpdm-lock-field__textarea, |
| 203 | #lock-options .wpdm-lock-field select { |
| 204 | width: 100%; |
| 205 | max-width: 100%; |
| 206 | padding: 10px 12px; |
| 207 | height: auto; |
| 208 | font-size: 14px; |
| 209 | line-height: 1.4; |
| 210 | color: var(--color-dark, #1e293b); |
| 211 | background: var(--color-light, #f8fafc); |
| 212 | border: 1px solid var(--color-border, #e2e8f0); |
| 213 | border-radius: 8px; |
| 214 | box-shadow: none; |
| 215 | transition: all 0.15s ease; |
| 216 | } |
| 217 | |
| 218 | #lock-options .wpdm-lock-field__input:focus, |
| 219 | #lock-options .wpdm-lock-field__textarea:focus, |
| 220 | #lock-options .wpdm-lock-field select:focus { |
| 221 | outline: none; |
| 222 | background: #fff; |
| 223 | border-color: var(--color-primary, #6366f1); |
| 224 | box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); |
| 225 | } |
| 226 | |
| 227 | #lock-options .wpdm-lock-field__input::placeholder, |
| 228 | #lock-options .wpdm-lock-field__textarea::placeholder { |
| 229 | color: var(--color-muted, #64748b); |
| 230 | } |
| 231 | |
| 232 | #lock-options .wpdm-lock-field__textarea { |
| 233 | resize: vertical; |
| 234 | min-height: 80px; |
| 235 | } |
| 236 | |
| 237 | #lock-options .wpdm-lock-field__group { display: flex; gap: 8px; } |
| 238 | #lock-options .wpdm-lock-field__group .wpdm-lock-field__input { flex: 1; } |
| 239 | #lock-options .wpdm-lock-field__group--compact { max-width: 320px; } |
| 240 | #lock-options .wpdm-lock-field__group--prefix { gap: 0; } |
| 241 | #lock-options .wpdm-lock-field__group--prefix .wpdm-lock-field__input { border-radius: 0 8px 8px 0; } |
| 242 | |
| 243 | #lock-options .wpdm-lock-field__prefix { |
| 244 | display: flex; |
| 245 | align-items: center; |
| 246 | padding: 0 12px; |
| 247 | font-size: 14px; |
| 248 | font-weight: 500; |
| 249 | color: var(--color-muted, #64748b); |
| 250 | background: #e2e8f0; |
| 251 | border: 1px solid var(--color-border, #e2e8f0); |
| 252 | border-right: none; |
| 253 | border-radius: 8px 0 0 8px; |
| 254 | } |
| 255 | |
| 256 | #lock-options .wpdm-lock-field__suffix { |
| 257 | display: flex; |
| 258 | align-items: center; |
| 259 | padding: 0 12px; |
| 260 | font-size: 13px; |
| 261 | color: var(--color-muted, #64748b); |
| 262 | background: var(--color-light-hover, #f1f5f9); |
| 263 | border: 1px solid var(--color-border, #e2e8f0); |
| 264 | border-radius: 8px; |
| 265 | white-space: nowrap; |
| 266 | } |
| 267 | |
| 268 | #lock-options .wpdm-lock-field__btn { |
| 269 | display: inline-flex; |
| 270 | align-items: center; |
| 271 | gap: 6px; |
| 272 | padding: 10px 16px; |
| 273 | height: auto; |
| 274 | font-size: 13px; |
| 275 | font-weight: 500; |
| 276 | color: #fff; |
| 277 | background: var(--color-primary, #6366f1); |
| 278 | border: none; |
| 279 | border-radius: 8px; |
| 280 | cursor: pointer; |
| 281 | white-space: nowrap; |
| 282 | transition: all 0.15s ease; |
| 283 | } |
| 284 | |
| 285 | #lock-options .wpdm-lock-field__btn:hover { background: var(--color-primary-hover, #4f46e5); color: #fff; } |
| 286 | |
| 287 | #lock-options .wpdm-lock-field__note { |
| 288 | display: block; |
| 289 | margin-top: 6px; |
| 290 | font-size: 12px; |
| 291 | color: var(--color-muted, #64748b); |
| 292 | } |
| 293 | |
| 294 | #lock-options .wpdm-lock-field-row { |
| 295 | display: grid; |
| 296 | grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); |
| 297 | gap: 14px; |
| 298 | } |
| 299 | |
| 300 | /* Lock Checkbox */ |
| 301 | #lock-options .wpdm-lock-checkbox { |
| 302 | display: flex; |
| 303 | align-items: center; |
| 304 | gap: 10px; |
| 305 | cursor: pointer; |
| 306 | margin: 0; |
| 307 | } |
| 308 | |
| 309 | #lock-options .wpdm-lock-checkbox input { |
| 310 | position: absolute !important; |
| 311 | opacity: 0 !important; |
| 312 | width: 0 !important; |
| 313 | height: 0 !important; |
| 314 | margin: 0 !important; |
| 315 | pointer-events: none; |
| 316 | -webkit-appearance: none; |
| 317 | appearance: none; |
| 318 | } |
| 319 | |
| 320 | #lock-options .wpdm-lock-checkbox__box { |
| 321 | width: 18px; |
| 322 | height: 18px; |
| 323 | border: 2px solid #cbd5e1; |
| 324 | border-radius: 4px; |
| 325 | transition: all 0.15s ease; |
| 326 | position: relative; |
| 327 | flex-shrink: 0; |
| 328 | } |
| 329 | |
| 330 | #lock-options .wpdm-lock-checkbox__box::after { |
| 331 | content: ''; |
| 332 | position: absolute; |
| 333 | top: 2px; |
| 334 | left: 5px; |
| 335 | width: 5px; |
| 336 | height: 9px; |
| 337 | border: solid #fff; |
| 338 | border-width: 0 2px 2px 0; |
| 339 | transform: rotate(45deg); |
| 340 | opacity: 0; |
| 341 | transition: opacity 0.15s ease; |
| 342 | } |
| 343 | |
| 344 | #lock-options .wpdm-lock-checkbox input:checked + .wpdm-lock-checkbox__box { |
| 345 | background: var(--color-primary, #6366f1); |
| 346 | border-color: var(--color-primary, #6366f1); |
| 347 | } |
| 348 | |
| 349 | #lock-options .wpdm-lock-checkbox input:checked + .wpdm-lock-checkbox__box::after { opacity: 1; } |
| 350 | |
| 351 | #lock-options .wpdm-lock-checkbox__label { font-size: 13px; color: #475569; } |
| 352 | |
| 353 | /* Info & Warning notes */ |
| 354 | #lock-options .wpdm-lock-info, |
| 355 | #lock-options .wpdm-lock-warning { |
| 356 | display: flex; |
| 357 | align-items: flex-start; |
| 358 | gap: 10px; |
| 359 | padding: 12px; |
| 360 | border-radius: 8px; |
| 361 | font-size: 13px; |
| 362 | margin-top: 16px; |
| 363 | } |
| 364 | |
| 365 | #lock-options .wpdm-lock-info { background: #f0f9ff; color: #0369a1; } |
| 366 | #lock-options .wpdm-lock-info svg { flex-shrink: 0; margin-top: 1px; } |
| 367 | #lock-options .wpdm-lock-warning { background: #fef3c7; color: #92400e; } |
| 368 | #lock-options .wpdm-lock-warning svg { flex-shrink: 0; margin-top: 1px; } |
| 369 | #lock-options .wpdm-lock-warning a { color: #d97706; font-weight: 500; } |
| 370 | |
| 371 | /* Radio group (email lock — "After submitting form") */ |
| 372 | #lock-options .wpdm-lock-radios { |
| 373 | display: flex; |
| 374 | flex-direction: column; |
| 375 | gap: 10px; |
| 376 | margin-top: 6px; |
| 377 | } |
| 378 | |
| 379 | #lock-options .wpdm-lock-radio { |
| 380 | display: inline-flex; |
| 381 | align-items: center; |
| 382 | gap: 9px; |
| 383 | font-size: 13px; |
| 384 | color: #475569; |
| 385 | cursor: pointer; |
| 386 | margin: 0; |
| 387 | } |
| 388 | |
| 389 | #lock-options .wpdm-lock-radio input[type="radio"] { |
| 390 | width: 16px; |
| 391 | height: 16px; |
| 392 | margin: 0; |
| 393 | accent-color: var(--color-primary, #6366f1); |
| 394 | flex-shrink: 0; |
| 395 | } |
| 396 | |
| 397 | /* wp_editor inside a lock body */ |
| 398 | #lock-options .wpdm-lock-field .wp-editor-wrap { margin-top: 2px; } |
| 399 | #lock-options .wpdm-lock-field .wp-editor-wrap .wp-editor-area { |
| 400 | border: 1px solid var(--color-border, #e2e8f0); |
| 401 | border-radius: 0 0 8px 8px; |
| 402 | } |
| 403 | |
| 404 | /* Reset legacy bottom spacing of the metabox intro */ |
| 405 | #lock-options .wpdm-locks .form-group { margin-bottom: 0; } |
| 406 | |
| 407 | @media (max-width: 600px) { |
| 408 | #lock-options .wpdm-lock-field-row { grid-template-columns: 1fr; } |
| 409 | #lock-options .wpdm-lock-field__group { flex-direction: column; } |
| 410 | #lock-options .wpdm-lock-field__btn { width: 100%; justify-content: center; } |
| 411 | } |
| 412 |