web: rework text box shadows (again)

This commit is contained in:
anna 2022-12-16 02:15:57 +01:00
parent 3df29a3cf3
commit 51ffb6fe71
Signed by: fef
GPG key ID: EC22E476DC2D3D84
2 changed files with 8 additions and 5 deletions

View file

@ -54,8 +54,8 @@ export default class InputField extends LitElement {
input:focus-visible {
outline: 0;
box-shadow:
inset 0 1px 1px 0 var(--accent-highlight-color),
0 0 2px 0 var(--accent-highlight-color);
inset 0 0 2px 1px var(--accent-highlight-color),
0 0 4px 0 var(--accent-highlight-color);
}
`);
}

View file

@ -36,12 +36,14 @@ export default class ComposeForm extends LitElement {
maxlength="${maxNoteChars - this.content.length}"
@input=${() => this.summary = this.summaryInput.value}
></input-field>
<textarea
id="content"
placeholder="${msg("Say something nice")}"
@input=${() => this.content = this.contentInput.value}
maxlength="${maxNoteChars - this.summary.length}"
></textarea>
<div id="bar">
<div id="actions">
<icon-button icon="paperclip" label="${msg("Add attachment")}"></icon-button>
@ -49,6 +51,7 @@ export default class ComposeForm extends LitElement {
<icon-button icon="emoji-laughing" label="${msg("Insert emogi")}"></icon-button>
<icon-button icon="${this.getGlobeIconName()}" label="${msg("Note visibility")}"></icon-button>
</div>
<div
id="remaining-chars"
class="${this.getRemainingCharsClass()}"
@ -106,8 +109,8 @@ export default class ComposeForm extends LitElement {
textarea:focus-visible {
outline: 0;
box-shadow:
inset 0 1px 1px 0 var(--accent-highlight-color),
0 0 2px 0 var(--accent-highlight-color);
inset 0 0 2px 1px var(--accent-highlight-color),
0 0 4px 0 var(--accent-highlight-color);
}
#bar {
@ -120,7 +123,7 @@ export default class ComposeForm extends LitElement {
flex: 1;
display: flex;
flex-direction: row;
padding: 8px 0;
padding: 8px 0 0;
}
#actions > * {