forked from esphome/dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.ts
111 lines (96 loc) · 2 KB
/
styles.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import { css } from "lit";
export const esphomeCardStyles = css`
esphome-card {
height: 100%;
display: flex;
flex-direction: column;
}
a {
color: var(--mdc-theme-primary);
}
.flex {
flex: 1;
}
mwc-button {
line-height: 1em;
--mdc-theme-primary: var(--primary-text-color);
}
.card-actions {
display: flex;
padding: 4px;
align-items: center;
}
.card-actions a {
text-decoration: none;
}
.card-actions mwc-icon-button {
--mdc-icon-button-size: 32px;
}
`;
export const esphomeDialogStyles = css`
a {
color: var(--mdc-theme-primary);
}
a[slot="primaryAction"],
a[slot="secondaryAction"] {
text-decoration: none;
}
mwc-textfield:first-child,
div:first-child {
margin-top: 0;
}
mwc-textfield + div,
div + div {
margin-top: 16px;
}
mwc-textfield,
mwc-formfield {
display: block;
}
mwc-textfield,
mwc-textfield:not([required]) + div {
margin-top: 16px;
}
.formfield-extra {
margin-left: 52px;
margin-bottom: 16px;
}
button.link {
background: none;
color: var(--mdc-theme-primary);
border: none;
padding: 0;
font: inherit;
text-align: left;
text-decoration: underline;
cursor: pointer;
}
mwc-button[no-attention] {
--mdc-theme-primary: var(--mdc-theme-primary-no-attention);
--mdc-theme-on-primary: var(--mdc-theme-on-primary-no-attention);
}
@media only screen and (max-width: 450px) {
mwc-dialog {
--mdc-dialog-min-width: 100vw !important;
--mdc-dialog-max-width: 100vw !important;
--mdc-dialog-max-height: 100vh !important;
--mdc-dialog-max-height: calc(
90vh - env(safe-area-inset-bottom)
) !important;
}
}
mwc-list.platforms {
margin: 0 -24px;
}
mwc-list.platforms mwc-list-item {
padding: 0 24px;
}
mwc-button {
--mdc-theme-primary: var(--primary-text-color);
}
`;
export const esphomeSvgStyles = css`
.svg-fill-primary {
fill: var(--primary-text-color);
}
`;