mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
parent
0ff27154e6
commit
a39cf99024
@ -156,6 +156,7 @@ class HaClimateState extends LitElement {
|
|||||||
|
|
||||||
.current {
|
.current {
|
||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
|
direction: var(--direction);
|
||||||
}
|
}
|
||||||
|
|
||||||
.state-label {
|
.state-label {
|
||||||
|
@ -19,7 +19,9 @@ class HaMetric extends LitElement {
|
|||||||
<ha-settings-row>
|
<ha-settings-row>
|
||||||
<span slot="heading"> ${this.heading} </span>
|
<span slot="heading"> ${this.heading} </span>
|
||||||
<div slot="description" .title=${this.tooltip ?? ""}>
|
<div slot="description" .title=${this.tooltip ?? ""}>
|
||||||
<span class="value"> ${roundedValue} % </span>
|
<span class="value">
|
||||||
|
<div>${roundedValue} %</div>
|
||||||
|
</span>
|
||||||
<ha-bar
|
<ha-bar
|
||||||
class=${classMap({
|
class=${classMap({
|
||||||
"target-warning": roundedValue > 50,
|
"target-warning": roundedValue > 50,
|
||||||
@ -70,6 +72,10 @@ class HaMetric extends LitElement {
|
|||||||
padding-inline-start: initial;
|
padding-inline-start: initial;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
.value > div {
|
||||||
|
direction: ltr;
|
||||||
|
text-align: var(--float-start);
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -186,6 +186,8 @@ class HaQrScanner extends LitElement {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 8px;
|
bottom: 8px;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
|
inset-inline-end: 8px;
|
||||||
|
inset-inline-start: initial;
|
||||||
background: #727272b2;
|
background: #727272b2;
|
||||||
color: white;
|
color: white;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
@ -90,7 +90,7 @@ export class HaTextField extends TextFieldBase {
|
|||||||
padding-right: var(--text-field-suffix-padding-right, 0px);
|
padding-right: var(--text-field-suffix-padding-right, 0px);
|
||||||
padding-inline-start: var(--text-field-suffix-padding-left, 12px);
|
padding-inline-start: var(--text-field-suffix-padding-left, 12px);
|
||||||
padding-inline-end: var(--text-field-suffix-padding-right, 0px);
|
padding-inline-end: var(--text-field-suffix-padding-right, 0px);
|
||||||
direction: var(--direction);
|
direction: ltr;
|
||||||
}
|
}
|
||||||
.mdc-text-field--with-leading-icon {
|
.mdc-text-field--with-leading-icon {
|
||||||
padding-inline-start: var(--text-field-suffix-padding-left, 0px);
|
padding-inline-start: var(--text-field-suffix-padding-left, 0px);
|
||||||
@ -199,7 +199,6 @@ export class HaTextField extends TextFieldBase {
|
|||||||
// safari workaround - must be explicit
|
// safari workaround - must be explicit
|
||||||
mainWindow.document.dir === "rtl"
|
mainWindow.document.dir === "rtl"
|
||||||
? css`
|
? css`
|
||||||
.mdc-text-field__affix--suffix,
|
|
||||||
.mdc-text-field--with-leading-icon,
|
.mdc-text-field--with-leading-icon,
|
||||||
.mdc-text-field__icon--leading,
|
.mdc-text-field__icon--leading,
|
||||||
.mdc-floating-label,
|
.mdc-floating-label,
|
||||||
|
@ -223,7 +223,6 @@ class DialogMediaPlayerBrowse extends LitElement {
|
|||||||
|
|
||||||
ha-media-player-browse {
|
ha-media-player-browse {
|
||||||
--media-browser-max-height: calc(100vh - 65px);
|
--media-browser-max-height: calc(100vh - 65px);
|
||||||
direction: ltr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(.opened) ha-media-player-browse {
|
:host(.opened) ha-media-player-browse {
|
||||||
|
@ -879,6 +879,7 @@ export class HaMediaPlayerBrowse extends LitElement {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
direction: ltr;
|
||||||
}
|
}
|
||||||
|
|
||||||
ha-circular-progress {
|
ha-circular-progress {
|
||||||
|
@ -322,6 +322,8 @@ export class HaMoreInfoLightFavoriteColors extends LitElement {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: -6px;
|
top: -6px;
|
||||||
right: -6px;
|
right: -6px;
|
||||||
|
inset-inline-end: -6px;
|
||||||
|
inset-inline-start: initial;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
@ -446,6 +446,8 @@ class LightRgbColorPicker extends LitElement {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
inset-inline-end: 0;
|
||||||
|
inset-inline-start: initial;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -647,6 +647,8 @@ export class HaVoiceCommandDialog extends LitElement {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
--mdc-icon-size: 16px;
|
--mdc-icon-size: 16px;
|
||||||
right: 5px;
|
right: 5px;
|
||||||
|
inset-inline-end: 5px;
|
||||||
|
inset-inline-start: initial;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -377,6 +377,8 @@ export class HaTabsSubpageDataTable extends LitElement {
|
|||||||
color: var(--text-primary-color);
|
color: var(--text-primary-color);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
inset-inline-end: 0;
|
||||||
|
inset-inline-start: initial;
|
||||||
top: 4px;
|
top: 4px;
|
||||||
font-size: 0.65em;
|
font-size: 0.65em;
|
||||||
}
|
}
|
||||||
|
@ -499,6 +499,8 @@ class OnboardingLocation extends LitElement {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
|
inset-inline-end: 10px;
|
||||||
|
inset-inline-start: initial;
|
||||||
--mdc-icon-button-size: 36px;
|
--mdc-icon-button-size: 36px;
|
||||||
--mdc-icon-size: 20px;
|
--mdc-icon-size: 20px;
|
||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
@ -509,6 +511,8 @@ class OnboardingLocation extends LitElement {
|
|||||||
ha-textfield > ha-circular-progress {
|
ha-textfield > ha-circular-progress {
|
||||||
position: relative;
|
position: relative;
|
||||||
left: 12px;
|
left: 12px;
|
||||||
|
inset-inline-start: 12px;
|
||||||
|
inset-inline-end: initial;
|
||||||
}
|
}
|
||||||
ha-locations-editor {
|
ha-locations-editor {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -710,6 +710,8 @@ class HaConfigAreaPage extends LitElement {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 4px;
|
top: 4px;
|
||||||
right: 4px;
|
right: 4px;
|
||||||
|
inset-inline-end: 4px;
|
||||||
|
inset-inline-start: initial;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.img-container:hover .img-edit-btn {
|
.img-container:hover .img-edit-btn {
|
||||||
@ -736,6 +738,11 @@ class HaConfigAreaPage extends LitElement {
|
|||||||
padding: 16px;
|
padding: 16px;
|
||||||
color: var(--secondary-text-color);
|
color: var(--secondary-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mwc-button > ha-svg-icon {
|
||||||
|
margin-inline-start: 0;
|
||||||
|
margin-inline-end: 8px;
|
||||||
|
}
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -226,6 +226,8 @@ export class CloudRemotePref extends LitElement {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 24px;
|
right: 24px;
|
||||||
top: 24px;
|
top: 24px;
|
||||||
|
inset-inline-end: 24px;
|
||||||
|
inset-inline-start: initial;
|
||||||
}
|
}
|
||||||
.card-actions {
|
.card-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -172,6 +172,8 @@ class DialogHardwareAvailable extends LitElement implements HassDialog {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 16px;
|
right: 16px;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
|
inset-inline-end: 16px;
|
||||||
|
inset-inline-start: initial;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
}
|
}
|
||||||
|
@ -877,6 +877,8 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
|
|||||||
color: var(--text-primary-color);
|
color: var(--text-primary-color);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
|
inset-inline-end: 0px;
|
||||||
|
inset-inline-start: initial;
|
||||||
top: 4px;
|
top: 4px;
|
||||||
font-size: 0.65em;
|
font-size: 0.65em;
|
||||||
}
|
}
|
||||||
@ -884,7 +886,10 @@ class HaConfigIntegrationsDashboard extends SubscribeMixin(LitElement) {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
h1 {
|
h1 {
|
||||||
margin: 8px 0 0 16px;
|
margin-top: 8px;
|
||||||
|
margin-left: 16px;
|
||||||
|
margin-inline-start: 16px;
|
||||||
|
margin-inline-end: initial;
|
||||||
}
|
}
|
||||||
ha-button-menu {
|
ha-button-menu {
|
||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
|
@ -90,6 +90,8 @@ export class HaIntegrationActionCard extends LitElement {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 8px;
|
top: 8px;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
|
inset-inline-end: 8px;
|
||||||
|
inset-inline-start: initial;
|
||||||
}
|
}
|
||||||
.filler {
|
.filler {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
@ -269,6 +269,8 @@ class ZHAAddDevicesPage extends LitElement {
|
|||||||
margin-inline-start: initial;
|
margin-inline-start: initial;
|
||||||
top: -6px;
|
top: -6px;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
inset-inline-end: 0;
|
||||||
|
inset-inline-start: initial;
|
||||||
color: var(--primary-color);
|
color: var(--primary-color);
|
||||||
}
|
}
|
||||||
.search-button {
|
.search-button {
|
||||||
|
@ -241,6 +241,8 @@ export class ZHAClusterCommands extends LitElement {
|
|||||||
float: right;
|
float: right;
|
||||||
top: -6px;
|
top: -6px;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
inset-inline-end: 0;
|
||||||
|
inset-inline-start: initial;
|
||||||
padding-right: 0px;
|
padding-right: 0px;
|
||||||
padding-inline-end: 0px;
|
padding-inline-end: 0px;
|
||||||
padding-inline-start: initial;
|
padding-inline-start: initial;
|
||||||
|
@ -334,6 +334,8 @@ class HaConfigSectionStorage extends LitElement {
|
|||||||
position: relative;
|
position: relative;
|
||||||
top: -10px;
|
top: -10px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
|
inset-inline-end: 10px;
|
||||||
|
inset-inline-start: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
.no-mounts {
|
.no-mounts {
|
||||||
|
@ -93,6 +93,8 @@ export class VoiceAssistantExposeAssistantIcon extends LitElement {
|
|||||||
--mdc-icon-size: 16px;
|
--mdc-icon-size: 16px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
top: -7px;
|
top: -7px;
|
||||||
|
inset-inline-end: 10px;
|
||||||
|
inset-inline-start: initial;
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
@ -290,6 +290,8 @@ class HaPanelDevTemplate extends LitElement {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 8px;
|
top: 8px;
|
||||||
right: 8px;
|
right: 8px;
|
||||||
|
inset-inline-end: 8px;
|
||||||
|
inset-inline-start: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
ha-alert {
|
ha-alert {
|
||||||
|
@ -726,6 +726,8 @@ export class HuiMediaControlCard extends LitElement implements LovelaceCard {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
right: 4px;
|
right: 4px;
|
||||||
--mdc-icon-size: 24px;
|
--mdc-icon-size: 24px;
|
||||||
|
inset-inline-end: 4px;
|
||||||
|
inset-inline-start: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-info {
|
.top-info {
|
||||||
|
@ -732,6 +732,8 @@ export class HuiTodoListCard extends LitElement implements LovelaceCard {
|
|||||||
.deleteItemButton {
|
.deleteItemButton {
|
||||||
position: relative;
|
position: relative;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
|
inset-inline-start: 8px;
|
||||||
|
inset-inline-end: initial;
|
||||||
}
|
}
|
||||||
|
|
||||||
ha-textfield {
|
ha-textfield {
|
||||||
|
@ -139,6 +139,7 @@ class HuiNumberEntityRow extends LitElement implements LovelaceRow {
|
|||||||
}
|
}
|
||||||
ha-textfield {
|
ha-textfield {
|
||||||
text-align: end;
|
text-align: end;
|
||||||
|
direction: ltr !important;
|
||||||
}
|
}
|
||||||
ha-slider {
|
ha-slider {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -343,7 +343,6 @@ class PanelMediaBrowser extends LitElement {
|
|||||||
|
|
||||||
ha-media-player-browse {
|
ha-media-player-browse {
|
||||||
height: calc(100vh - (100px + var(--header-height)));
|
height: calc(100vh - (100px + var(--header-height)));
|
||||||
direction: ltr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:host([narrow]) ha-media-player-browse {
|
:host([narrow]) ha-media-player-browse {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user