650 lines
13 KiB
CSS
650 lines
13 KiB
CSS
/**
|
|
* Instagram Gallery Sync Pro - Admin Styles
|
|
*
|
|
* @package Instagram_Gallery_Sync_Pro
|
|
*/
|
|
|
|
/* ============================================
|
|
Variables
|
|
============================================ */
|
|
:root {
|
|
--igsp-primary: #e1306c;
|
|
--igsp-primary-hover: #c13584;
|
|
--igsp-success: #28a745;
|
|
--igsp-warning: #ffc107;
|
|
--igsp-error: #dc3545;
|
|
--igsp-info: #17a2b8;
|
|
--igsp-dark: #1e1e1e;
|
|
--igsp-gray: #6c757d;
|
|
--igsp-light: #f8f9fa;
|
|
--igsp-border: #e2e4e7;
|
|
--igsp-shadow: 0 2px 8px rgba(0,0,0,0.08);
|
|
--igsp-radius: 8px;
|
|
}
|
|
|
|
/* ============================================
|
|
Layout
|
|
============================================ */
|
|
.igsp-admin-wrap {
|
|
display: grid;
|
|
grid-template-columns: 1fr 300px;
|
|
gap: 20px;
|
|
margin: 20px 20px 20px 0;
|
|
}
|
|
|
|
.igsp-admin-header {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
padding: 20px;
|
|
background: linear-gradient(135deg, var(--igsp-primary), var(--igsp-primary-hover));
|
|
color: #fff;
|
|
border-radius: var(--igsp-radius);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.igsp-admin-header h1 {
|
|
margin: 0;
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.igsp-admin-header .dashicons {
|
|
font-size: 30px;
|
|
width: 30px;
|
|
height: 30px;
|
|
}
|
|
|
|
.igsp-version {
|
|
margin: 0;
|
|
opacity: 0.8;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.igsp-admin-content {
|
|
background: #fff;
|
|
border-radius: var(--igsp-radius);
|
|
box-shadow: var(--igsp-shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ============================================
|
|
Tabs Navigation
|
|
============================================ */
|
|
.igsp-tabs-nav {
|
|
display: flex;
|
|
background: var(--igsp-light);
|
|
border-bottom: 1px solid var(--igsp-border);
|
|
padding: 0 20px;
|
|
gap: 5px;
|
|
}
|
|
|
|
.igsp-tab-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 15px 20px;
|
|
text-decoration: none;
|
|
color: var(--igsp-gray);
|
|
font-weight: 500;
|
|
border-bottom: 3px solid transparent;
|
|
margin-bottom: -1px;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.igsp-tab-link:hover {
|
|
color: var(--igsp-primary);
|
|
}
|
|
|
|
.igsp-tab-link.active {
|
|
color: var(--igsp-primary);
|
|
border-bottom-color: var(--igsp-primary);
|
|
background: #fff;
|
|
}
|
|
|
|
.igsp-tab-link .dashicons {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* ============================================
|
|
Tab Content
|
|
============================================ */
|
|
.igsp-tab-content {
|
|
padding: 30px;
|
|
}
|
|
|
|
.igsp-section {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.igsp-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.igsp-section h2 {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--igsp-dark);
|
|
margin: 0 0 20px 0;
|
|
padding-bottom: 10px;
|
|
border-bottom: 2px solid var(--igsp-border);
|
|
}
|
|
|
|
/* ============================================
|
|
Form Elements
|
|
============================================ */
|
|
.igsp-settings-form .form-table th {
|
|
padding: 20px 10px 20px 0;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.igsp-settings-form .form-table td {
|
|
padding: 15px 10px;
|
|
}
|
|
|
|
.igsp-input-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
max-width: 300px;
|
|
}
|
|
|
|
.igsp-input-prefix {
|
|
background: var(--igsp-light);
|
|
border: 1px solid var(--igsp-border);
|
|
border-right: none;
|
|
padding: 6px 12px;
|
|
border-radius: var(--igsp-radius) 0 0 var(--igsp-radius);
|
|
color: var(--igsp-gray);
|
|
}
|
|
|
|
.igsp-input-wrapper input {
|
|
border-radius: 0 var(--igsp-radius) var(--igsp-radius) 0 !important;
|
|
}
|
|
|
|
/* Slider Wrapper */
|
|
.igsp-slider-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.igsp-slider-wrapper input[type="range"] {
|
|
flex: 1;
|
|
-webkit-appearance: none;
|
|
height: 6px;
|
|
background: var(--igsp-border);
|
|
border-radius: 3px;
|
|
outline: none;
|
|
}
|
|
|
|
.igsp-slider-wrapper input[type="range"]::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
background: var(--igsp-primary);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.igsp-slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.igsp-slider-value {
|
|
min-width: 50px;
|
|
padding: 5px 10px;
|
|
background: var(--igsp-light);
|
|
border-radius: var(--igsp-radius);
|
|
text-align: center;
|
|
font-weight: 500;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Inline Fields */
|
|
.igsp-inline-fields {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
/* ============================================
|
|
Layout Selector
|
|
============================================ */
|
|
.igsp-layout-selector {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
gap: 15px;
|
|
max-width: 800px;
|
|
}
|
|
|
|
.igsp-layout-option {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 20px;
|
|
border: 2px solid var(--igsp-border);
|
|
border-radius: var(--igsp-radius);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
background: #fff;
|
|
}
|
|
|
|
.igsp-layout-option:hover {
|
|
border-color: var(--igsp-primary);
|
|
}
|
|
|
|
.igsp-layout-option.selected {
|
|
border-color: var(--igsp-primary);
|
|
background: rgba(225, 48, 108, 0.05);
|
|
}
|
|
|
|
.igsp-layout-option input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.igsp-layout-preview {
|
|
width: 100px;
|
|
height: 70px;
|
|
display: grid;
|
|
gap: 3px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.igsp-layout-preview span {
|
|
background: var(--igsp-border);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.igsp-preview-grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.igsp-preview-masonry {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.igsp-preview-justified {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 3px;
|
|
}
|
|
|
|
.igsp-preview-justified span {
|
|
height: 30px;
|
|
}
|
|
|
|
.igsp-preview-slider {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 5px;
|
|
}
|
|
|
|
.igsp-preview-slider .slide {
|
|
flex: 1;
|
|
height: 100%;
|
|
}
|
|
|
|
.igsp-preview-slider .arrow-left,
|
|
.igsp-preview-slider .arrow-right {
|
|
background: none;
|
|
color: var(--igsp-gray);
|
|
font-size: 20px;
|
|
}
|
|
|
|
.igsp-preview-list {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.igsp-layout-name {
|
|
font-weight: 500;
|
|
color: var(--igsp-dark);
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* ============================================
|
|
Sidebar
|
|
============================================ */
|
|
.igsp-admin-sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.igsp-sidebar-box {
|
|
background: #fff;
|
|
border-radius: var(--igsp-radius);
|
|
box-shadow: var(--igsp-shadow);
|
|
padding: 20px;
|
|
}
|
|
|
|
.igsp-sidebar-box h3 {
|
|
margin: 0 0 15px 0;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--igsp-dark);
|
|
}
|
|
|
|
/* Status Box */
|
|
.igsp-status-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid var(--igsp-border);
|
|
}
|
|
|
|
.igsp-status-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.igsp-status-label {
|
|
color: var(--igsp-gray);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.igsp-status-value {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Shortcode Box */
|
|
.igsp-shortcode-display {
|
|
display: block;
|
|
padding: 12px;
|
|
background: var(--igsp-dark);
|
|
color: #fff;
|
|
border-radius: var(--igsp-radius);
|
|
font-size: 13px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/* Help Box */
|
|
.igsp-help-box ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.igsp-help-box li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.igsp-help-box li .dashicons {
|
|
color: var(--igsp-primary);
|
|
}
|
|
|
|
.igsp-help-box a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* ============================================
|
|
Progress Bar
|
|
============================================ */
|
|
.igsp-progress-wrapper {
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.igsp-progress-bar {
|
|
height: 8px;
|
|
background: var(--igsp-light);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.igsp-progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, var(--igsp-primary), var(--igsp-primary-hover));
|
|
width: 0%;
|
|
transition: width 0.3s ease;
|
|
animation: igsp-progress-pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes igsp-progress-pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.7; }
|
|
}
|
|
|
|
.igsp-progress-text {
|
|
font-size: 13px;
|
|
color: var(--igsp-gray);
|
|
}
|
|
|
|
/* Sync Result */
|
|
.igsp-sync-result {
|
|
margin-top: 15px;
|
|
padding: 12px;
|
|
border-radius: var(--igsp-radius);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.igsp-sync-result.success {
|
|
background: rgba(40, 167, 69, 0.1);
|
|
color: var(--igsp-success);
|
|
}
|
|
|
|
.igsp-sync-result.error {
|
|
background: rgba(220, 53, 69, 0.1);
|
|
color: var(--igsp-error);
|
|
}
|
|
|
|
/* ============================================
|
|
Tools Grid
|
|
============================================ */
|
|
.igsp-tools-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.igsp-tool-card {
|
|
padding: 20px;
|
|
background: var(--igsp-light);
|
|
border-radius: var(--igsp-radius);
|
|
}
|
|
|
|
.igsp-tool-card h3 {
|
|
margin: 0 0 10px 0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.igsp-tool-card p {
|
|
margin: 0 0 15px 0;
|
|
font-size: 13px;
|
|
color: var(--igsp-gray);
|
|
}
|
|
|
|
.igsp-tool-danger {
|
|
background: rgba(220, 53, 69, 0.05);
|
|
}
|
|
|
|
.button-danger {
|
|
background: var(--igsp-error) !important;
|
|
border-color: var(--igsp-error) !important;
|
|
color: #fff !important;
|
|
}
|
|
|
|
.button-danger:hover {
|
|
background: #c82333 !important;
|
|
}
|
|
|
|
/* ============================================
|
|
Logs
|
|
============================================ */
|
|
.igsp-logs-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.igsp-logs-header h2 {
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.igsp-logs-table-wrapper {
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--igsp-border);
|
|
border-radius: var(--igsp-radius);
|
|
}
|
|
|
|
.igsp-logs-table {
|
|
margin: 0 !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.igsp-logs-table th {
|
|
background: var(--igsp-light);
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
|
|
.igsp-log-type { width: 100px; }
|
|
.igsp-log-date { width: 120px; }
|
|
|
|
.igsp-log-badge {
|
|
display: inline-block;
|
|
padding: 3px 8px;
|
|
border-radius: 3px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.igsp-log-success { background: rgba(40, 167, 69, 0.1); color: var(--igsp-success); }
|
|
.igsp-log-error { background: rgba(220, 53, 69, 0.1); color: var(--igsp-error); }
|
|
.igsp-log-warning { background: rgba(255, 193, 7, 0.1); color: #856404; }
|
|
.igsp-log-info { background: rgba(23, 162, 184, 0.1); color: var(--igsp-info); }
|
|
|
|
.igsp-no-logs {
|
|
padding: 40px;
|
|
text-align: center;
|
|
color: var(--igsp-gray);
|
|
background: var(--igsp-light);
|
|
border-radius: var(--igsp-radius);
|
|
}
|
|
|
|
/* ============================================
|
|
Style Preview
|
|
============================================ */
|
|
.igsp-style-preview {
|
|
padding: 30px;
|
|
background: var(--igsp-light);
|
|
border-radius: var(--igsp-radius);
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
.igsp-preview-item {
|
|
text-align: center;
|
|
}
|
|
|
|
.igsp-preview-image {
|
|
width: 200px;
|
|
height: 200px;
|
|
background: linear-gradient(135deg, #667eea, #764ba2);
|
|
border-radius: var(--igsp-radius);
|
|
position: relative;
|
|
overflow: hidden;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.igsp-preview-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--hover);
|
|
opacity: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: opacity 0.3s;
|
|
}
|
|
|
|
.igsp-preview-image:hover .igsp-preview-overlay {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.igsp-preview-caption {
|
|
color: var(--text);
|
|
}
|
|
|
|
.igsp-preview-button {
|
|
background: var(--primary) !important;
|
|
color: var(--text) !important;
|
|
border: none !important;
|
|
padding: 10px 25px !important;
|
|
border-radius: var(--igsp-radius) !important;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.igsp-preview-button:hover {
|
|
background: var(--hover) !important;
|
|
}
|
|
|
|
/* ============================================
|
|
Color Picker
|
|
============================================ */
|
|
.wp-picker-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
/* ============================================
|
|
Responsive
|
|
============================================ */
|
|
@media (max-width: 1200px) {
|
|
.igsp-admin-wrap {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.igsp-admin-sidebar {
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.igsp-sidebar-box {
|
|
flex: 1;
|
|
min-width: 250px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 782px) {
|
|
.igsp-tabs-nav {
|
|
flex-wrap: wrap;
|
|
padding: 10px;
|
|
}
|
|
|
|
.igsp-tab-link {
|
|
flex: 1;
|
|
justify-content: center;
|
|
padding: 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.igsp-tab-link .dashicons {
|
|
display: none;
|
|
}
|
|
|
|
.igsp-layout-selector {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|