stud-manager / index.css
dvc890's picture
Upload 47 files
50fd8b2 verified
@tailwind base;
@tailwind components;
@tailwind utilities;
body {
margin: 0;
font-family: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #f9fafb;
}
.custom-scrollbar::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background-color: rgba(156, 163, 175, 0.5);
border-radius: 3px;
}
.perspective-1000 {
perspective: 1000px;
}
.transform-style-3d {
transform-style: preserve-3d;
}
.backface-hidden {
backface-visibility: hidden;
}
.rotate-y-180 {
transform: rotateY(180deg);
}
.auto-rows-fr {
grid-auto-rows: 1fr;
}
/* --- Enhanced Markdown Styles --- */
.markdown-body {
font-size: 0.95rem;
line-height: 1.7;
color: inherit;
}
/* Paragraphs */
.markdown-body p {
margin-bottom: 0.8em;
}
.markdown-body p:last-child {
margin-bottom: 0;
}
/* Lists - Critical Fix for "Messy" look */
.markdown-body ul {
list-style-type: disc !important;
padding-left: 1.5em !important;
margin-bottom: 0.8em;
}
.markdown-body ol {
list-style-type: decimal !important;
padding-left: 1.5em !important;
margin-bottom: 0.8em;
}
.markdown-body li {
margin-bottom: 0.2em;
padding-left: 0.2em;
}
.markdown-body li > p {
margin-bottom: 0.4em; /* Tighter spacing inside lists */
}
/* Headings */
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4 {
font-weight: 700;
margin-top: 1.2em;
margin-bottom: 0.6em;
line-height: 1.3;
}
.markdown-body h1 { font-size: 1.4em; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 0.3em; }
.markdown-body h2 { font-size: 1.25em; }
.markdown-body h3 { font-size: 1.1em; }
.markdown-body h4 { font-size: 1em; }
/* Code Blocks & Inline Code */
.markdown-body pre {
background-color: rgba(0, 0, 0, 0.05); /* Light gray background */
padding: 1em;
border-radius: 0.5em;
overflow-x: auto;
margin-bottom: 1em;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 0.9em;
border: 1px solid rgba(0,0,0,0.05);
}
.markdown-body code {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
background-color: rgba(0, 0, 0, 0.05);
padding: 0.2em 0.4em;
border-radius: 0.3em;
font-size: 0.85em;
}
.markdown-body pre code {
background-color: transparent;
padding: 0;
font-size: 1em;
color: inherit;
}
/* Quotes */
.markdown-body blockquote {
border-left: 4px solid rgba(0, 0, 0, 0.15);
padding-left: 1em;
margin-left: 0;
margin-right: 0;
margin-bottom: 1em;
font-style: italic;
opacity: 0.8;
background-color: rgba(0,0,0,0.02);
padding-top: 0.5em;
padding-bottom: 0.5em;
border-radius: 0 0.3em 0.3em 0;
}
/* Tables */
.markdown-body table {
border-collapse: collapse;
width: 100%;
margin-bottom: 1em;
font-size: 0.9em;
overflow-x: auto;
display: block; /* Make tables scrollable on small screens */
}
.markdown-body th, .markdown-body td {
border: 1px solid rgba(0, 0, 0, 0.15);
padding: 0.5em 0.8em;
text-align: left;
}
.markdown-body th {
background-color: rgba(0, 0, 0, 0.05);
font-weight: 600;
}
/* Links */
.markdown-body a {
text-decoration: underline;
text-underline-offset: 2px;
font-weight: 500;
}
/* --- Color Overrides for User Bubbles (Blue Background) --- */
.bg-blue-600 .markdown-body code {
background-color: rgba(255, 255, 255, 0.2);
color: white;
}
.bg-blue-600 .markdown-body pre {
background-color: rgba(0, 0, 0, 0.2);
border-color: rgba(255,255,255,0.1);
color: #e5e7eb;
}
.bg-blue-600 .markdown-body blockquote {
border-left-color: rgba(255, 255, 255, 0.5);
background-color: rgba(255,255,255,0.1);
color: #e5e7eb;
}
.bg-blue-600 .markdown-body th {
background-color: rgba(255, 255, 255, 0.2);
border-color: rgba(255,255,255,0.2);
color: white;
}
.bg-blue-600 .markdown-body td {
border-color: rgba(255,255,255,0.2);
}
.bg-blue-600 .markdown-body a {
color: white;
}
.bg-blue-600 .markdown-body h1,
.bg-blue-600 .markdown-body h2,
.bg-blue-600 .markdown-body h3 {
border-bottom-color: rgba(255,255,255,0.3);
}