.qrcode { position: relative; .qrcodeCanvas { width: 100% !important; height: 100% !important; } .qrcodeLogo { position: absolute; top: 50%; left: 50%; margin-left: -20px; margin-top: -20px; width: 40px !important; height: 40px !important; border-radius: 4px; &.small { margin-left: -10px; margin-top: -10px; width: 20px !important; height: 20px !important; } } }