141 lines
2.2 KiB
SCSS
141 lines
2.2 KiB
SCSS
$red: #C4381C;
|
|
$red-light: #FCECE8;
|
|
$green: #47752F;
|
|
$green-light: #F2F7EE;
|
|
$gray-light: #CECECE;
|
|
|
|
qrcode-reader {
|
|
height: 100%;
|
|
width: 100%;
|
|
|
|
display: grid;
|
|
}
|
|
|
|
.qrcode-reader {
|
|
|
|
&--video-wrapper {
|
|
grid-area: 1 / 1 / 2 / 2;
|
|
width: fit-content;
|
|
height: fit-content;
|
|
display: grid;
|
|
justify-self: center;
|
|
align-self: center;
|
|
}
|
|
|
|
&--video {
|
|
grid-area: 1 / 1 / 2 / 2;
|
|
justify-self: center;
|
|
align-self: center;
|
|
width: 100%;
|
|
height: auto;
|
|
max-height: 100%;
|
|
}
|
|
|
|
|
|
&--fullscreen-button {
|
|
z-index: 1;
|
|
grid-area: 1 / 1 / 2 / 2;
|
|
width: 1.8rem;
|
|
height: 1.8rem;
|
|
align-self: end;
|
|
justify-self: end;
|
|
|
|
border: none;
|
|
fill: white;
|
|
margin: 5px;
|
|
}
|
|
|
|
&--wrapper.fullscreen &--enter-fullscreen-icon {
|
|
display: none;
|
|
}
|
|
|
|
&--exit-fullscreen-icon {
|
|
display: none;
|
|
|
|
}
|
|
|
|
&--wrapper.fullscreen &--exit-fullscreen-icon {
|
|
display: block;
|
|
}
|
|
|
|
&--popup {
|
|
grid-area: 1 / 1 / 2 / 2;
|
|
align-self: end;
|
|
justify-self: center;
|
|
|
|
--title-background: #{$green-light};
|
|
--title-color: #{$green};
|
|
|
|
border: 2px solid var(--title-color);
|
|
border-radius: 5px;
|
|
margin: 10px;
|
|
box-shadow: 0 0 10px 3px #ffffff;
|
|
background: white;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-items: center;
|
|
|
|
&.error {
|
|
--title-background: #{$red-light};
|
|
--title-color: #{$red};
|
|
}
|
|
|
|
&.closed {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&--popup-title {
|
|
font-size: 1.2rem;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
border-top-right-radius: 5px;
|
|
border-top-left-radius: 5px;
|
|
padding: 5px;
|
|
color: var(--title-color);
|
|
background-color: var(--title-background);
|
|
}
|
|
|
|
&--popup-content {
|
|
margin: 10px;
|
|
}
|
|
|
|
&--validity {
|
|
color: var(--title-color);
|
|
font-weight: bold;
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
gap: 5px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
&--validity-label {
|
|
align-self: end;
|
|
}
|
|
|
|
&--data-items {
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
margin-top: 5px;
|
|
padding-top: 5px;
|
|
border-top: 1px solid var(--gray-light);
|
|
}
|
|
|
|
&--data-item-label {
|
|
font-weight: bold;
|
|
justify-self: end;
|
|
}
|
|
|
|
&--data-item-value {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
&--close-popup-button {
|
|
margin: 5px 10px 10px 10px;
|
|
padding: 5px;
|
|
font-size: 1.2rem;
|
|
}
|
|
}
|