chiya/assets/css/app.css

153 lines
2.9 KiB
CSS
Raw Normal View History

2023-03-05 16:07:40 +01:00
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@import "./lightbox.css";
2023-07-20 07:20:21 +02:00
@import "./tablesort.css";
2023-09-09 16:08:30 +02:00
@import "./tokyo-night-dark.css";
2023-09-05 21:59:37 +02:00
/*
The base layer is for things like reset rules or default styles applied to plain HTML elements.
*/
2023-03-15 10:21:08 +01:00
@layer base {
2023-09-05 21:59:37 +02:00
html {
font-family: 'Inter', sans-serif;
font-feature-settings: "case", "cpsp", "frac", "salt", "ccmp", "cv01", "cv02", "cv03", "cv04", "cv05", "cv06", "cv07", "cv09", "cv10", "cv11";
2023-09-10 10:58:08 +02:00
}
body {
2023-09-11 07:07:49 +02:00
@apply dark:bg-neutral-800;
2023-03-31 22:56:34 +02:00
}
2023-03-15 10:21:08 +01:00
2023-09-05 21:59:37 +02:00
.stack > * + * {
margin-block-start: var(--flow-space, 1em);
2023-05-20 19:26:58 +02:00
}
2023-03-17 21:21:01 +01:00
2023-09-10 10:58:08 +02:00
:root[data-mode=dark] .prose {
@apply prose-invert;
}
2023-09-09 10:24:22 +02:00
/*
* ============= SITE LAYOUT =============
*/
2023-09-09 13:56:11 +02:00
/* === SITE HEADER === */
2023-09-05 21:59:37 +02:00
#site-header {
2023-09-11 07:07:49 +02:00
@apply block px-3 py-6 bg-gradient-to-r from-neutral-900 to-neutral-950 text-white print:hidden;
2023-05-22 20:05:44 +02:00
2023-09-09 14:11:55 +02:00
& nav ul {
@apply flex;
}
2023-06-27 22:05:14 +02:00
2023-09-09 14:14:37 +02:00
& a {
@apply p-3 rounded hover:bg-primary-700 transition;
}
2023-06-28 10:48:27 +02:00
}
2023-09-09 13:56:11 +02:00
/* === PRIMARY SIDEBAR === */
2023-09-09 10:24:22 +02:00
#primary-sidebar {
2023-09-05 21:59:37 +02:00
@apply col-span-1;
2023-07-11 07:23:07 +02:00
2023-09-09 14:16:58 +02:00
& nav {
@apply flex md:flex-row lg:flex-col mb-6 lg:mb-0;
}
2023-07-11 07:23:07 +02:00
2023-09-10 10:58:08 +02:00
& h3 {
@apply m-0;
2023-09-09 14:16:58 +02:00
}
2023-07-11 07:23:07 +02:00
}
2023-09-09 13:56:11 +02:00
/* === SITE CONTENT === */
2023-09-09 10:24:22 +02:00
#site-content {
@apply grid grid-cols-1 lg:grid-cols-5 gap-0 lg:gap-12;
2023-09-09 10:58:44 +02:00
@apply px-3 sm:px-0;
2023-09-09 10:24:22 +02:00
2023-09-10 10:58:08 +02:00
#content-wrapper {
@apply col-span-4;
}
#secondary-sidebar {
@apply col-span-1;
}
2023-09-09 13:56:11 +02:00
}
2023-09-09 10:24:22 +02:00
2023-09-10 10:58:08 +02:00
/* === SITE FOOTER === */
#site-footer {
@apply mt-8 prose max-w-none;
2023-07-11 07:23:07 +02:00
}
2023-07-13 07:33:55 +02:00
2023-09-09 10:24:22 +02:00
/*
* ============= PAGE LAYOUT =============
*/
2023-09-09 13:56:11 +02:00
/* === PAGE HEADER === */
2023-09-09 10:24:22 +02:00
header.page-header {
2023-09-11 07:08:56 +02:00
@apply border-b border-neutral-300 mb-6 prose max-w-none;
2023-09-09 13:56:11 +02:00
}
2023-09-09 10:24:22 +02:00
2023-09-09 13:56:11 +02:00
header.page-header h1 {
2023-09-11 07:08:56 +02:00
@apply text-3xl leading-loose font-bold;
2023-09-09 13:56:11 +02:00
}
2023-09-09 10:24:22 +02:00
2023-09-09 13:56:11 +02:00
header.page-header p {
@apply mb-3;
2023-07-13 07:33:55 +02:00
}
2023-09-09 14:37:26 +02:00
/* === PAGE GRID === */
section.page-grid {
@apply grid grid-cols-1 md:grid-cols-3 gap-3;
> section {
@apply col-span-1 md:col-span-2;
}
> aside {
@apply print:hidden;
}
}
2023-09-09 10:24:22 +02:00
}
2023-07-18 12:46:25 +02:00
2023-09-09 10:24:22 +02:00
/*
The components layer is for class-based styles that you want to be able to override with utilities.
*/
@layer components {
2023-09-05 21:59:37 +02:00
.divider {
2023-09-11 07:07:49 +02:00
@apply flex items-center my-8 before:flex-1 after:flex-1 before:content-[''] after:content-[''] before:p-[0.5px] after:p-[0.5px] w-full mx-auto last:hidden before:bg-neutral-500/25 after:bg-neutral-500/25 before:mr-2 after:ml-2;
2023-09-09 15:06:16 +02:00
}
.dot {
@apply before:content-['·']
2023-07-18 12:46:25 +02:00
}
2023-09-09 16:08:30 +02:00
.pagination {
@apply flex justify-between mt-6;
& .pagination-previous, & .pagination-next {
2023-09-11 07:07:49 +02:00
@apply block py-2 px-3 bg-neutral-700 text-white rounded;
2023-09-09 16:08:30 +02:00
}
& .pagination-previous.disabled, & .pagination-next.disabled {
2023-09-11 07:07:49 +02:00
@apply bg-neutral-500;
2023-09-09 16:08:30 +02:00
}
& .pagination-list {
@apply hidden;
}
}
}
2023-09-05 21:59:37 +02:00
/*
The utilities layer is for small, single-purpose classes that should always take precedence over any other styles.
*/
@layer utilities {
2023-09-09 16:08:30 +02:00
.hljs {
background: transparent !important;
}
}