mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-09 10:59:50 +00:00
Add to hui views
This commit is contained in:
@@ -72,7 +72,7 @@ import {
|
||||
} from "../../dialogs/quick-bar/show-dialog-quick-bar";
|
||||
import { showShortcutsDialog } from "../../dialogs/shortcuts/show-shortcuts-dialog";
|
||||
import { showVoiceCommandDialog } from "../../dialogs/voice-command-dialog/show-ha-voice-command-dialog";
|
||||
import { haStyle } from "../../resources/styles";
|
||||
import { haStyle, haStyleAnimations } from "../../resources/styles";
|
||||
import type { HomeAssistant, PanelInfo } from "../../types";
|
||||
import { documentationUrl } from "../../util/documentation-url";
|
||||
import { showToast } from "../../util/toast";
|
||||
@@ -1209,6 +1209,7 @@ class HUIRoot extends LitElement {
|
||||
static get styles(): CSSResultGroup {
|
||||
return [
|
||||
haStyle,
|
||||
haStyleAnimations,
|
||||
css`
|
||||
:host {
|
||||
-ms-user-select: none;
|
||||
@@ -1263,6 +1264,8 @@ class HUIRoot extends LitElement {
|
||||
padding: 0px 12px;
|
||||
font-weight: var(--ha-font-weight-normal);
|
||||
box-sizing: border-box;
|
||||
animation: fadeIn var(--ha-animation-duration) ease-out both;
|
||||
animation-delay: var(--ha-animation-delay-base);
|
||||
}
|
||||
.narrow .toolbar {
|
||||
padding: 0 4px;
|
||||
|
||||
@@ -44,7 +44,7 @@ export const coreStyles = css`
|
||||
--ha-space-20: 80px;
|
||||
|
||||
/* Animation timing */
|
||||
--ha-animation-duration: 300ms;
|
||||
--ha-animation-duration: 400ms;
|
||||
--ha-animation-delay-base: 50ms;
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user