-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathshared-styles.ts
87 lines (76 loc) · 2 KB
/
shared-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
import { css } from 'lit';
export default css`
:host {
display: block;
text-align: left;
box-sizing: border-box;
max-width: 800px;
min-width: 360px;
font-size: 1rem;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
border: 1px solid var(--ave-border-color);
border-radius: var(--ave-border-radius);
--ave-primary-color: #01579b;
--ave-secondary-color: rgba(0, 0, 0, 0.54);
--ave-accent-color: #d63200;
--ave-border-color: rgba(0, 0, 0, 0.12);
--ave-border-radius: 4px;
--ave-header-color: #fff;
--ave-item-color: rgba(0, 0, 0, 0.87);
--ave-label-color: #424242;
--ave-deprecated-background-color: #fcc7c7;
--ave-link-color: #01579b;
--ave-link-hover-color: #d63200;
--ave-tab-indicator-size: 2px;
--ave-tab-color: rgba(0, 0, 0, 0.54);
--ave-tag-background-color: #e2e3e5;
--ave-tag-border-color: #d6d8db;
--ave-tag-color: #383d41;
--ave-monospace-font: Menlo, 'DejaVu Sans Mono', 'Liberation Mono', Consolas,
'Courier New', monospace;
}
:host([hidden]),
[hidden] {
display: none !important;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.75rem;
background: var(--ave-header-background, var(--ave-primary-color));
border-top-left-radius: var(--ave-border-radius);
border-top-right-radius: var(--ave-border-radius);
}
nav {
display: flex;
align-items: center;
}
[part='header-title'] {
color: var(--ave-header-color);
font-family: var(--ave-monospace-font);
font-size: 0.875rem;
line-height: 1.5rem;
}
[part='select-label'] {
margin-left: 0.5rem;
}
[part='warning'] {
padding: 1rem;
}
@media (max-width: 480px) {
header {
flex-direction: column;
}
nav {
margin-top: 0.5rem;
}
}
@media (prefers-color-scheme: dark) {
:host {
background: #fff;
color: #000;
}
}
`;