CSS Reference

All CSS classes used by ZynText follow a flat BEM-like convention with the zy- prefix.

Editor Container

ClassDescription
.zy-editorRoot container. All CSS variables are defined here.
.zy-editor--style-borderedBordered style skin.
.zy-editor--style-minimalMinimal style skin.
.zy-editor--style-darkDark style skin.
.zy-editor--code-lightLight code block theme.
.zy-editor--fullscreenFullscreen mode (position: fixed, z-index: 9999).
.zy-editor--img-selectedAn image is currently selected (allows overflow for toolbar).
.zy-editor--ai-loadingAI request in progress (dimmed, spinner).

Content Area

ClassDescription
.zy-contentThe contenteditable editing area.
.zy-content--emptyAdded when the editor has no content (shows placeholder via CSS ::before).

Toolbar

ClassDescription
.zy-toolbarToolbar container.
.zy-toolbar-btnIndividual toolbar button.
.zy-toolbar-btn--activeActive state (e.g., Bold is active when text is bold).
.zy-toolbar-sepSeparator between button groups.
.zy-toolbar-dropdownDropdown container.
.zy-toolbar-dropdown-toggleDropdown toggle button.
.zy-toolbar-dropdown-menuDropdown menu (hidden by default).
.zy-toolbar-dropdown-menu--openDropdown is open.
.zy-toolbar-dropdown-itemIndividual dropdown item.
.zy-toolbar-caretDropdown caret icon.

Image Interaction

ClassDescription
.zy-img-selectedApplied to the <img> when selected.
.zy-img-overlaySelection overlay positioned over the image.
.zy-img-handleResize handle (8 total).
.zy-img-handle--nw, --n, --ne, etc.Handle position modifiers.
.zy-img-dimensionWidth x Height tooltip during resize.
.zy-img-context-toolbarContext toolbar above/below image.
.zy-img-context-sepSeparator in context toolbar.
.zy-img-btn-wrapButton + tooltip wrapper in context toolbar.
.zy-img-tooltipTooltip text below context buttons.
.zy-img-float-left<figure> class for float-left alignment.
.zy-img-float-right<figure> class for float-right alignment.
.zy-img-center<figure> class for center alignment.
.zy-img-margin-popoverMargin editor popover.
.zy-img-margin-grid4-field grid in margin popover.
.zy-img-margin-fieldIndividual margin field (label + input).
.zy-img-delete-modalDelete confirmation modal.
.zy-img-delete-msgMessage text in delete modal.
.zy-img-delete-actionsButton container in delete modal.

Popovers

ClassDescription
.zy-popoverGeneric popover container.
.zy-popover-headerPopover header.
.zy-popover-closeClose button (×) in header.
.zy-popover-bodyPopover body content.
.zy-popover-fieldForm field container.
.zy-popover-inputInput element in popover.
.zy-popover-actionsAction buttons container.
.zy-popover-btnPopover button.
.zy-popover-btn--primaryPrimary (accent) button.
.zy-popover-btn--dangerDanger (red) button.
.zy-link-popoverLink-specific popover.

Table Picker

ClassDescription
.zy-table-pickerTable size picker container.
.zy-table-picker-gridGrid of selectable cells.
.zy-table-picker-cellIndividual grid cell.
.zy-table-picker-cell--activeHighlighted (selected) cell.
.zy-table-picker-sizeSize label (e.g., "3 x 4").

Upload

ClassDescription
.zy-upload-overlayDrag-drop overlay ("Drop image here").
.zy-upload-progressProgress bar container.
.zy-upload-progress-barProgress bar fill element.

Code Block

ClassDescription
.zy-code-copyCopy button on code blocks.
.zy-code-copy--copiedAfter successful copy (green check).

Source View

ClassDescription
.zy-source-areaHTML source textarea.

Body Class

ClassDescription
body.zy-editor-fullscreen-activeAdded to <body> when fullscreen is active. Prevents body scrolling.