mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
fix(all): add customization of font-style
This commit is contained in:
@ -5,7 +5,8 @@
|
||||
|
||||
:host {
|
||||
--placeholder-color: currentColor;
|
||||
--placeholder-weight: inherit;
|
||||
--placeholder-font-style: inherit;
|
||||
--placeholder-font-weight: inherit;
|
||||
--placeholder-opacity: .5;
|
||||
--padding-top: 0;
|
||||
--padding-end: 0;
|
||||
@ -60,7 +61,8 @@
|
||||
color: var(--placeholder-color);
|
||||
|
||||
font-family: inherit;
|
||||
font-weight: var(--placeholder-weight);
|
||||
font-style: var(--placeholder-font-style);
|
||||
font-weight: var(--placeholder-font-weight);
|
||||
|
||||
opacity: var(--placeholder-opacity);
|
||||
}
|
||||
|
@ -5,7 +5,8 @@
|
||||
|
||||
:host {
|
||||
--placeholder-color: currentColor;
|
||||
--placeholder-weight: inherit;
|
||||
--placeholder-font-style: inherit;
|
||||
--placeholder-font-weight: inherit;
|
||||
--placeholder-opacity: .5;
|
||||
|
||||
@include font-smoothing();
|
||||
@ -68,7 +69,8 @@
|
||||
color: var(--placeholder-color);
|
||||
|
||||
font-family: inherit;
|
||||
font-weight: var(--placeholder-weight);
|
||||
font-style: var(--placeholder-font-style);
|
||||
font-weight: var(--placeholder-font-weight);
|
||||
|
||||
opacity: var(--placeholder-opacity);
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ The textarea component accepts the [native textarea attributes](https://develope
|
||||
## CSS Custom Properties
|
||||
|
||||
| Name | Description |
|
||||
| ----------------------- | ------------------------------- |
|
||||
| --------------------------- | ------------------------------- |
|
||||
| `--background` | Background of the textarea |
|
||||
| `--border-radius` | Border radius of the textarea |
|
||||
| `--color` | Color of the text |
|
||||
@ -65,8 +65,9 @@ The textarea component accepts the [native textarea attributes](https://develope
|
||||
| `--padding-start` | Start padding of the textarea |
|
||||
| `--padding-top` | Top padding of the textarea |
|
||||
| `--placeholder-color` | Color of the placeholder text |
|
||||
| `--placeholder-font-style` | Style of the placeholder text |
|
||||
| `--placeholder-font-weight` | Weight of the placeholder text |
|
||||
| `--placeholder-opacity` | Opacity of the placeholder text |
|
||||
| `--placeholder-weight` | Weight of the placeholder text |
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
@ -9,7 +9,8 @@
|
||||
* @prop --border-radius: Border radius of the textarea
|
||||
* @prop --color: Color of the text
|
||||
* @prop --placeholder-color: Color of the placeholder text
|
||||
* @prop --placeholder-weight: Weight of the placeholder text
|
||||
* @prop --placeholder-font-style: Style of the placeholder text
|
||||
* @prop --placeholder-font-weight: Weight of the placeholder text
|
||||
* @prop --placeholder-opacity: Opacity of the placeholder text
|
||||
* @prop --padding-top: Top padding of the textarea
|
||||
* @prop --padding-end: End padding of the textarea
|
||||
@ -19,7 +20,8 @@
|
||||
--background: initial;
|
||||
--color: currentColor;
|
||||
--placeholder-color: currentColor;
|
||||
--placeholder-weight: inherit;
|
||||
--placeholder-font-style: inherit;
|
||||
--placeholder-font-weight: inherit;
|
||||
--placeholder-opacity: .5;
|
||||
--padding-top: 0;
|
||||
--padding-end: 0;
|
||||
@ -85,7 +87,8 @@
|
||||
color: var(--placeholder-color);
|
||||
|
||||
font-family: inherit;
|
||||
font-weight: var(--placeholder-weight);
|
||||
font-style: var(--placeholder-font-style);
|
||||
font-weight: var(--placeholder-font-weight);
|
||||
|
||||
opacity: var(--placeholder-opacity);
|
||||
}
|
||||
|
@ -18,6 +18,7 @@
|
||||
@mixin text-inherit() {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
font-style: inherit;
|
||||
font-weight: inherit;
|
||||
letter-spacing: inherit;
|
||||
text-decoration: inherit;
|
||||
|
Reference in New Issue
Block a user