mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-12 12:30:47 +00:00
Rtl changes (#12693)
This commit is contained in:
@@ -518,10 +518,9 @@ class DataEntryFlowDialog extends LitElement {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
:host-context([style*="direction: rtl;"]) .dialog-actions {
|
||||
right: auto;
|
||||
left: 0;
|
||||
inset-inline-start: initial;
|
||||
inset-inline-end: 0px;
|
||||
direction: var(--direction);
|
||||
}
|
||||
.dialog-actions > * {
|
||||
color: var(--secondary-text-color);
|
||||
|
||||
@@ -192,11 +192,8 @@ class StepFlowForm extends LitElement {
|
||||
}
|
||||
h2 {
|
||||
word-break: break-word;
|
||||
padding-right: 72px;
|
||||
}
|
||||
:host-context([style*="direction: rtl;"]) h2 {
|
||||
padding-right: auto !important;
|
||||
padding-left: 72px !important;
|
||||
padding-inline-end: 72px;
|
||||
direction: var(--direction);
|
||||
}
|
||||
`,
|
||||
];
|
||||
|
||||
@@ -104,11 +104,8 @@ class StepFlowPickFlow extends LitElement {
|
||||
margin: 16px 0;
|
||||
}
|
||||
h2 {
|
||||
padding-right: 66px;
|
||||
}
|
||||
:host-context([style*="direction: rtl;"]) h2 {
|
||||
padding-right: auto !important;
|
||||
padding-left: 66px !important;
|
||||
padding-inline-end: 66px;
|
||||
direction: var(--direction);
|
||||
}
|
||||
@media all and (max-height: 900px) {
|
||||
div {
|
||||
|
||||
@@ -311,11 +311,8 @@ class StepFlowPickHandler extends LitElement {
|
||||
border-bottom-color: var(--divider-color);
|
||||
}
|
||||
h2 {
|
||||
padding-right: 66px;
|
||||
}
|
||||
:host-context([style*="direction: rtl;"]) h2 {
|
||||
padding-right: auto !important;
|
||||
padding-left: 66px !important;
|
||||
padding-inline-end: 66px;
|
||||
direction: var(--direction);
|
||||
}
|
||||
@media all and (max-height: 900px) {
|
||||
mwc-list {
|
||||
|
||||
@@ -3,7 +3,11 @@ import { css } from "lit";
|
||||
export const configFlowContentStyles = css`
|
||||
h2 {
|
||||
margin: 24px 38px 0 0;
|
||||
margin-inline-start: 0px;
|
||||
margin-inline-end: 38px;
|
||||
padding: 0 24px;
|
||||
padding-inline-start: 24px;
|
||||
padding-inline-end: 24px;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-family: var(
|
||||
|
||||
Reference in New Issue
Block a user