mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +08:00
fix(skeleton-text): add and document custom properties
references #14850
This commit is contained in:
@ -13,6 +13,13 @@ Skeleton Text is a component for rendering placeholder content. The element will
|
||||
| `width` | `width` | Width for the element to render at. Default is 100% | `string` |
|
||||
|
||||
|
||||
## CSS Custom Properties
|
||||
|
||||
| Name | Description |
|
||||
| -------------- | ------------------------------- |
|
||||
| `--background` | Background of the skeleton text |
|
||||
|
||||
|
||||
----------------------------------------------
|
||||
|
||||
*Built with [StencilJS](https://stenciljs.com/)*
|
||||
|
@ -5,8 +5,12 @@
|
||||
// iOS Skeleton Text
|
||||
// --------------------------------------------------
|
||||
|
||||
:host {
|
||||
--background: #{$skeleton-text-ios-bar-background-color};
|
||||
}
|
||||
|
||||
span {
|
||||
background-color: $skeleton-text-ios-bar-background-color;
|
||||
background: var(--background);
|
||||
|
||||
opacity: $skeleton-text-ios-bar-opacity;
|
||||
}
|
||||
|
@ -5,8 +5,12 @@
|
||||
// Material Design Skeleton Text
|
||||
// --------------------------------------------------
|
||||
|
||||
:host {
|
||||
--background: #{$skeleton-text-md-bar-background-color};
|
||||
}
|
||||
|
||||
span {
|
||||
background-color: $skeleton-text-md-bar-background-color;
|
||||
background: var(--background);
|
||||
|
||||
opacity: $skeleton-text-md-bar-opacity;
|
||||
}
|
||||
|
@ -5,6 +5,10 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
:host {
|
||||
/**
|
||||
* --background: Background of the skeleton text
|
||||
*/
|
||||
|
||||
display: inline-block;
|
||||
|
||||
width: 100%;
|
||||
|
Reference in New Issue
Block a user