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