mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 15:45:47 +01:00
Toolbar, Toolbox, UI (#239)
* Toolbox making * Add Toolbox buttons click handler * Toolbar, Toolbox, UI * Updates * update css prefix
This commit is contained in:
parent
c84e4e6191
commit
c1afcf0205
32 changed files with 2811 additions and 1276 deletions
35
example/plugins/text/text.css
Normal file
35
example/plugins/text/text.css
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/**
|
||||
* Empty paragraph placeholder
|
||||
*/
|
||||
|
||||
.ce-text {
|
||||
padding: 15px 0 !important;
|
||||
line-height: 1.6em;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.ce-paragraph:empty::before,
|
||||
.ce-paragraph p:empty::before{
|
||||
content : attr(data-placeholder);
|
||||
color: #818BA1;
|
||||
opacity: .7;
|
||||
transition: opacity 200ms ease;
|
||||
}
|
||||
.ce-paragraph:focus::before{
|
||||
opacity: .1;
|
||||
}
|
||||
|
||||
.toolbar-opened .ce-paragraph::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.ce-paragraph p {
|
||||
margin: 1.2em 0;
|
||||
}
|
||||
.ce-paragraph p:first-of-type{
|
||||
margin-top: 0;
|
||||
}
|
||||
.ce-paragraph p:last-of-type{
|
||||
margin-bottom: 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue