mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 01:52:19 +08:00
@ -4,6 +4,18 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
|
/**
|
||||||
|
* @prop --background: Background of the input
|
||||||
|
* @prop --color: Color of the input text
|
||||||
|
* @prop --padding-top: Top padding of the input
|
||||||
|
* @prop --padding-end: End padding of the input
|
||||||
|
* @prop --padding-bottom: Bottom padding of the input
|
||||||
|
* @prop --padding-start: Start padding of the input
|
||||||
|
* @prop --placeholder-color: Color of the input placeholder text
|
||||||
|
* @prop --placeholder-font-style: Font style of the input placeholder text
|
||||||
|
* @prop --placeholder-font-weight: Font weight of the input placeholder text
|
||||||
|
* @prop --placeholder-opacity: Opacity of the input placeholder text
|
||||||
|
*/
|
||||||
--placeholder-color: currentColor;
|
--placeholder-color: currentColor;
|
||||||
--placeholder-font-style: inherit;
|
--placeholder-font-style: inherit;
|
||||||
--placeholder-font-weight: inherit;
|
--placeholder-font-weight: inherit;
|
||||||
@ -12,7 +24,8 @@
|
|||||||
--padding-end: 0;
|
--padding-end: 0;
|
||||||
--padding-bottom: 0;
|
--padding-bottom: 0;
|
||||||
--padding-start: 0;
|
--padding-start: 0;
|
||||||
--border-radius: 0;
|
--background: transparent;
|
||||||
|
--color: inherit;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -22,6 +35,9 @@
|
|||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
|
background: var(--background);
|
||||||
|
color: var(--color);
|
||||||
|
|
||||||
/* stylelint-disable */
|
/* stylelint-disable */
|
||||||
/* TODO: find a better solution in padding.css, that does not require !important, */
|
/* TODO: find a better solution in padding.css, that does not require !important, */
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
@ -31,7 +47,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
:host(.ion-color) {
|
:host(.ion-color) {
|
||||||
color: #{current-color(base)};
|
color: current-color(base);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Native Text Input
|
// Native Text Input
|
||||||
|
@ -62,6 +62,22 @@ It is meant for text `type` inputs only, such as `"text"`, `"password"`, `"email
|
|||||||
| `setFocus` | |
|
| `setFocus` | |
|
||||||
|
|
||||||
|
|
||||||
|
## CSS Custom Properties
|
||||||
|
|
||||||
|
| Name | Description |
|
||||||
|
| --------------------------- | ----------------------------------------- |
|
||||||
|
| `--background` | Background of the input |
|
||||||
|
| `--color` | Color of the input text |
|
||||||
|
| `--padding-bottom` | Bottom padding of the input |
|
||||||
|
| `--padding-end` | End padding of the input |
|
||||||
|
| `--padding-start` | Start padding of the input |
|
||||||
|
| `--padding-top` | Top padding of the input |
|
||||||
|
| `--placeholder-color` | Color of the input placeholder text |
|
||||||
|
| `--placeholder-font-style` | Font style of the input placeholder text |
|
||||||
|
| `--placeholder-font-weight` | Font weight of the input placeholder text |
|
||||||
|
| `--placeholder-opacity` | Opacity of the input placeholder text |
|
||||||
|
|
||||||
|
|
||||||
----------------------------------------------
|
----------------------------------------------
|
||||||
|
|
||||||
*Built with [StencilJS](https://stenciljs.com/)*
|
*Built with [StencilJS](https://stenciljs.com/)*
|
||||||
|
Reference in New Issue
Block a user