From d2368d6fe07a127f2c9320020183d27fcb870230 Mon Sep 17 00:00:00 2001 From: brunobar79 Date: Mon, 30 Jul 2018 18:34:00 -0400 Subject: clean up css --- ui/app/components/modals/index.scss | 2 + ui/app/components/modals/qr-scanner/index.scss | 42 +++++++++++++++++++++ .../modals/qr-scanner/qr-scanner.component.js | 44 +++++++--------------- 3 files changed, 58 insertions(+), 30 deletions(-) create mode 100644 ui/app/components/modals/qr-scanner/index.scss (limited to 'ui/app') diff --git a/ui/app/components/modals/index.scss b/ui/app/components/modals/index.scss index e198cca44..0acccf172 100644 --- a/ui/app/components/modals/index.scss +++ b/ui/app/components/modals/index.scss @@ -1,5 +1,7 @@ @import './customize-gas/index'; +@import './qr-scanner/index'; + .modal-container { width: 100%; height: 100%; diff --git a/ui/app/components/modals/qr-scanner/index.scss b/ui/app/components/modals/qr-scanner/index.scss new file mode 100644 index 000000000..f43830086 --- /dev/null +++ b/ui/app/components/modals/qr-scanner/index.scss @@ -0,0 +1,42 @@ +.qr-scanner { + width: 100%; + height: 100%; + background-color: #fff; + display: flex; + flex-flow: column; + border-radius: 8px; + + &__title { + font-size: 1.5rem; + font-weight: 500; + padding: 16px 0; + text-align: center; + } + + &__content { + padding-left: 20px; + padding-right: 20px; + + &__video-wrapper { + overflow: hidden; + width: 100%; + height: 275px; + display: flex; + align-items: center; + justify-content: center; + + video { + transform: scaleX(-1); + width: auto; + height: 275px; + } + } + } + + &__status { + text-align: center; + font-size: 12px; + padding: 15px; + } +} + diff --git a/ui/app/components/modals/qr-scanner/qr-scanner.component.js b/ui/app/components/modals/qr-scanner/qr-scanner.component.js index 0e7709332..998967776 100644 --- a/ui/app/components/modals/qr-scanner/qr-scanner.component.js +++ b/ui/app/components/modals/qr-scanner/qr-scanner.component.js @@ -93,39 +93,23 @@ export default class QrScanner extends Component { const { t } = this.context return ( -
-
-
- { `${t('scanQrCode')}?` } -
-
-
+
+ { `${t('scanQrCode')}?` } +
+
+
+
+ display: this.state.ready ? 'block' : 'none', + }} + /> + { !this.state.ready ? : null}
-
- {this.state.msg} +
+ {this.state.msg}
) -- cgit v1.2.3