Skip to content

Commit

Permalink
Added missing css file
Browse files Browse the repository at this point in the history
  • Loading branch information
HarelM committed Mar 10, 2024
1 parent 156e5a6 commit b4a1581
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ jobs:
- name: Install & build
run: |
npm ci
npm run build
npm run build-compat
npm run build-dist
- name: Publish NPM package
run: |
Expand Down
40 changes: 40 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.maplibregl-inspect_popup {
color: #333;
display: table;
}

.maplibregl-inspect_feature:not(:last-child) {
border-bottom: 1px solid #ccc;
}

.maplibregl-inspect_layer:before {
content: '#';
}

.maplibregl-inspect_layer {
display: block;
font-weight: bold;
}

.maplibregl-inspect_property {
display: table-row;
}

.maplibregl-inspect_property-value {
display: table-cell;
word-break: break-all;
}

.maplibregl-inspect_property-name {
display: table-cell;
padding-right: 10px;
word-break: break-all;
}

.maplibregl-ctrl-inspect {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333333' preserveAspectRatio='xMidYMid meet' viewBox='-10 -10 60 60'%3E%3Cg%3E%3Cpath d='m15 21.6q0-2 1.5-3.5t3.5-1.5 3.5 1.5 1.5 3.5-1.5 3.6-3.5 1.4-3.5-1.4-1.5-3.6z m18.4 11.1l-6.4-6.5q1.4-2.1 1.4-4.6 0-3.4-2.5-5.8t-5.9-2.4-5.9 2.4-2.5 5.8 2.5 5.9 5.9 2.5q2.4 0 4.6-1.4l7.4 7.4q-0.9 0.6-2 0.6h-20q-1.3 0-2.3-0.9t-1.1-2.3l0.1-26.8q0-1.3 1-2.3t2.3-0.9h13.4l10 10v19.3z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}

.maplibregl-ctrl-map {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333333' viewBox='-10 -10 60 60' preserveAspectRatio='xMidYMid meet'%3E%3Cg%3E%3Cpath d='m25 31.640000000000004v-19.766666666666673l-10-3.511666666666663v19.766666666666666z m9.140000000000008-26.640000000000004q0.8599999999999923 0 0.8599999999999923 0.8600000000000003v25.156666666666666q0 0.625-0.625 0.783333333333335l-9.375 3.1999999999999993-10-3.5133333333333354-8.906666666666668 3.4383333333333326-0.2333333333333334 0.07833333333333314q-0.8616666666666664 0-0.8616666666666664-0.8599999999999994v-25.156666666666663q0-0.625 0.6233333333333331-0.7833333333333332l9.378333333333334-3.198333333333334 10 3.5133333333333336 8.905000000000001-3.4383333333333344z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"build": "mkdir -p dist && NODE_ENV=production browserify index.js --standalone MaplibreInspect | uglifyjs - --compress --mangle -o dist/maplibre-gl-inspect.min.js",
"build-nice": "mkdir -p dist && NODE_ENV=production browserify index.js --standalone MaplibreInspect | uglifyjs - -o dist/maplibre-gl-inspect.min.js",
"build-compat": "mkdir -p dist && NODE_ENV=production browserify index.js --standalone MaplibreInspect -t [ babelify --presets [ @babel/preset-env ] --plugins [ @babel/plugin-transform-object-assign ] ] | uglifyjs - --compress --mangle -o dist/maplibre-gl-inspect-compat.min.js",
"build-css": "mkdir -p dist && cp index.css dist/maplibre-gl-inspect.css",
"build-dist": "npm run build && npm run build-compat && npm run build-css",
"docs": "documentation build lib/MaplibreInspect.js --format=md > API.md && cp index.html ./dist"
},
"repository": {
Expand Down

0 comments on commit b4a1581

Please sign in to comment.