mirror of
https://github.com/codex-team/editor.js
synced 2024-05-03 15:13:22 +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
95 lines
1.3 KiB
CSS
95 lines
1.3 KiB
CSS
.ce-toolbar {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
transition: opacity 100ms ease;
|
|
will-change: opacity, top;
|
|
|
|
display: none;
|
|
|
|
&--opened {
|
|
display: block;
|
|
}
|
|
|
|
&__content {
|
|
max-width: var(--content-width);
|
|
margin: 0 auto;
|
|
position: relative;
|
|
}
|
|
|
|
&__plus {
|
|
@apply --toolbox-button;
|
|
flex-shrink: 0;
|
|
|
|
&-shortcut {
|
|
opacity: 0.6;
|
|
word-spacing: -2px;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
@media (--mobile){
|
|
@apply --overlay-pane;
|
|
position: static;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Block actions Zone
|
|
* -------------------------
|
|
*/
|
|
&__actions {
|
|
position: absolute;
|
|
right: 100%;
|
|
opacity: 0;
|
|
display: flex;
|
|
padding-right: 5px;
|
|
|
|
&--opened {
|
|
opacity: 1;
|
|
}
|
|
|
|
@media (--mobile){
|
|
right: auto;
|
|
}
|
|
}
|
|
|
|
&__settings-btn {
|
|
@apply --toolbox-button;
|
|
|
|
margin-left: 3px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
|
|
@media (--not-mobile){
|
|
width: 24px;
|
|
}
|
|
|
|
&--hidden {
|
|
display: none;
|
|
}
|
|
|
|
@media (--mobile){
|
|
@apply --overlay-pane;
|
|
position: static;
|
|
}
|
|
}
|
|
|
|
&__plus,
|
|
&__settings-btn {
|
|
svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Styles for Narrow mode
|
|
*/
|
|
.codex-editor--narrow .ce-toolbar__plus {
|
|
@media (--not-mobile) {
|
|
left: 5px;
|
|
}
|
|
}
|