blob: 0277857eb2d684bccc4cccc5304f827d77379c02 (
plain)
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
112
113
114
|
// Copyright 2023 The Pigweed Authors
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
// License for the specific language governing permissions and limitations under
// the License.
import { css } from 'lit';
export const styles = css`
:host {
align-items: center;
background-color: var(--sys-log-viewer-color-controls-bg);
border-bottom: 1px solid var(--md-sys-color-outline-variant);
box-sizing: border-box;
color: var(--sys-log-viewer-color-controls-text);
display: flex;
flex-shrink: 0;
gap: 1rem;
height: 3rem;
justify-content: space-between;
padding: 0 1rem;
--md-list-item-leading-icon-size: 1.5rem;
}
:host > * {
display: flex;
}
.host-name {
font-size: 1.125rem;
font-weight: 300;
margin: 0;
white-space: nowrap;
}
.field-menu {
background-color: var(--md-sys-color-surface-container);
border-radius: 4px;
margin: 0;
padding: 0.5rem 0.75rem;
position: absolute;
right: 0;
z-index: 2;
}
md-standard-icon-button[selected] {
background-color: var(--sys-log-viewer-color-controls-button-enabled);
border-radius: 100%;
}
.field-menu-item {
align-items: center;
display: flex;
height: 3rem;
width: max-content;
}
.field-toggle {
border-radius: 1.5rem;
position: relative;
}
.input-container {
justify-content: flex-end;
width: 100%;
}
.input-facade {
align-items: center;
background-color: var(--sys-log-viewer-color-controls-input-bg);
border: 1px solid var(--sys-log-viewer-color-controls-input-outline);
border-radius: 1.5rem;
cursor: text;
display: inline-flex;
font-size: 1rem;
height: 0.75rem;
line-height: 0.75;
max-width: 30rem;
overflow: hidden;
padding: 0.5rem 1rem;
width: 100%;
}
input[type='text'] {
display: none;
}
input::placeholder {
color: var(--md-sys-color-on-surface-variant);
}
input[type='checkbox'] {
accent-color: var(--md-sys-color-primary);
height: 1.125rem;
width: 1.125rem;
}
label {
padding-left: 0.75rem;
}
p {
flex: 1 0;
white-space: nowrap;
}
`;
|