diff --git a/docs/configuration.md b/docs/configuration.md index edcf1ed..22f50fc 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -110,7 +110,8 @@ services: subtitle: "Another example" tag: "other" url: "https://www.reddit.com/r/selfhosted/" - target: "_blank" # optionnal html a tag target attribute + target: "_blank" # optional html a tag target attribute + # class: "green" # optional custom CSS class for card, useful with custom stylesheet ``` If you choose to fetch message information from an endpoint, the output format should be: diff --git a/public/assets/custom.css.sample b/public/assets/custom.css.sample new file mode 100644 index 0000000..2465757 --- /dev/null +++ b/public/assets/custom.css.sample @@ -0,0 +1,9 @@ +@charset "UTF-8"; + +/* Custom card colors */ +/* Use with `class:` property of services in config.yml */ +body #app .card .green +{ + background-color: #006600; + color: #00ff00; +} diff --git a/src/components/Service.vue b/src/components/Service.vue index 88e6e69..4e35b7d 100644 --- a/src/components/Service.vue +++ b/src/components/Service.vue @@ -2,7 +2,10 @@