AnoPaper/src/index.css

119 lines
2.3 KiB
CSS
Raw Normal View History

2023-04-21 13:18:00 +03:00
/*
Copyright (c) 2023 artegoser (Artemy Egorov)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
2022-10-17 13:50:40 +03:00
@tailwind base;
@tailwind components;
2022-10-17 15:54:46 +03:00
@tailwind utilities;
@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;
}
2023-04-21 17:34:28 +03:00
.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
}
2023-04-21 17:34:28 +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
}
2023-04-21 17:34:28 +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
}
2023-04-21 17:34:28 +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-03 19:45:07 +03:00
@apply dark:bg-zinc-800 dark:border-zinc-600 overflow-auto;
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 {
2023-04-05 14:23:32 +03:00
@apply w-full lg:w-1/2;
2023-04-02 17:21:24 +03:00
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-27 18:26:34 +03:00
.md .math-inline {
2023-04-21 17:34:28 +03:00
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;
}
2023-04-21 17:34:28 +03:00
2023-04-02 09:54:03 +03:00
.code-copy-btn {
@apply text-zinc-400 dark:text-zinc-300 absolute right-2 top-2 cursor-pointer;
}
2023-04-21 17:34:28 +03:00
2023-04-02 09:54:03 +03:00
.code-copy-btn:hover {
@apply text-zinc-500 dark:text-zinc-400;
}
2023-04-21 17:34:28 +03:00
}