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
ash / webui / diagnostics_ui / resources / diagnostics_card_frame.html [blame]
<style include="diagnostics-shared">
:host-context(body.jelly-enabled) ::slotted([slot=title]) {
font: var(--cros-button-1-font);
}
:host-context(body.jelly-enabled) .card-wrapper {
border-radius: 16px;
box-shadow: none;
}
::slotted([slot=chip]) {
background-color: var(--diagnostics-chip-bg-color);
border-radius: 16px;
}
::slotted([slot=title]) {
color: var(--cros-text-color-secondary);
font-family: var(--diagnostics-roboto-font-family);
font-size: 14px;
font-weight: var(--diagnostics-medium-font-weight);
}
::slotted([slot=left-panel]) {
flex: 1;
margin-bottom: 16px;
}
.card-container {
display: flex;
flex-direction: column;
margin: 12px 0 12px;
}
.card-header {
display: flex;
height: 20px;
justify-content: space-between;
padding-top: 10px;
}
.card-wrapper {
background-color: var(--diagnostics-card-bg-color);
border-radius: 4px;
box-shadow: var(--diagnostics-box-shadow);
margin: 10px 0;
}
</style>
<div class="card-container">
<div id="title" class="card-header">
<slot name="title"></slot>
<slot name="chip"></slot>
</div>
<div class="card-wrapper">
<slot name="contents"></slot>
</div>
</div>