Adjusted subtitle field styling

closes https://linear.app/tryghost/issue/MOM-181
closes https://linear.app/tryghost/issue/MOM-183

- adjusted subtitle font sizing to be more in harmony with body font
- moved error to be underneath the divider line
This commit is contained in:
Kevin Ansfield 2024-06-03 16:15:58 +01:00
parent d94a4c581f
commit 77afd0a47e
2 changed files with 10 additions and 9 deletions

View File

@ -71,11 +71,6 @@
@didCreateTextarea={{this.registerSubtitleElement}} @didCreateTextarea={{this.registerSubtitleElement}}
data-test-textarea="subtitle" data-test-textarea="subtitle"
/> />
{{#if @excerptErrorMessage}}
<div class="gh-editor-subtitle-error" data-test-error="subtitle">
{{@excerptErrorMessage}}
</div>
{{/if}}
{{#if @excerptHasTk}} {{#if @excerptHasTk}}
<div <div
class="tk-indicator tk-indicator-subtitle" class="tk-indicator tk-indicator-subtitle"
@ -85,8 +80,13 @@
TK TK
</div> </div>
{{/if}} {{/if}}
<hr class="gh-editor-title-divider {{if @excerptErrorMessage "gh-editor-title-divider-error" ""}}">
{{#if @excerptErrorMessage}}
<div class="gh-editor-subtitle-error" data-test-error="subtitle">
{{@excerptErrorMessage}}
</div>
{{/if}}
</div> </div>
<hr class="gh-editor-title-divider {{if @excerptErrorMessage "gh-editor-title-divider-error" ""}}">
{{/if}} {{/if}}
</div> </div>

View File

@ -799,9 +799,9 @@ body[data-user-is-dragging] .gh-editor-feature-image-dropzone {
border: none; border: none;
background: transparent; background: transparent;
color: var(--darkgrey); color: var(--darkgrey);
font-size: 1.9rem; font-size: 2.0rem;
font-weight: 440; font-weight: 440;
line-height: 1.4em; line-height: 1.5em;
letter-spacing: -.018em; letter-spacing: -.018em;
overflow: hidden; overflow: hidden;
box-shadow: none; box-shadow: none;
@ -814,6 +814,7 @@ body[data-user-is-dragging] .gh-editor-feature-image-dropzone {
.gh-editor-subtitle-error { .gh-editor-subtitle-error {
margin-top: .8rem; margin-top: .8rem;
margin-bottom: 4.8rem;
color: var(--red-d1); color: var(--red-d1);
font-size: 1.4rem; font-size: 1.4rem;
font-weight: 400; font-weight: 400;
@ -824,7 +825,7 @@ body[data-user-is-dragging] .gh-editor-feature-image-dropzone {
} }
.gh-editor-title-divider-error { .gh-editor-title-divider-error {
margin: .4rem 0 4.8rem; margin: 1.6rem 0 0;
border-top: 1px solid var(--red); border-top: 1px solid var(--red);
} }