-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
678d56e
commit 7743e29
Showing
6 changed files
with
260 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,232 @@ | ||
x-anchors: | ||
default: &default | ||
type: button | ||
entity: light.bed_light | ||
icon: mdi:settings | ||
|
||
desc: &desc | ||
type: markdown | ||
style: | | ||
code { | ||
font-size: 8pt; | ||
line-height: normal; | ||
white-space: pre-wrap; | ||
} | ||
title: Popup | ||
cards: | ||
- type: vertical-stack | ||
cards: | ||
- <<: *desc | ||
content: | | ||
``` | ||
service: browser_mod.popup | ||
service_data: | ||
title: Default | ||
card: | ||
type: markdown | ||
content: Popup! | ||
``` | ||
- <<: *default | ||
name: Default | ||
tap_action: | ||
action: call-service | ||
service: browser_mod.popup | ||
service_data: | ||
title: Default | ||
card: | ||
type: markdown | ||
content: Popup! | ||
|
||
- type: vertical-stack | ||
cards: | ||
- <<: *desc | ||
content: | | ||
``` | ||
service: browser_mod.popup | ||
service_data: | ||
title: Large | ||
large: true | ||
card: | ||
type: markdown | ||
content: Popup! | ||
``` | ||
- <<: *default | ||
name: Large | ||
tap_action: | ||
action: call-service | ||
service: browser_mod.popup | ||
service_data: | ||
title: Large | ||
large: true | ||
card: | ||
type: markdown | ||
content: Popup! | ||
|
||
- type: vertical-stack | ||
cards: | ||
- <<: *desc | ||
content: | | ||
``` | ||
service: browser_mod.popup | ||
service_data: | ||
title: Hide Header | ||
hide_header: true | ||
card: | ||
type: markdown | ||
content: Popup! | ||
``` | ||
- <<: *default | ||
name: Hide header | ||
tap_action: | ||
action: call-service | ||
service: browser_mod.popup | ||
service_data: | ||
title: Hide Header | ||
hide_header: true | ||
card: | ||
type: markdown | ||
content: Popup! | ||
|
||
- type: vertical-stack | ||
cards: | ||
- <<: *desc | ||
content: | | ||
``` | ||
service: browser_mod.popup | ||
service_data: | ||
title: Auto close | ||
auto_close: true | ||
card: | ||
type: markdown | ||
content: Popup! | ||
``` | ||
- <<: *default | ||
name: Auto close | ||
tap_action: | ||
action: call-service | ||
service: browser_mod.popup | ||
service_data: | ||
title: Auto close | ||
auto_close: true | ||
card: | ||
type: markdown | ||
content: Popup! | ||
|
||
- type: vertical-stack | ||
cards: | ||
- <<: *desc | ||
content: | | ||
``` | ||
service: browser_mod.popup | ||
service_data: | ||
title: Popup 1 | ||
card: | ||
<<: *default | ||
tap_action: | ||
action: call-service | ||
service: browser_mod.popup | ||
service_data: | ||
title: Popup 2 | ||
card: | ||
type: markdown | ||
content: Popup! | ||
``` | ||
- <<: *default | ||
name: Nested popup | ||
tap_action: | ||
action: call-service | ||
service: browser_mod.popup | ||
service_data: | ||
title: Popup 1 | ||
card: | ||
<<: *default | ||
tap_action: | ||
action: call-service | ||
service: browser_mod.popup | ||
service_data: | ||
title: Popup 2 | ||
card: | ||
type: markdown | ||
content: Popup! | ||
|
||
- type: vertical-stack | ||
cards: | ||
- <<: *desc | ||
content: | | ||
More info in popup. | ||
May have different behavior depending on whether a more-info dialog | ||
has ever been opened before a popup. | ||
- type: entities | ||
entities: [light.bed_light] | ||
- <<: *default | ||
name: More info in popup | ||
tap_action: | ||
action: call-service | ||
service: browser_mod.popup | ||
service_data: | ||
title: More info in popup | ||
card: | ||
type: entities | ||
entities: [light.bed_light] | ||
|
||
- type: vertical-stack | ||
cards: | ||
- <<: *desc | ||
content: | | ||
``` | ||
style: | ||
$: | | ||
.mdc-dialog { | ||
backdrop-filter: blur(17px); | ||
-webkit-backdrop-filter: blur(17px); | ||
} | ||
.mdc-dialog .mdc-dialog__container .mdc-dialog__surface { | ||
border-radius: 25px; | ||
} | ||
.: | | ||
:host { | ||
--mdc-theme-surface: rgba(0,0,0,0); | ||
--secondary-background-color: rgba(0,0,0,0.5); | ||
--ha-card-background: rgba(0,0,0,0.5); | ||
} | ||
:host .content { | ||
width: 90vw; | ||
height: 90vh; | ||
} | ||
``` | ||
- <<: *default | ||
name: Styled | ||
tap_action: | ||
action: call-service | ||
service: browser_mod.popup | ||
service_data: | ||
title: Styled popup | ||
card: | ||
type: markdown | ||
content: Popup! | ||
style: | ||
$: | | ||
.mdc-dialog { | ||
backdrop-filter: blur(17px); | ||
-webkit-backdrop-filter: blur(17px); | ||
} | ||
.mdc-dialog .mdc-dialog__container .mdc-dialog__surface { | ||
border-radius: 25px; | ||
} | ||
.: | | ||
:host { | ||
--mdc-theme-surface: rgba(0,0,0,0); | ||
--secondary-background-color: rgba(0,0,0,0.5); | ||
--ha-card-background: rgba(0,0,0,0.5); | ||
} | ||
:host .content { | ||
width: 90vw; | ||
height: 90vh; | ||
} | ||
- <<: *default | ||
name: Close popup | ||
tap_action: | ||
action: call-service | ||
service: browser_mod.close_popup |