@woosmap/ui 4.78.0 → 4.80.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@woosmap/ui",
3
- "version": "4.78.0",
3
+ "version": "4.80.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/WebGeoServices/ui.git"
@@ -218,15 +218,18 @@ storesOverlay.setMap(map);
218
218
  if (colorStyle) {
219
219
  styles.push(colorStyle);
220
220
  }
221
-
222
- this.map = new window.woosmap.map.Map(MapHTMLElement, {
223
- styles,
224
- center: {
225
- lat: 51.51,
226
- lng: -0.12,
227
- },
228
- zoom: 14,
229
- });
221
+ if(!this.map ) {
222
+ this.map = new window.woosmap.map.Map(MapHTMLElement, {
223
+ styles,
224
+ center: {
225
+ lat: 51.51,
226
+ lng: -0.12,
227
+ },
228
+ zoom: 14,
229
+ });
230
+ } else {
231
+ this.map._style.setMapStyle(styles);
232
+ }
230
233
 
231
234
  if (hasStores) {
232
235
  this.storesOverlay.setMap(this.map);
@@ -242,12 +242,19 @@
242
242
  border .1rem solid $dark10
243
243
  box-shadow 0 1.5rem 3rem $dark10
244
244
  .title
245
- font-size $title5
245
+ font-size $title5 !important
246
246
  font-weight 500
247
- line-height $title6 * 1.4
248
- height 9.55rem
247
+ line-height $title6 * 1.4 !important
249
248
  margin-bottom 2rem
250
249
  -webkit-line-clamp 4
250
+ height 11.3rem
251
+ .desc
252
+ height 15.4rem
253
+ text-overflow: ellipsis
254
+ display -webkit-box
255
+ overflow hidden
256
+ -webkit-box-orient: vertical
257
+ -webkit-line-clamp 6
251
258
  .wcard
252
259
  &__header
253
260
  br(0)
@@ -267,7 +274,7 @@
267
274
  padding 0 2rem
268
275
  flex-grow 1
269
276
  &__footer
270
- padding 0 2rem 2rem 2rem
277
+ padding 2rem
271
278
  &__link
272
279
  .btn
273
280
  color $primary
@@ -327,8 +334,8 @@
327
334
  opacity .2
328
335
  .title
329
336
  trans()
330
- font-size $title5
331
- line-height $title5 * 1.3
337
+ font-size $title5 !important
338
+ line-height $title5 * 1.3 !important
332
339
  margin-bottom 1rem
333
340
  display flex
334
341
  align-items center
@@ -376,28 +383,29 @@
376
383
  margin 0 0 6rem 0
377
384
 
378
385
  @media screen and (max-width 768px)
379
- .wcard--featured
380
- flex-direction column
381
- .title
382
- font-size $title5
383
- line-height $title5 * 1.3
384
- .wcard
385
- &__header
386
- height 22rem
387
- max-width 100%
388
- &__content
389
- height auto
390
- border-top 3rem solid $logo6
391
- border-left 0
392
- padding 2.3rem
393
- .wcard--testimonial
394
- width 100%
386
+ .wcard
387
+ &--featured
388
+ flex-direction column
389
+ .title
390
+ font-size $title5 !important
391
+ line-height $title5 * 1.3 !important
392
+ .wcard
393
+ &__header
394
+ height 22rem
395
+ max-width 100%
396
+ &__content
397
+ height auto
398
+ border-top 3rem solid $logo6
399
+ border-left 0
400
+ padding 2.3rem
401
+ &--small
402
+ width auto
403
+ max-width unset
404
+ margin 0 0 5rem 0
405
+ &--testimonial
406
+ width 100%
395
407
 
396
408
  @media screen and (max-width 580px)
397
- .wcard--small
398
- width auto
399
- max-width unset
400
- margin 0 0 5rem 0
401
409
  .wcard--demo
402
410
  &.wcard--small
403
411
  width auto