| 1 |
/** |
| 2 |
* wpForo AI Features - WordPress Content Indexing Styles |
| 3 |
* |
| 4 |
* Isolated CSS for WordPress content indexing tab. |
| 5 |
* Completely independent from forum indexing styles. |
| 6 |
* |
| 7 |
* @package wpForo |
| 8 |
* @subpackage Admin |
| 9 |
* @since 3.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
/* ========================================================================== |
| 13 |
WordPress Indexing Tab Container |
| 14 |
========================================================================== */ |
| 15 |
|
| 16 |
.wpforo-ai-wp-indexing-tab { |
| 17 |
margin: 0; |
| 18 |
} |
| 19 |
|
| 20 |
/* ========================================================================== |
| 21 |
Indexing Status Box (NEW) |
| 22 |
========================================================================== */ |
| 23 |
|
| 24 |
.wpforo-ai-wp-status-box { |
| 25 |
margin-bottom: 20px; |
| 26 |
} |
| 27 |
|
| 28 |
.wpforo-ai-wp-status-box .wpforo-ai-box-header h2 { |
| 29 |
display: flex; |
| 30 |
align-items: center; |
| 31 |
gap: 10px; |
| 32 |
} |
| 33 |
|
| 34 |
.wpforo-ai-wp-status-box .wpforo-ai-box-header h2 .dashicons { |
| 35 |
font-size: 20px; |
| 36 |
width: 20px; |
| 37 |
height: 20px; |
| 38 |
color: #0073aa; |
| 39 |
} |
| 40 |
|
| 41 |
.wpforo-ai-wp-status-grid { |
| 42 |
display: grid; |
| 43 |
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); |
| 44 |
gap: 20px; |
| 45 |
} |
| 46 |
|
| 47 |
.wpforo-ai-wp-status-item { |
| 48 |
padding: 15px 20px; |
| 49 |
background: #f8f9fa; |
| 50 |
border: 1px solid #dcdcde; |
| 51 |
border-radius: 4px; |
| 52 |
} |
| 53 |
|
| 54 |
.wpforo-ai-wp-status-item .status-label { |
| 55 |
font-size: 12px; |
| 56 |
font-weight: 600; |
| 57 |
text-transform: uppercase; |
| 58 |
color: #646970; |
| 59 |
margin-bottom: 8px; |
| 60 |
} |
| 61 |
|
| 62 |
.wpforo-ai-wp-status-item .status-value { |
| 63 |
font-size: 15px; |
| 64 |
font-weight: 500; |
| 65 |
color: #1d2327; |
| 66 |
display: flex; |
| 67 |
align-items: center; |
| 68 |
gap: 8px; |
| 69 |
} |
| 70 |
|
| 71 |
.wpforo-ai-wp-status-item .status-value .dashicons { |
| 72 |
font-size: 18px; |
| 73 |
width: 18px; |
| 74 |
height: 18px; |
| 75 |
} |
| 76 |
|
| 77 |
.wpforo-ai-wp-status-item .status-value .dashicons-cloud { |
| 78 |
color: #0073aa; |
| 79 |
} |
| 80 |
|
| 81 |
.wpforo-ai-wp-status-item .status-value .dashicons-database { |
| 82 |
color: #2e7d32; |
| 83 |
} |
| 84 |
|
| 85 |
.wpforo-ai-wp-status-item .status-value .dashicons-yes-alt { |
| 86 |
color: #2271b1; |
| 87 |
} |
| 88 |
|
| 89 |
.wpforo-ai-wp-status-item .status-value.status-active { |
| 90 |
color: #0073aa; |
| 91 |
} |
| 92 |
|
| 93 |
.wpforo-ai-wp-status-item .status-value.status-idle { |
| 94 |
color: #2e7d32; |
| 95 |
} |
| 96 |
|
| 97 |
.wpforo-ai-wp-status-item .status-action { |
| 98 |
margin-top: 8px; |
| 99 |
font-size: 13px; |
| 100 |
} |
| 101 |
|
| 102 |
.wpforo-ai-wp-status-item .status-action a { |
| 103 |
color: #0073aa; |
| 104 |
text-decoration: none; |
| 105 |
} |
| 106 |
|
| 107 |
.wpforo-ai-wp-status-item .status-action a:hover { |
| 108 |
color: #00a0d2; |
| 109 |
text-decoration: underline; |
| 110 |
} |
| 111 |
|
| 112 |
/* Large stat items (Current Status, Last Activity, Remaining Credits) */ |
| 113 |
.wpforo-ai-wp-stat-large .status-value { |
| 114 |
font-size: 28px; |
| 115 |
font-weight: 700; |
| 116 |
color: #2271b1; |
| 117 |
} |
| 118 |
|
| 119 |
.wpforo-ai-wp-stat-large .status-value .dashicons { |
| 120 |
font-size: 28px; |
| 121 |
width: 28px; |
| 122 |
height: 28px; |
| 123 |
} |
| 124 |
|
| 125 |
.wpforo-ai-wp-stat-large .status-value.status-active { |
| 126 |
color: #28a745; |
| 127 |
} |
| 128 |
|
| 129 |
.wpforo-ai-wp-stat-large .status-value.status-idle { |
| 130 |
color: #999; |
| 131 |
} |
| 132 |
|
| 133 |
/* Last Activity - smaller font for date */ |
| 134 |
#wp-last-activity { |
| 135 |
font-size: 20px; |
| 136 |
} |
| 137 |
|
| 138 |
/* ========================================================================== |
| 139 |
WordPress Content Indexing Box |
| 140 |
========================================================================== */ |
| 141 |
|
| 142 |
.wpforo-ai-wordpress-indexing-box .wpforo-ai-box-header h2 { |
| 143 |
display: flex; |
| 144 |
align-items: center; |
| 145 |
gap: 10px; |
| 146 |
} |
| 147 |
|
| 148 |
.wpforo-ai-wordpress-indexing-box .wpforo-ai-box-header h2 .dashicons { |
| 149 |
font-size: 24px; |
| 150 |
width: 24px; |
| 151 |
height: 24px; |
| 152 |
color: #0073aa; |
| 153 |
} |
| 154 |
|
| 155 |
/* ========================================================================== |
| 156 |
WordPress Stats Grid |
| 157 |
========================================================================== */ |
| 158 |
|
| 159 |
.wpforo-ai-wp-stats { |
| 160 |
display: grid; |
| 161 |
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); |
| 162 |
gap: 20px; |
| 163 |
margin-bottom: 25px; |
| 164 |
} |
| 165 |
|
| 166 |
/* ========================================================================== |
| 167 |
WordPress Post Types Grid |
| 168 |
========================================================================== */ |
| 169 |
|
| 170 |
.wpforo-ai-wp-post-types { |
| 171 |
margin-bottom: 25px; |
| 172 |
} |
| 173 |
|
| 174 |
.wpforo-ai-wp-post-types h3 { |
| 175 |
margin: 0 0 15px 0; |
| 176 |
font-size: 15px; |
| 177 |
font-weight: 600; |
| 178 |
color: #1d2327; |
| 179 |
} |
| 180 |
|
| 181 |
.wpforo-ai-wp-types-grid { |
| 182 |
display: grid; |
| 183 |
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); |
| 184 |
gap: 10px; |
| 185 |
} |
| 186 |
|
| 187 |
.wpforo-ai-wp-type-item { |
| 188 |
display: flex; |
| 189 |
align-items: center; |
| 190 |
gap: 10px; |
| 191 |
padding: 12px 15px; |
| 192 |
background: #f8f9fa; |
| 193 |
border: 1px solid #dcdcde; |
| 194 |
border-radius: 4px; |
| 195 |
cursor: pointer; |
| 196 |
transition: all 0.2s ease; |
| 197 |
} |
| 198 |
|
| 199 |
.wpforo-ai-wp-type-item:hover { |
| 200 |
background: #f0f0f1; |
| 201 |
border-color: #2271b1; |
| 202 |
} |
| 203 |
|
| 204 |
.wpforo-ai-wp-type-item input[type="checkbox"] { |
| 205 |
margin: 0; |
| 206 |
} |
| 207 |
|
| 208 |
.wpforo-ai-wp-type-item .type-label { |
| 209 |
font-weight: 500; |
| 210 |
color: #1d2327; |
| 211 |
flex: 1; |
| 212 |
} |
| 213 |
|
| 214 |
.wpforo-ai-wp-type-item .type-count { |
| 215 |
color: #646970; |
| 216 |
font-size: 13px; |
| 217 |
} |
| 218 |
|
| 219 |
.wpforo-ai-wp-type-item .type-indexed { |
| 220 |
background: #e7f5e7; |
| 221 |
color: #2e7d32; |
| 222 |
padding: 3px 8px; |
| 223 |
border-radius: 3px; |
| 224 |
font-size: 12px; |
| 225 |
font-weight: 500; |
| 226 |
} |
| 227 |
|
| 228 |
/* ========================================================================== |
| 229 |
Compact Content Types Grid (inside forms) |
| 230 |
========================================================================== */ |
| 231 |
|
| 232 |
.wpforo-ai-wp-types-compact { |
| 233 |
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); |
| 234 |
gap: 8px; |
| 235 |
} |
| 236 |
|
| 237 |
.wpforo-ai-wp-types-compact .wpforo-ai-wp-type-item { |
| 238 |
padding: 8px 12px; |
| 239 |
} |
| 240 |
|
| 241 |
.wpforo-ai-wp-types-compact .type-label { |
| 242 |
font-size: 13px; |
| 243 |
} |
| 244 |
|
| 245 |
.wpforo-ai-wp-types-compact .type-count { |
| 246 |
font-size: 12px; |
| 247 |
} |
| 248 |
|
| 249 |
.wpforo-ai-wp-types-compact .type-indexed { |
| 250 |
padding: 2px 6px; |
| 251 |
font-size: 11px; |
| 252 |
} |
| 253 |
|
| 254 |
/* ========================================================================== |
| 255 |
WordPress Ingest Grid |
| 256 |
========================================================================== */ |
| 257 |
|
| 258 |
.wpforo-ai-wp-ingest-grid { |
| 259 |
margin-bottom: 25px; |
| 260 |
} |
| 261 |
|
| 262 |
/* ========================================================================== |
| 263 |
WordPress Quick Actions |
| 264 |
========================================================================== */ |
| 265 |
|
| 266 |
.wpforo-ai-wp-quick-actions { |
| 267 |
display: flex; |
| 268 |
gap: 15px; |
| 269 |
padding: 20px; |
| 270 |
background: #f8f9fa; |
| 271 |
border: 1px solid #dcdcde; |
| 272 |
border-radius: 4px; |
| 273 |
margin-bottom: 20px; |
| 274 |
justify-content: flex-end; |
| 275 |
} |
| 276 |
|
| 277 |
.wpforo-ai-wp-quick-actions .button { |
| 278 |
display: inline-flex; |
| 279 |
align-items: center; |
| 280 |
gap: 6px; |
| 281 |
} |
| 282 |
|
| 283 |
.wpforo-ai-wp-quick-actions .button-link-delete { |
| 284 |
color: #d63638; |
| 285 |
} |
| 286 |
|
| 287 |
.wpforo-ai-wp-quick-actions .button-link-delete:hover { |
| 288 |
color: #a02729; |
| 289 |
} |
| 290 |
|
| 291 |
/* ========================================================================== |
| 292 |
Spinning Animation for Indexing Status |
| 293 |
========================================================================== */ |
| 294 |
|
| 295 |
.wpforo-wp-indexing-spin { |
| 296 |
animation: wpforo-wp-spin-reverse 1s linear infinite; |
| 297 |
} |
| 298 |
|
| 299 |
@keyframes wpforo-wp-spin-reverse { |
| 300 |
from { |
| 301 |
transform: rotate(360deg); |
| 302 |
} |
| 303 |
to { |
| 304 |
transform: rotate(0deg); |
| 305 |
} |
| 306 |
} |
| 307 |
|
| 308 |
/* ========================================================================== |
| 309 |
Responsive - WordPress Indexing |
| 310 |
========================================================================== */ |
| 311 |
|
| 312 |
@media screen and (max-width: 1200px) { |
| 313 |
.wpforo-ai-wp-status-grid { |
| 314 |
grid-template-columns: repeat(2, 1fr); |
| 315 |
} |
| 316 |
|
| 317 |
.wpforo-ai-wp-quick-actions { |
| 318 |
flex-direction: column; |
| 319 |
} |
| 320 |
|
| 321 |
.wpforo-ai-wp-quick-actions .button { |
| 322 |
width: 100%; |
| 323 |
justify-content: center; |
| 324 |
} |
| 325 |
} |
| 326 |
|
| 327 |
@media screen and (max-width: 782px) { |
| 328 |
.wpforo-ai-wp-status-grid { |
| 329 |
grid-template-columns: 1fr; |
| 330 |
} |
| 331 |
|
| 332 |
.wpforo-ai-wp-stats { |
| 333 |
grid-template-columns: 1fr; |
| 334 |
} |
| 335 |
|
| 336 |
.wpforo-ai-wp-types-grid { |
| 337 |
grid-template-columns: 1fr; |
| 338 |
} |
| 339 |
|
| 340 |
.wpforo-ai-wp-type-item { |
| 341 |
padding: 10px 12px; |
| 342 |
} |
| 343 |
} |
| 344 |
|