Add support for extras_css option (#238)
This commit is contained in:
@@ -55,6 +55,25 @@ Some templates may accept additional custom options that you can pass through th
|
||||
query: '{"custom_colo r":"#FF0000"}'
|
||||
```
|
||||
|
||||
### 🎨 Custom CSS styling
|
||||
|
||||
You can inject CSS rules using `extras_css` option.
|
||||
|
||||
If you make heavy use of this option, consider using [community templates](/source/templates/community/README.md) instead.
|
||||
|
||||
#### ℹ️ Examples workflows
|
||||
|
||||
```yaml
|
||||
- uses: lowlighter/metrics@latest
|
||||
with:
|
||||
# ... other options
|
||||
base: header
|
||||
extras_css: |
|
||||
h2 {
|
||||
color: red;
|
||||
}
|
||||
```
|
||||
|
||||
### 🌐 Set timezone
|
||||
|
||||
By default, dates are based on Greenwich meridian (GMT/UTC).
|
||||
|
||||
@@ -124,6 +124,17 @@ inputs:
|
||||
type: json
|
||||
default: "{}"
|
||||
|
||||
# Define additional CSS that will be injected in used template
|
||||
# Example:
|
||||
# config_extras_css: |
|
||||
# h2 {
|
||||
# color: red;
|
||||
# }
|
||||
extras_css:
|
||||
description: Extra CSS
|
||||
type: string
|
||||
default: ""
|
||||
|
||||
# Timezone used by metrics
|
||||
# See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
||||
config_timezone:
|
||||
|
||||
Reference in New Issue
Block a user