blob: 2e5b837c794a083779e7a516d4c7daaf5ed4b016 (
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
|
<style>
:host {
align-items: center;
box-sizing: border-box;
cursor: default;
display: flex;
height: 48px;
padding: 1em;
width: 100%;
}
:host(:hover) {
background-color: #eee;
}
:host(.focused) {
background-color: rgba(var(--google-grey-900-rgb), 6%);
}
.annotation {
color: var(--google-blue-600);
margin-inline-start: auto;
}
span {
white-space: pre;
}
.match {
font-weight: 700;
text-decoration: underline;
}
iron-icon {
margin-inline-end: .5em;
--iron-icon-fill-color: --google-grey-800;
}
</style>
<iron-icon icon="[[computeIcon_(model.entity)]]"></iron-icon>
<template is="dom-repeat"
items="[[computeMatchSpans_(model.title, model.matchedRanges)]]"
as="span">
<span class$="[[getClassForMatch(span.isMatch)]]">[[span.text]]</span>
</template>
<span class="annotation">[[model.annotation]]</span>
|