Preview: admin.css
Size: 13.58 KB
/home/certprox/template.certproxywizard.com/wp-content/plugins/bp-shop-core/assets/css/admin.css
/* =================================================================
BP Shop Core – Admin Panel CSS
================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
#bpsc-admin-page {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
max-width: 1200px;
padding: 20px 20px 100px;
}
/* ── Page Header ─────────────────────────────────────────────── */
.bpsc-admin-header {
display: flex;
align-items: center;
gap: 14px;
margin-bottom: 32px;
padding-bottom: 20px;
border-bottom: 2px solid #e5e7eb;
}
.bpsc-admin-logo {
width: 44px;
height: 44px;
background: #000000;
border: 1px solid #C5A021;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
color: #C5A021;
font-size: 22px;
font-weight: 700;
flex-shrink: 0;
}
.bpsc-admin-header-text h1 {
font-size: 22px;
font-weight: 700;
color: #111827;
margin: 0 0 3px;
}
.bpsc-admin-header-text p {
font-size: 13px;
color: #6b7280;
margin: 0;
}
/* ── Tabs ──────────────────────────────────────────────────────── */
.bpsc-tabs {
display: flex;
gap: 4px;
margin-bottom: 28px;
background: #f3f4f6;
padding: 4px;
border-radius: 10px;
width: fit-content;
}
.bpsc-tabs-wrap {
flex-wrap: wrap;
width: 100%;
max-width: 100%;
}
.bpsc-tab-btn {
padding: 8px 20px;
border: none;
background: transparent;
border-radius: 7px;
font-size: 13px;
font-weight: 500;
color: #6b7280;
cursor: pointer;
transition: background 0.2s, color 0.2s;
font-family: 'Inter', sans-serif;
display: flex;
align-items: center;
gap: 7px;
}
.bpsc-tab-btn:hover {
color: #111827;
}
.bpsc-tab-btn.active {
background: #fff;
color: #C5A021;
font-weight: 600;
box-shadow: 0 1px 3px rgba(0,0,0,0.10);
}
.bpsc-tab-icon {
font-size: 15px;
}
/* ── Tab Panels ────────────────────────────────────────────────── */
.bpsc-tab-panel {
display: none;
}
.bpsc-tab-panel.active {
display: block;
}
/* ── Card Sections ─────────────────────────────────────────────── */
.bpsc-card {
background: #fff;
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 28px;
margin-bottom: 24px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.bpsc-card-title {
font-size: 15px;
font-weight: 700;
color: #111827;
margin: 0 0 6px;
display: flex;
align-items: center;
gap: 8px;
}
.bpsc-card-title span {
font-size: 18px;
}
.bpsc-card-desc {
font-size: 12px;
color: #9ca3af;
margin: 0 0 22px;
}
/* ── Field Rows ────────────────────────────────────────────────── */
.bpsc-field-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px 28px;
}
.bpsc-field-grid.cols-3 {
grid-template-columns: 1fr 1fr 1fr;
}
.bpsc-field-grid.cols-1 {
grid-template-columns: 1fr;
}
.bpsc-field {
display: flex;
flex-direction: column;
gap: 6px;
}
.bpsc-field.full {
grid-column: 1 / -1;
}
.bpsc-field label {
font-size: 12px;
font-weight: 600;
color: #374151;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.bpsc-field input[type="text"],
.bpsc-field input[type="url"],
.bpsc-field input[type="number"],
.bpsc-field select,
.bpsc-field textarea {
border: 1.5px solid #d1d5db;
border-radius: 7px;
padding: 9px 12px;
font-size: 13px;
font-family: 'Inter', sans-serif;
color: #111827;
transition: border-color 0.2s, box-shadow 0.2s;
width: 100%;
background: #fff;
}
.bpsc-field input[type="text"]:focus,
.bpsc-field input[type="url"]:focus,
.bpsc-field input[type="number"]:focus,
.bpsc-field select:focus,
.bpsc-field textarea:focus {
outline: none;
border-color: #C5A021;
box-shadow: 0 0 0 3px rgba(123,47,190,0.12);
}
.bpsc-field textarea {
resize: vertical;
min-height: 80px;
}
/* ── Color picker override ─────────────────────────────────────── */
.bpsc-field .wp-picker-container {
display: flex;
align-items: center;
gap: 10px;
}
.bpsc-field .wp-color-result {
border-radius: 7px !important;
height: 36px !important;
}
/* ── Toggle Switch ─────────────────────────────────────────────── */
.bpsc-toggle-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 0;
border-bottom: 1px solid #f3f4f6;
}
.bpsc-toggle-row:last-child {
border-bottom: none;
}
.bpsc-toggle-info strong {
display: block;
font-size: 13px;
font-weight: 600;
color: #111827;
margin-bottom: 2px;
}
.bpsc-toggle-info span {
font-size: 12px;
color: #9ca3af;
}
.bpsc-switch {
position: relative;
display: inline-block;
width: 44px;
height: 24px;
flex-shrink: 0;
}
.bpsc-switch input {
opacity: 0;
width: 0;
height: 0;
}
.bpsc-slider {
position: absolute;
cursor: pointer;
inset: 0;
background: #d1d5db;
border-radius: 24px;
transition: background 0.2s;
}
.bpsc-slider::before {
content: '';
position: absolute;
width: 18px;
height: 18px;
left: 3px;
bottom: 3px;
background: #fff;
border-radius: 50%;
transition: transform 0.2s;
box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bpsc-switch input:checked + .bpsc-slider {
background: #C5A021;
}
.bpsc-switch input:checked + .bpsc-slider::before {
transform: translateX(20px);
}
/* ── Logo upload ───────────────────────────────────────────────── */
.bpsc-logo-preview-wrap {
display: flex;
align-items: center;
gap: 14px;
flex-wrap: wrap;
}
.bpsc-logo-preview-img {
width: 120px;
height: 60px;
border: 1.5px dashed #d1d5db;
border-radius: 8px;
object-fit: contain;
background: #f9fafb;
display: none;
}
.bpsc-logo-preview-img.has-image {
display: block;
}
.bpsc-btn-upload,
.bpsc-btn-remove {
padding: 8px 16px;
border-radius: 7px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: background 0.2s;
font-family: 'Inter', sans-serif;
border: none;
}
.bpsc-btn-upload {
background: #C5A021;
color: #fff;
}
.bpsc-btn-upload:hover { background: #8B6B13; }
.bpsc-btn-remove {
background: #fee2e2;
color: #b91c1c;
}
.bpsc-btn-remove:hover { background: #fecaca; }
/* ── Font selector ─────────────────────────────────────────────── */
.bpsc-font-preview {
margin-top: 8px;
font-size: 20px;
font-weight: 600;
color: #C5A021;
}
/* ── Save Button ───────────────────────────────────────────────── */
.bpsc-save-bar {
position: fixed;
bottom: 0;
left: 160px;
right: 0;
background: rgba(255,255,255,0.98);
backdrop-filter: blur(8px);
border-top: 1px solid #e5e7eb;
padding: 14px 32px;
display: flex;
align-items: center;
gap: 16px;
z-index: 99999;
margin-top: 0;
box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
body.folded .bpsc-save-bar {
left: 36px;
}
@media screen and (max-width: 782px) {
.bpsc-save-bar {
left: 0;
padding: 12px 16px;
}
}
.bpsc-save-btn {
background: linear-gradient(135deg, #C5A021, #F9D423);
color: #fff;
border: none;
border-radius: 8px;
padding: 12px 32px;
font-size: 14px;
font-weight: 700;
font-family: 'Inter', sans-serif;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
letter-spacing: 0.3px;
pointer-events: auto;
position: relative;
z-index: 1;
}
.bpsc-save-btn:disabled {
opacity: 0.75;
cursor: wait;
transform: none;
}
.bpsc-save-btn:hover {
transform: translateY(-1px);
box-shadow: 0 6px 20px rgba(123,47,190,0.35);
}
.bpsc-save-btn:active {
transform: translateY(0);
}
.bpsc-save-note {
font-size: 12px;
color: #9ca3af;
}
/* ── Preview Badge ─────────────────────────────────────────────── */
.bpsc-preview-link {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 20px;
border: 1.5px solid #C5A021;
border-radius: 8px;
color: #C5A021;
font-size: 13px;
font-weight: 600;
text-decoration: none;
transition: background 0.2s;
margin-left: auto;
}
.bpsc-preview-link:hover {
background: #f5f0ff;
color: #C5A021;
}
/* ── Theme Presets ─────────────────────────────────────────────── */
.bpsc-theme-presets {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 14px;
margin-top: 8px;
}
.bpsc-theme-preset {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 6px;
padding: 16px;
border: 2px solid #e5e7eb;
border-radius: 12px;
background: #fff;
cursor: pointer;
text-align: left;
transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
font-family: 'Inter', sans-serif;
}
.bpsc-theme-preset:hover {
border-color: #c4b5fd;
box-shadow: 0 4px 14px rgba(123, 47, 190, 0.1);
transform: translateY(-1px);
}
.bpsc-theme-preset.is-active {
border-color: #C5A021;
box-shadow: 0 0 0 3px rgba(123, 47, 190, 0.15);
}
.bpsc-preset-swatch {
width: 36px;
height: 36px;
border-radius: 8px;
background: var(--preset-swatch, #C5A021);
box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.bpsc-preset-label {
font-size: 14px;
font-weight: 600;
color: #111827;
}
.bpsc-preset-desc {
font-size: 11px;
color: #6b7280;
line-height: 1.4;
}
.bpsc-inline-notice {
margin-top: 14px;
padding: 10px 14px;
background: #f0fdf4;
border: 1px solid #bbf7d0;
border-radius: 8px;
color: #166534;
font-size: 13px;
}
/* ── Menu Assignment ───────────────────────────────────────────── */
.bpsc-menu-locations {
display: grid;
gap: 20px;
margin-top: 8px;
}
.bpsc-menu-location {
padding: 20px;
background: #f9fafb;
border: 1px solid #e5e7eb;
border-radius: 10px;
}
.bpsc-menu-location-head {
margin-bottom: 12px;
}
.bpsc-menu-location-head strong {
display: block;
font-size: 14px;
color: #111827;
margin-bottom: 2px;
}
.bpsc-menu-location-head span {
font-size: 12px;
color: #6b7280;
}
.bpsc-menu-select {
width: 100%;
max-width: 400px;
padding: 9px 12px;
border: 1px solid #d1d5db;
border-radius: 8px;
font-size: 13px;
font-family: 'Inter', sans-serif;
background: #fff;
}
.bpsc-link-btn {
display: inline-block;
margin-top: 8px;
font-size: 12px;
font-weight: 600;
color: #C5A021;
text-decoration: none;
}
.bpsc-link-btn:hover { text-decoration: underline; }
.bpsc-admin-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 20px;
}
.bpsc-btn-secondary {
display: inline-flex;
align-items: center;
padding: 9px 16px;
border: 1px solid #d1d5db;
border-radius: 8px;
background: #fff;
color: #374151;
font-size: 13px;
font-weight: 500;
text-decoration: none;
transition: background 0.2s, border-color 0.2s;
}
.bpsc-btn-secondary:hover {
background: #f9fafb;
border-color: #C5A021;
color: #C5A021;
}
.bpsc-badge-tips {
display: flex;
flex-wrap: wrap;
gap: 8px;
margin: 12px 0;
}
.bpsc-badge-tip {
padding: 4px 10px;
border-radius: 4px;
font-size: 10px;
font-weight: 700;
letter-spacing: 0.5px;
color: #fff;
}
.bpsc-badge-tip.sale { background: #ef4444; }
.bpsc-badge-tip.hot { background: #f97316; }
.bpsc-badge-tip.new { background: #22c55e; }
.bpsc-badge-tip.featured { background: #C5A021; }
.bpsc-help-text {
font-size: 12px;
color: #9ca3af;
line-height: 1.6;
margin: 0;
}
.bpsc-card-notice {
background: #f5f3ff !important;
border-color: #ddd6fe !important;
}
.bpsc-card-notice p {
margin: 0;
font-size: 13px;
color: #5b21b6;
}
.bpsc-link-inline {
background: none;
border: none;
color: #C5A021;
font-weight: 600;
font-size: 13px;
cursor: pointer;
padding: 0;
text-decoration: underline;
font-family: inherit;
}
/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
.bpsc-field-grid { grid-template-columns: 1fr; }
.bpsc-field-grid.cols-3 { grid-template-columns: 1fr; }
.bpsc-theme-presets { grid-template-columns: 1fr 1fr; }
}
Directory Contents
Dirs: 0 × Files: 9