Skip to content
Snippets Groups Projects
Commit a6027b15 authored by rhenck's avatar rhenck
Browse files

Improve 'strong' text style to be less bold and have letter spacing

This improves bold text readability.
This has to be done in the actual element, in the TextEditor and on the 
properties panel.
parent 7cde0901
No related branches found
No related tags found
No related merge requests found
......@@ -28,21 +28,22 @@ import { TextElement } from '../models/text-element';
<mat-icon>clear</mat-icon>
</button>
</div>
<div [style.background-color]="elementModel.backgroundColor"
<div #container class="text-container"
[style.background-color]="elementModel.backgroundColor"
[style.color]="elementModel.fontColor"
[style.font-family]="elementModel.font"
[style.line-height.%]="elementModel.lineHeight"
[style.font-weight]="elementModel.bold ? 'bold' : ''"
[style.font-style]="elementModel.italic ? 'italic' : ''"
[style.text-decoration]="elementModel.underline ? 'underline' : ''"
[innerHTML]="elementModel.text | safeResourceHTML"
#container>
[innerHTML]="elementModel.text | safeResourceHTML">
</div>
</div>
`,
styles: [
'.marking-bar{position: sticky; top: 0; margin-bottom: 15px}',
'.marking-button{color: #333}'
'.marking-button{color: #333}',
'::ng-deep .text-container p strong {letter-spacing: 0.04em; font-weight: 600}'
]
})
export class TextComponent extends ElementComponent {
......
......@@ -27,3 +27,8 @@ app-rich-text-editor .editor-control-line {
height: 50px;
margin-bottom: 5px;
}
.ProseMirror p strong {
letter-spacing: 0.04em !important;
font-weight: 600 !important;
}
......@@ -37,3 +37,8 @@ mat-divider {
border-top-width: 9px;
border-top-style: dotted;
}
::ng-deep app-element-properties p strong {
letter-spacing: 0.04em !important;
font-weight: 600 !important;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment