chiya/assets/css/app.css

86 lines
1.8 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-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-05-23 22:19:37 +02:00
:root {
2023-09-05 21:59:37 +02:00
--color-background: 255 255 255;
--color-foreground: 0 0 0;
--color-primary: 0 0 0;
2023-05-23 22:19:37 +02:00
}
2023-09-05 21:59:37 +02:00
:root[mode=dark] {
--color-background: 0 0 0;
--color-foreground: 255 255 255;
--color-primary: 255 255 255;
}
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-03-31 22:56:34 +02:00
}
2023-03-15 10:21:08 +01:00
2023-09-08 23:01:39 +02:00
header h1 { @apply text-xl; }
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-09-05 21:59:37 +02:00
}
2023-03-17 21:21:01 +01:00
2023-09-05 21:59:37 +02:00
/*
The components layer is for class-based styles that you want to be able to override with utilities.
*/
@layer components {
#site-header {
@apply py-8 block px-3 bg-black text-white print:hidden;
2023-05-20 19:26:58 +02:00
}
2023-05-22 20:05:44 +02:00
2023-09-05 21:59:37 +02:00
#site-header nav ul {
@apply flex gap-3;
2023-05-22 20:05:44 +02:00
}
2023-06-27 22:05:14 +02:00
2023-09-05 21:59:37 +02:00
#site-content {
2023-09-08 13:25:48 +02:00
@apply grid grid-cols-1 lg:grid-cols-5 gap-12;
2023-06-28 10:48:27 +02:00
}
2023-09-05 21:59:37 +02:00
aside#primary-sidebar {
@apply col-span-1;
2023-06-27 22:05:14 +02:00
}
2023-07-11 07:23:07 +02:00
2023-09-05 21:59:37 +02:00
aside#primary-sidebar nav {
2023-09-08 12:05:05 +02:00
@apply flex flex-col md:flex-row lg:flex-col;
2023-07-11 07:23:07 +02:00
}
2023-09-05 21:59:37 +02:00
aside#primary-sidebar .menu {
@apply flex-1;
2023-07-11 07:23:07 +02:00
}
2023-09-05 21:59:37 +02:00
aside#primary-sidebar .menu h2 {
@apply font-bold;
2023-07-11 07:23:07 +02:00
}
2023-09-05 21:59:37 +02:00
aside#secondary-sidebar {
@apply col-span-1;
2023-07-11 07:23:07 +02:00
}
2023-07-13 07:33:55 +02:00
2023-09-05 21:59:37 +02:00
section#content-wrapper {
2023-09-08 13:25:48 +02:00
@apply col-span-4;
2023-07-13 07:33:55 +02:00
}
2023-07-18 12:46:25 +02:00
2023-09-05 21:59:37 +02:00
.divider {
@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;
2023-07-18 12:46:25 +02:00
}
}
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 {
}