mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 10:46:35 +00:00
Update Edit Footer for Cards (#4752)
* Update CSS * Radius Updates * Updating to be a ha-card element
This commit is contained in:
parent
c72105dca3
commit
2e47aa1905
@ -33,6 +33,7 @@ export class HuiCardOptions extends LitElement {
|
||||
protected render(): TemplateResult {
|
||||
return html`
|
||||
<slot></slot>
|
||||
<ha-card>
|
||||
<div class="options">
|
||||
<div class="primary-actions">
|
||||
<mwc-button @click="${this._editCard}"
|
||||
@ -86,19 +87,25 @@ export class HuiCardOptions extends LitElement {
|
||||
</paper-menu-button>
|
||||
</div>
|
||||
</div>
|
||||
</ha-card>
|
||||
`;
|
||||
}
|
||||
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user