frontblocks-insert-post-option.js
8 months ago
frontblocks-insert-post-option.jsx
1 month ago
frontblocks-insert-post.css
8 months ago
jquery-ui.css
8 months ago
frontblocks-insert-post.css
265 lines
| 1 | /* Insert Post Block Styles */ |
| 2 | |
| 3 | /* Editor Styles */ |
| 4 | .frbl-insert-post-block { |
| 5 | padding: 30px 0; |
| 6 | border: 2px dashed #ddd; |
| 7 | border-radius: 8px; |
| 8 | background: #f9f9f9; |
| 9 | margin: 10px 0; |
| 10 | } |
| 11 | |
| 12 | .frbl-insert-post-block .frbl-insert-post-preview { |
| 13 | background: white; |
| 14 | padding: 20px; |
| 15 | border-radius: 6px; |
| 16 | border: 1px solid #e0e0e0; |
| 17 | } |
| 18 | |
| 19 | .frbl-insert-post-block .frbl-insert-post-actions { |
| 20 | display: flex; |
| 21 | gap: 10px; |
| 22 | margin-top: 15px; |
| 23 | } |
| 24 | |
| 25 | /* Search Results Styles */ |
| 26 | .frbl-search-results { |
| 27 | margin-top: 20px; |
| 28 | } |
| 29 | |
| 30 | .frbl-search-results h4 { |
| 31 | margin: 0 0 15px 0; |
| 32 | color: #333; |
| 33 | font-size: 16px; |
| 34 | font-weight: 600; |
| 35 | } |
| 36 | |
| 37 | .frbl-search-result-item { |
| 38 | margin-bottom: 10px; |
| 39 | border: 1px solid #e0e0e0; |
| 40 | border-radius: 4px; |
| 41 | transition: all 0.2s ease; |
| 42 | } |
| 43 | |
| 44 | .frbl-search-result-item:hover { |
| 45 | border-color: #007cba; |
| 46 | box-shadow: 0 2px 4px rgba(0, 124, 186, 0.1); |
| 47 | } |
| 48 | |
| 49 | .frbl-search-result-item .components-card__body { |
| 50 | padding: 15px; |
| 51 | } |
| 52 | |
| 53 | .frbl-search-result-item h5 { |
| 54 | margin: 0 0 8px 0; |
| 55 | color: #333; |
| 56 | font-size: 14px; |
| 57 | font-weight: 600; |
| 58 | } |
| 59 | |
| 60 | .frbl-search-result-item p { |
| 61 | margin: 0 0 10px 0; |
| 62 | color: #666; |
| 63 | font-size: 12px; |
| 64 | } |
| 65 | |
| 66 | /* Selected Post Info */ |
| 67 | .frbl-selected-post-info { |
| 68 | margin-top: 20px; |
| 69 | } |
| 70 | |
| 71 | .frbl-selected-post-info h4 { |
| 72 | margin: 0 0 15px 0; |
| 73 | color: #333; |
| 74 | font-size: 16px; |
| 75 | font-weight: 600; |
| 76 | } |
| 77 | |
| 78 | .frbl-selected-post-info .components-card__body { |
| 79 | padding: 15px; |
| 80 | } |
| 81 | |
| 82 | .frbl-selected-post-info p { |
| 83 | margin: 0 0 8px 0; |
| 84 | color: #666; |
| 85 | font-size: 13px; |
| 86 | } |
| 87 | |
| 88 | .frbl-selected-post-info p:last-child { |
| 89 | margin-bottom: 0; |
| 90 | } |
| 91 | |
| 92 | .frbl-selected-post-info strong { |
| 93 | color: #333; |
| 94 | } |
| 95 | |
| 96 | /* Frontend Styles */ |
| 97 | .frbl-insert-post { |
| 98 | margin: 20px 0; |
| 99 | } |
| 100 | |
| 101 | .frbl-insert-post .frbl-insert-post-title { |
| 102 | margin: 0 0 20px 0; |
| 103 | color: #333; |
| 104 | font-size: 28px; |
| 105 | font-weight: 600; |
| 106 | line-height: 1.3; |
| 107 | } |
| 108 | |
| 109 | .frbl-insert-post .frbl-insert-post-content { |
| 110 | color: #555; |
| 111 | line-height: 1.7; |
| 112 | font-size: 16px; |
| 113 | } |
| 114 | |
| 115 | .frbl-insert-post .frbl-insert-post-content p { |
| 116 | margin-bottom: 15px; |
| 117 | } |
| 118 | |
| 119 | .frbl-insert-post .frbl-insert-post-content h1, |
| 120 | .frbl-insert-post .frbl-insert-post-content h2, |
| 121 | .frbl-insert-post .frbl-insert-post-content h3, |
| 122 | .frbl-insert-post .frbl-insert-post-content h4, |
| 123 | .frbl-insert-post .frbl-insert-post-content h5, |
| 124 | .frbl-insert-post .frbl-insert-post-content h6 { |
| 125 | margin: 25px 0 15px 0; |
| 126 | color: #333; |
| 127 | } |
| 128 | |
| 129 | .frbl-insert-post .frbl-insert-post-content ul, |
| 130 | .frbl-insert-post .frbl-insert-post-content ol { |
| 131 | margin: 15px 0; |
| 132 | padding-left: 20px; |
| 133 | } |
| 134 | |
| 135 | .frbl-insert-post .frbl-insert-post-content li { |
| 136 | margin-bottom: 5px; |
| 137 | } |
| 138 | |
| 139 | .frbl-insert-post .frbl-insert-post-content blockquote { |
| 140 | margin: 20px 0; |
| 141 | padding: 15px 20px; |
| 142 | border-left: 4px solid #007cba; |
| 143 | background: #f8f9fa; |
| 144 | font-style: italic; |
| 145 | } |
| 146 | |
| 147 | .frbl-insert-post .frbl-insert-post-content img { |
| 148 | max-width: 100%; |
| 149 | height: auto; |
| 150 | margin: 15px 0; |
| 151 | } |
| 152 | |
| 153 | .frbl-insert-post .frbl-insert-post-content a { |
| 154 | color: #007cba; |
| 155 | text-decoration: none; |
| 156 | } |
| 157 | |
| 158 | .frbl-insert-post .frbl-insert-post-content a:hover { |
| 159 | text-decoration: underline; |
| 160 | } |
| 161 | |
| 162 | /* Empty and Error States */ |
| 163 | .frbl-insert-post-empty, |
| 164 | .frbl-insert-post-error { |
| 165 | padding: 30px; |
| 166 | text-align: center; |
| 167 | background: #f8f9fa; |
| 168 | border: 1px solid #e9ecef; |
| 169 | border-radius: 6px; |
| 170 | color: #6c757d; |
| 171 | font-size: 16px; |
| 172 | } |
| 173 | |
| 174 | .frbl-insert-post-error { |
| 175 | background: #f8d7da; |
| 176 | border-color: #f5c6cb; |
| 177 | color: #721c24; |
| 178 | } |
| 179 | |
| 180 | /* Responsive Design */ |
| 181 | @media (max-width: 768px) { |
| 182 | .frbl-insert-post-block { |
| 183 | padding: 15px; |
| 184 | } |
| 185 | |
| 186 | .frbl-insert-post-block .frbl-insert-post-preview { |
| 187 | padding: 15px; |
| 188 | } |
| 189 | |
| 190 | .frbl-insert-post-block .frbl-insert-post-title { |
| 191 | font-size: 20px; |
| 192 | } |
| 193 | |
| 194 | .frbl-insert-post-block .frbl-insert-post-actions { |
| 195 | flex-direction: column; |
| 196 | } |
| 197 | |
| 198 | .frbl-insert-post .frbl-insert-post-title { |
| 199 | font-size: 24px; |
| 200 | } |
| 201 | |
| 202 | .frbl-insert-post .frbl-insert-post-content { |
| 203 | font-size: 15px; |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | /* Grid Integration Styles */ |
| 208 | .frbl-insert-post-grid[data-insert-post="true"] { |
| 209 | position: relative; |
| 210 | } |
| 211 | |
| 212 | .frbl-insert-post-grid[data-insert-post="true"]::before { |
| 213 | content: "Insert Post Grid"; |
| 214 | position: absolute; |
| 215 | top: -10px; |
| 216 | left: 10px; |
| 217 | background: #007cba; |
| 218 | color: white; |
| 219 | padding: 2px 8px; |
| 220 | font-size: 10px; |
| 221 | border-radius: 3px; |
| 222 | z-index: 10; |
| 223 | } |
| 224 | |
| 225 | /* jQuery UI Autocomplete Styles */ |
| 226 | .ui-autocomplete { |
| 227 | background: #fff; |
| 228 | border: 1px solid #ddd; |
| 229 | border-radius: 4px; |
| 230 | box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); |
| 231 | max-height: 200px; |
| 232 | overflow-y: auto; |
| 233 | overflow-x: hidden; |
| 234 | z-index: 999999 !important; |
| 235 | } |
| 236 | |
| 237 | .ui-autocomplete .ui-menu-item { |
| 238 | padding: 8px 12px; |
| 239 | border-bottom: 1px solid #f0f0f0; |
| 240 | cursor: pointer; |
| 241 | font-size: 13px; |
| 242 | line-height: 1.4; |
| 243 | } |
| 244 | |
| 245 | .ui-autocomplete .ui-menu-item:last-child { |
| 246 | border-bottom: none; |
| 247 | } |
| 248 | |
| 249 | .ui-autocomplete .ui-menu-item:hover, |
| 250 | .ui-autocomplete .ui-menu-item.ui-state-focus { |
| 251 | background: #007cba; |
| 252 | color: #fff; |
| 253 | } |
| 254 | |
| 255 | .ui-autocomplete .ui-menu-item div { |
| 256 | padding: 0; |
| 257 | } |
| 258 | |
| 259 | /* Loading indicator for autocomplete */ |
| 260 | .frbl-autocomplete-loading { |
| 261 | background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEyIDJWNk0xMiAxOFYyMk02IDEySDJNMTggMTJIMjJNMTkuMDcgMTkuMDdMMTYuMjQgMTYuMjRNMTkuMDcgNC45M0wxNi4yNCA3Ljc2TTQuOTMgMTkuMDdMNy43NiAxNi4yNE00LjkzIDQuOTNMNy43NiA3Ljc2IiBzdHJva2U9IiMwMDdjYmEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo='); |
| 262 | background-repeat: no-repeat; |
| 263 | background-position: right 8px center; |
| 264 | background-size: 16px; |
| 265 | } |