BREAKING! Use card-mod styles in popup instead
This commit is contained in:
parent
954c960789
commit
e955b791a0
11
README.md
11
README.md
@ -257,20 +257,11 @@ will display the specified `entities` card as a popup on the current device and
|
|||||||

|

|
||||||
|
|
||||||
The optional parameter `large: true` will make the popup wider.
|
The optional parameter `large: true` will make the popup wider.
|
||||||
The optional parameter `style:` will apply CSS style options to the popup.
|
|
||||||
The optional parameter `hide_header: true` will hide the header bar and close button.
|
The optional parameter `hide_header: true` will hide the header bar and close button.
|
||||||
The optional parameter `auto_close: true` will make the popup close automatically when the mouse is moved or a key is pressed on the keyboard. This also removes the header bar.
|
The optional parameter `auto_close: true` will make the popup close automatically when the mouse is moved or a key is pressed on the keyboard. This also removes the header bar.
|
||||||
The optional parameter `time:` (only useable if `auto_close: true` is also set) will turn the popup into a "screensaver". See the `blackout` command below.
|
The optional parameter `time:` (only useable if `auto_close: true` is also set) will turn the popup into a "screensaver". See the `blackout` command below.
|
||||||
|
|
||||||
Ex:
|
If [card-mod](https://github.com/thomasloven/lovelace-card-mod) is installed, the popup can be styled by the optional `style` parameter, or by the `card-mod-more-info[-yaml]` theme variable.
|
||||||
```yaml
|
|
||||||
style:
|
|
||||||
border-radius: 20px
|
|
||||||
--ha-card-border-radius: 20px
|
|
||||||
--ha-card-background: red
|
|
||||||
```
|
|
||||||
|
|
||||||
Note: Sometimes this doesn't work if the *device* is not currently displaying a lovelace path. I'm looking into that...
|
|
||||||
|
|
||||||
### close_popup
|
### close_popup
|
||||||
```
|
```
|
||||||
|
File diff suppressed because one or more lines are too long
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "browser_mod",
|
"name": "browser_mod",
|
||||||
"version": "1.0.4",
|
"version": "1.1.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -655,7 +655,7 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"card-tools": {
|
"card-tools": {
|
||||||
"version": "github:thomasloven/lovelace-card-tools#adba94f7a24d7d9e87856613530190b8a13b740c",
|
"version": "github:thomasloven/lovelace-card-tools#9ecbbe40c4550901d9ae7335491cf1ed442496d0",
|
||||||
"from": "github:thomasloven/lovelace-card-tools"
|
"from": "github:thomasloven/lovelace-card-tools"
|
||||||
},
|
},
|
||||||
"chalk": {
|
"chalk": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "browser_mod",
|
"name": "browser_mod",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.1.0",
|
"version": "1.1.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack",
|
"build": "webpack",
|
||||||
|
@ -14,3 +14,13 @@ lovelace:
|
|||||||
mode: yaml
|
mode: yaml
|
||||||
title: yaml
|
title: yaml
|
||||||
filename: lovelace.yaml
|
filename: lovelace.yaml
|
||||||
|
|
||||||
|
frontend:
|
||||||
|
themes:
|
||||||
|
test:
|
||||||
|
card-mod-theme: test
|
||||||
|
card-mod-more-info-yaml: |
|
||||||
|
$: |
|
||||||
|
.mdc-dialog {
|
||||||
|
backdrop-filter: grayscale(0.7) blur(5px);
|
||||||
|
}
|
||||||
|
@ -46,10 +46,23 @@ views:
|
|||||||
deviceID: this
|
deviceID: this
|
||||||
title: Test
|
title: Test
|
||||||
style:
|
style:
|
||||||
border-radius: 20px
|
.: |
|
||||||
|
app-toolbar {
|
||||||
|
background: rgba(0,0,0,0.5) !important;
|
||||||
|
}
|
||||||
|
$: |
|
||||||
|
.mdc-dialog .mdc-dialog__container .mdc-dialog__surface {
|
||||||
|
border-radius: 20px;
|
||||||
|
background: rgba(0,0,0,0);
|
||||||
|
}
|
||||||
card:
|
card:
|
||||||
type: markdown
|
type: markdown
|
||||||
content: Hello!
|
content: Hello!
|
||||||
|
style: |
|
||||||
|
ha-card {
|
||||||
|
--ha-card-background: rgba(0,0,0,0.5);
|
||||||
|
color: white;
|
||||||
|
}
|
||||||
|
|
||||||
- type: button
|
- type: button
|
||||||
entity: sun.sun
|
entity: sun.sun
|
||||||
|
Loading…
x
Reference in New Issue
Block a user