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