Files
wp-agentic-writer/assets/css/editor.css
Dwindi Ramadhana 690991c526 refactor: Cleanup git state - commit all staged changes
Major refactoring cleanup:
- Add new controller architecture (class-controller-*.php)
- Add new settings-v2 UI (views/settings-v2/)
- Add new CSS architecture (agentic-sidebar.css, tokens)
- Add esbuild build pipeline (scripts/build.js, package.json)
- Add composer dependencies (vendor/)
- Add frontend src directory (assets/js/src/index.jsx)
- Add documentation files
- Remove old/obsolete files (class-settings.php, old CSS)

This commits all pending changes from previous refactoring efforts.
2026-06-17 05:27:58 +07:00

159 lines
3.2 KiB
CSS

/**
* WP Agentic Writer - Editor Styles
*
* @package WP_Agentic_Writer
*/
/* Image Placeholders in Editor */
.wpaw-image-placeholder {
margin: 20px 0;
padding: 0;
border: 2px dashed #2271b1;
border-radius: 8px;
background: #f0f6ff;
}
.wpaw-placeholder-content {
display: flex;
align-items: flex-start;
gap: 15px;
padding: 20px;
}
.wpaw-placeholder-icon {
font-size: 32px;
line-height: 1;
flex-shrink: 0;
}
.wpaw-placeholder-text {
flex: 1;
}
.wpaw-placeholder-text strong {
display: block;
margin-bottom: 8px;
color: #2271b1;
font-size: 14px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.wpaw-placeholder-text p {
margin: 0;
color: #475569;
font-size: 14px;
line-height: 1.5;
}
/* Editor-specific styles for image placeholders */
.block-editor-block-list__block .wpaw-image-placeholder {
cursor: pointer;
transition: all 0.2s ease;
}
.block-editor-block-list__block .wpaw-image-placeholder:hover {
border-color: #135e96;
background: #e7f3ff;
box-shadow: 0 2px 8px rgba(34, 113, 177, 0.1);
}
/* Block Refine Toolbar Button */
.wpaw-refine-toolbar-button {
margin-right: 8px;
}
.wpaw-refine-toolbar-button button {
color: #2271b1;
}
.wpaw-refine-toolbar-button button:hover {
color: #135e96;
}
/* Refine Modal */
.wpaw-refine-modal .components-modal__content {
padding: 24px;
max-width: 500px;
}
.wpaw-refine-modal .components-modal__header {
margin-bottom: 16px;
}
.wpaw-refine-modal p {
margin-bottom: 16px;
color: #475569;
font-size: 14px;
}
.wpaw-refine-modal .components-textarea-control__input {
min-height: 100px;
}
.wpaw-refine-modal-actions {
display: flex;
gap: 12px;
justify-content: flex-end;
margin-top: 20px;
}
.wpaw-refine-modal-actions button {
flex: 0;
}
/* Gutenberg Editor Diff Highlights */
.block-editor-block-list__block.wpaw-diff-removed,
.editor-styles-wrapper .wpaw-diff-removed {
background-color: #f1cbcb !important;
position: relative;
padding: 20px !important;
border-radius: 4px;
}
.block-editor-block-list__block.wpaw-diff-removed::before,
.editor-styles-wrapper .wpaw-diff-removed::before {
content: "-";
display: flex;
align-items: center;
justify-content: center;
position: absolute;
transform: translateX(-36px);
background-color: red;
color: white;
width: 24px;
height: 24px;
border-radius: 2px;
font-weight: bold;
font-family: monospace;
font-size: 16px;
z-index: 10;
}
.block-editor-block-list__block.wpaw-diff-added,
.editor-styles-wrapper .wpaw-diff-added {
background-color: #c9f3c9 !important;
position: relative;
padding: 20px !important;
border-radius: 4px;
}
.block-editor-block-list__block.wpaw-diff-added::before,
.editor-styles-wrapper .wpaw-diff-added::before {
content: "+";
display: flex;
align-items: center;
justify-content: center;
position: absolute;
transform: translateX(-36px);
background-color: green;
color: white;
width: 24px;
height: 24px;
border-radius: 2px;
font-weight: bold;
font-family: monospace;
font-size: 16px;
z-index: 10;
}