handspew / styles /globals.css
Tina Tarighian
mobile scroll
bba5c78
raw
history blame
1.97 kB
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--background: #ffffff;
--foreground: #171717;
--primary: #217BFE;
--secondary: #AC87EB;
}
@media (prefers-color-scheme: dark) {
:root {
--background: #ffffff;
--foreground: #171717;
}
}
html, body {
height: 100%;
overflow-x: hidden;
position: relative;
}
body {
color: var(--foreground);
background: var(--background);
font-family: 'Google Sans', Arial, Helvetica, sans-serif;
-webkit-overflow-scrolling: touch; /* Enables momentum scrolling on iOS */
}
/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
.min-h-screen {
height: -webkit-fill-available;
}
}
/* Minimal thought bubble styling */
.thought-bubble {
position: absolute;
animation: fadeIn 0.3s ease-in-out;
min-height: 40px;
display: flex;
align-items: center;
justify-content: flex-start;
overflow-wrap: break-word;
word-wrap: break-word;
word-break: normal;
hyphens: auto;
height: auto;
pointer-events: none;
max-width: 100%;
}
.thought-bubble p {
margin: 0;
font-size: 14px;
line-height: 1.4;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
/* Canvas container styling */
.canvas-container {
position: relative;
width: 100%;
max-width: 100%;
overflow: hidden;
}
.canvas-container canvas {
display: block;
width: 100%;
height: auto;
object-fit: contain;
}
/* Mobile-specific styles */
@media (max-width: 767px) {
.thought-bubble {
min-height: 30px;
}
.thought-bubble p {
font-size: 12px;
line-height: 1.3;
}
/* Compact layout for mobile */
.canvas-container {
margin-top: 0;
}
/* Reduce spacing around elements on mobile */
.w-full {
margin-bottom: 0.5rem;
}
/* Make header more compact on mobile */
.sticky {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}
}