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 {
|
.App {
|
||||||
max-width: 1280px;
|
background-color: var(--background-color);
|
||||||
margin: 0 auto;
|
color: var(--primary-text-color) !important;
|
||||||
padding: 2rem;
|
min-height: 100vh;
|
||||||
text-align: center;
|
width: 100%;
|
||||||
}
|
|
||||||
|
|
||||||
.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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
|
|
|
@ -54,8 +54,8 @@ function App() {
|
||||||
{/* Barcode scanner component */}
|
{/* Barcode scanner component */}
|
||||||
<div className="scan" style={{border: '1px solid black'}}>
|
<div className="scan" style={{border: '1px solid black'}}>
|
||||||
<BarcodeScannerComponent
|
<BarcodeScannerComponent
|
||||||
width={500}
|
width={"100%"}
|
||||||
height={500}
|
height={"auto"}
|
||||||
onUpdate={handleScan}
|
onUpdate={handleScan}
|
||||||
delay={1500} // 1.5 seconds delay between scans
|
delay={1500} // 1.5 seconds delay between scans
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue