mirror of
https://github.com/codex-team/editor.js
synced 2024-06-29 10:50:23 +02:00
Align hint left
This commit is contained in:
parent
26053add7b
commit
9b30fac6ab
|
@ -10,6 +10,7 @@ const className = bem('ce-hint-content');
|
||||||
*/
|
*/
|
||||||
export const css = {
|
export const css = {
|
||||||
root: className(),
|
root: className(),
|
||||||
|
alignedLeft: className(null, 'align-left'),
|
||||||
title: className('title'),
|
title: className('title'),
|
||||||
description: className('description'),
|
description: className('description'),
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,8 @@
|
||||||
.ce-hint-content {
|
.ce-hint-content {
|
||||||
|
&--align-left {
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
&__description {
|
&__description {
|
||||||
opacity: 0.6;
|
opacity: 0.6;
|
||||||
margin-top: 3px;
|
margin-top: 3px;
|
||||||
|
|
|
@ -24,7 +24,7 @@ export class Hint {
|
||||||
*/
|
*/
|
||||||
constructor(params: HintParams) {
|
constructor(params: HintParams) {
|
||||||
this.nodes = {
|
this.nodes = {
|
||||||
root: Dom.make('div', css.root),
|
root: Dom.make('div', [css.root, css.alignedLeft]),
|
||||||
title: Dom.make('div', css.title, { textContent: params.title }),
|
title: Dom.make('div', css.title, { textContent: params.title }),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue