mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 18:03:25 +02:00
f78972ee09
* Add custom item * Remove customcontent parameter from popover * Tests * Cleanup * Cleanup * Lint * Cleanup * Rename custom to html, add enum with item types * Fix tests * Add order test * Update jsdoc * Update changelog * Fix issue with html item not hiding on search * Fix flipper issue * Update changelog
26 lines
761 B
TypeScript
26 lines
761 B
TypeScript
import { bem } from '../bem';
|
|
|
|
/**
|
|
* Popover block CSS class constructor
|
|
*/
|
|
const className = bem('ce-popover');
|
|
|
|
/**
|
|
* CSS class names to be used in popover
|
|
*/
|
|
export const css = {
|
|
popover: className(),
|
|
popoverContainer: className('container'),
|
|
popoverOpenTop: className(null, 'open-top'),
|
|
popoverOpenLeft: className(null, 'open-left'),
|
|
popoverOpened: className(null, 'opened'),
|
|
search: className('search'),
|
|
nothingFoundMessage: className('nothing-found-message'),
|
|
nothingFoundMessageDisplayed: className('nothing-found-message', 'displayed'),
|
|
items: className('items'),
|
|
overlay: className('overlay'),
|
|
overlayHidden: className('overlay', 'hidden'),
|
|
popoverNested: className(null, 'nested'),
|
|
popoverHeader: className('header'),
|
|
};
|