-
Notifications
You must be signed in to change notification settings - Fork 4
/
listmap-view.js
45 lines (42 loc) · 955 Bytes
/
listmap-view.js
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
import { LitElement, html, css } from "lit-element";
import "./marker-map";
import "./lazy-loading-indicator";
import "github-corner";
class ListMapView extends LitElement {
static get styles() {
return css`
.container {
display: flex;
flex-direction: row;
height: 100vh;
}
::slotted(lazy-list) {
width: 300px;
}
@media (max-width: 400px) {
.container {
flex-direction: column;
}
::slotted(lazy-list) {
height: 50%;
width: 100%;
margin: 0;
}
}
github-corner svg {
z-index: 1000;
}
`;
}
render() {
return html`
<github-corner><a href="https://github.com/Artur-/flow-lit"></a></github-corner>
<div class="container">
<slot></slot>
<marker-map></marker-map>
</div>
</div>
`;
}
}
customElements.define("listmap-view", ListMapView);