From 2e47aa190530617cce7b53e634c002ce710d0fdc Mon Sep 17 00:00:00 2001 From: Zack Arnett Date: Thu, 6 Feb 2020 02:05:49 -0500 Subject: [PATCH] Update Edit Footer for Cards (#4752) * Update CSS * Radius Updates * Updating to be a ha-card element --- .../lovelace/components/hui-card-options.ts | 115 ++++++++++-------- 1 file changed, 61 insertions(+), 54 deletions(-) diff --git a/src/panels/lovelace/components/hui-card-options.ts b/src/panels/lovelace/components/hui-card-options.ts index fe360b2987..1223354fdd 100644 --- a/src/panels/lovelace/components/hui-card-options.ts +++ b/src/panels/lovelace/components/hui-card-options.ts @@ -33,72 +33,79 @@ export class HuiCardOptions extends LitElement { protected render(): TemplateResult { return html` -
-
- ${this.hass!.localize( - "ui.panel.lovelace.editor.edit_card.edit" - )} -
-
- - - + +
+
+ ${this.hass!.localize( + "ui.panel.lovelace.editor.edit_card.edit" + )} +
+
- - - ${this.hass!.localize( - "ui.panel.lovelace.editor.edit_card.move" - )} - - ${this.hass!.localize( - "ui.panel.lovelace.editor.edit_card.delete" - )} - - + + + + + + ${this.hass!.localize( + "ui.panel.lovelace.editor.edit_card.move" + )} + + ${this.hass!.localize( + "ui.panel.lovelace.editor.edit_card.delete" + )} + + +
-
+ `; } static get styles(): CSSResult { return css` - div.options { - border-top: 1px solid #e8e8e8; - padding: 5px 8px; - background: var(--paper-card-background-color, white); + ha-card { + border-top-right-radius: 0; + border-top-left-radius: 0; box-shadow: rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px -4px, rgba(0, 0, 0, 0.2) 0px 3px 1px -2px; + } + + div.options { + border-top: 1px solid #e8e8e8; + padding: 5px 8px; display: flex; + margin-top: -1px; } div.options .primary-actions {