1113 lines
20 KiB
CSS
1113 lines
20 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);
|
|
}
|
|
}
|
|
|
|
/* ============================================
|
|
Posts Management Tab
|
|
============================================ */
|
|
|
|
/* Posts Header */
|
|
.igsp-posts-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.igsp-posts-header h2 {
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.igsp-post-count {
|
|
font-weight: 400;
|
|
color: var(--igsp-gray);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Search */
|
|
.igsp-search-wrapper {
|
|
display: flex;
|
|
gap: 5px;
|
|
}
|
|
|
|
.igsp-search-input {
|
|
min-width: 220px;
|
|
padding: 6px 12px;
|
|
border: 1px solid var(--igsp-border);
|
|
border-radius: var(--igsp-radius);
|
|
}
|
|
|
|
/* Posts Table */
|
|
.igsp-posts-table-wrapper {
|
|
border: 1px solid var(--igsp-border);
|
|
border-radius: var(--igsp-radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.igsp-posts-table {
|
|
margin: 0 !important;
|
|
border: none !important;
|
|
}
|
|
|
|
.igsp-posts-table th {
|
|
background: var(--igsp-light);
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
padding: 12px 15px;
|
|
}
|
|
|
|
.igsp-posts-table td {
|
|
padding: 10px 15px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.igsp-col-thumb {
|
|
width: 70px;
|
|
}
|
|
|
|
.igsp-col-type {
|
|
width: 80px;
|
|
}
|
|
|
|
.igsp-col-status {
|
|
width: 80px;
|
|
}
|
|
|
|
.igsp-col-link {
|
|
width: 50px;
|
|
text-align: center;
|
|
}
|
|
|
|
.igsp-col-date {
|
|
width: 150px;
|
|
}
|
|
|
|
.igsp-col-actions {
|
|
width: 100px;
|
|
}
|
|
|
|
/* Post Thumbnail */
|
|
.igsp-post-thumb {
|
|
width: 50px;
|
|
height: 50px;
|
|
object-fit: cover;
|
|
border-radius: 6px;
|
|
display: block;
|
|
}
|
|
|
|
.igsp-post-thumb-placeholder {
|
|
width: 50px;
|
|
height: 50px;
|
|
background: var(--igsp-light);
|
|
border-radius: 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--igsp-gray);
|
|
}
|
|
|
|
.igsp-post-thumb-placeholder .dashicons {
|
|
font-size: 24px;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
/* Caption */
|
|
.igsp-caption-text {
|
|
font-size: 13px;
|
|
color: var(--igsp-dark);
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Post Link */
|
|
.igsp-post-link {
|
|
color: var(--igsp-primary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.igsp-post-link:hover {
|
|
color: var(--igsp-primary-hover);
|
|
}
|
|
|
|
.igsp-post-link .dashicons {
|
|
font-size: 18px;
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.igsp-no-link {
|
|
color: var(--igsp-gray);
|
|
}
|
|
|
|
/* Type Badges */
|
|
.igsp-type-badge {
|
|
display: inline-block;
|
|
padding: 3px 8px;
|
|
border-radius: 3px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.igsp-type-synced {
|
|
background: rgba(23, 162, 184, 0.1);
|
|
color: var(--igsp-info);
|
|
}
|
|
|
|
.igsp-type-manual {
|
|
background: rgba(225, 48, 108, 0.1);
|
|
color: var(--igsp-primary);
|
|
}
|
|
|
|
/* Status Badges */
|
|
.igsp-status-badge {
|
|
display: inline-block;
|
|
padding: 3px 8px;
|
|
border-radius: 3px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.igsp-status-active {
|
|
background: rgba(40, 167, 69, 0.1);
|
|
color: var(--igsp-success);
|
|
}
|
|
|
|
.igsp-status-inactive {
|
|
background: rgba(220, 53, 69, 0.1);
|
|
color: var(--igsp-error);
|
|
}
|
|
|
|
/* Inactive Row */
|
|
.igsp-post-inactive {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.igsp-post-inactive:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Action Buttons */
|
|
.igsp-action-buttons {
|
|
display: flex;
|
|
gap: 5px;
|
|
}
|
|
|
|
.igsp-action-buttons .button {
|
|
padding: 2px 6px;
|
|
min-height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.igsp-action-buttons .dashicons {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.igsp-delete-post {
|
|
color: var(--igsp-error) !important;
|
|
border-color: var(--igsp-error) !important;
|
|
}
|
|
|
|
.igsp-delete-post:hover {
|
|
background: var(--igsp-error) !important;
|
|
color: #fff !important;
|
|
}
|
|
|
|
/* Post Date */
|
|
.igsp-post-date {
|
|
font-size: 12px;
|
|
color: var(--igsp-gray);
|
|
}
|
|
|
|
/* No Posts */
|
|
.igsp-no-posts {
|
|
padding: 40px;
|
|
text-align: center;
|
|
color: var(--igsp-gray);
|
|
background: var(--igsp-light);
|
|
border-radius: var(--igsp-radius);
|
|
}
|
|
|
|
/* ============================================
|
|
Pagination
|
|
============================================ */
|
|
.igsp-pagination {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
margin-top: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.igsp-pagination .button {
|
|
min-width: 36px;
|
|
text-align: center;
|
|
}
|
|
|
|
.igsp-pagination-info {
|
|
margin-left: 15px;
|
|
font-size: 13px;
|
|
color: var(--igsp-gray);
|
|
}
|
|
|
|
/* ============================================
|
|
Manual Post Form
|
|
============================================ */
|
|
.igsp-manual-post-form {
|
|
background: var(--igsp-light);
|
|
border-radius: var(--igsp-radius);
|
|
padding: 25px;
|
|
}
|
|
|
|
.igsp-manual-post-fields {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
gap: 20px;
|
|
align-items: start;
|
|
}
|
|
|
|
.igsp-manual-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.igsp-manual-field label {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
color: var(--igsp-dark);
|
|
}
|
|
|
|
.igsp-manual-field .required {
|
|
color: var(--igsp-error);
|
|
}
|
|
|
|
.igsp-manual-image-field {
|
|
grid-row: span 4;
|
|
}
|
|
|
|
/* Image Upload Area */
|
|
.igsp-image-upload-area {
|
|
width: 200px;
|
|
height: 200px;
|
|
border: 2px dashed var(--igsp-border);
|
|
border-radius: var(--igsp-radius);
|
|
cursor: pointer;
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: border-color 0.2s;
|
|
background: #fff;
|
|
}
|
|
|
|
.igsp-image-upload-area:hover {
|
|
border-color: var(--igsp-primary);
|
|
}
|
|
|
|
.igsp-upload-placeholder {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100%;
|
|
gap: 8px;
|
|
color: var(--igsp-gray);
|
|
}
|
|
|
|
.igsp-upload-placeholder .dashicons {
|
|
font-size: 40px;
|
|
width: 40px;
|
|
height: 40px;
|
|
color: var(--igsp-border);
|
|
}
|
|
|
|
.igsp-upload-placeholder span:last-child {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Select Image Button */
|
|
#igsp-select-image-btn {
|
|
margin-top: 10px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
width: 200px;
|
|
justify-content: center;
|
|
}
|
|
|
|
#igsp-select-image-btn .dashicons {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* Image Preview */
|
|
.igsp-image-preview {
|
|
width: 100%;
|
|
height: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.igsp-image-preview img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.igsp-remove-image {
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
background: rgba(220, 53, 69, 0.9);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.igsp-remove-image:hover {
|
|
background: var(--igsp-error);
|
|
}
|
|
|
|
.igsp-remove-image .dashicons {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* Manual Post Actions */
|
|
.igsp-manual-post-actions {
|
|
margin-top: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
}
|
|
|
|
.igsp-manual-post-actions .button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.igsp-manual-post-actions .dashicons {
|
|
font-size: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
@media (max-width: 782px) {
|
|
.igsp-manual-post-fields {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.igsp-manual-image-field {
|
|
grid-row: auto;
|
|
}
|
|
|
|
.igsp-image-upload-area {
|
|
width: 100%;
|
|
height: 150px;
|
|
}
|
|
|
|
.igsp-posts-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.igsp-col-date,
|
|
.igsp-col-type {
|
|
display: none;
|
|
}
|
|
} |