mirror of
https://github.com/home-assistant/frontend.git
synced 2025-05-01 00:37:20 +00:00
Increase font size tooltips + position then static (#9713)
This commit is contained in:
parent
028b799d2c
commit
7fcea16c6b
@ -126,8 +126,10 @@ class HuiEnergyCarbonGaugeCard
|
|||||||
<ha-card>
|
<ha-card>
|
||||||
<ha-svg-icon id="info" .path=${mdiInformation}></ha-svg-icon>
|
<ha-svg-icon id="info" .path=${mdiInformation}></ha-svg-icon>
|
||||||
<paper-tooltip animation-delay="0" for="info" position="left">
|
<paper-tooltip animation-delay="0" for="info" position="left">
|
||||||
This card represents how much of the energy consumed by your home was
|
<span>
|
||||||
generated using non-fossil fuels like solar, wind and nuclear.
|
This card represents how much of the energy consumed by your home
|
||||||
|
was generated using non-fossil fuels like solar, wind and nuclear.
|
||||||
|
</span>
|
||||||
</paper-tooltip>
|
</paper-tooltip>
|
||||||
|
|
||||||
${value !== undefined
|
${value !== undefined
|
||||||
@ -194,10 +196,14 @@ class HuiEnergyCarbonGaugeCard
|
|||||||
top: 4px;
|
top: 4px;
|
||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
}
|
}
|
||||||
|
paper-tooltip > span {
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 12px;
|
||||||
|
}
|
||||||
paper-tooltip {
|
paper-tooltip {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
margin-top: 10%;
|
top: 8px !important;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -98,11 +98,13 @@ class HuiEnergyGridGaugeCard
|
|||||||
<ha-card>
|
<ha-card>
|
||||||
<ha-svg-icon id="info" .path=${mdiInformation}></ha-svg-icon>
|
<ha-svg-icon id="info" .path=${mdiInformation}></ha-svg-icon>
|
||||||
<paper-tooltip animation-delay="0" for="info" position="left">
|
<paper-tooltip animation-delay="0" for="info" position="left">
|
||||||
This card represents your energy dependency.
|
<span>
|
||||||
<br /><br />
|
This card represents your energy dependency.
|
||||||
If it's green, it means you produced more energy than that you
|
<br /><br />
|
||||||
consumed from the grid. If it's in the red, it means that you relied
|
If it's green, it means you produced more energy than that you
|
||||||
on the grid for part of your home's energy consumption.
|
consumed from the grid. If it's in the red, it means that you relied
|
||||||
|
on the grid for part of your home's energy consumption.
|
||||||
|
</span>
|
||||||
</paper-tooltip>
|
</paper-tooltip>
|
||||||
${value !== undefined
|
${value !== undefined
|
||||||
? html`<ha-gauge
|
? html`<ha-gauge
|
||||||
@ -162,10 +164,14 @@ class HuiEnergyGridGaugeCard
|
|||||||
top: 4px;
|
top: 4px;
|
||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
}
|
}
|
||||||
|
paper-tooltip > span {
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 12px;
|
||||||
|
}
|
||||||
paper-tooltip {
|
paper-tooltip {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
margin-top: 10%;
|
top: 8px !important;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -88,11 +88,14 @@ class HuiEnergySolarGaugeCard
|
|||||||
<ha-card>
|
<ha-card>
|
||||||
<ha-svg-icon id="info" .path=${mdiInformation}></ha-svg-icon>
|
<ha-svg-icon id="info" .path=${mdiInformation}></ha-svg-icon>
|
||||||
<paper-tooltip animation-delay="0" for="info" position="left">
|
<paper-tooltip animation-delay="0" for="info" position="left">
|
||||||
This card represents how much of the solar energy was used by your
|
<span>
|
||||||
home and was not returned to the grid.
|
This card represents how much of the solar energy was used by your
|
||||||
<br /><br />
|
home and was not returned to the grid.
|
||||||
If you frequently produce more than you consume, try to conserve this
|
<br /><br />
|
||||||
energy by installing a battery or buying an electric car to charge.
|
If you frequently produce more than you consume, try to conserve
|
||||||
|
this energy by installing a battery or buying an electric car to
|
||||||
|
charge.
|
||||||
|
</span>
|
||||||
</paper-tooltip>
|
</paper-tooltip>
|
||||||
${value !== undefined
|
${value !== undefined
|
||||||
? html`<ha-gauge
|
? html`<ha-gauge
|
||||||
@ -157,10 +160,14 @@ class HuiEnergySolarGaugeCard
|
|||||||
top: 4px;
|
top: 4px;
|
||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
}
|
}
|
||||||
|
paper-tooltip > span {
|
||||||
|
font-size: 12px;
|
||||||
|
line-height: 12px;
|
||||||
|
}
|
||||||
paper-tooltip {
|
paper-tooltip {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
margin-top: 10%;
|
top: 8px !important;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user