File tree 6 files changed +27
-41
lines changed
6 files changed +27
-41
lines changed Original file line number Diff line number Diff line change @@ -115,22 +115,6 @@ <h1>Icons</h1>
115
115
</ js-tablebody >
116
116
</ js-content >
117
117
118
- < js-content >
119
- < js-tag texttransform ="uppercase "> < js-icon size ="small "> compass</ js-icon > Map</ js-tag >
120
- < div style ="height: 500px; ">
121
- < js-map id ="map "
122
- accessToken ="pk.eyJ1IjoiZGp0aG9ycGUiLCJhIjoiY2x5ZnJhZjAzMDJsYTJqcjd6eWQ3cjRvcSJ9.LvoT_wihG5VQtv008P-MPw ">
123
- <!-- add a source from the array (must currently be an array of GeoJSON features) -->
124
- < js-mapsource id ="area " type ="geojson " data ="#array "> </ js-mapsource >
125
-
126
- <!-- display the source on the map as polygons -->
127
- < js-maplayer id ="points " source ="#area " type ="fill "
128
- paint ='{ "fill-opacity": 0.2, "fill-color": "#aa0000" } '> </ js-maplayer >
129
- </ js-map >
130
- </ div >
131
- </ js-content >
132
-
133
-
134
118
</ js-canvas >
135
119
136
120
<!-- toast which persists on the screen for 10 seconds -->
@@ -145,6 +129,19 @@ <h1>Icons</h1>
145
129
< js-close > </ js-close >
146
130
</ js-navitem >
147
131
</ js-nav >
132
+
133
+ < js-content >
134
+ < js-map id ="map "
135
+ accessToken ="pk.eyJ1IjoiZGp0aG9ycGUiLCJhIjoiY2x5ZnJhZjAzMDJsYTJqcjd6eWQ3cjRvcSJ9.LvoT_wihG5VQtv008P-MPw ">
136
+ <!-- add a source from the array (must currently be an array of GeoJSON features) -->
137
+ < js-mapsource id ="area " type ="geojson " data ="#array "> </ js-mapsource >
138
+
139
+ <!-- display the source on the map as polygons -->
140
+ < js-maplayer id ="points " source ="#area " type ="fill "
141
+ paint ='{ "fill-opacity": 0.2, "fill-color": "#aa0000" } '> </ js-maplayer >
142
+ </ js-map >
143
+ </ js-content >
144
+
148
145
</ js-modal >
149
146
150
147
</ body >
Original file line number Diff line number Diff line change @@ -36,9 +36,6 @@ export class CanvasElement extends LitElement {
36
36
flex-direction: row;
37
37
}
38
38
}
39
- ::slotted(test) {
40
- border: 0.05rem solid red;
41
- }
42
39
` ;
43
40
}
44
41
Original file line number Diff line number Diff line change @@ -21,22 +21,15 @@ export class ContentElement extends LitElement {
21
21
22
22
static get styles ( ) {
23
23
return css `
24
- div {
25
- display: block;
26
- padding: var(--content-padding);
27
- }
28
- ` ;
24
+ :host {
25
+ flex: 1;
26
+ }
27
+ ` ;
29
28
}
30
29
31
30
render ( ) {
32
31
return html `
33
- < div class = ${ this . classes . join ( ' ' ) || nothing } > < slot > </ slot > </ div >
32
+ < slot > </ slot >
34
33
` ;
35
34
}
36
-
37
- // eslint-disable-next-line class-methods-use-this
38
- get classes ( ) {
39
- const classes = [ ] ;
40
- return classes ;
41
- }
42
35
}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export class NavElement extends LitElement {
27
27
static get styles ( ) {
28
28
return css `
29
29
:host {
30
- flex: 1 0;
30
+ flex: 0;
31
31
}
32
32
ul {
33
33
display: flex;
Original file line number Diff line number Diff line change @@ -49,10 +49,14 @@ export class MapElement extends LitElement {
49
49
static get styles ( ) {
50
50
return css `
51
51
${ unsafeCSS ( styles ) }
52
- #map {
52
+ :host {
53
+ display: flex;
53
54
width: 100%;
54
55
height: 100%;
55
56
}
57
+ #map {
58
+ flex: 1;
59
+ }
56
60
.mapboxgl-ctrl-logo {
57
61
display: none !important;
58
62
}
Original file line number Diff line number Diff line change @@ -50,22 +50,17 @@ export class ModalElement extends LitElement {
50
50
margin: var(--modal-margin);
51
51
border: var(--modal-border);
52
52
border-radius: var(--modal-border-radius);
53
- }
54
- .wrapper {
55
53
display: flex;
56
- position: relative;
57
- justify-content: center;
58
- align-items: center;
59
- flex-direction: row;
60
- }
54
+ flex-direction: column;
55
+ }
61
56
` ;
62
57
}
63
58
64
59
render ( ) {
65
60
return html `
66
61
< div class =${ this . canvasClasses . join ( ' ' ) || nothing } > </ div >
67
62
< div class =${ this . contentClasses . join ( ' ' ) || nothing } ">
68
- <div class= " wrapper " > < slot > </ slot > </ div >
63
+ <slot></slot>
69
64
</div>
70
65
`;
71
66
}
You can’t perform that action at this time.
0 commit comments