codebydante / index.css
codebybrody's picture
Upload 57 files
7b0525c verified
Raw History Blame
1.58 kB
@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(to bottom,
transparent,
rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
}
@layer utilities {
.text-balance {
text-wrap: balance;
}
}
/* Elimina el margen superior del primer elemento para que empiece arriba del todo */
.ProseMirror>*:first-child {
margin-top: 0 !important;
}
.ProseMirror p {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
line-height: 1.5;
}
.ProseMirror ul {
list-style-type: disc;
padding-left: 1.5rem;
margin: 1rem 0;
}
.ProseMirror ol {
list-style-type: decimal;
padding-left: 1.5rem;
margin: 1rem 0;
}
.ProseMirror li {
margin-bottom: 0.25rem;
}
/* Custom Text Selection */
::selection {
background-color: rgba(168, 85, 247, 0.25);
/* Purple-500 with low opacity */
color: inherit;
/* Keep original text color */
}
/* Specific override for ProseMirror to ensure it takes precedence */
.ProseMirror ::selection {
background-color: rgba(168, 85, 247, 0.25);
color: inherit;
}
/* Force no underline for links when configured */
.no-underline-link {
text-decoration: none !important;
}