Files
projet_gestion_commande/frontend-prep/src/index.css
T

96 lines
1.7 KiB
CSS

/* Reset et optimisation mobile */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
:root {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: dark;
color: rgba(255, 255, 255, 0.87);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
/* Empêcher le zoom sur les inputs pour iOS */
font-size: 16px;
}
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow-x: hidden;
/* Désactiver le scroll bounce sur iOS */
overscroll-behavior: none;
-webkit-overflow-scrolling: touch;
}
body {
position: fixed;
width: 100%;
height: 100%;
}
#root {
width: 100%;
height: 100%;
overflow: auto;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
-webkit-tap-highlight-color: transparent;
}
a:active {
opacity: 0.7;
}
h1 {
font-size: clamp(1.8rem, 5vw, 3.2rem);
line-height: 1.1;
}
h2 {
font-size: clamp(1.5rem, 4vw, 2.5rem);
}
p {
font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.8em 1.5em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: all 0.2s;
-webkit-tap-highlight-color: transparent;
touch-action: manipulation;
}
button:active {
transform: scale(0.95);
opacity: 0.8;
}
/* Désactiver le hover sur mobile */
@media (hover: none) {
button:hover {
border-color: transparent;
}
}