mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 19:56:42 +00:00
Cleanup mwc-button css (#2780)
``font-weight: 500;` `color: var(--primary-color);` are not necessary to specify
This commit is contained in:
parent
a4ec8719f9
commit
2ada32be02
@ -40,7 +40,6 @@ class HaPersistentNotificationCard extends LocalizeMixin(PolymerElement) {
|
|||||||
}
|
}
|
||||||
mwc-button {
|
mwc-button {
|
||||||
margin: 8px;
|
margin: 8px;
|
||||||
font-weight: 500;
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@ -39,8 +39,6 @@ class HaVacuumState extends LocalizeMixin(PolymerElement) {
|
|||||||
return html`
|
return html`
|
||||||
<style>
|
<style>
|
||||||
mwc-button {
|
mwc-button {
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
top: 3px;
|
top: 3px;
|
||||||
height: 37px;
|
height: 37px;
|
||||||
margin-right: -0.57em;
|
margin-right: -0.57em;
|
||||||
|
@ -33,7 +33,6 @@ class MoreInfoAlarmControlPanel extends LocalizeMixin(
|
|||||||
.actions mwc-button {
|
.actions mwc-button {
|
||||||
min-width: 160px;
|
min-width: 160px;
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
color: var(--primary-color);
|
|
||||||
}
|
}
|
||||||
mwc-button.disarm {
|
mwc-button.disarm {
|
||||||
color: var(--google-red-500);
|
color: var(--google-red-500);
|
||||||
|
@ -10,10 +10,6 @@ class MoreInfoAutomation extends LocalizeMixin(PolymerElement) {
|
|||||||
static get template() {
|
static get template() {
|
||||||
return html`
|
return html`
|
||||||
<style>
|
<style>
|
||||||
mwc-button {
|
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
.flex {
|
.flex {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
@ -129,10 +129,6 @@ export class CloudWebhookManageDialog extends LitElement {
|
|||||||
button.link {
|
button.link {
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
mwc-button {
|
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -226,10 +226,6 @@ export class CloudWebhooks extends LitElement {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
mwc-button {
|
|
||||||
font-weight: 500;
|
|
||||||
color: var(--primary-color);
|
|
||||||
}
|
|
||||||
.footer {
|
.footer {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
|
@ -66,10 +66,6 @@ class HaConfigCloudAccount extends EventsMixin(LocalizeMixin(PolymerElement)) {
|
|||||||
text-transform: capitalize;
|
text-transform: capitalize;
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
mwc-button {
|
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
<hass-subpage header="Home Assistant Cloud">
|
<hass-subpage header="Home Assistant Cloud">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
@ -30,8 +30,6 @@ class HaConfigManagerDashboard extends LocalizeMixin(
|
|||||||
return html`
|
return html`
|
||||||
<style include="iron-flex ha-style">
|
<style include="iron-flex ha-style">
|
||||||
mwc-button {
|
mwc-button {
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
top: 3px;
|
top: 3px;
|
||||||
margin-right: -0.57em;
|
margin-right: -0.57em;
|
||||||
}
|
}
|
||||||
|
@ -290,7 +290,6 @@ class HuiAlarmPanelCard extends LitElement implements LovelaceCard {
|
|||||||
}
|
}
|
||||||
.actions mwc-button {
|
.actions mwc-button {
|
||||||
min-width: calc(var(--base-unit) * 9);
|
min-width: calc(var(--base-unit) * 9);
|
||||||
color: var(--primary-color);
|
|
||||||
margin: 0 4px;
|
margin: 0 4px;
|
||||||
}
|
}
|
||||||
mwc-button#disarm {
|
mwc-button#disarm {
|
||||||
|
@ -73,8 +73,6 @@ export class HuiEmptyStateCard extends LitElement implements LovelaceCard {
|
|||||||
|
|
||||||
mwc-button {
|
mwc-button {
|
||||||
margin-left: -8px;
|
margin-left: -8px;
|
||||||
font-weight: 500;
|
|
||||||
color: var(--primary-color);
|
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -65,8 +65,6 @@ class HuiSceneEntityRow extends LitElement implements EntityRow {
|
|||||||
static get styles(): CSSResult {
|
static get styles(): CSSResult {
|
||||||
return css`
|
return css`
|
||||||
mwc-button {
|
mwc-button {
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
margin-right: -0.57em;
|
margin-right: -0.57em;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -65,8 +65,6 @@ class HuiScriptEntityRow extends LitElement implements EntityRow {
|
|||||||
static get styles(): CSSResult {
|
static get styles(): CSSResult {
|
||||||
return css`
|
return css`
|
||||||
mwc-button {
|
mwc-button {
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
margin-right: -0.57em;
|
margin-right: -0.57em;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
@ -73,12 +73,6 @@ class LovelacePanel extends LitElement {
|
|||||||
|
|
||||||
if (state === "error") {
|
if (state === "error") {
|
||||||
return html`
|
return html`
|
||||||
<style>
|
|
||||||
mwc-button {
|
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<hass-error-screen
|
<hass-error-screen
|
||||||
title="Lovelace"
|
title="Lovelace"
|
||||||
.error="${this._errorMsg}"
|
.error="${this._errorMsg}"
|
||||||
|
@ -68,8 +68,6 @@ class HuiCallServiceRow extends LitElement implements EntityRow {
|
|||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
mwc-button {
|
mwc-button {
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
margin-right: -0.57em;
|
margin-right: -0.57em;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -37,8 +37,6 @@ class HaMfaModulesCard extends EventsMixin(LocalizeMixin(PolymerElement)) {
|
|||||||
margin: 16px auto;
|
margin: 16px auto;
|
||||||
}
|
}
|
||||||
mwc-button {
|
mwc-button {
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
margin-right: -0.57em;
|
margin-right: -0.57em;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -16,8 +16,6 @@ class StateCardConfigurator extends LocalizeMixin(PolymerElement) {
|
|||||||
<style include="iron-flex iron-flex-alignment"></style>
|
<style include="iron-flex iron-flex-alignment"></style>
|
||||||
<style>
|
<style>
|
||||||
mwc-button {
|
mwc-button {
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
top: 3px;
|
top: 3px;
|
||||||
height: 37px;
|
height: 37px;
|
||||||
margin-right: -0.57em;
|
margin-right: -0.57em;
|
||||||
|
@ -16,8 +16,6 @@ class StateCardLock extends LocalizeMixin(PolymerElement) {
|
|||||||
<style include="iron-flex iron-flex-alignment"></style>
|
<style include="iron-flex iron-flex-alignment"></style>
|
||||||
<style>
|
<style>
|
||||||
mwc-button {
|
mwc-button {
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
top: 3px;
|
top: 3px;
|
||||||
height: 37px;
|
height: 37px;
|
||||||
margin-right: -0.57em;
|
margin-right: -0.57em;
|
||||||
|
@ -15,8 +15,6 @@ class StateCardScene extends LocalizeMixin(PolymerElement) {
|
|||||||
<style include="iron-flex iron-flex-alignment"></style>
|
<style include="iron-flex iron-flex-alignment"></style>
|
||||||
<style>
|
<style>
|
||||||
mwc-button {
|
mwc-button {
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
top: 3px;
|
top: 3px;
|
||||||
height: 37px;
|
height: 37px;
|
||||||
margin-right: -0.57em;
|
margin-right: -0.57em;
|
||||||
|
@ -17,8 +17,6 @@ class StateCardScript extends LocalizeMixin(PolymerElement) {
|
|||||||
<style include="iron-flex iron-flex-alignment"></style>
|
<style include="iron-flex iron-flex-alignment"></style>
|
||||||
<style>
|
<style>
|
||||||
mwc-button {
|
mwc-button {
|
||||||
color: var(--primary-color);
|
|
||||||
font-weight: 500;
|
|
||||||
top: 3px;
|
top: 3px;
|
||||||
height: 37px;
|
height: 37px;
|
||||||
margin-right: -0.57em;
|
margin-right: -0.57em;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user