Make it responsive.
This commit is contained in:
parent
5f3ac45fa3
commit
c86bdc383f
2 changed files with 7 additions and 35 deletions
|
@ -1,36 +1,8 @@
|
|||
#root {
|
||||
max-width: 1280px;
|
||||
margin: 0 auto;
|
||||
padding: 2rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
height: 6em;
|
||||
padding: 1.5em;
|
||||
will-change: filter;
|
||||
transition: filter 300ms;
|
||||
}
|
||||
.logo:hover {
|
||||
filter: drop-shadow(0 0 2em #646cffaa);
|
||||
}
|
||||
.logo.react:hover {
|
||||
filter: drop-shadow(0 0 2em #61dafbaa);
|
||||
}
|
||||
|
||||
@keyframes logo-spin {
|
||||
from {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
a:nth-of-type(2) .logo {
|
||||
animation: logo-spin infinite 20s linear;
|
||||
}
|
||||
.App {
|
||||
background-color: var(--background-color);
|
||||
color: var(--primary-text-color) !important;
|
||||
min-height: 100vh;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.card {
|
||||
|
|
|
@ -54,8 +54,8 @@ function App() {
|
|||
{/* Barcode scanner component */}
|
||||
<div className="scan" style={{border: '1px solid black'}}>
|
||||
<BarcodeScannerComponent
|
||||
width={500}
|
||||
height={500}
|
||||
width={"100%"}
|
||||
height={"auto"}
|
||||
onUpdate={handleScan}
|
||||
delay={1500} // 1.5 seconds delay between scans
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue