@microblink/photopay-in-browser-sdk
Version:
A simple payment barcode scanning library for WebAssembly-enabled browsers.
129 lines • 2.85 kB
CSS
/**
* 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;
display: block;
position: relative;
padding: 4px 0;
font-family: inherit;
font-size: var(--mb-font-size);
}
:host .active-camera {
box-sizing: border-box;
display: block;
width: var(--mb-toolbar-selection-width);
height: calc(var(--mb-line-height) + 8px + 2px);
margin: 0 auto;
color: var(--mb-toolbar-color);
line-height: var(--mb-line-height);
text-align: center;
text-decoration: none;
border: 1px solid transparent;
border-radius: var(--mb-toolbar-border-radius);
}
:host .active-camera .icon,
:host .active-camera .name {
display: inline-block;
vertical-align: middle;
}
:host .active-camera .icon {
width: 20px;
height: 20px;
}
:host .active-camera .icon svg {
width: 20px;
height: 20px;
}
:host .active-camera .name {
max-width: calc(100% - 16px - 40px);
padding: 0 8px 0 4px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
:host .active-camera {
padding: 4px 16px;
background-color: transparent;
}
:host .active-camera:hover, :host .active-camera:active, :host .active-camera:focus {
background-color: rgba(60, 60, 67, 0.3);
}
:host .active-camera.active, :host .active-camera:active, :host .active-camera:focus {
padding: 4px 16px;
border-color: var(--mb-toolbar-border-color);
}
:host #list-background {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
}
:host #list-background.visible {
display: block;
}
:host .list {
display: none;
position: absolute;
top: calc(var(--mb-font-size) * 1.5 + 16px);
left: calc(50% - var(--mb-toolbar-selection-width) / 2);
width: var(--mb-toolbar-selection-width);
padding: 0;
background-color: var(--mb-toolbar-list-background);
border-radius: var(--mb-toolbar-border-radius);
box-shadow: var(--mb-toolbar-list-shadow);
}
:host .list.visible {
display: block;
}
:host .list svg,
:host .list .name,
:host .list .spacer {
display: inline-block;
vertical-align: middle;
}
:host .list .spacer,
:host .list svg {
width: 24px;
height: 20px;
}
:host .list .name {
max-width: calc(100% - 24px);
overflow: hidden;
text-overflow: ellipsis;
}
:host .list ul {
margin: 0;
padding: 8px 0;
list-style: none;
}
:host .list ul a {
display: block;
text-align: left;
color: inherit;
text-decoration: none;
}
:host .list ul li {
display: block;
padding: 4px 16px;
line-height: var(--mb-line-height);
}
:host .list ul li.active {
color: #48B2E8;
}
:host .list ul li:last-child {
padding-bottom: 0;
}
:host .list ul li:hover, :host .list ul li:focus {
background-color: rgba(116, 116, 128, 0.08);
}