613 lines
14 KiB
CSS
613 lines
14 KiB
CSS
/* =============================================
|
||
Pressable Cache Management - Redesigned UI
|
||
Brand: #dd3a03 (orange), #040024 (dark), #03fcc2 (teal/green)
|
||
============================================= */
|
||
|
||
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
||
|
||
/* ---- Base ---- */
|
||
#wpwrap .wrap,
|
||
#wpwrap .wrap * {
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
/* ---- Tab Navigation ---- */
|
||
.nav-tab-wrapper {
|
||
border-bottom: 2px solid #e0e3e8 !important;
|
||
margin-bottom: 28px !important;
|
||
padding-bottom: 0 !important;
|
||
background: transparent !important;
|
||
}
|
||
|
||
.nav-tab {
|
||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
|
||
font-size: 14px !important;
|
||
font-weight: 500 !important;
|
||
color: #64748b !important;
|
||
background: transparent !important;
|
||
border: none !important;
|
||
border-bottom: 2px solid transparent !important;
|
||
padding: 10px 20px !important;
|
||
margin-bottom: -2px !important;
|
||
transition: color 0.2s, border-color 0.2s !important;
|
||
border-radius: 0 !important;
|
||
text-decoration: none !important;
|
||
}
|
||
|
||
.nav-tab:hover {
|
||
color: #040024 !important;
|
||
border-bottom-color: #94a3b8 !important;
|
||
background: transparent !important;
|
||
}
|
||
|
||
.nav-tab-active,
|
||
.nav-tab-active:hover {
|
||
color: #040024 !important;
|
||
border-bottom: 2px solid #040024 !important;
|
||
font-weight: 700 !important;
|
||
background: transparent !important;
|
||
}
|
||
|
||
.nav-tab-hidden {
|
||
display: none !important;
|
||
}
|
||
|
||
/* ---- Logo ---- */
|
||
.pressablecmlogo {
|
||
width: 180px !important;
|
||
height: auto !important;
|
||
display: block !important;
|
||
margin-bottom: 6px !important;
|
||
}
|
||
|
||
/* ---- Flush Cache Button ---- */
|
||
.flushcache,
|
||
input.flushcache[type="submit"] {
|
||
display: block !important;
|
||
width: 100% !important;
|
||
background: #dd3a03 !important;
|
||
color: #ffffff !important;
|
||
border: none !important;
|
||
border-radius: 8px !important;
|
||
padding: 12px 20px !important;
|
||
font-family: 'Inter', sans-serif !important;
|
||
font-size: 14px !important;
|
||
font-weight: 600 !important;
|
||
cursor: pointer !important;
|
||
transition: background 0.2s, color 0.2s, transform 0.1s, box-shadow 0.2s !important;
|
||
text-align: center !important;
|
||
box-shadow: 0 2px 8px rgba(221,58,3,0.25) !important;
|
||
height: auto !important;
|
||
line-height: 1.5 !important;
|
||
}
|
||
|
||
/* Hover: switches to teal/green brand colour */
|
||
.flushcache:hover,
|
||
input.flushcache[type="submit"]:hover {
|
||
background: #03fcc2 !important;
|
||
color: #040024 !important;
|
||
box-shadow: 0 4px 14px rgba(3,252,194,0.45) !important;
|
||
transform: translateY(-1px) !important;
|
||
}
|
||
|
||
/* ---- Toggle Switch ---- */
|
||
.container {
|
||
display: flex !important;
|
||
align-items: flex-start !important;
|
||
gap: 14px !important;
|
||
padding: 14px 0 !important;
|
||
border-bottom: 1px solid #f1f5f9 !important;
|
||
}
|
||
|
||
.switch {
|
||
position: relative !important;
|
||
display: inline-block !important;
|
||
width: 44px !important;
|
||
height: 24px !important;
|
||
flex-shrink: 0 !important;
|
||
margin-top: 1px !important;
|
||
}
|
||
|
||
.switch input {
|
||
opacity: 0 !important;
|
||
width: 0 !important;
|
||
height: 0 !important;
|
||
}
|
||
|
||
.slider {
|
||
position: absolute !important;
|
||
cursor: pointer !important;
|
||
top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
|
||
background-color: #dd3a03 !important;
|
||
border-radius: 24px !important;
|
||
transition: 0.3s !important;
|
||
}
|
||
|
||
.slider:before {
|
||
position: absolute !important;
|
||
content: "" !important;
|
||
height: 18px !important;
|
||
width: 18px !important;
|
||
left: 3px !important;
|
||
bottom: 3px !important;
|
||
background-color: white !important;
|
||
border-radius: 50% !important;
|
||
transition: 0.3s !important;
|
||
box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
|
||
}
|
||
|
||
input:checked + .slider {
|
||
background-color: #03fcc2 !important;
|
||
}
|
||
|
||
input:focus + .slider {
|
||
box-shadow: 0 0 0 3px rgba(3,252,194,0.25) !important;
|
||
}
|
||
|
||
input:checked + .slider:before {
|
||
transform: translateX(20px) !important;
|
||
}
|
||
|
||
.slider.round {
|
||
border-radius: 24px !important;
|
||
}
|
||
|
||
.slider.round:before {
|
||
border-radius: 50% !important;
|
||
}
|
||
|
||
/* ---- Toggle Label Text ---- */
|
||
label.rad-text {
|
||
color: #040024 !important;
|
||
font-size: 13.5px !important;
|
||
font-weight: 600 !important;
|
||
margin-left: 0 !important;
|
||
letter-spacing: normal !important;
|
||
text-transform: none !important;
|
||
font-family: 'Inter', sans-serif !important;
|
||
line-height: 1.35 !important;
|
||
font-variant: normal !important;
|
||
}
|
||
|
||
/* ---- Text Input ---- */
|
||
input[type="text"] {
|
||
width: 100% !important;
|
||
height: 40px !important;
|
||
padding: 0 14px !important;
|
||
border: 1px solid #e2e8f0 !important;
|
||
border-radius: 8px !important;
|
||
font-size: 13px !important;
|
||
color: #040024 !important;
|
||
background: #f8fafc !important;
|
||
transition: border-color 0.2s, box-shadow 0.2s !important;
|
||
font-family: 'Inter', sans-serif !important;
|
||
box-shadow: none !important;
|
||
margin-top: 0 !important;
|
||
}
|
||
|
||
input[type="text"]:focus {
|
||
outline: none !important;
|
||
border-color: #03fcc2 !important;
|
||
box-shadow: 0 0 0 3px rgba(3,252,194,0.2) !important;
|
||
background: #ffffff !important;
|
||
}
|
||
|
||
::placeholder {
|
||
color: #94a3b8 !important;
|
||
font-size: 12.5px !important;
|
||
}
|
||
|
||
/* ---- Save Settings Button ---- */
|
||
.button.custom-class,
|
||
input.button.custom-class[type="submit"] {
|
||
background: #dd3a03 !important;
|
||
color: #ffffff !important;
|
||
border: none !important;
|
||
border-radius: 30px !important;
|
||
padding: 10px 28px !important;
|
||
font-family: 'Inter', sans-serif !important;
|
||
font-size: 13.5px !important;
|
||
font-weight: 700 !important;
|
||
letter-spacing: 0.8px !important;
|
||
text-transform: uppercase !important;
|
||
cursor: pointer !important;
|
||
transition: background 0.2s, box-shadow 0.2s, transform 0.1s !important;
|
||
box-shadow: 0 2px 10px rgba(221,58,3,0.35) !important;
|
||
height: auto !important;
|
||
line-height: 1.5 !important;
|
||
display: inline-block !important;
|
||
}
|
||
|
||
.button.custom-class:hover,
|
||
input.button.custom-class[type="submit"]:hover {
|
||
background: #03fcc2 !important;
|
||
color: #040024 !important;
|
||
box-shadow: 0 4px 16px rgba(3,252,194,0.45) !important;
|
||
transform: translateY(-1px) !important;
|
||
}
|
||
|
||
/* ---- Edge Cache / Purge buttons ---- */
|
||
.purgecacahe,
|
||
input.purgecacahe[type="submit"] {
|
||
background: #dd3a03 !important;
|
||
color: #ffffff !important;
|
||
border: none !important;
|
||
border-radius: 8px !important;
|
||
padding: 10px 22px !important;
|
||
font-family: 'Inter', sans-serif !important;
|
||
font-size: 13.5px !important;
|
||
font-weight: 600 !important;
|
||
cursor: pointer !important;
|
||
transition: background 0.2s, box-shadow 0.2s !important;
|
||
box-shadow: 0 2px 8px rgba(221,58,3,0.25) !important;
|
||
height: auto !important;
|
||
}
|
||
|
||
.purgecacahe:hover,
|
||
input.purgecacahe[type="submit"]:hover {
|
||
background: #03fcc2 !important;
|
||
color: #040024 !important;
|
||
box-shadow: 0 4px 14px rgba(3,252,194,0.45) !important;
|
||
}
|
||
|
||
/* ---- Radio button styling ---- */
|
||
.rad-label {
|
||
display: flex !important;
|
||
align-items: center !important;
|
||
padding: 10px 14px !important;
|
||
border-radius: 8px !important;
|
||
margin: 6px 0 !important;
|
||
cursor: pointer !important;
|
||
border: 1px solid #e2e8f0 !important;
|
||
transition: background 0.2s, border-color 0.2s !important;
|
||
}
|
||
|
||
.rad-label:hover {
|
||
background: #f8fafc !important;
|
||
border-color: #cbd5e1 !important;
|
||
}
|
||
|
||
.rad-input {
|
||
position: absolute !important;
|
||
left: 0 !important; top: 0 !important;
|
||
width: 1px !important; height: 1px !important;
|
||
opacity: 0 !important;
|
||
z-index: -1 !important;
|
||
}
|
||
|
||
.rad-design {
|
||
width: 18px !important;
|
||
height: 18px !important;
|
||
border-radius: 50% !important;
|
||
background: #03fcc2 !important;
|
||
position: relative !important;
|
||
flex-shrink: 0 !important;
|
||
}
|
||
|
||
.rad-design::before {
|
||
content: '' !important;
|
||
display: inline-block !important;
|
||
width: inherit !important;
|
||
height: inherit !important;
|
||
border-radius: inherit !important;
|
||
background: #e2e8f0 !important;
|
||
transform: scale(1.1) !important;
|
||
transition: 0.25s !important;
|
||
}
|
||
|
||
.rad-input:checked + .rad-design::before {
|
||
transform: scale(0) !important;
|
||
}
|
||
|
||
.rad-text {
|
||
color: #374151 !important;
|
||
margin-left: 12px !important;
|
||
font-size: 13px !important;
|
||
font-weight: 500 !important;
|
||
letter-spacing: normal !important;
|
||
text-transform: none !important;
|
||
font-family: 'Inter', sans-serif !important;
|
||
font-variant: normal !important;
|
||
}
|
||
|
||
.rad-input:checked ~ .rad-text {
|
||
color: #040024 !important;
|
||
font-weight: 600 !important;
|
||
}
|
||
|
||
/* ---- Disabled button ---- */
|
||
.disabled-button-style {
|
||
opacity: 0.45 !important;
|
||
cursor: not-allowed !important;
|
||
pointer-events: none !important;
|
||
}
|
||
|
||
/* ---- Edge cache loader ---- */
|
||
.edge-cache-loader {
|
||
display: flex !important;
|
||
align-items: center !important;
|
||
height: 30px !important;
|
||
font-style: italic !important;
|
||
color: #94a3b8 !important;
|
||
font-size: 13px !important;
|
||
font-family: 'Inter', sans-serif !important;
|
||
}
|
||
|
||
.edge-cache-loader::before {
|
||
content: '' !important;
|
||
border: 3px solid #e2e8f0 !important;
|
||
border-top: 3px solid #03fcc2 !important;
|
||
border-radius: 50% !important;
|
||
width: 14px !important;
|
||
height: 14px !important;
|
||
animation: pcm-spin 0.8s linear infinite !important;
|
||
margin-right: 10px !important;
|
||
flex-shrink: 0 !important;
|
||
}
|
||
|
||
@keyframes pcm-spin {
|
||
0% { transform: rotate(0deg); }
|
||
100% { transform: rotate(360deg); }
|
||
}
|
||
|
||
/* ---- Admin Notices – branded ---- */
|
||
.pcm-notice,
|
||
div.notice.pcm-branded,
|
||
div.updated.pcm-branded,
|
||
div.error.pcm-branded {
|
||
border-left: 4px solid #03fcc2 !important;
|
||
background: #ffffff !important;
|
||
border-radius: 0 8px 8px 0 !important;
|
||
padding: 14px 18px !important;
|
||
font-family: 'Inter', sans-serif !important;
|
||
box-shadow: 0 2px 8px rgba(4,0,36,0.07) !important;
|
||
display: flex !important;
|
||
align-items: flex-start !important;
|
||
justify-content: space-between !important;
|
||
gap: 12px !important;
|
||
margin: 10px 20px 10px 0 !important;
|
||
}
|
||
|
||
.pcm-notice.pcm-notice-error,
|
||
div.notice.pcm-branded.pcm-error {
|
||
border-left-color: #dd3a03 !important;
|
||
}
|
||
|
||
.pcm-notice.pcm-notice-warning,
|
||
div.notice.pcm-branded.pcm-warning {
|
||
border-left-color: #f59e0b !important;
|
||
}
|
||
|
||
.pcm-notice-body {
|
||
flex: 1;
|
||
}
|
||
|
||
.pcm-notice-body h3 {
|
||
margin: 0 0 8px !important;
|
||
font-size: 14px !important;
|
||
font-weight: 700 !important;
|
||
color: #040024 !important;
|
||
font-family: 'Inter', sans-serif !important;
|
||
}
|
||
|
||
.pcm-notice-body p {
|
||
margin: 0 0 6px !important;
|
||
font-size: 13px !important;
|
||
color: #475569 !important;
|
||
font-family: 'Inter', sans-serif !important;
|
||
}
|
||
|
||
.pcm-notice-body a {
|
||
color: #dd3a03 !important;
|
||
font-weight: 600 !important;
|
||
text-decoration: none !important;
|
||
}
|
||
|
||
.pcm-notice-body a:hover {
|
||
text-decoration: underline !important;
|
||
}
|
||
|
||
.pcm-notice-close {
|
||
background: none !important;
|
||
border: none !important;
|
||
cursor: pointer !important;
|
||
color: #94a3b8 !important;
|
||
font-size: 18px !important;
|
||
line-height: 1 !important;
|
||
padding: 0 !important;
|
||
flex-shrink: 0 !important;
|
||
margin-top: 1px !important;
|
||
}
|
||
|
||
.pcm-notice-close:hover {
|
||
color: #040024 !important;
|
||
}
|
||
|
||
/* ---- Batcache Status Badge ---- */
|
||
.pcm-batcache-status {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 7px;
|
||
font-size: 12.5px;
|
||
font-weight: 600;
|
||
padding: 5px 13px;
|
||
border-radius: 20px;
|
||
font-family: 'Inter', sans-serif;
|
||
}
|
||
|
||
.pcm-batcache-status.active {
|
||
background: rgba(3,252,194,0.15);
|
||
color: #028a6a;
|
||
border: 1px solid rgba(3,252,194,0.4);
|
||
}
|
||
|
||
.pcm-batcache-status.broken {
|
||
background: rgba(221,58,3,0.1);
|
||
color: #dd3a03;
|
||
border: 1px solid rgba(221,58,3,0.25);
|
||
}
|
||
|
||
.pcm-batcache-status .pcm-dot {
|
||
width: 8px;
|
||
height: 8px;
|
||
border-radius: 50%;
|
||
display: inline-block;
|
||
}
|
||
|
||
.pcm-batcache-status.active .pcm-dot {
|
||
background: #03fcc2;
|
||
}
|
||
|
||
.pcm-batcache-status.broken .pcm-dot {
|
||
background: #dd3a03;
|
||
}
|
||
|
||
/* ---- Exclusion chips ---- */
|
||
.pcm-chip {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
background: #f1f5f9;
|
||
border: 1px solid #e2e8f0;
|
||
border-radius: 20px;
|
||
padding: 4px 8px 4px 12px;
|
||
font-size: 12px;
|
||
color: #040024;
|
||
font-weight: 500;
|
||
font-family: 'Inter', sans-serif;
|
||
}
|
||
|
||
.pcm-chip-remove {
|
||
background: #e2e8f0;
|
||
border: none;
|
||
border-radius: 50%;
|
||
width: 18px;
|
||
height: 18px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
font-size: 11px;
|
||
color: #64748b;
|
||
padding: 0;
|
||
line-height: 1;
|
||
transition: background 0.15s, color 0.15s;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.pcm-chip-remove:hover {
|
||
background: #dd3a03;
|
||
color: #ffffff;
|
||
}
|
||
|
||
/* ---- Heart footer ---- */
|
||
.heart {
|
||
fill: red;
|
||
position: relative;
|
||
top: 4px;
|
||
width: 14px;
|
||
animation: pcm-pulse 5s ease;
|
||
}
|
||
|
||
@keyframes pcm-pulse {
|
||
0% { transform: scale(1); }
|
||
50% { transform: scale(1.3); }
|
||
100% { transform: scale(1); }
|
||
}
|
||
|
||
/* ---- Branding hide rules ---- */
|
||
.branding-disable h2,
|
||
.branding-disable .pressablecmlogo {
|
||
display: none !important;
|
||
}
|
||
|
||
.rad-text-hidden,
|
||
.textbox-hidden {
|
||
display: none !important;
|
||
}
|
||
|
||
/* ── Timestamp display – always visible ── */
|
||
.pcm-ts-label {
|
||
font-size: 10px;
|
||
color: #94a3b8;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
font-family: 'Inter', sans-serif;
|
||
font-weight: 600;
|
||
display: block;
|
||
}
|
||
|
||
.pcm-ts-value {
|
||
font-size: 12.5px;
|
||
color: #040024;
|
||
font-family: 'Inter', sans-serif;
|
||
font-weight: 500;
|
||
display: block;
|
||
margin-top: 2px;
|
||
}
|
||
|
||
.pcm-ts-inline {
|
||
font-size: 11.5px;
|
||
color: #1e293b;
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 4px;
|
||
margin-top: 5px;
|
||
font-family: 'Inter', sans-serif;
|
||
font-weight: 500;
|
||
flex-wrap: nowrap;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.pcm-ts-inline strong {
|
||
font-weight: 700;
|
||
color: #040024;
|
||
flex-shrink: 0;
|
||
white-space: nowrap;
|
||
}
|
||
.pcm-ts-inline b {
|
||
font-weight: 700;
|
||
color: #040024;
|
||
}
|
||
|
||
/* ── Card helpers ── */
|
||
.pcm-card {
|
||
background: #fff;
|
||
border-radius: 12px;
|
||
border: 1px solid #e2e8f0;
|
||
padding: 24px;
|
||
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
|
||
}
|
||
|
||
.pcm-card-title {
|
||
font-size: 15px;
|
||
font-weight: 700;
|
||
color: #040024;
|
||
margin: 0 0 16px;
|
||
font-family: 'Inter', sans-serif;
|
||
}
|
||
|
||
.pcm-toggle-row {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 14px;
|
||
padding: 14px 0;
|
||
border-bottom: 1px solid #f1f5f9;
|
||
}
|
||
|
||
.pcm-toggle-title {
|
||
font-size: 13.5px;
|
||
font-weight: 600;
|
||
color: #040024;
|
||
font-family: 'Inter', sans-serif;
|
||
line-height: 1.3;
|
||
}
|
||
|
||
.pcm-toggle-desc {
|
||
font-size: 12px;
|
||
color: #64748b;
|
||
margin-top: 2px;
|
||
font-family: 'Inter', sans-serif;
|
||
}
|