editor.js/src/styles/conversion-toolbar.css
Peter Savchenko 022320940e
feat(shortcuts): convert block by tools shortcut (#2419)
* feat(conversion): allow to convert block using shortcut

* display shortcuts in conversion toolbar

* tests for the blocks.convert

* tests for the toolbox shortcuts

* Update CHANGELOG.md

* Update toolbox.cy.ts

* rm unused imports

* firefox test fixed

* test errors via to.throw
2023-07-20 23:27:18 +03:00

97 lines
1.6 KiB
CSS

.ce-conversion-toolbar {
@apply --overlay-pane;
opacity: 0;
visibility: hidden;
will-change: transform, opacity;
transition: transform 100ms ease, opacity 100ms ease;
transform: translateY(-8px);
left: -1px;
width: 190px;
margin-top: 5px;
box-sizing: content-box;
&--showed {
opacity: 1;
visibility: visible;
transform: none;
}
[hidden] {
display: none !important;
}
&__buttons {
display: flex;
}
&__label {
color: var(--grayText);
font-size: 11px;
font-weight: 500;
letter-spacing: 0.33px;
padding: 10px 10px 5px;
text-transform: uppercase;
}
}
.ce-conversion-tool {
display: flex;
padding: 5px 10px;
font-size: 14px;
line-height: 20px;
font-weight: 500;
cursor: pointer;
align-items: center;
&--hidden {
display: none;
}
&--focused {
box-shadow: inset 0 0 0px 1px rgba(7, 161, 227, 0.08);
background: rgba(34, 186, 255, 0.08) !important;
&-animated {
animation-name: buttonClicked;
animation-duration: 250ms;
}
}
&:hover {
background: var(--bg-light);
}
&__icon {
@apply --tool-icon;
}
&--last {
margin-right: 0 !important;
}
&--active {
color: var(--color-active-icon) !important;
}
&--active {
animation: bounceIn 0.75s 1;
animation-fill-mode: forwards;
}
&__secondary-label {
color: var(--grayText);
font-size: 12px;
margin-left: auto;
white-space: nowrap;
letter-spacing: -0.1em;
padding-right: 5px;
margin-bottom: -2px;
opacity: 0.6;
@media (--mobile){
display: none;
}
}
}