@uppy/webcam
Version:
Uppy plugin that takes photos or records videos using the device's camera.
318 lines (280 loc) • 9.34 kB
CSS
@keyframes fadeIn {
0% {
opacity: 0; }
25% {
opacity: 1; }
100% {
opacity: 0; } }
/**
* General Uppy styles that apply to everything inside the .Uppy container
*/
.uppy-Root {
box-sizing: border-box ;
font-family: system-ui, -apple-system, BLinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif ;
line-height: 1 ;
-webkit-font-smoothing: antialiased ;
-moz-osx-font-smoothing: grayscale ; }
.uppy-Root *, .uppy-Root *:before, .uppy-Root *:after {
box-sizing: inherit ; }
.uppy-Root *:focus {
outline: 2px solid #2275D7 ;
outline-offset: 3px ; }
.UppyIcon {
max-width: 100% ;
max-height: 100% ;
fill: currentColor;
display: inline-block ;
overflow: hidden ; }
.UppyIcon--svg-baseline {
bottom: -0.125em ;
position: relative ; }
.uppy-u-reset {
animation: none 0s ease 0s 1 normal none running;
-webkit-backface-visibility: visible ;
backface-visibility: visible ;
background: transparent none repeat 0 0 / auto auto padding-box border-box scroll ;
border: medium none currentColor ;
border-collapse: separate ;
border-image: none ;
border-radius: 0 ;
border-spacing: 0 ;
bottom: auto ;
box-shadow: none ;
caption-side: top ;
clear: none ;
clip: auto ;
color: #000 ;
columns: auto ;
column-count: auto ;
column-fill: balance ;
column-gap: normal ;
column-rule: medium none currentColor ;
column-span: 1 ;
column-width: auto ;
content: normal ;
counter-increment: none ;
counter-reset: none ;
cursor: auto ;
display: inline ;
empty-cells: show ;
float: none ;
font-family: serif ;
font-size: medium ;
font-style: normal ;
font-variant: normal ;
font-weight: normal ;
font-stretch: normal ;
line-height: normal ;
height: auto ;
-webkit-hyphens: none ;
-ms-hyphens: none ;
hyphens: none ;
left: auto ;
letter-spacing: normal ;
list-style: disc outside none ;
margin: 0 ;
max-height: none ;
max-width: none ;
min-height: 0 ;
min-width: 0 ;
opacity: 1 ;
orphans: 2 ;
outline: medium none invert ;
overflow: visible ;
overflow-x: visible ;
overflow-y: visible ;
padding: 0 ;
page-break-after: auto ;
page-break-before: auto ;
page-break-inside: auto ;
perspective: none ;
perspective-origin: 50% 50% ;
position: static ;
right: auto ;
-moz-tab-size: 8 ;
tab-size: 8 ;
table-layout: auto ;
text-align: left ;
text-align-last: auto ;
text-decoration: none ;
text-indent: 0 ;
text-shadow: none ;
text-transform: none ;
top: auto ;
transform: none ;
transform-origin: 50% 50% 0 ;
transform-style: flat ;
transition: none 0s ease 0s ;
unicode-bidi: normal ;
vertical-align: baseline ;
visibility: visible ;
white-space: normal ;
widows: 2 ;
width: auto ;
word-spacing: normal ;
z-index: auto ; }
.uppy-c-textInput {
border: 1px solid rgba(147, 147, 147, 0.5) ;
border-radius: 4px ;
font-size: 13px ;
line-height: 1.5 ;
padding: 6px 8px ; }
.uppy-size--md .uppy-c-textInput {
font-size: 15px ;
line-height: 1.8 ;
padding: 8px 12px ; }
.uppy-c-textInput:focus {
border-color: #2275D7 ;
outline: none ;
box-shadow: 0 0 1px 1px rgba(34, 117, 215, 0.5) ; }
.uppy-c-btn {
display: inline-block ;
text-align: center ;
white-space: nowrap ;
vertical-align: middle ;
font-family: inherit ;
font-size: 16px ;
line-height: 1 ;
font-weight: 500 ;
transition: background-color 0.3s ;
-webkit-user-select: none ;
-moz-user-select: none ;
-ms-user-select: none ;
user-select: none ; }
.uppy-c-btn:not(:disabled):not(.disabled) {
cursor: pointer ; }
.uppy-c-btn-primary {
font-size: 13px ;
padding: 10px 18px ;
border-radius: 4px ;
background-color: #2275D7 ;
color: #fff ; }
.uppy-size--md .uppy-c-btn-primary {
font-size: 15px ;
padding: 13px 22px ; }
.uppy-c-btn-primary:hover {
background-color: #1b5dab ; }
.uppy-c-btn-primary:focus {
outline: none ;
box-shadow: 0 0 0 3px rgba(34, 117, 215, 0.5) ; }
.uppy-c-btn-link {
font-size: 13px ;
line-height: 1 ;
padding: 10px 18px ;
border-radius: 4px ;
background-color: transparent ;
color: #000 ; }
.uppy-size--md .uppy-c-btn-link {
font-size: 15px ;
padding: 13px 28px ; }
.uppy-c-btn-link:hover {
text-decoration: underline ; }
.uppy-c-btn-link:focus {
outline: none ;
box-shadow: 0 0 0 0.2rem rgba(34, 117, 215, 0.5) ; }
.uppy-c-btn--small {
font-size: 0.9em ;
padding: 7px 16px ;
border-radius: 2px ; }
.uppy-size--md .uppy-c-btn--small {
padding: 8px 10px ;
border-radius: 2px ; }
.uppy-Webcam-container {
width: 100% ;
height: 100% ;
display: -ms-flexbox ;
display: flex ;
-ms-flex-pack: center ;
justify-content: center ;
-ms-flex-align: center ;
align-items: center ;
-ms-flex-direction: column ;
flex-direction: column ; }
.uppy-Webcam-videoContainer {
width: 100% ;
-ms-flex: 1 ;
flex: 1 ;
-ms-flex-positive: 1 ;
flex-grow: 1 ;
overflow: hidden ;
background-color: #000 ;
text-align: center ; }
.uppy-Webcam-video {
max-width: 100% ;
max-height: 100% ; }
.uppy-Webcam-video--mirrored {
transform: scaleX(-1) ; }
.uppy-Webcam-buttonContainer {
width: 100% ;
height: 75px ;
border-top: 1px solid rgba(147, 147, 147, 0.2) ;
display: -ms-flexbox ;
display: flex ;
-ms-flex-align: center ;
align-items: center ;
-ms-flex-pack: center ;
justify-content: center ;
padding: 0 20px ; }
.uppy-Webcam-button {
width: 45px ;
height: 45px ;
border-radius: 50% ;
background-color: #D32F2F ;
color: #fff ;
cursor: pointer ;
transition: all 0.3s ; }
.uppy-Webcam-button svg {
width: 30px ;
height: 30px ;
max-width: 100% ;
max-height: 100% ;
display: inline-block ;
vertical-align: text-top ;
overflow: hidden ;
fill: currentColor ; }
.uppy-size--md .uppy-Webcam-button {
width: 60px ;
height: 60px ; }
.uppy-Webcam-button:hover {
background-color: #ab2424 ; }
.uppy-Webcam-button:focus {
outline: none ;
box-shadow: 0 0 0 0.2rem rgba(34, 117, 215, 0.5) ; }
.uppy-Webcam-button--picture {
margin-right: 12px ; }
.uppy-Webcam-permissons {
padding: 15px ;
display: -ms-flexbox ;
display: flex ;
-ms-flex-align: center ;
align-items: center ;
-ms-flex-pack: center ;
justify-content: center ;
-ms-flex-flow: column wrap ;
flex-flow: column wrap ;
height: 100% ;
-ms-flex: 1 ;
flex: 1 ; }
.uppy-Webcam-permissons p {
max-width: 450px ;
line-height: 1.3 ; }
.uppy-Webcam-title {
font-size: 22px ;
line-height: 1.35 ;
font-weight: 400 ;
margin: 0 ;
margin-bottom: 15px ;
padding: 0 15px ;
max-width: 500px ;
text-align: center ;
color: #000 ; }
.uppy-Webcam-permissons p {
text-align: center ;
line-height: 1.45 ;
color: #939393 ;
margin: 0 ; }
.uppy-Webcam-permissonsIcon svg {
width: 100px ;
height: 75px ;
color: #b9b9b9 ;
margin-bottom: 30px ; }