Files
edgeever/apps/web/src/styles/globals.css
T

198 lines
3.3 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 80 11% 96%;
--foreground: 224 71% 4%;
--card: 0 0% 100%;
--card-foreground: 224 71% 4%;
--popover: 0 0% 100%;
--popover-foreground: 224 71% 4%;
--primary: 102 18% 42%;
--primary-foreground: 80 11% 96%;
--secondary: 90 16% 95%;
--secondary-foreground: 102 18% 42%;
--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;
--accent: 90 16% 95%;
--accent-foreground: 102 18% 42%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--border: 220 13% 91%;
--input: 220 13% 91%;
--ring: 102 18% 42%;
--radius: 0.5rem;
}
}
:root {
color-scheme: light;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html,
body,
#root {
height: 100%;
overflow: hidden;
}
body {
margin: 0;
background:
linear-gradient(180deg, rgba(247, 248, 244, 0.98), rgba(239, 243, 235, 0.98)),
#f6f7f3;
color: #0f172a;
overscroll-behavior: none;
}
button,
input,
textarea {
font: inherit;
}
.ProseMirror {
min-height: 100%;
outline: none;
padding: 24px 28px 56px;
}
@media (max-width: 1023px) {
.ProseMirror {
padding: 18px 16px max(4rem, env(safe-area-inset-bottom));
}
}
.ProseMirror h1 {
font-size: 2rem;
font-weight: 760;
line-height: 1.15;
margin: 0 0 1rem;
}
.ProseMirror h2 {
font-size: 1.5rem;
font-weight: 720;
line-height: 1.2;
margin: 1.4rem 0 0.7rem;
}
.ProseMirror h3 {
font-size: 1.2rem;
font-weight: 700;
margin: 1.2rem 0 0.6rem;
}
.ProseMirror p {
line-height: 1.8;
margin: 0 0 0.95rem;
}
.ProseMirror ul,
.ProseMirror ol {
padding-left: 1.5rem;
margin: 0 0 1rem;
}
.ProseMirror li {
margin: 0.25rem 0;
}
.ProseMirror blockquote {
margin: 0 0 1rem;
border-left: 3px solid #627f58;
padding: 0.1rem 0 0.1rem 1rem;
color: #475569;
background: #f4f6f1;
}
.ProseMirror code {
border: 1px solid #cdd9c5;
border-radius: 5px;
background: #f4f6f1;
padding: 0.08rem 0.28rem;
font-size: 0.9em;
color: #293b2b;
}
.ProseMirror pre {
margin: 0 0 1rem;
overflow-x: auto;
border: 1px solid #cdd9c5;
border-radius: 8px;
background: #13231a;
padding: 0.9rem 1rem;
color: #edf3e9;
}
.ProseMirror pre code {
border: 0;
background: transparent;
padding: 0;
color: inherit;
}
.ProseMirror hr {
margin: 1.5rem 0;
border: 0;
border-top: 1px solid #a9bea0;
}
.ProseMirror img {
display: block;
max-width: 100%;
height: auto;
margin: 1rem 0;
border: 1px solid #cdd9c5;
border-radius: 8px;
}
.ProseMirror img.ProseMirror-selectednode {
outline: 2px solid #627f58;
outline-offset: 3px;
}
.ProseMirror p.is-editor-empty:first-child::before {
color: #94a3b8;
content: attr(data-placeholder);
float: left;
height: 0;
pointer-events: none;
}
/* Custom premium scrollbar style */
::-webkit-scrollbar {
width: 6px;
height: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(98, 127, 88, 0.16);
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(98, 127, 88, 0.35);
}
* {
scrollbar-width: thin;
scrollbar-color: rgba(98, 127, 88, 0.16) transparent;
}