Add support for extras_css option (#238)

This commit is contained in:
Simon Lecoq
2021-04-18 17:36:42 +02:00
committed by GitHub
parent c71749851f
commit f275f38dbf
5 changed files with 36 additions and 1 deletions

View File

@@ -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).

View File

@@ -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: