-
Notifications
You must be signed in to change notification settings - Fork 38
/
common-styles.html
77 lines (72 loc) · 2.06 KB
/
common-styles.html
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
<dom-module id="common-styles">
<template>
<style>
:host {
--divider-color: #edf1f4;
--max-top-image-dimension: 125px;
--max-bottom-image-dimension: 150px;
--section-spacer-distance: 20px;
box-shadow: 0px 5px 10px rgba(0,0,0,0.25);
display: block;
font-family: serif;
padding: calc(var(--section-spacer-distance) * 2) 20px;
text-align: center;
}
/* Image at the top of the document. */
:host .certificate-image img {
max-width: var(--max-top-image-dimension);
max-height: var(--max-top-image-dimension);
}
/* Headers section */
:host .headers::before,
:host .headers::after {
content: ' ';
display: block;
background-color: var(--divider-color);
width: 30%;
height: 1px;
text-align: center;
margin: var(--section-spacer-distance) auto;
}
:host .headers h1,
:host .headers h2,
:host .headers h3 {
font-weight: normal;
margin-top: 0px;
margin-bottom: 0px;
}
:host .headers h1 {
font-size: 30px;
}
:host .headers h2 {
font-size: 24px;
margin-top: calc(var(--section-spacer-distance) / 2);
}
:host .headers h3 {
font-size: 16px;
font-style: italic;
margin-top: calc(var(--section-spacer-distance) / 2);
}
/* Description section */
:host .description p {
font-style: italic;
margin-top: var(--section-spacer-distance);
}
/* Signatures section*/
:host .signatures {
margin-top: var(--section-spacer-distance);
}
:host .signatures img {
max-width: var(--max-bottom-image-dimension);
}
/* Image at the bottom of the document. */
:host .seal {
margin-top: var(--section-spacer-distance);
}
:host .seal img {
max-width: var(--max-bottom-image-dimension);
max-height: var(--max-bottom-image-dimension);
}
</style>
</template>
</dom-module>