UNPKG

2gis-maps

Version:

Interactive 2GIS maps API, based on Leaflet

107 lines (92 loc) 2.28 kB
.dg-customization__marker { background-repeat: no-repeat; &:before { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: inherit; background-size: contain; background-repeat: no-repeat; transition: opacity ease-in-out .2s, transform ease-in-out .2s; transform: scale(1, 1); transform-origin: 50% 100%; } } .dg-customization__marker_type_mushroom { .notRepeatableBgWithSizes('DGCustomization__marker', true); transform-origin: 50% 100%; animation: dg-customization__show-marker .2s; &:focus { outline: 0; } .no-touch &:hover { .notRepeatableBg('DGCustomization__markerHover', true); } &:active, .no-touch &:active { .notRepeatableBg('DGCustomization__markerActive', true); } } @keyframes dg-customization__show-marker { from { opacity: 0; } to { opacity: 1; } } .dg-customization__marker_appear { background-position: 999px; &:before { content: ''; } } .dg-customization__marker_disappear { background-position: 999px; pointer-events: none; &:before { visibility: hidden; content: ''; opacity: 0; transform: scale(1.2, 1.8); animation: dg-customization__marker-to-callout .2s; } } @keyframes dg-customization__marker-to-callout { 0% { visibility: visible; opacity: 1; transform: scale(1, 1); } 100% { visibility: visible; opacity: 0; transform: scale(1.2, 1.8); } } .dg-dragging-false { touch-action: auto; -ms-touch-action: auto; } .dg-error-message { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(195,194,179,0.58); color: white; display: flex; justify-content: center; align-items: center; font-size: 24px; text-align: center; z-index: 9999; font-family: Helvetica, Arial, sans-serif; font-weight: Bold; pointer-events: none; box-sizing: border-box; padding: 0 20px; }