mirror of
https://github.com/codex-team/editor.js
synced 2024-06-18 13:45:20 +02:00
* chore(block-tune-toggler): toggler moved to the left (draft) * toolbox ui updated * fixd caret jumpling, improved some styles * toolbar moving by block-hover - UI module triggers 'block-hovered' event - Toolbar uses 'block-hovered' for appearing - `currentBlock` setter added to the BlockManager - (reactangle-selection): the throttling added to the mousemove and scroll handlers - `getBlockIndex` method added to the Api - (api-blocks): toolbar moving logic removed from `blocks.move()` and `blocks.swap()` methods. Instead, MoveUp and MoveDown tunes uses Toolbar API * the dark-theme to the example-dev.html * positioning improved * fix(rectangle-selection): first click after RS does not clears selection state * toolbox position fixed * the toolbox module became a standalone class - Toolbox became a standalone class from the editor module. It can be accessed only via the owner (the Toolbar module) - (api.blocks) the insert() method now has the `replace` param. Also, it returns inserted Block API now. * new(api.listeners): `on()` now returns the listener id. The new `offById()` method added * fix bug with Tab pressing on hovered but not focused block * mobile version improved * upd example dev * small updaets * add nested-list * linting * (api.toolbar): `toggleBlockSettings` now fires toggling event with the same state * EventDispatcher used instead of callbacks for the Toolbox * UIApi added * fix ci * git submodules removed from the ci flow * add paragraph submodule to the ci flow * Update CHANGELOG.md * Update package.json * use ubuntu-latest for chrome ci
90 lines
1.4 KiB
CSS
90 lines
1.4 KiB
CSS
.ce-settings {
|
|
@apply --overlay-pane;
|
|
right: -1px;
|
|
top: 30px;
|
|
min-width: 114px;
|
|
box-sizing: content-box;
|
|
|
|
@media (--mobile){
|
|
bottom: 40px;
|
|
right: auto;
|
|
top: auto;
|
|
}
|
|
|
|
&::before{
|
|
left: auto;
|
|
right: 12px;
|
|
|
|
@media (--mobile){
|
|
bottom: -5px;
|
|
top: auto;
|
|
}
|
|
}
|
|
|
|
display: none;
|
|
|
|
&--opened {
|
|
display: block;
|
|
animation-duration: 0.1s;
|
|
animation-name: panelShowing;
|
|
}
|
|
|
|
&__plugin-zone {
|
|
&:not(:empty){
|
|
padding: 3px 3px 0;
|
|
}
|
|
}
|
|
|
|
&__default-zone {
|
|
&:not(:empty){
|
|
padding: 3px;
|
|
}
|
|
}
|
|
|
|
&__button {
|
|
@apply --toolbar-button;
|
|
|
|
&:not(:nth-child(3n+3)) {
|
|
margin-right: 3px;
|
|
}
|
|
|
|
&:nth-child(n+4) {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
line-height: 32px;
|
|
|
|
&--disabled {
|
|
cursor: not-allowed !important;
|
|
opacity: .3;
|
|
}
|
|
|
|
&--selected {
|
|
color: var(--color-active-icon);
|
|
}
|
|
|
|
&--delete {
|
|
transition: background-color 300ms ease;
|
|
will-change: background-color;
|
|
|
|
.icon {
|
|
transition: transform 200ms ease-out;
|
|
will-change: transform;
|
|
}
|
|
}
|
|
|
|
&--confirm {
|
|
background-color: var(--color-confirm) !important;
|
|
color: #fff;
|
|
|
|
&:hover {
|
|
background-color: color-mod(var(--color-confirm) blackness(+5%)) !important;
|
|
}
|
|
|
|
.icon {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
}
|
|
}
|