Skip to content

Commit 3d7fba4

Browse files
committed
fix(demo): use scoped styles and cleanup unused styles
1 parent a95f8a5 commit 3d7fba4

File tree

10 files changed

+4
-34
lines changed

10 files changed

+4
-34
lines changed

src/components/interaction/OlDragRotateInteraction.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,3 @@ defineExpose({
5151
dragrotate,
5252
});
5353
</script>
54-
55-
<style lang=""></style>

src/components/layers/OlVectorImageLayer.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,3 @@ defineExpose({
6565
vectorImageLayer,
6666
});
6767
</script>
68-
69-
<style lang=""></style>

src/components/map/OlOverlay.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,3 @@ defineExpose({
9898
setPositioning,
9999
});
100100
</script>
101-
102-
<style lang=""></style>

src/components/map/OlView.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,5 +155,3 @@ defineExpose({
155155
setZoom,
156156
});
157157
</script>
158-
159-
<style lang=""></style>

src/components/sources/OlSourceTileArcGISRest.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,3 @@ defineExpose({
8080
source,
8181
});
8282
</script>
83-
84-
<style lang=""></style>

src/demos/AppDemo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,9 @@ const webglPointsStyle = {
447447
};
448448
</script>
449449

450-
<style>
450+
<style scoped>
451451
.overlay-content {
452-
background: red !important;
452+
background: #c84031;
453453
color: white;
454454
box-shadow: 0 5px 10px rgb(2 2 2 / 20%);
455455
padding: 10px 20px;

src/demos/ClusterDemo.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,3 @@ const getRandomInRange = (from, to, fixed) => {
6666
return (Math.random() * (to - from) + from).toFixed(fixed) * 1;
6767
};
6868
</script>
69-
70-
<style>
71-
.overlay-content {
72-
background: red !important;
73-
color: white;
74-
box-shadow: 0 5px 10px rgb(2 2 2 / 20%);
75-
padding: 10px 20px;
76-
font-size: 16px;
77-
}
78-
</style>

src/demos/HeatmapLayerDemo.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,3 @@ const heatmapWeight = function (feature) {
5252
return magnitude - 5;
5353
};
5454
</script>
55-
56-
<style>
57-
.overlay-content {
58-
background: red !important;
59-
color: white;
60-
box-shadow: 0 5px 10px rgb(2 2 2 / 20%);
61-
padding: 10px 20px;
62-
font-size: 16px;
63-
}
64-
</style>

src/demos/MapControlDemo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ onMounted(() => {
210210
});
211211
</script>
212212

213-
<style>
213+
<style scoped>
214214
ul.checkbox-list {
215215
columns: 2;
216216
padding: 0;

src/demos/OverlayDemo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function moveToEast() {
3838
}
3939
</script>
4040

41-
<style>
41+
<style scoped>
4242
.overlay-content {
4343
background: #efefef;
4444
box-shadow: 0 5px 10px rgb(2 2 2 / 20%);

0 commit comments

Comments
 (0)