tdesign-react
Version:
TDesign Component for React
97 lines (96 loc) • 2.67 kB
CSS
.t-qrcode {
position: relative;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-sizing: border-box;
box-sizing: border-box;
background-color: var(--td-bg-color-container);
padding: var(--td-comp-paddingTB-m) var(--td-comp-paddingLR-m);
border-radius: var(--td-radius-medium);
border: 1px solid var(--td-component-border);
}
.t-qrcode > canvas {
-ms-flex-item-align: stretch;
align-self: stretch;
-webkit-box-flex: 1;
-ms-flex: auto;
flex: auto;
min-width: 0;
}
.t-qrcode.t-borderless {
border-color: transparent;
}
.t-qrcode .t-mask {
position: absolute;
inset-block-start: 0;
inset-inline-start: 0;
z-index: 300;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
width: 100%;
height: 100%;
color: var(--td-text-color-primary);
line-height: var(--td-line-height-body-medium);
background-color: var(--td-mask-background);
text-align: center;
border-radius: var(--td-radius-medium);
}
.t-qrcode .t-expired__text {
color: var(--td-text-color-primary);
font-weight: 600;
}
.t-qrcode .t-expired__button {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
color: var(--td-brand-color);
-webkit-box-shadow: none;
box-shadow: none;
cursor: pointer;
-webkit-column-gap: var(--td-comp-margin-s);
-moz-column-gap: var(--td-comp-margin-s);
column-gap: var(--td-comp-margin-s);
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
height: var(--td-comp-size-m);
-webkit-transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.t-qrcode .t-expired__button:hover {
color: var(--td-brand-color-hover);
}
.t-qrcode .t-scanned {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-column-gap: var(--td-comp-margin-s);
-moz-column-gap: var(--td-comp-margin-s);
column-gap: var(--td-comp-margin-s);
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.t-qrcode .t-scanned__icon {
color: var(--td-success-color);
}
.t-qrcode-svg {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
}