mirror of
https://github.com/acid-info/Kurate.git
synced 2025-02-11 23:36:25 +00:00
style: remove highlight from new post textarea (#301)
This commit is contained in:
parent
cf22bbdd62
commit
a063406c3f
@ -76,7 +76,7 @@
|
||||
{/each}
|
||||
</div>
|
||||
<div class="post-content">
|
||||
<Textarea bind:value={postText} placeholder="Write here..." autofocus />
|
||||
<Textarea noHighlight bind:value={postText} placeholder="Write here..." autofocus />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
export let placeholder = ''
|
||||
export let label = ''
|
||||
export let autofocus = false
|
||||
export let noHighlight: boolean | undefined = undefined
|
||||
|
||||
let placeholderHeight: number
|
||||
let textarea: HTMLTextAreaElement
|
||||
@ -39,7 +40,7 @@
|
||||
})
|
||||
</script>
|
||||
|
||||
<label>
|
||||
<label class={noHighlight ? '' : 'highlight'}>
|
||||
{label}
|
||||
<div class="area-placeholder">
|
||||
<div
|
||||
@ -65,7 +66,7 @@
|
||||
background-color: transparent;
|
||||
transition: background-color 0.2s;
|
||||
|
||||
&:focus-within {
|
||||
&.highlight:focus-within {
|
||||
background-color: var(--grey-150);
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user