handspew / styles /globals.css
Tina Tarighian
scrolling
1d3a8d7
raw
history blame
1.45 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);
}
}
/* Mobile-specific styles */
@media (max-width: 767px) {
.thought-bubble {
min-height: 30px;
}
.thought-bubble p {
font-size: 12px;
line-height: 1.3;
}
}