@hitachivantara/uikit-cli 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +46 -0
  2. package/package.json +68 -0
  3. package/src/app-shell.js +106 -0
  4. package/src/baselines/app-shell/vite/_gitignore +30 -0
  5. package/src/baselines/app-shell/vite/_oxlintrc.json +5 -0
  6. package/src/baselines/app-shell/vite/_package.json +55 -0
  7. package/src/baselines/app-shell/vite/public/locales/en/example.json +8 -0
  8. package/src/baselines/app-shell/vite/src/lib/data/config.ts +15 -0
  9. package/src/baselines/app-shell/vite/src/lib/i18n.ts +44 -0
  10. package/src/baselines/app-shell/vite/src/pages/Example/index.tsx +25 -0
  11. package/src/baselines/app-shell/vite/src/providers/Provider.tsx +31 -0
  12. package/src/baselines/app-shell/vite/src/tests/mocks.ts +1 -0
  13. package/src/baselines/app-shell/vite/src/tests/providers.tsx +13 -0
  14. package/src/baselines/app-shell/vite/src/tests/setupTests.ts +24 -0
  15. package/src/baselines/app-shell/vite/src/types/theme.d.ts +8 -0
  16. package/src/baselines/app-shell/vite/src/types/vite-env.d.ts +1 -0
  17. package/src/baselines/app-shell/vite/tsconfig.json +10 -0
  18. package/src/baselines/app-shell/vite/tsconfig.node.json +9 -0
  19. package/src/baselines/app-shell/vite/uno.config.ts +6 -0
  20. package/src/baselines/app-shell/vite/vite.config.ts +45 -0
  21. package/src/baselines/vite/_gitignore +30 -0
  22. package/src/baselines/vite/_oxlintrc.json +5 -0
  23. package/src/baselines/vite/_package.json +53 -0
  24. package/src/baselines/vite/index.html +18 -0
  25. package/src/baselines/vite/public/favicon.ico +0 -0
  26. package/src/baselines/vite/public/locales/en/common.json +16 -0
  27. package/src/baselines/vite/public/locales/en/home.json +4 -0
  28. package/src/baselines/vite/public/logo192.png +0 -0
  29. package/src/baselines/vite/src/App.tsx +31 -0
  30. package/src/baselines/vite/src/assets/HitachiLogo.tsx +27 -0
  31. package/src/baselines/vite/src/components/common/Loading/Loading.test.tsx +18 -0
  32. package/src/baselines/vite/src/components/common/Loading/Loading.tsx +15 -0
  33. package/src/baselines/vite/src/components/common/Loading/index.ts +1 -0
  34. package/src/baselines/vite/src/context/NavigationContext.tsx +67 -0
  35. package/src/baselines/vite/src/lib/i18n.ts +29 -0
  36. package/src/baselines/vite/src/main.tsx +12 -0
  37. package/src/baselines/vite/src/pages/Home/index.tsx +13 -0
  38. package/src/baselines/vite/src/pages/NotFound/NotFound.tsx +39 -0
  39. package/src/baselines/vite/src/pages/NotFound/index.tsx +1 -0
  40. package/src/baselines/vite/src/pages/layout/navigation.tsx +82 -0
  41. package/src/baselines/vite/src/routes.tsx +14 -0
  42. package/src/baselines/vite/src/tests/mocks.ts +1 -0
  43. package/src/baselines/vite/src/tests/providers.tsx +13 -0
  44. package/src/baselines/vite/src/tests/setupTests.ts +24 -0
  45. package/src/baselines/vite/src/types/theme.d.ts +8 -0
  46. package/src/baselines/vite/src/vite-env.d.ts +1 -0
  47. package/src/baselines/vite/tsconfig.json +10 -0
  48. package/src/baselines/vite/tsconfig.node.json +9 -0
  49. package/src/baselines/vite/uno.config.ts +6 -0
  50. package/src/baselines/vite/vite.config.ts +31 -0
  51. package/src/contents.js +63 -0
  52. package/src/create.js +172 -0
  53. package/src/index.js +22 -0
  54. package/src/navigation.js +21 -0
  55. package/src/package.js +37 -0
  56. package/src/plop-templates/README.md.hbs +10 -0
  57. package/src/plop-templates/app-shell/app-shell.config.ts.hbs +54 -0
  58. package/src/plop-templates/app-shell/index.html.hbs +15 -0
  59. package/src/plopfile.js +61 -0
  60. package/src/templates/AssetInventory/CardView.tsx +167 -0
  61. package/src/templates/AssetInventory/ListView.tsx +56 -0
  62. package/src/templates/AssetInventory/data.tsx +255 -0
  63. package/src/templates/AssetInventory/index.tsx +198 -0
  64. package/src/templates/AssetInventory/usePaginationData.ts +158 -0
  65. package/src/templates/Canvas/Context.tsx +49 -0
  66. package/src/templates/Canvas/ListView.tsx +189 -0
  67. package/src/templates/Canvas/Node.tsx +203 -0
  68. package/src/templates/Canvas/Sidebar.tsx +51 -0
  69. package/src/templates/Canvas/StatusEdge.tsx +75 -0
  70. package/src/templates/Canvas/StickyNode.tsx +475 -0
  71. package/src/templates/Canvas/Table.tsx +202 -0
  72. package/src/templates/Canvas/TreeView.tsx +211 -0
  73. package/src/templates/Canvas/dependencies.json +7 -0
  74. package/src/templates/Canvas/index.tsx +363 -0
  75. package/src/templates/Canvas/styles.tsx +41 -0
  76. package/src/templates/Canvas/utils.tsx +70 -0
  77. package/src/templates/Dashboard/GridPanel.tsx +33 -0
  78. package/src/templates/Dashboard/Kpi.tsx +107 -0
  79. package/src/templates/Dashboard/Map.styles.ts +681 -0
  80. package/src/templates/Dashboard/Map.tsx +71 -0
  81. package/src/templates/Dashboard/data.ts +67 -0
  82. package/src/templates/Dashboard/dependencies.json +11 -0
  83. package/src/templates/Dashboard/index.tsx +173 -0
  84. package/src/templates/DetailsView/KPIs.tsx +70 -0
  85. package/src/templates/DetailsView/MetadataItem.tsx +35 -0
  86. package/src/templates/DetailsView/Properties.tsx +127 -0
  87. package/src/templates/DetailsView/Table.tsx +104 -0
  88. package/src/templates/DetailsView/data.ts +67 -0
  89. package/src/templates/DetailsView/index.tsx +102 -0
  90. package/src/templates/DetailsView/usePaginationData.ts +155 -0
  91. package/src/templates/DetailsView/utils.ts +51 -0
  92. package/src/templates/Form/index.tsx +107 -0
  93. package/src/templates/KanbanBoard/ColumnContainer.tsx +89 -0
  94. package/src/templates/KanbanBoard/TaskCard.tsx +130 -0
  95. package/src/templates/KanbanBoard/data.tsx +140 -0
  96. package/src/templates/KanbanBoard/dependencies.json +6 -0
  97. package/src/templates/KanbanBoard/index.tsx +179 -0
  98. package/src/templates/KanbanBoard/styles.tsx +76 -0
  99. package/src/templates/KanbanBoard/types.ts +21 -0
  100. package/src/templates/ListView/Indicator.tsx +42 -0
  101. package/src/templates/ListView/Kpi.tsx +120 -0
  102. package/src/templates/ListView/Table.tsx +55 -0
  103. package/src/templates/ListView/data.tsx +179 -0
  104. package/src/templates/ListView/dependencies.json +5 -0
  105. package/src/templates/ListView/index.tsx +245 -0
  106. package/src/templates/ListView/usePaginationData.ts +158 -0
  107. package/src/templates/Welcome/index.tsx +101 -0
  108. package/src/templates/package.json +30 -0
  109. package/src/utils.js +37 -0
@@ -0,0 +1,681 @@
1
+ import { css } from "@emotion/react";
2
+
3
+ export const mapStyles = css`
4
+ /* required styles */
5
+
6
+ .leaflet-pane,
7
+ .leaflet-tile,
8
+ .leaflet-marker-icon,
9
+ .leaflet-marker-shadow,
10
+ .leaflet-tile-container,
11
+ .leaflet-pane > svg,
12
+ .leaflet-pane > canvas,
13
+ .leaflet-zoom-box,
14
+ .leaflet-image-layer,
15
+ .leaflet-layer {
16
+ position: absolute;
17
+ left: 0;
18
+ top: 0;
19
+ }
20
+ .leaflet-container {
21
+ overflow: hidden;
22
+ }
23
+ .leaflet-tile,
24
+ .leaflet-marker-icon,
25
+ .leaflet-marker-shadow {
26
+ -webkit-user-select: none;
27
+ -moz-user-select: none;
28
+ user-select: none;
29
+ -webkit-user-drag: none;
30
+ }
31
+ /* Prevents IE11 from highlighting tiles in blue */
32
+ .leaflet-tile::selection {
33
+ background: transparent;
34
+ }
35
+ /* Safari renders non-retina tile on retina better with this, but Chrome is worse */
36
+ .leaflet-safari .leaflet-tile {
37
+ image-rendering: -webkit-optimize-contrast;
38
+ }
39
+ /* hack that prevents hw layers "stretching" when loading new tiles */
40
+ .leaflet-safari .leaflet-tile-container {
41
+ width: 1600px;
42
+ height: 1600px;
43
+ -webkit-transform-origin: 0 0;
44
+ }
45
+ .leaflet-marker-icon,
46
+ .leaflet-marker-shadow {
47
+ display: block;
48
+ }
49
+ /* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
50
+ /* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
51
+ .leaflet-container .leaflet-overlay-pane svg {
52
+ max-width: none !important;
53
+ max-height: none !important;
54
+ }
55
+ .leaflet-container .leaflet-marker-pane img,
56
+ .leaflet-container .leaflet-shadow-pane img,
57
+ .leaflet-container .leaflet-tile-pane img,
58
+ .leaflet-container img.leaflet-image-layer,
59
+ .leaflet-container .leaflet-tile {
60
+ max-width: none !important;
61
+ max-height: none !important;
62
+ width: auto;
63
+ padding: 0;
64
+ }
65
+
66
+ .leaflet-container img.leaflet-tile {
67
+ /* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
68
+ mix-blend-mode: plus-lighter;
69
+ }
70
+
71
+ .leaflet-container.leaflet-touch-zoom {
72
+ -ms-touch-action: pan-x pan-y;
73
+ touch-action: pan-x pan-y;
74
+ }
75
+ .leaflet-container.leaflet-touch-drag {
76
+ -ms-touch-action: pinch-zoom;
77
+ /* Fallback for FF which doesn't support pinch-zoom */
78
+ touch-action: none;
79
+ touch-action: pinch-zoom;
80
+ }
81
+ .leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
82
+ -ms-touch-action: none;
83
+ touch-action: none;
84
+ }
85
+ .leaflet-container {
86
+ -webkit-tap-highlight-color: transparent;
87
+ }
88
+ .leaflet-container a {
89
+ -webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
90
+ }
91
+ .leaflet-tile {
92
+ filter: inherit;
93
+ visibility: hidden;
94
+ }
95
+ .leaflet-tile-loaded {
96
+ visibility: inherit;
97
+ }
98
+ .leaflet-zoom-box {
99
+ width: 0;
100
+ height: 0;
101
+ -moz-box-sizing: border-box;
102
+ box-sizing: border-box;
103
+ z-index: 800;
104
+ }
105
+ /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
106
+ .leaflet-overlay-pane svg {
107
+ -moz-user-select: none;
108
+ }
109
+
110
+ .leaflet-pane {
111
+ z-index: 400;
112
+ }
113
+
114
+ .leaflet-tile-pane {
115
+ z-index: 200;
116
+ }
117
+ .leaflet-overlay-pane {
118
+ z-index: 400;
119
+ }
120
+ .leaflet-shadow-pane {
121
+ z-index: 500;
122
+ }
123
+ .leaflet-marker-pane {
124
+ z-index: 600;
125
+ }
126
+ .leaflet-tooltip-pane {
127
+ z-index: 650;
128
+ }
129
+ .leaflet-popup-pane {
130
+ z-index: 700;
131
+ }
132
+
133
+ .leaflet-map-pane canvas {
134
+ z-index: 100;
135
+ }
136
+ .leaflet-map-pane svg {
137
+ z-index: 200;
138
+ }
139
+
140
+ .leaflet-vml-shape {
141
+ width: 1px;
142
+ height: 1px;
143
+ }
144
+ .lvml {
145
+ behavior: url(#default#VML);
146
+ display: inline-block;
147
+ position: absolute;
148
+ }
149
+
150
+ /* control positioning */
151
+
152
+ .leaflet-control {
153
+ position: relative;
154
+ z-index: 800;
155
+ pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
156
+ pointer-events: auto;
157
+ }
158
+ .leaflet-top,
159
+ .leaflet-bottom {
160
+ position: absolute;
161
+ z-index: 1000;
162
+ pointer-events: none;
163
+ }
164
+ .leaflet-top {
165
+ top: 0;
166
+ }
167
+ .leaflet-right {
168
+ right: 0;
169
+ }
170
+ .leaflet-bottom {
171
+ bottom: 0;
172
+ }
173
+ .leaflet-left {
174
+ left: 0;
175
+ }
176
+ .leaflet-control {
177
+ float: left;
178
+ clear: both;
179
+ }
180
+ .leaflet-right .leaflet-control {
181
+ float: right;
182
+ }
183
+ .leaflet-top .leaflet-control {
184
+ margin-top: 10px;
185
+ }
186
+ .leaflet-bottom .leaflet-control {
187
+ margin-bottom: 10px;
188
+ }
189
+ .leaflet-left .leaflet-control {
190
+ margin-left: 10px;
191
+ }
192
+ .leaflet-right .leaflet-control {
193
+ margin-right: 10px;
194
+ }
195
+
196
+ /* zoom and fade animations */
197
+
198
+ .leaflet-fade-anim .leaflet-popup {
199
+ opacity: 0;
200
+ -webkit-transition: opacity 0.2s linear;
201
+ -moz-transition: opacity 0.2s linear;
202
+ transition: opacity 0.2s linear;
203
+ }
204
+ .leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
205
+ opacity: 1;
206
+ }
207
+ .leaflet-zoom-animated {
208
+ -webkit-transform-origin: 0 0;
209
+ -ms-transform-origin: 0 0;
210
+ transform-origin: 0 0;
211
+ }
212
+ svg.leaflet-zoom-animated {
213
+ will-change: transform;
214
+ }
215
+
216
+ .leaflet-zoom-anim .leaflet-zoom-animated {
217
+ -webkit-transition: -webkit-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
218
+ -moz-transition: -moz-transform 0.25s cubic-bezier(0, 0, 0.25, 1);
219
+ transition: transform 0.25s cubic-bezier(0, 0, 0.25, 1);
220
+ }
221
+ .leaflet-zoom-anim .leaflet-tile,
222
+ .leaflet-pan-anim .leaflet-tile {
223
+ -webkit-transition: none;
224
+ -moz-transition: none;
225
+ transition: none;
226
+ }
227
+
228
+ .leaflet-zoom-anim .leaflet-zoom-hide {
229
+ visibility: hidden;
230
+ }
231
+
232
+ /* cursors */
233
+
234
+ .leaflet-interactive {
235
+ cursor: pointer;
236
+ }
237
+ .leaflet-grab {
238
+ cursor: -webkit-grab;
239
+ cursor: -moz-grab;
240
+ cursor: grab;
241
+ }
242
+ .leaflet-crosshair,
243
+ .leaflet-crosshair .leaflet-interactive {
244
+ cursor: crosshair;
245
+ }
246
+ .leaflet-popup-pane,
247
+ .leaflet-control {
248
+ cursor: auto;
249
+ }
250
+ .leaflet-dragging .leaflet-grab,
251
+ .leaflet-dragging .leaflet-grab .leaflet-interactive,
252
+ .leaflet-dragging .leaflet-marker-draggable {
253
+ cursor: move;
254
+ cursor: -webkit-grabbing;
255
+ cursor: -moz-grabbing;
256
+ cursor: grabbing;
257
+ }
258
+
259
+ /* marker & overlays interactivity */
260
+ .leaflet-marker-icon,
261
+ .leaflet-marker-shadow,
262
+ .leaflet-image-layer,
263
+ .leaflet-pane > svg path,
264
+ .leaflet-tile-container {
265
+ pointer-events: none;
266
+ }
267
+
268
+ .leaflet-marker-icon.leaflet-interactive,
269
+ .leaflet-image-layer.leaflet-interactive,
270
+ .leaflet-pane > svg path.leaflet-interactive,
271
+ svg.leaflet-image-layer.leaflet-interactive path {
272
+ pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
273
+ pointer-events: auto;
274
+ }
275
+
276
+ /* visual tweaks */
277
+
278
+ .leaflet-container {
279
+ background: #ddd;
280
+ outline-offset: 1px;
281
+ }
282
+ .leaflet-container a {
283
+ color: #0078a8;
284
+ }
285
+ .leaflet-zoom-box {
286
+ border: 2px dotted #38f;
287
+ background: rgba(255, 255, 255, 0.5);
288
+ }
289
+
290
+ /* general typography */
291
+ .leaflet-container {
292
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
293
+ font-size: 12px;
294
+ font-size: 0.75rem;
295
+ line-height: 1.5;
296
+ }
297
+
298
+ /* general toolbar styles */
299
+
300
+ .leaflet-bar {
301
+ box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
302
+ border-radius: 4px;
303
+ }
304
+ .leaflet-bar a {
305
+ background-color: #fff;
306
+ border-bottom: 1px solid #ccc;
307
+ width: 26px;
308
+ height: 26px;
309
+ line-height: 26px;
310
+ display: block;
311
+ text-align: center;
312
+ text-decoration: none;
313
+ color: black;
314
+ }
315
+ .leaflet-bar a,
316
+ .leaflet-control-layers-toggle {
317
+ background-position: 50% 50%;
318
+ background-repeat: no-repeat;
319
+ display: block;
320
+ }
321
+ .leaflet-bar a:hover,
322
+ .leaflet-bar a:focus {
323
+ background-color: #f4f4f4;
324
+ }
325
+ .leaflet-bar a:first-of-type {
326
+ border-top-left-radius: 4px;
327
+ border-top-right-radius: 4px;
328
+ }
329
+ .leaflet-bar a:last-child {
330
+ border-bottom-left-radius: 4px;
331
+ border-bottom-right-radius: 4px;
332
+ border-bottom: none;
333
+ }
334
+ .leaflet-bar a.leaflet-disabled {
335
+ cursor: default;
336
+ background-color: #f4f4f4;
337
+ color: #bbb;
338
+ }
339
+
340
+ .leaflet-touch .leaflet-bar a {
341
+ width: 30px;
342
+ height: 30px;
343
+ line-height: 30px;
344
+ }
345
+ .leaflet-touch .leaflet-bar a:first-of-type {
346
+ border-top-left-radius: 2px;
347
+ border-top-right-radius: 2px;
348
+ }
349
+ .leaflet-touch .leaflet-bar a:last-child {
350
+ border-bottom-left-radius: 2px;
351
+ border-bottom-right-radius: 2px;
352
+ }
353
+
354
+ /* zoom control */
355
+
356
+ .leaflet-control-zoom-in,
357
+ .leaflet-control-zoom-out {
358
+ font:
359
+ bold 18px "Lucida Console",
360
+ Monaco,
361
+ monospace;
362
+ text-indent: 1px;
363
+ }
364
+
365
+ .leaflet-touch .leaflet-control-zoom-in,
366
+ .leaflet-touch .leaflet-control-zoom-out {
367
+ font-size: 22px;
368
+ }
369
+
370
+ /* layers control */
371
+
372
+ .leaflet-control-layers {
373
+ box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
374
+ background: #fff;
375
+ border-radius: 5px;
376
+ }
377
+ .leaflet-control-layers-toggle {
378
+ background-image: url(images/layers.png);
379
+ width: 36px;
380
+ height: 36px;
381
+ }
382
+ .leaflet-retina .leaflet-control-layers-toggle {
383
+ background-image: url(images/layers-2x.png);
384
+ background-size: 26px 26px;
385
+ }
386
+ .leaflet-touch .leaflet-control-layers-toggle {
387
+ width: 44px;
388
+ height: 44px;
389
+ }
390
+ .leaflet-control-layers .leaflet-control-layers-list,
391
+ .leaflet-control-layers-expanded .leaflet-control-layers-toggle {
392
+ display: none;
393
+ }
394
+ .leaflet-control-layers-expanded .leaflet-control-layers-list {
395
+ display: block;
396
+ position: relative;
397
+ }
398
+ .leaflet-control-layers-expanded {
399
+ padding: 6px 10px 6px 6px;
400
+ color: #333;
401
+ background: #fff;
402
+ }
403
+ .leaflet-control-layers-scrollbar {
404
+ overflow-y: scroll;
405
+ overflow-x: hidden;
406
+ padding-right: 5px;
407
+ }
408
+ .leaflet-control-layers-selector {
409
+ margin-top: 2px;
410
+ position: relative;
411
+ top: 1px;
412
+ }
413
+ .leaflet-control-layers label {
414
+ display: block;
415
+ font-size: 13px;
416
+ font-size: 1.08333em;
417
+ }
418
+ .leaflet-control-layers-separator {
419
+ height: 0;
420
+ border-top: 1px solid #ddd;
421
+ margin: 5px -10px 5px -6px;
422
+ }
423
+
424
+ /* Default icon URLs */
425
+ .leaflet-default-icon-path {
426
+ /* used only in path-guessing heuristic, see L.Icon.Default */
427
+ background-image: url(images/marker-icon.png);
428
+ }
429
+
430
+ /* attribution and scale controls */
431
+
432
+ .leaflet-container .leaflet-control-attribution {
433
+ background: #fff;
434
+ background: rgba(255, 255, 255, 0.8);
435
+ margin: 0;
436
+ }
437
+ .leaflet-control-attribution,
438
+ .leaflet-control-scale-line {
439
+ padding: 0 5px;
440
+ color: #333;
441
+ line-height: 1.4;
442
+ }
443
+ .leaflet-control-attribution a {
444
+ text-decoration: none;
445
+ }
446
+ .leaflet-control-attribution a:hover,
447
+ .leaflet-control-attribution a:focus {
448
+ text-decoration: underline;
449
+ }
450
+ .leaflet-attribution-flag {
451
+ display: inline !important;
452
+ vertical-align: baseline !important;
453
+ width: 1em;
454
+ height: 0.6669em;
455
+ }
456
+ .leaflet-left .leaflet-control-scale {
457
+ margin-left: 5px;
458
+ }
459
+ .leaflet-bottom .leaflet-control-scale {
460
+ margin-bottom: 5px;
461
+ }
462
+ .leaflet-control-scale-line {
463
+ border: 2px solid #777;
464
+ border-top: none;
465
+ line-height: 1.1;
466
+ padding: 2px 5px 1px;
467
+ white-space: nowrap;
468
+ -moz-box-sizing: border-box;
469
+ box-sizing: border-box;
470
+ background: rgba(255, 255, 255, 0.8);
471
+ text-shadow: 1px 1px #fff;
472
+ }
473
+ .leaflet-control-scale-line:not(:first-of-type) {
474
+ border-top: 2px solid #777;
475
+ border-bottom: none;
476
+ margin-top: -2px;
477
+ }
478
+ .leaflet-control-scale-line:not(:first-of-type):not(:last-child) {
479
+ border-bottom: 2px solid #777;
480
+ }
481
+
482
+ .leaflet-touch .leaflet-control-attribution,
483
+ .leaflet-touch .leaflet-control-layers,
484
+ .leaflet-touch .leaflet-bar {
485
+ box-shadow: none;
486
+ }
487
+ .leaflet-touch .leaflet-control-layers,
488
+ .leaflet-touch .leaflet-bar {
489
+ border: 2px solid rgba(0, 0, 0, 0.2);
490
+ background-clip: padding-box;
491
+ }
492
+
493
+ /* popup */
494
+
495
+ .leaflet-popup {
496
+ position: absolute;
497
+ text-align: center;
498
+ margin-bottom: 20px;
499
+ }
500
+ .leaflet-popup-content-wrapper {
501
+ padding: 1px;
502
+ text-align: left;
503
+ border-radius: 12px;
504
+ }
505
+ .leaflet-popup-content {
506
+ margin: 13px 24px 13px 20px;
507
+ line-height: 1.3;
508
+ font-size: 13px;
509
+ font-size: 1.08333em;
510
+ min-height: 1px;
511
+ }
512
+ .leaflet-popup-content p {
513
+ margin: 17px 0;
514
+ margin: 1.3em 0;
515
+ }
516
+ .leaflet-popup-tip-container {
517
+ width: 40px;
518
+ height: 20px;
519
+ position: absolute;
520
+ left: 50%;
521
+ margin-top: -1px;
522
+ margin-left: -20px;
523
+ overflow: hidden;
524
+ pointer-events: none;
525
+ }
526
+ .leaflet-popup-tip {
527
+ width: 17px;
528
+ height: 17px;
529
+ padding: 1px;
530
+
531
+ margin: -10px auto 0;
532
+ pointer-events: auto;
533
+
534
+ -webkit-transform: rotate(45deg);
535
+ -moz-transform: rotate(45deg);
536
+ -ms-transform: rotate(45deg);
537
+ transform: rotate(45deg);
538
+ }
539
+ .leaflet-popup-content-wrapper,
540
+ .leaflet-popup-tip {
541
+ background: white;
542
+ color: #333;
543
+ box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
544
+ }
545
+ .leaflet-container a.leaflet-popup-close-button {
546
+ position: absolute;
547
+ top: 0;
548
+ right: 0;
549
+ border: none;
550
+ text-align: center;
551
+ width: 24px;
552
+ height: 24px;
553
+ font:
554
+ 16px/24px Tahoma,
555
+ Verdana,
556
+ sans-serif;
557
+ color: #757575;
558
+ text-decoration: none;
559
+ background: transparent;
560
+ }
561
+ .leaflet-container a.leaflet-popup-close-button:hover,
562
+ .leaflet-container a.leaflet-popup-close-button:focus {
563
+ color: #585858;
564
+ }
565
+ .leaflet-popup-scrolled {
566
+ overflow: auto;
567
+ }
568
+
569
+ .leaflet-oldie .leaflet-popup-content-wrapper {
570
+ -ms-zoom: 1;
571
+ }
572
+ .leaflet-oldie .leaflet-popup-tip {
573
+ width: 24px;
574
+ margin: 0 auto;
575
+
576
+ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
577
+ filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
578
+ }
579
+
580
+ .leaflet-oldie .leaflet-control-zoom,
581
+ .leaflet-oldie .leaflet-control-layers,
582
+ .leaflet-oldie .leaflet-popup-content-wrapper,
583
+ .leaflet-oldie .leaflet-popup-tip {
584
+ border: 1px solid #999;
585
+ }
586
+
587
+ /* div icon */
588
+
589
+ .leaflet-div-icon {
590
+ background: #fff;
591
+ border: 1px solid #666;
592
+ }
593
+
594
+ /* Tooltip */
595
+ /* Base styles for the element that has a tooltip */
596
+ .leaflet-tooltip {
597
+ position: absolute;
598
+ padding: 6px;
599
+ background-color: #fff;
600
+ border: 1px solid #fff;
601
+ border-radius: 3px;
602
+ color: #222;
603
+ white-space: nowrap;
604
+ -webkit-user-select: none;
605
+ -moz-user-select: none;
606
+ -ms-user-select: none;
607
+ user-select: none;
608
+ pointer-events: none;
609
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
610
+ }
611
+ .leaflet-tooltip.leaflet-interactive {
612
+ cursor: pointer;
613
+ pointer-events: auto;
614
+ }
615
+ .leaflet-tooltip-top:before,
616
+ .leaflet-tooltip-bottom:before,
617
+ .leaflet-tooltip-left:before,
618
+ .leaflet-tooltip-right:before {
619
+ position: absolute;
620
+ pointer-events: none;
621
+ border: 6px solid transparent;
622
+ background: transparent;
623
+ content: "";
624
+ }
625
+
626
+ /* Directions */
627
+
628
+ .leaflet-tooltip-bottom {
629
+ margin-top: 6px;
630
+ }
631
+ .leaflet-tooltip-top {
632
+ margin-top: -6px;
633
+ }
634
+ .leaflet-tooltip-bottom:before,
635
+ .leaflet-tooltip-top:before {
636
+ left: 50%;
637
+ margin-left: -6px;
638
+ }
639
+ .leaflet-tooltip-top:before {
640
+ bottom: 0;
641
+ margin-bottom: -12px;
642
+ border-top-color: #fff;
643
+ }
644
+ .leaflet-tooltip-bottom:before {
645
+ top: 0;
646
+ margin-top: -12px;
647
+ margin-left: -6px;
648
+ border-bottom-color: #fff;
649
+ }
650
+ .leaflet-tooltip-left {
651
+ margin-left: -6px;
652
+ }
653
+ .leaflet-tooltip-right {
654
+ margin-left: 6px;
655
+ }
656
+ .leaflet-tooltip-left:before,
657
+ .leaflet-tooltip-right:before {
658
+ top: 50%;
659
+ margin-top: -6px;
660
+ }
661
+ .leaflet-tooltip-left:before {
662
+ right: 0;
663
+ margin-right: -12px;
664
+ border-left-color: #fff;
665
+ }
666
+ .leaflet-tooltip-right:before {
667
+ left: 0;
668
+ margin-left: -12px;
669
+ border-right-color: #fff;
670
+ }
671
+
672
+ /* Printing */
673
+
674
+ @media print {
675
+ /* Prevent printers from removing background-images of controls. */
676
+ .leaflet-control {
677
+ -webkit-print-color-adjust: exact;
678
+ print-color-adjust: exact;
679
+ }
680
+ }
681
+ `;