editor.js/src/styles/toolbar.css
Peter Savchenko b1b582b150
feat(icons): codex icons package is used instead of svg sprite (#2173)
* 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
2022-11-25 22:26:23 +04:00

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;
}
}