AnoPaper/src/index.css

104 lines
1.7 KiB
CSS
Raw Normal View History

2022-10-17 13:50:40 +03:00
@tailwind base;
@tailwind components;
2022-10-17 15:54:46 +03:00
@tailwind utilities;
2023-04-02 09:54:03 +03:00
2022-10-17 15:54:46 +03:00
@layer base {
2023-04-02 09:54:03 +03:00
/* styles for displaying markdown */
2022-10-17 15:54:46 +03:00
.md h1 {
@apply text-6xl;
}
.md h2 {
@apply text-5xl;
}
.md h3 {
@apply text-4xl;
}
.md h4 {
@apply text-3xl;
}
.md h5 {
@apply text-2xl;
}
.md h6 {
@apply text-xl;
}
.md blockquote{
2023-02-09 17:15:34 +03:00
@apply border-l-4 pl-2 rounded-lg ml-4 mt-2 mb-2;
2022-10-17 16:02:23 +03:00
@apply bg-zinc-200 border-zinc-400;
@apply dark:bg-zinc-800 dark:border-zinc-600;
2023-04-02 09:54:03 +03:00
@apply pb-2;
2022-10-17 15:54:46 +03:00
}
.md hr {
2022-10-17 16:02:23 +03:00
@apply mb-4 mt-4 border-2 rounded-lg;
2022-10-17 15:54:46 +03:00
}
.md ul{
2023-02-09 17:15:34 +03:00
@apply list-disc list-inside ml-4;
2022-10-17 15:54:46 +03:00
}
.md li ul {
2023-02-09 17:15:34 +03:00
@apply list-disc list-inside;
2022-10-17 15:54:46 +03:00
}
.md ol{
2023-02-09 17:15:34 +03:00
@apply list-decimal list-inside ml-4;
2022-10-17 15:54:46 +03:00
}
.md li ol{
2023-02-09 17:15:34 +03:00
@apply list-decimal list-inside ml-4;
2022-10-17 15:54:46 +03:00
}
2023-04-02 09:54:03 +03:00
.md-code {
2022-10-17 15:54:46 +03:00
@apply p-1;
@apply rounded-lg;
2022-10-17 16:02:23 +03:00
@apply bg-zinc-200 border-zinc-400;
2023-04-02 17:21:24 +03:00
@apply dark:bg-zinc-800 dark:border-zinc-600 overflow-scroll;
2022-10-17 15:54:46 +03:00
}
.md a {
@apply inline-block bg-transparent text-blue-600;
}
2023-04-02 17:21:24 +03:00
.md table {
@apply w-1/2;
border-style: hidden;
}
.md table thead {
@apply bg-zinc-200 dark:bg-zinc-800;
}
.md table tr {
@apply border-2 border-zinc-400;
}
2022-10-17 17:50:44 +03:00
.md img {
2022-10-17 17:59:26 +03:00
@apply w-96 ease-[cubic-bezier(.69,.58,.32,1.69)] hover:scale-105 rounded-2xl hover:drop-shadow-2xl transition duration-500 lg:ml-5;
2022-10-17 17:50:44 +03:00
}
2023-02-09 17:15:34 +03:00
2023-04-01 20:57:46 +03:00
.md p, .math-inline { display: inline-block; }
2023-04-02 09:54:03 +03:00
.md li p {
display: inline;
}
/* other styles */
.blog-pre {
@apply mt-2 mb-2 relative;
}
.code-copy-btn {
@apply text-zinc-400 dark:text-zinc-300 absolute right-2 top-2 cursor-pointer;
}
.code-copy-btn:hover {
@apply text-zinc-500 dark:text-zinc-400;
}
2022-10-17 15:54:46 +03:00
}