mirror of
https://github.com/codex-team/editor.js
synced 2024-06-09 01:12:28 +02:00
6ac69a48e8
* Issue #426 : Imporve Toolbar position calculating * header tool update * 2.0.5
64 lines
993 B
CSS
64 lines
993 B
CSS
.ce-toolbar {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
/*opacity: 0;*/
|
|
/*visibility: hidden;*/
|
|
transition: opacity 100ms ease;
|
|
will-change: opacity, transform;
|
|
display: none;
|
|
|
|
&--opened {
|
|
display: block;
|
|
/*opacity: 1;*/
|
|
/*visibility: visible;*/
|
|
}
|
|
|
|
&__content {
|
|
max-width: var(--content-width);
|
|
margin: 0 auto;
|
|
position: relative;
|
|
}
|
|
|
|
&__plus {
|
|
@apply --toolbox-button;
|
|
|
|
position: absolute;
|
|
left: calc(calc(var(--toolbox-buttons-size) + 10px) * -1);
|
|
|
|
&--hidden {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&__plus,
|
|
.ce-toolbox {
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
}
|
|
|
|
/**
|
|
* Block actions Zone
|
|
* -------------------------
|
|
*/
|
|
&__actions {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
padding-right: 16px;
|
|
|
|
&-buttons {
|
|
text-align: right;
|
|
}
|
|
}
|
|
|
|
&__settings-btn {
|
|
display: inline-block;
|
|
width: 24px;
|
|
height: 24px;
|
|
color: var(--grayText);
|
|
cursor: pointer;
|
|
}
|
|
}
|