-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add max and min rows controls to textarea storybook
- Loading branch information
Showing
4 changed files
with
100 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 63 additions & 2 deletions
65
packages/ui-stencil/src/components/orama-textarea/orama-textarea.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,68 @@ | ||
:host { | ||
display: block; | ||
position: relative; | ||
display: inline-flex; | ||
align-items: center; | ||
|
||
padding: var(--spacing-m, $spacing-m) 0; | ||
|
||
border-radius: var(--radius-m, 12px) var(--radius-m, 12px) 0px 0px; | ||
border: 1px solid var(--background-background-color-tertiary, #333); | ||
background: var(--background-color-secondary, background-color('secondary')); | ||
color: var(--text-color-secondary, text-color('secondary')); | ||
} | ||
|
||
::slotted([slot='adornment-start']) { | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
padding: var(--spacing-m, $spacing-m) var(--spacing-m, $spacing-m); | ||
} | ||
|
||
::slotted([slot='adornment-end']) { | ||
position: absolute; | ||
right: 0; | ||
top: 0; | ||
padding: var(--spacing-m, $spacing-m) var(--spacing-m, $spacing-m); | ||
} | ||
|
||
textarea { | ||
resize: none | ||
left: 0; | ||
right: 0; | ||
// TODO: Fix hardcoded padding | ||
padding: 0 54px; | ||
resize: none; | ||
border: none; | ||
outline: none; | ||
background: none; | ||
margin: 0; | ||
font-size: inherit; | ||
line-height: inherit; | ||
color: inherit; | ||
font-family: inherit; | ||
width: 100%; | ||
|
||
transition: max-height 0.2s; | ||
|
||
&::placeholder { | ||
color: var(--text-color-inactive, text-color('inactive')); | ||
} | ||
|
||
&:focus { | ||
border-color: var(--border-color-accent, border-color('accent')); | ||
outline: none; | ||
} | ||
|
||
&::-webkit-scrollbar { | ||
width: 0.2em; | ||
} | ||
&::-webkit-scrollbar-track { | ||
background: transparent; | ||
} | ||
&::-webkit-scrollbar-thumb { | ||
background-color: #ffffff85; | ||
border-radius: 8px; | ||
} | ||
&::-webkit-scrollbar-thumb:hover { | ||
background-color: #ffffff85; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters