first commit

This commit is contained in:
Yuri Karamian
2026-01-25 20:21:17 +01:00
commit 9f06a4c2a2
24 changed files with 9192 additions and 0 deletions
+524
View File
@@ -0,0 +1,524 @@
/**
* WP Security Pack Admin Styles
*
* Clean, modern design - no scary dashboards or fake threat counters.
*/
/* CSS Custom Properties */
:root {
--wpsp-primary: #2271b1;
--wpsp-primary-hover: #135e96;
--wpsp-success: #00a32a;
--wpsp-success-bg: #edfaef;
--wpsp-warning: #dba617;
--wpsp-warning-bg: #fcf9e8;
--wpsp-danger: #d63638;
--wpsp-danger-bg: #fcf0f1;
--wpsp-info: #72aee6;
--wpsp-info-bg: #f0f6fc;
--wpsp-border: #e0e0e0;
--wpsp-border-light: #f0f0f1;
--wpsp-text: #1d2327;
--wpsp-text-light: #646970;
--wpsp-bg: #fff;
--wpsp-bg-alt: #f6f7f7;
--wpsp-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
--wpsp-shadow-hover: 0 2px 8px rgba(0, 0, 0, 0.08);
--wpsp-radius: 8px;
--wpsp-radius-sm: 4px;
--wpsp-transition: 0.15s ease;
}
/* Main wrapper */
.wpsp-wrap {
max-width: 1200px;
}
.wpsp-wrap h1 {
font-size: 24px;
font-weight: 600;
margin-bottom: 1.5em;
padding: 0;
color: var(--wpsp-text);
}
/* Tabs */
.wpsp-tabs {
margin-bottom: 24px;
border-bottom: 1px solid var(--wpsp-border);
display: flex;
flex-wrap: wrap;
gap: 2px;
}
.wpsp-tabs .nav-tab {
margin-left: 0;
margin-right: 0;
border-radius: var(--wpsp-radius-sm) var(--wpsp-radius-sm) 0 0;
transition: background var(--wpsp-transition), color var(--wpsp-transition);
padding: 8px 16px;
font-weight: 500;
}
.wpsp-tabs .nav-tab:hover {
background: var(--wpsp-bg-alt);
}
.wpsp-tabs .nav-tab-active {
background: var(--wpsp-bg);
border-bottom-color: var(--wpsp-bg);
}
/* Sections */
.wpsp-section {
background: var(--wpsp-bg);
border: 1px solid var(--wpsp-border);
border-radius: var(--wpsp-radius);
padding: 24px;
margin-bottom: 20px;
box-shadow: var(--wpsp-shadow);
transition: box-shadow var(--wpsp-transition);
}
.wpsp-section:hover {
box-shadow: var(--wpsp-shadow-hover);
}
.wpsp-section h2 {
margin: 0 0 16px 0;
padding: 0 0 12px 0;
font-size: 1.2em;
font-weight: 600;
border-bottom: 1px solid var(--wpsp-border-light);
color: var(--wpsp-text);
}
.wpsp-section h3 {
margin-top: 1.5em;
font-size: 1em;
font-weight: 600;
color: var(--wpsp-text);
}
/* Form tables */
.wpsp-section .form-table {
margin-top: 0;
}
.wpsp-section .form-table th {
width: 220px;
padding-left: 0;
font-weight: 500;
color: var(--wpsp-text);
}
.wpsp-section .form-table td {
padding-top: 12px;
padding-bottom: 12px;
}
/* Status indicators */
.wpsp-status {
display: inline-flex;
align-items: center;
padding: 4px 10px;
border-radius: 50px;
font-size: 12px;
font-weight: 600;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.wpsp-status-ok {
background: var(--wpsp-success-bg);
color: var(--wpsp-success);
}
.wpsp-status-warning {
background: var(--wpsp-warning-bg);
color: #8a6d00;
}
.wpsp-status-error {
background: var(--wpsp-danger-bg);
color: var(--wpsp-danger);
}
/* Stats */
.wpsp-stats {
display: flex;
gap: 16px;
margin-bottom: 24px;
flex-wrap: wrap;
}
.wpsp-stat {
background: var(--wpsp-bg);
border: 1px solid var(--wpsp-border);
padding: 20px 28px;
border-radius: var(--wpsp-radius);
text-align: center;
min-width: 130px;
transition: transform var(--wpsp-transition), box-shadow var(--wpsp-transition);
}
.wpsp-stat:hover {
transform: translateY(-2px);
box-shadow: var(--wpsp-shadow-hover);
}
.wpsp-stat-value {
display: block;
font-size: 32px;
font-weight: 700;
color: var(--wpsp-text);
line-height: 1.2;
}
.wpsp-stat-label {
display: block;
font-size: 11px;
font-weight: 500;
color: var(--wpsp-text-light);
margin-top: 6px;
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Stat color variations */
.wpsp-stat-success {
border-left: 4px solid var(--wpsp-success);
}
.wpsp-stat-success .wpsp-stat-value {
color: var(--wpsp-success);
}
.wpsp-stat-warning {
border-left: 4px solid var(--wpsp-warning);
}
.wpsp-stat-warning .wpsp-stat-value {
color: #8a6d00;
}
.wpsp-stat-danger {
border-left: 4px solid var(--wpsp-danger);
}
.wpsp-stat-danger .wpsp-stat-value {
color: var(--wpsp-danger);
}
.wpsp-stat-info {
border-left: 4px solid var(--wpsp-primary);
}
.wpsp-stat-info .wpsp-stat-value {
color: var(--wpsp-primary);
}
/* Tables */
.wpsp-section .widefat {
margin-top: 16px;
border-radius: var(--wpsp-radius-sm);
overflow: hidden;
}
.wpsp-section .widefat td,
.wpsp-section .widefat th {
padding: 12px 14px;
}
.wpsp-section .widefat thead th {
font-weight: 600;
background: var(--wpsp-bg-alt);
}
.wpsp-section .widefat tbody tr {
transition: background var(--wpsp-transition);
}
.wpsp-section .widefat tbody tr:hover {
background: var(--wpsp-bg-alt);
}
/* Country select */
.wpsp-country-select {
min-width: 300px;
height: 200px !important;
border-radius: var(--wpsp-radius-sm);
}
/* Event type colors */
.wpsp-event-login_success {
color: var(--wpsp-success);
}
.wpsp-event-login_failed {
color: #8a6d00;
}
.wpsp-event-lockout,
.wpsp-event-ip_blocked,
.wpsp-event-geo_blocked {
color: var(--wpsp-danger);
}
/* Country badge */
.wpsp-country {
display: inline-block;
background: var(--wpsp-bg-alt);
padding: 2px 8px;
border-radius: 50px;
font-size: 11px;
font-weight: 500;
margin-left: 6px;
}
/* Severity badges */
.wpsp-badge {
display: inline-block;
padding: 3px 10px;
border-radius: 50px;
font-size: 10px;
font-weight: 700;
color: #fff;
margin-right: 6px;
text-transform: uppercase;
letter-spacing: 0.03em;
}
/* Footer */
.wpsp-footer {
margin-top: 32px;
padding-top: 20px;
border-top: 1px solid var(--wpsp-border);
color: var(--wpsp-text-light);
font-size: 13px;
}
.wpsp-footer a {
color: var(--wpsp-primary);
text-decoration: none;
transition: color var(--wpsp-transition);
}
.wpsp-footer a:hover {
color: var(--wpsp-primary-hover);
text-decoration: underline;
}
/* 2FA status */
.wpsp-2fa-status {
display: inline-flex;
align-items: center;
padding: 6px 14px;
border-radius: 50px;
font-weight: 600;
font-size: 13px;
}
.wpsp-2fa-enabled {
background: var(--wpsp-success-bg);
color: var(--wpsp-success);
}
.wpsp-2fa-disabled {
background: var(--wpsp-danger-bg);
color: var(--wpsp-danger);
}
/* Responsive */
@media screen and (max-width: 782px) {
.wpsp-stats {
flex-direction: column;
}
.wpsp-stat {
min-width: auto;
}
.wpsp-section .form-table th {
width: auto;
}
.wpsp-country-select {
min-width: 100%;
}
.wpsp-tabs {
gap: 4px;
}
.wpsp-tabs .nav-tab {
padding: 6px 12px;
font-size: 13px;
}
}
/* Code blocks */
.wpsp-section code {
background: var(--wpsp-bg-alt);
padding: 3px 8px;
border-radius: var(--wpsp-radius-sm);
font-size: 13px;
}
/* Button spacing & styling */
.wpsp-section .button {
transition: all var(--wpsp-transition);
}
.wpsp-section .button:hover {
transform: translateY(-1px);
}
.wpsp-section .button + .button {
margin-left: 8px;
}
/* Tablenav */
.wpsp-section .tablenav {
margin: 16px 0;
}
.wpsp-section .tablenav .actions {
padding: 0;
}
/* Alert boxes */
.wpsp-alert {
padding: 14px 18px;
border-radius: var(--wpsp-radius);
margin-bottom: 16px;
border-left: 4px solid;
}
.wpsp-alert-info {
background: var(--wpsp-info-bg);
border-left-color: var(--wpsp-info);
color: #0a4b78;
}
.wpsp-alert-warning {
background: var(--wpsp-warning-bg);
border-left-color: var(--wpsp-warning);
color: #6e5600;
}
.wpsp-alert-error {
background: var(--wpsp-danger-bg);
border-left-color: var(--wpsp-danger);
color: #8a1f1f;
}
/* Loading states */
.wpsp-loading {
opacity: 0.5;
pointer-events: none;
}
/* QR code container */
#wpsp-2fa-qr img,
#wpsp-2fa-qr svg {
border: 1px solid var(--wpsp-border);
padding: 12px;
background: var(--wpsp-bg);
border-radius: var(--wpsp-radius);
margin: 12px 0;
}
/* Backup codes display */
#wpsp-backup-codes-display pre,
#wpsp-new-backup-codes {
background: var(--wpsp-bg-alt);
padding: 16px;
border-radius: var(--wpsp-radius-sm);
font-family: 'SF Mono', Monaco, Consolas, monospace;
font-size: 14px;
line-height: 2;
border: 1px solid var(--wpsp-border);
}
/* Scan results */
.wpsp-scan-results {
max-height: 400px;
overflow-y: auto;
}
/* Checkbox styling */
.wpsp-section input[type="checkbox"] {
margin-right: 10px;
width: 18px;
height: 18px;
}
/* Description text */
.wpsp-section .description {
color: var(--wpsp-text-light);
font-style: normal;
margin-top: 6px;
font-size: 13px;
line-height: 1.5;
}
/* Tab intro descriptions */
.wpsp-section p.wpsp-description {
color: var(--wpsp-text-light);
font-style: normal;
font-size: 14px;
margin: -8px 0 20px 0;
line-height: 1.6;
}
/* Import/export section */
#wpsp-import-file {
margin-right: 12px;
}
#wpsp-import-status {
margin-left: 12px;
color: var(--wpsp-success);
font-weight: 500;
}
/* System info table */
.wpsp-section .widefat td:first-child {
font-weight: 600;
width: 200px;
color: var(--wpsp-text);
}
/* Status checklist icons */
.wpsp-section .widefat td span[style*="color: #46b450"],
.wpsp-section .widefat td span[style*="color: #dc3232"] {
font-size: 20px;
line-height: 1;
}
/* Notice improvements within sections */
.wpsp-section .notice {
border-radius: var(--wpsp-radius-sm);
margin: 12px 0;
}
/* Input focus states */
.wpsp-section input[type="text"]:focus,
.wpsp-section input[type="number"]:focus,
.wpsp-section textarea:focus,
.wpsp-section select:focus {
border-color: var(--wpsp-primary);
box-shadow: 0 0 0 1px var(--wpsp-primary);
outline: none;
}
/* Textarea styling */
.wpsp-section textarea {
border-radius: var(--wpsp-radius-sm);
}
/* Select styling */
.wpsp-section select {
border-radius: var(--wpsp-radius-sm);
}
+6
View File
@@ -0,0 +1,6 @@
<?php
/**
* Silence is golden.
*
* @package WP_Security_Pack
*/
+6
View File
@@ -0,0 +1,6 @@
<?php
/**
* Silence is golden.
*
* @package WP_Security_Pack
*/