mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
b1b582b150
* chore(icons): migrating to the coded icon pack * conversion toolbar * inline toolbar, part 1 * inline-link tool has the new icons * added a test for creating a link by Enter keydown in link input * rm last icons, svg sprite, loaders * rollback .ce-settings styles * Update CHANGELOG.md * Update settings.json
82 lines
1.3 KiB
CSS
82 lines
1.3 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: 150px;
|
|
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;
|
|
}
|
|
}
|