477 lines
9.9 KiB
CSS
477 lines
9.9 KiB
CSS
/*
|
|
==============================
|
|
Pausera Admin Panel Styles (Grid-Based)
|
|
==============================
|
|
*/
|
|
|
|
:root {
|
|
--color-primary: #e57e00;
|
|
--color-primary-hover: #985300;
|
|
--color-white: #fff;
|
|
--color-black: #000;
|
|
--color-bg: #f2f3f5;
|
|
--color-box: #fff;
|
|
--color-text: #222;
|
|
--color-border: #ddd;
|
|
|
|
|
|
|
|
|
|
--top-bar-bg: #f3f3f3;
|
|
--top-bar-text: #000000;
|
|
--top-bar-height: 50px;
|
|
|
|
--head-bar-bg: #fff;
|
|
--head-bar-text: #fff;
|
|
--head-bar-height: 100px;
|
|
--head-bar-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
--radius: 24px;
|
|
--radius-inner: 16px;
|
|
}
|
|
|
|
/* ============================
|
|
Top Info Bar
|
|
============================ */
|
|
.pausera-support-bar {
|
|
width: 100%;
|
|
padding: 12px 32px;
|
|
|
|
color: #ffffff;
|
|
font-weight: bold;
|
|
font-size: 15px;
|
|
border-bottom: 1px solid #ffcc99;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
/* ============================
|
|
Status Bar
|
|
============================ */
|
|
.pausera-status-bar {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
align-items: center;
|
|
|
|
background: var(--top-bar-bg);
|
|
color: var(--top-bar-text);
|
|
height: var(--top-bar-height);
|
|
|
|
padding: 0 32px;
|
|
|
|
}
|
|
|
|
/* ============================
|
|
Header Area
|
|
============================ */
|
|
.pausera-header {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
align-items: center;
|
|
|
|
|
|
background: var(--head-bar-bg);
|
|
color: var(--head-bar-text);
|
|
height: var(--head-bar-height);
|
|
box-shadow: var(--head-bar-shadow);
|
|
padding: 0 32px;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
.pausera-title {
|
|
font-size: 28px;
|
|
font-weight: 900;
|
|
color: var(--color-text);
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* ============================
|
|
Main Grid Layout
|
|
============================ */
|
|
.pausera-wrap {
|
|
display: grid;
|
|
grid-template-columns: 1fr 250px;
|
|
gap: 10px;
|
|
max-width: 1200px;
|
|
margin: 32px auto;
|
|
padding: 0 16px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
/* ============================
|
|
Form Area
|
|
============================ */
|
|
.formular {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 24px;
|
|
}
|
|
.formular div{
|
|
margin-bottom: 1rem;
|
|
}
|
|
/* ============================
|
|
Cards
|
|
============================ */
|
|
.pausera-card {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 12px;
|
|
background: var(--color-white);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius);
|
|
padding: 24px;
|
|
box-shadow: 0 1px 3px rgba(0,0,0,0.02);
|
|
}
|
|
|
|
.pausera-card h3 {
|
|
margin: 0;
|
|
font-size: 18px;
|
|
font-weight: bold;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.pausera-card label {
|
|
font-weight: 600;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.pausera-card input[type="text"],
|
|
.pausera-card select {
|
|
width: 100%;
|
|
padding: 10px 16px;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--color-border);
|
|
background: var(--color-box);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
/* ============================
|
|
Toggle Switch
|
|
============================ */
|
|
.pausera-card.toggle-box {
|
|
|
|
background: #f8f8f8;
|
|
border: 2px solid var(--color-border);
|
|
border-radius: var(--radius);
|
|
padding: 24px;
|
|
transition: 0.2s ease;
|
|
text-align: center;
|
|
min-height: 200px;
|
|
justify-content: center;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.pausera-card.toggle-box:hover {
|
|
border-color: #aaa;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.pausera-card.toggle-box.active {
|
|
background: var(--color-primary);
|
|
border-color: var(--color-primary-hover);
|
|
}
|
|
|
|
.pausera-card.toggle-box input[type="checkbox"] {
|
|
display: none;
|
|
}
|
|
|
|
.pausera-card.toggle-box label {
|
|
display: grid;
|
|
gap: 6px;
|
|
color: var(--color-text);
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.pausera-card.toggle-box.active label {
|
|
color: #fff;
|
|
}
|
|
|
|
.pausera-toggle-label {
|
|
font-size: 2rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* ============================
|
|
Buttons
|
|
============================ */
|
|
.pausera-buttons {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
|
|
gap: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.pausera-save,
|
|
.pausera-reset {
|
|
padding: 14px 30px;
|
|
border-radius: var(--radius);
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
border: none;
|
|
cursor: pointer;
|
|
transition: 0.2s;
|
|
}
|
|
|
|
.pausera-save {
|
|
background: var(--color-primary);
|
|
color: var(--color-white);
|
|
}
|
|
|
|
.pausera-save:hover {
|
|
background: var(--color-primary-hover);
|
|
}
|
|
|
|
.pausera-reset {
|
|
background: #444;
|
|
color: var(--color-white);
|
|
}
|
|
|
|
.pausera-reset:hover {
|
|
background: #222;
|
|
}
|
|
|
|
/* ============================
|
|
Sidebar
|
|
============================ */
|
|
.pausera-sidebar {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 24px;
|
|
background: var(--color-white);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.pausera-sidebar h4 {
|
|
margin-top: 0;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
color: var(--color-text);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.pausera-sidebar ul {
|
|
list-style: none;
|
|
padding-left: 0;
|
|
margin: 0;
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.pausera-sidebar a {
|
|
color: var(--color-primary);
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.pausera-sidebar a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* ============================
|
|
Responsive
|
|
============================ */
|
|
@media (max-width: 1024px) {
|
|
.pausera-wrap {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.pausera-sidebar {
|
|
order: 2;
|
|
margin-top: 32px;
|
|
}
|
|
|
|
.formular {
|
|
order: 1;
|
|
}
|
|
}
|
|
/* ============================
|
|
WordPress Admin Fixes
|
|
============================ */
|
|
body.toplevel_page_pausera #wpcontent {
|
|
padding-left: 0 !important;
|
|
}
|
|
|
|
body.toplevel_page_pausera .updated,
|
|
body.toplevel_page_pausera .notice-success {
|
|
display: none !important;
|
|
}
|
|
body.toplevel_page_pausera .notice,
|
|
body.toplevel_page_pausera .updated,
|
|
body.toplevel_page_pausera .notice-success {
|
|
display: none !important;
|
|
}
|
|
|
|
|
|
/* ============================
|
|
POPUp SAVE
|
|
============================ */
|
|
.pausera-confirm-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(0, 0, 0, 0.4);
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
}
|
|
|
|
.pausera-confirm-dialog {
|
|
background: #fff;
|
|
border-radius: var(--radius);
|
|
padding: 32px;
|
|
max-width: 400px;
|
|
width: 90%;
|
|
text-align: center;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
|
}
|
|
/* ============================
|
|
WordPress Admin notice
|
|
============================ */
|
|
|
|
.pausera-notice {
|
|
background: #e7f7ec;
|
|
color: #007c43;
|
|
border: 1px solid #b8e1c0;
|
|
padding: 16px 20px;
|
|
border-radius: var(--radius-sm);
|
|
font-weight: bold;
|
|
margin: 16px 32px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.05);
|
|
}
|
|
.pausera-header-status {
|
|
font-weight: bold;
|
|
margin-left: 12px;
|
|
}
|
|
|
|
.pausera-status-on {
|
|
color: orange;
|
|
}
|
|
|
|
.pausera-status-off {
|
|
color: #999;
|
|
}
|
|
/* ============================
|
|
Unified Input / Select / Select2 Styling
|
|
============================ */
|
|
.pausera-card input[type="text"],
|
|
.pausera-card select,
|
|
.select2-container--default .select2-selection--single,
|
|
.select2-container--default .select2-selection--multiple {
|
|
width: 100% !important;
|
|
padding: 10px 16px !important;
|
|
border-radius: var(--radius) !important;
|
|
border: 1px solid var(--color-border) !important;
|
|
background: var(--color-box) !important;
|
|
color: var(--color-text) !important;
|
|
font-size: 15px !important;
|
|
line-height: 1.5;
|
|
box-sizing: border-box;
|
|
min-height: 40px;
|
|
}
|
|
|
|
/* ============================
|
|
Select2 Placeholder & Text
|
|
============================ */
|
|
.select2-container--default .select2-selection__rendered {
|
|
color: var(--color-text) !important;
|
|
padding-left: 4px;
|
|
line-height: 1.4 !important;
|
|
}
|
|
|
|
/* ============================
|
|
Select2 Dropdown Arrow
|
|
============================ */
|
|
.select2-container--default .select2-selection__arrow {
|
|
height: 100% !important;
|
|
right: 10px !important;
|
|
}
|
|
|
|
/* ============================
|
|
Multi-Select Chips (Tags)
|
|
============================ */
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice {
|
|
background: var(--color-primary) !important;
|
|
border: none !important;
|
|
border-radius: var(--radius-inner) !important;
|
|
padding: 4px 4px 4px 25px!important;
|
|
font-size: 13px;
|
|
color: #fff !important;
|
|
margin: 4px 4px 0 0;
|
|
}
|
|
|
|
/* ============================
|
|
Field Focus Styling
|
|
============================ */
|
|
.pausera-card input[type="text"]:focus,
|
|
.pausera-card select:focus,
|
|
.select2-container--default .select2-selection:focus {
|
|
outline: none !important;
|
|
border-color: var(--color-primary-hover) !important;
|
|
box-shadow: 0 0 0 1px var(--color-primary-hover) !important;
|
|
}
|
|
/* ============================
|
|
Select2 Dropdown Customization
|
|
============================ */
|
|
|
|
.select2-container--default .select2-dropdown {
|
|
background-color: var(--color-box) !important;
|
|
border: 1px solid var(--color-border) !important;
|
|
border-radius: var(--radius) !important;
|
|
overflow: hidden;
|
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
|
|
}
|
|
|
|
.select2-container--default .select2-results__option {
|
|
padding: 10px 16px !important;
|
|
font-size: 15px;
|
|
color: var(--color-text);
|
|
border-radius: 0 !important;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.select2-container--default .select2-results__option--highlighted[aria-selected] {
|
|
background-color: var(--color-primary) !important;
|
|
color: #fff !important;
|
|
}
|
|
|
|
.select2-container--default .select2-results__option[aria-selected="true"] {
|
|
background-color: var(--color-primary-hover) !important;
|
|
color: #fff !important;
|
|
}
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
|
|
|
|
}
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
|
|
padding: 6px!important;
|
|
background-color: rgba(0, 0, 0, 0.3)!important;
|
|
border-right: none!important;
|
|
}
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
|
|
|
|
background-color: rgba(208, 0, 0, 0.87)!important;
|
|
}
|
|
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove span {
|
|
|
|
color: #fff!important;
|
|
padding: 0px 0px 2px 2px;
|
|
margin-top: -12px!important;
|
|
|
|
} |