mirror of
https://github.com/codex-team/editor.js
synced 2024-05-18 14:26:48 +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 = {
|
||||
root: className(),
|
||||
alignedLeft: className(null, 'align-left'),
|
||||
title: className('title'),
|
||||
description: className('description'),
|
||||
};
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
.ce-hint-content {
|
||||
&--align-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
&__description {
|
||||
opacity: 0.6;
|
||||
margin-top: 3px;
|
||||
|
|
|
@ -24,7 +24,7 @@ export class Hint {
|
|||
*/
|
||||
constructor(params: HintParams) {
|
||||
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 }),
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue