UNPKG

velocity-verification

Version:

JavaScript SDK view layer for identity verification

82 lines (68 loc) 1.62 kB
@import (less) "../../Theme/constants.css"; .pdfIcon { display: inline-block; width: 180*@unit; height: 180*@unit; max-width: 100%; margin: 16*@unit auto 16*@unit; background-position: 50% 50%; background-repeat: no-repeat; background-image: url('assets/pdf-success.svg'); } .pdfWrapper, .imageWrapper, .videoWrapper { display: flex; position: relative; min-height: 90*@unit; margin: 0 48*@unit; @media (--small-viewport) { margin: 0 @small-text-margin; } } .imageWrapper.fullscreenImageWrapper, .croppedImageWrapper.fullscreenImageWrapper { position: static; } .videoWrapper { margin-bottom: 64*@unit; flex: 1; } .pdfWrapper { display: block; /* makes the containing PDF viewer width shrink correctly on window resize */ overflow: overlay; /* append scrollbars if necessary and overlay over/above content (only for Chrome, to avoid double scrollbars) */ } .image { max-width: 100%; max-height: 100%; display: block; margin: 0 auto; border-radius: 3*@unit; flex: 0 0 auto; align-self: stretch; object-fit: contain; } .croppedImageWrapper { &:extend(.imageWrapper); @media (--small-viewport) { min-height: 12em; } } /* Only used for mobile device view */ /* For browser compatibility for object-fit, object-position see https://caniuse.com/#feat=object-fit https://caniuse.com/#feat=object-position */ .croppedDocumentImage { width: 100%; height: 14em; object-fit: cover; object-position: center; @media (--small-viewport) { height: 12em; } } .video { width: 100%; height: 100%; object-fit: contain; }