UNPKG

@microblink/blinkid-in-browser-sdk

Version:

A simple ID scanning library for WebAssembly-enabled browsers.

217 lines (200 loc) 5.48 kB
/** * Copyright (c) Microblink Ltd. All rights reserved. */ /** * Copyright (c) Microblink Ltd. All rights reserved. */ /** * SASS variables, not customizable via CSS variables */ /** * Camera experiences */ :host { box-sizing: border-box; position: relative; display: block; width: 100%; background: var(--mb-component-background); color: var(--mb-component-font-color); font-size: var(--mb-component-font-size); font-style: var(--mb-component-font-style); font-weight: var(--mb-component-font-weight); letter-spacing: var(--mb-component-letter-spacing); line-height: var(--mb-component-line-height); text-transform: var(--mb-component-text-transform); border-color: var(--mb-component-border-color); border-radius: var(--mb-component-border-radius); border-style: var(--mb-component-border-style); border-width: var(--mb-component-border-width); box-shadow: var(--mb-component-box-shadow); } /** * Screens */ :host #screen-loading.visible { display: flex; align-items: center; justify-content: center; padding: 16px; } :host #screen-action.visible { display: flex; justify-content: space-between; align-items: center; } :host #screen-action.visible .action-label { display: var(--mb-component-action-label); margin: 0 16px 0 0; } :host #screen-action.visible .action-label:dir(rtl) { background-color: black; } :host #screen-action.visible .action-buttons { display: flex; width: var(--mb-component-action-buttons-width); justify-content: var(--mb-component-action-buttons-justify-content); } :host #screen-action.visible .action-buttons mb-button:last-child { margin: var(--mb-component-action-buttons-last-margin); } :host([dir=rtl]) #screen-action.visible .action-label { margin: 0 0 0 16px; } :host([dir=rtl]) #screen-action.visible .action-buttons mb-button:last-child { margin: 0 8px 0 0; } :host #screen-error.visible { display: flex; flex-direction: row; align-items: center; justify-content: center; } :host #screen-error.visible .icon-alert { display: flex; margin-right: 10px; } :host :host #screen-error:not(.visible), :host :host #screen-action:not(.visible), :host :host #screen-loading:not(.visible) { border: none; } /** * Overlays */ :host #overlay-drag-and-drop { display: flex; align-items: center; justify-content: center; flex-direction: column; } :host #overlay-drag-and-drop .drag-and-drop-icon { display: block; width: 24px; height: 24px; } :host #overlay-drag-and-drop .drag-and-drop-message { max-width: 360px; margin: 12px 0 0 0; text-align: center; color: var(--mb-component-font-color); font-size: var(--mb-component-font-size); font-style: var(--mb-component-font-style); font-weight: var(--mb-component-font-weight); letter-spacing: var(--mb-component-letter-spacing); line-height: var(--mb-component-line-height); text-transform: var(--mb-component-text-transform); } :host #overlay-drag-and-drop.visible { background-color: var(--mb-overlay-draganddrop-background); } :host #overlay-drag-and-drop.visible.error { background-color: var(--mb-overlay-draganddrop-background-error); } :host #overlay-drag-and-drop.non-fullscreen.visible { flex-direction: row; background-color: var(--mb-component-background); border-color: var(--mb-component-border-color); border-radius: var(--mb-component-border-radius); border-style: var(--mb-component-border-style); border-width: var(--mb-component-border-width); } :host #overlay-drag-and-drop.non-fullscreen.visible .drag-and-drop-message { margin: 0 0 0 8px; } :host #overlay-drag-and-drop.non-fullscreen.visible.error { border-color: var(--mb-overlay-draganddrop-border-color-error); border-style: var(--mb-overlay-draganddrop-border-style-error); } :host #drag-and-drop-zone { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background-color: transparent; } :host #overlay-gallery-experience.visible { display: flex; align-items: center; justify-content: center; flex-direction: column; background-color: var(--mb-overlay-gallery-experience-background); color: var(--mb-overlay-gallery-experience-font-color); } :host #overlay-gallery-experience.visible p { margin: 8px 0 0 0; font-size: var(--mb-overlay-gallery-experience-font-size); font-weight: var(--mb-overlay-gallery-experience-font-weight); line-height: var(--mb-overlay-gallery-experience-line-height); } :host #overlay-camera-experience { justify-content: center; align-items: center; background-color: #000; } :host #overlay-camera-experience .holder { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } :host #overlay-camera-experience video { display: block; width: 100%; height: auto; } :host #overlay-camera-experience mb-camera-experience { position: absolute; top: 0; bottom: 0; left: 0; right: 0; } :host #overlay-camera-experience mb-camera-experience.is-muted { background-color: rgba(0, 0, 0, 0.6); } :host #overlay-camera-experience mb-camera-experience.is-error { background-color: black; } :host #overlay-camera-experience.visible { display: flex; z-index: 1000; } :host input[type=file] { width: 0; height: 0; opacity: 0; clip: rect(1px, 1px, 1px, 1px); } :host button.modal-action-button { width: 126px; height: 32px; border-radius: 0; border: 0; background: #48B2E8; color: #ffffff; cursor: pointer; }