- Fix toggle functionality for auto upload settings\n- Remove save changes button in favor of auto-saving\n- Improve loading spinner layout to prevent content jumping\n- Update tab navigation design\n- Enhance notification system with better positioning and styling\n- Add auto-save functionality for all settings\n- Improve error handling and feedback
373 lines
6.9 KiB
CSS
373 lines
6.9 KiB
CSS
.wp-allstars-wrap {
|
|
max-width: none;
|
|
margin: 0;
|
|
padding-right: 20px;
|
|
}
|
|
|
|
.wp-allstars-header {
|
|
background: #fff;
|
|
border-bottom: 1px solid #c3c4c7;
|
|
box-shadow: 0 1px 0 rgba(0,0,0,.04);
|
|
margin: 0 -20px 20px -20px;
|
|
padding: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: auto;
|
|
position: relative;
|
|
}
|
|
|
|
.wp-allstars-header h1 {
|
|
font-size: 23px;
|
|
font-weight: 400;
|
|
margin: 0;
|
|
padding: 0;
|
|
line-height: 1.3;
|
|
color: #1d2327;
|
|
}
|
|
|
|
.wp-allstars-header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.wp-allstars-version {
|
|
color: #646970;
|
|
font-size: 13px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* Navigation Tabs */
|
|
.nav-tab-wrapper,
|
|
.wrap h2.nav-tab-wrapper {
|
|
border-bottom: 1px solid #c3c4c7;
|
|
margin: 0 -20px;
|
|
padding: 0 20px;
|
|
background: #fff;
|
|
position: sticky;
|
|
top: 32px;
|
|
z-index: 100;
|
|
}
|
|
|
|
.nav-tab {
|
|
margin: 0;
|
|
padding: 12px 20px;
|
|
font-size: 14px;
|
|
line-height: 2;
|
|
font-weight: 400;
|
|
background: transparent;
|
|
color: #50575e;
|
|
text-decoration: none;
|
|
white-space: nowrap;
|
|
border: none;
|
|
border-bottom: 2px solid transparent;
|
|
display: inline-block;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.nav-tab:hover,
|
|
.nav-tab:focus {
|
|
color: #2271b1;
|
|
background: transparent;
|
|
border-color: #2271b1;
|
|
}
|
|
|
|
.nav-tab-active,
|
|
.nav-tab-active:focus,
|
|
.nav-tab-active:focus:active,
|
|
.nav-tab-active:hover {
|
|
border-bottom: 2px solid #2271b1;
|
|
background: transparent;
|
|
color: #2271b1;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Toggle Switches */
|
|
.wp-toggle-switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 40px;
|
|
height: 20px;
|
|
margin-right: 12px;
|
|
}
|
|
|
|
.wp-toggle-switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.wp-toggle-slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: #ccc;
|
|
transition: .3s;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.wp-toggle-slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 16px;
|
|
width: 16px;
|
|
left: 2px;
|
|
bottom: 2px;
|
|
background-color: white;
|
|
transition: .3s;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
input:checked + .wp-toggle-slider {
|
|
background-color: #2271b1;
|
|
}
|
|
|
|
input:checked + .wp-toggle-slider:before {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
/* Settings Container */
|
|
.wp-allstars-settings-container {
|
|
padding: 0 20px;
|
|
max-width: 1100px;
|
|
}
|
|
|
|
.wp-allstars-settings-content {
|
|
margin-top: 20px;
|
|
padding: 0;
|
|
}
|
|
|
|
/* Toggle Sections */
|
|
.wp-allstars-toggle {
|
|
margin: 15px 0;
|
|
padding: 16px 20px;
|
|
background: #fff;
|
|
border: 1px solid #ddd;
|
|
border-radius: 4px;
|
|
box-shadow: 0 1px 4px rgba(0,0,0,0.02);
|
|
transition: all .15s ease-in-out;
|
|
}
|
|
|
|
.wp-allstars-toggle:hover {
|
|
border-color: #2271b1;
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.04);
|
|
}
|
|
|
|
.wp-allstars-toggle label {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
font-weight: 500;
|
|
color: #1d2327;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.wp-allstars-toggle .description {
|
|
margin: 6px 0 0 52px;
|
|
color: #666;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.wp-allstars-toggle-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Settings Dropdown */
|
|
.wp-allstars-toggle-settings {
|
|
display: none;
|
|
margin-top: 15px;
|
|
padding: 15px;
|
|
background: #f6f7f7;
|
|
border: 1px solid #c3c4c7;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.wp-allstars-toggle-settings.is-open {
|
|
display: block;
|
|
}
|
|
|
|
.wp-allstars-setting-row {
|
|
margin-bottom: 15px;
|
|
padding: 0;
|
|
}
|
|
|
|
.wp-allstars-setting-row:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.wp-allstars-setting-row label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
font-weight: 600;
|
|
color: #1d2327;
|
|
}
|
|
|
|
.wp-allstars-setting-row input[type="text"],
|
|
.wp-allstars-setting-row input[type="number"],
|
|
.wp-allstars-setting-row select,
|
|
.wp-allstars-setting-row textarea {
|
|
width: 100%;
|
|
max-width: 400px;
|
|
padding: 8px;
|
|
border: 1px solid #8c8f94;
|
|
border-radius: 4px;
|
|
box-shadow: 0 0 0 transparent;
|
|
transition: border-color .15s ease-in-out;
|
|
}
|
|
|
|
.wp-allstars-setting-row input[type="text"]:focus,
|
|
.wp-allstars-setting-row input[type="number"]:focus,
|
|
.wp-allstars-setting-row select:focus,
|
|
.wp-allstars-setting-row textarea:focus {
|
|
border-color: #2271b1;
|
|
box-shadow: 0 0 0 1px #2271b1;
|
|
outline: 2px solid transparent;
|
|
}
|
|
|
|
/* Expand/Collapse Button */
|
|
.wp-allstars-expand-settings {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 4px 8px;
|
|
background: #f0f0f1;
|
|
border: 1px solid #c3c4c7;
|
|
border-radius: 3px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
color: #50575e;
|
|
}
|
|
|
|
.wp-allstars-expand-settings:hover {
|
|
background: #fff;
|
|
border-color: #2271b1;
|
|
color: #2271b1;
|
|
}
|
|
|
|
.wp-allstars-expand-settings .dashicons {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.wp-allstars-expand-settings[aria-expanded="true"] .dashicons {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* Clear floats after tabs */
|
|
.nav-tab-wrapper::after {
|
|
content: "";
|
|
display: table;
|
|
clear: both;
|
|
}
|
|
|
|
/* Loading Overlay */
|
|
.wp-allstars-loading-overlay {
|
|
position: fixed;
|
|
top: 32px;
|
|
left: 160px;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
z-index: 100000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Plugin Filters */
|
|
.wp-allstars-plugin-filters {
|
|
margin: 0 0 20px;
|
|
padding: 0 0 12px;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.wp-allstars-plugin-filters .button {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
/* Plugin Cards */
|
|
.plugin-card {
|
|
border: 1px solid #ddd;
|
|
box-shadow: 0 1px 4px rgba(0,0,0,0.02);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.plugin-card:hover {
|
|
border-color: #2271b1;
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
|
}
|
|
|
|
/* Responsive Adjustments */
|
|
@media screen and (max-width: 782px) {
|
|
.wp-allstars-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.wp-allstars-header-actions {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.nav-tab {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.wp-allstars-toggle .description {
|
|
margin-left: 0;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.wp-allstars-toggle-settings {
|
|
margin-top: 10px;
|
|
padding: 12px;
|
|
}
|
|
}
|
|
|
|
/* Settings Notification */
|
|
.wp-status {
|
|
position: absolute !important;
|
|
right: 20px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: #00a32a;
|
|
color: white;
|
|
padding: 6px 12px;
|
|
border-radius: 12px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
z-index: 100;
|
|
}
|
|
|
|
.wp-status.error {
|
|
background: #d63638;
|
|
}
|
|
|
|
/* Settings Container */
|
|
.wp-list-table-container {
|
|
position: relative;
|
|
min-height: 400px;
|
|
}
|
|
|
|
.wpa-loading-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(255, 255, 255, 0.8);
|
|
z-index: 10;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
} |