forked from ChelseaKR/nearmiss
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathembed.css
More file actions
119 lines (105 loc) · 2.13 KB
/
Copy pathembed.css
File metadata and controls
119 lines (105 loc) · 2.13 KB
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
115
116
117
118
119
/* Self-contained styles for the embeddable nearmiss hotspot widget.
* Kept independent of the main site stylesheet so the widget is portable. */
:root {
--embed-fg: #152a30;
--embed-muted: #5e706f;
--embed-bg: #ffffff;
--embed-link: #145b73;
--embed-border: #aebdb9;
}
* {
box-sizing: border-box;
}
html,
body.embed {
margin: 0;
padding: 0;
background: var(--embed-bg);
color: var(--embed-fg);
font: 15px/1.45 "Atkinson Hyperlegible Next", "Segoe UI", sans-serif;
}
.visually-hidden {
position: absolute !important;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
.skip-link {
position: absolute;
inset-inline-start: -9999px;
top: 0;
background: #fff;
color: var(--embed-link);
padding: 8px 12px;
z-index: 1000;
}
.skip-link:focus {
inset-inline-start: 8px;
top: 8px;
}
.embed-main {
padding: 0;
}
.embed-map {
width: 100%;
height: 320px;
min-height: 220px;
border: 1px solid var(--embed-border);
border-radius: 0;
}
.embed-caption {
margin: 0.5rem 0.6rem;
color: var(--embed-muted);
font-size: 0.92rem;
}
.embed-disclaimer {
margin: 0.5rem 0.6rem;
padding: 0.4rem 0.6rem;
border: 1px solid var(--embed-border);
border-inline-start: 3px solid #e0b33e;
border-radius: 0;
background: #f8efcf;
color: var(--embed-fg);
font-size: 0.85rem;
line-height: 1.35;
}
.embed-list {
margin: 0 0.6rem;
}
.embed-list ul {
margin: 0.25rem 0;
padding-inline-start: 1.1rem;
}
.embed-list li {
margin: 0.15rem 0;
}
.embed-footer {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 0.4rem;
margin: 0.5rem 0.6rem 0.7rem;
font-size: 0.86rem;
color: var(--embed-muted);
}
.embed-footer a {
color: var(--embed-link);
}
/* Focus visibility for keyboard users inside the iframe. */
a:focus,
button:focus {
outline: 3px solid #0b5bd3;
outline-offset: 2px;
}
/* WCAG 2.3.3 (AAA, targeted) / respect the OS-level motion-reduction preference,
* matching the equivalent block in style.css. */
@media (prefers-reduced-motion: reduce) {
* {
transition: none !important;
}
}