blob: 8b53fd1d361dde376ff2901a86b8820aad2e0eda (
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
|
<style include="cr-shared-style iron-flex shared-style">
:host {
--checkup-card-margin: 24px;
--banner-img-height: 115px;
--banner-img-width: 298px;
}
#card {
background-color: var(--cr-card-background-color);
border-radius: var(--cr-card-border-radius);
box-shadow: var(--cr-card-shadow);
overflow: hidden;
padding: var(--checkup-card-margin);
transition: height var(--drawer-transition);
}
#banner-img {
background: url(checkup_image.svg);
background-repeat: no-repeat;
display: inline-block;
float: right;
/* Height and width match the dimensions of the banner image. */
height: var(--banner-img-height);
width: var(--banner-img-width);
}
#banner-description {
flex-basis: var(--extensions-card-width);
text-overflow: ellipsis;
}
#banner-title {
color: var(--cr-primary-text-color);
font-size: 123%;
}
/* 932px is the last screen width in which we can fit a banner that spans two
columns and can be calculated by adding 2 card widths of
var(--extensions-card-width) and the column gap var(--grid-gutter) and
maintain padding of 60px on either side of the content on this page
(see content-wrapper in item-list.html).*/
@media (max-width: 931px) {
#banner-img {
display: block;
float: initial;
margin: 12px auto 0;
}
}
@media (prefers-color-scheme: dark) {
#banner-img {
background: url(checkup_image_dark.svg);
}
}
</style>
<div id="card">
<div id="banner-title" class="cr-title-text">$i18n{checkupTitle}</div>
<div id="banner-img"></div>
<div id="banner-description" class="cr-secondary-text">
<p>$i18n{checkupBody1}</p>
<p>$i18n{checkupBody2}</p>
</div>
</div>
|