notes/src/styles/global.css

473 lines
13 KiB
CSS
Raw Normal View History

2026-06-05 14:31:12 -06:00
@import "tailwindcss";
@source "../layouts/**/*.astro";
@source "../pages/**/*.astro";
2026-06-22 15:04:11 -06:00
@custom-variant dark (&:where(.dark, .dark *));
2026-06-05 14:31:12 -06:00
@theme {
--color-sunday-theme: #28303c;
--color-gospels: #770cb1;
--color-pentateuch: #770cb1;
--color-historic: #183dd3;
--color-acts: #183dd3;
--color-wisdom: #db7500;
--color-pauline: #db7500;
--color-prophets: #7c0808;
--color-revelation: #7c0808;
--color-devotional: #b8c9d6;
2026-06-21 19:23:08 -06:00
--color-devotional-dark: #6b757d;
2026-06-05 14:31:12 -06:00
}
#notes-list ul.tags {
li.gospels {
@apply bg-gospels;
}
li.pentateuch {
@apply bg-pentateuch;
}
li.historic {
@apply bg-historic;
}
li.acts {
@apply bg-acts;
}
li.wisdom {
@apply bg-wisdom;
}
li.pauline {
@apply bg-pauline;
}
li.prophets {
@apply bg-prophets;
}
li.revelation {
@apply bg-revelation;
}
li.devotional {
@apply bg-devotional text-gray-800 text-shadow-none;
2026-06-21 19:23:08 -06:00
@apply dark:bg-devotional-dark dark:text-white dark:text-shadow-md dark:text-shadow-gray-800;
}
2026-06-21 19:19:29 -06:00
}
2026-06-21 18:28:22 -06:00
2026-07-29 22:55:24 -06:00
html:has(dialog[open]:modal) {
overflow: hidden;
scrollbar-gutter: stable both-edges;
}
2026-06-21 18:28:22 -06:00
body {
@apply duration-700 transition-colors;
2026-06-21 18:28:22 -06:00
@apply dark:bg-gray-900;
}
2026-06-05 14:31:12 -06:00
header {
@apply bg-sunday-theme p-4 text-white flex items-center justify-center text-3xl lg:text-4xl;
}
footer {
2026-06-22 15:04:11 -06:00
@apply bg-sunday-theme font-mono mt-4 p-8 text-gray-500 text-sm;
@apply dark:bg-neutral-950;
ul li {
@apply block mb-4;
}
ul li a {
@apply border-b-2 border-gray-500 hover:text-gray-300 hover:border-gray-300;
}
button {
@apply border-gray-500 rounded-md p-4 font-mono hover:bg-gray-700 hover:border-gray-400 hover:text-gray-400;
border-style: solid;
border-width: 1px;
}
button[data-toggle-theme] svg {
@apply text-amber-500 inline mr-4 transition-transform duration-500;
transform: rotate(90deg);
filter: drop-shadow(0px 0px 4px var(--color-amber-500));
}
button[data-toggle-theme]:first-child:after {
content: "light";
@apply align-middle;
}
2026-06-23 21:38:26 -06:00
button[data-toggle-theme="dark"],
button[data-toggle-theme="system"] {
@apply hover:bg-neutral-900;
}
button[data-toggle-theme="dark"]:first-child:after {
2026-06-22 15:04:11 -06:00
content: "dark";
}
button[data-toggle-theme="dark"] svg {
2026-06-22 15:04:11 -06:00
@apply text-neutral-300;
transform: rotate(270deg);
filter: drop-shadow(0px 0px 4px var(--color-neutral-300));
}
button[data-toggle-theme="system"]:first-child:after {
content: "system";
}
button[data-toggle-theme="system"] svg {
@apply text-purple-700;
transform: rotate(180deg);
filter: drop-shadow(0px 0px 4px var(--color-purple-700));
}
2026-06-22 15:04:11 -06:00
}
2026-08-06 13:41:35 -06:00
dialog.scripture {
@apply bg-white;
@apply dark:bg-gray-600 dark:text-neutral-300;
@apply scrollbar-thumb-gray-300 dark:scrollbar-thumb-gray-500;
@apply scrollbar-thin;
2026-08-06 13:41:35 -06:00
p {
@apply mt-4;
span.verse {
padding-left: 0.1rem;
padding-right: 0.2rem;
@apply align-super text-gray-500 text-sm;
@apply dark:text-neutral-400;
2026-08-06 13:41:35 -06:00
}
span.poem-1 {
}
span.poem-2 {
@apply ml-6 pl-6;
}
}
p:first-child {
@apply mt-0;
}
p.poem-1, p.poem-2 {
@apply mb-0;
}
p.poem-1 {
@apply pl-6;
}
p.poem-2 {
@apply mt-0 pl-14;
}
label[for=translation] {
@apply text-gray-500 text-sm bg-white;
@apply dark:bg-gray-600 dark:text-gray-400;
}
select.translation {
@apply text-sm mt-0 p-2 text-gray-600 bg-gray-100 border-gray-300 border-1 rounded-sm w-full;
@apply dark:text-gray-400 dark:bg-gray-700 dark:border-gray-800;
@apply overflow-hidden;
}
select.translation:focus, select.translation:focus-visible {
border: 1px solid rgb(79, 136, 206);
outline: 1px solid rgb(79, 136, 206);
}
button[data-close] {
@apply absolute top-0 right-0 pr-2 pb-2 pt-2 text-sm text-gray-500 cursor-pointer hover:text-red-900;
@apply dark:text-gray-400 dark:hover:text-red-500;
span {
text-transform: uppercase;
}
}
2026-08-06 18:54:19 -06:00
h1 {
2026-08-18 21:19:46 -06:00
@apply font-bold mb-2 mt-0 text-2xl;
@apply dark:text-neutral-300;
2026-08-06 18:54:19 -06:00
}
nav {
@apply mt-8;
a {
@apply bottom-0 right-0 text-sm text-blue-400 pr-4 pb-4;
}
}
.spinner {
@apply justify-center flex items-center;
}
.spinner svg {
@apply mt-12 text-sunday-theme;
@apply dark:text-gray-300;
transform: scale(2);
animation-duration: 3s;
animation-name: spinner-expand;
animation-iteration-count: infinite;
}
2026-08-06 13:41:35 -06:00
}
2026-06-05 14:31:12 -06:00
#notes-list {
@apply mx-auto lg:max-w-7xl xl:max-w-7xl 2xl:max-w-7xl transition-colors duration-500;
2026-06-05 14:31:12 -06:00
}
#notes-list > ul {
@apply grid grid-cols-1 gap-6 p-6 sm:grid-cols-2 lg:grid-cols-3;
}
#notes-list > ul > li {
2026-07-06 14:26:46 -06:00
border-width: 1px;
border-style: solid;
@apply flex flex-col rounded-xl bg-transparent p-2 hover:bg-gray-100 border-gray-200;
@apply dark:bg-transparent dark:text-gray-300 dark:border-gray-800 dark:hover:bg-gray-800;
}
#notes-list ul > li .header-image {
@apply relative overflow-hidden rounded-lg shadow-md shadow-gray-300;
2026-07-06 14:26:46 -06:00
@apply dark:shadow-gray-900;
2026-06-05 14:31:12 -06:00
}
#notes-list ul > li h2 a {
border-bottom: 5px;
border-style: solid;
2026-07-06 14:26:46 -06:00
@apply border-blue-300 transition duration-500 ease-in-out hover:border-blue-900 hover:text-blue-800;
@apply dark:border-blue-500 dark:hover:border-blue-600 dark:hover:text-blue-300;
2026-06-05 14:31:12 -06:00
}
#notes-list ul > li > hgroup {
@apply grow p-4 transition-colors duration-500;
2026-06-05 14:31:12 -06:00
h2 > a {
@apply font-bold text-2xl;
}
h3 {
@apply mt-2 text-xl font-medium;
}
}
#notes-list ul.tags {
margin-top: -20px;
@apply text-white text-shadow-md text-shadow-gray-700;
}
#notes-list ul.tags li {
@apply inline-block text-sm pl-2 pr-2 pt-1 pb-1 ml-2 rounded-md;
}
#notes-list ul li .subheading {
@apply font-bold text-xl pl-4 pr-4;
}
#notes-list ul li time {
@apply block text-xl text-gray-400 pl-4 pr-4 pt-2 text-right relative bottom-0;
}
#notes-list ul.types li {
@apply inline-block bg-neutral-500 dark:bg-neutral-900 p-2;
}
2026-06-05 14:31:12 -06:00
article#notes-page {
@apply pt-4 text-xl duration-500 transition-colors;
2026-06-21 18:28:22 -06:00
@apply dark:text-gray-200;
2026-06-05 14:31:12 -06:00
hgroup h1 {
@apply font-bold mt-8 mb-8 text-3xl lg:text-6xl;
2026-06-05 14:31:12 -06:00
}
hgroup h2 {
@apply mt-8 mb-8 text-2xl lg:text-4xl;
}
.header {
@apply bg-gray-100 rounded-md p-6 bg-linear-to-b from-gray-100 to-gray-200;
2026-06-21 18:28:22 -06:00
@apply dark:bg-gray-800 dark:from-gray-700 dark:to-gray-800;
}
2026-06-05 14:31:12 -06:00
#content {
a {
border-bottom: 5px;
border-style: solid;
@apply border-cyan-300 transition duration-500 ease-in-out hover:border-cyan-900 hover:text-cyan-600;
2026-06-23 21:33:12 -06:00
@apply dark:border-blue-500 dark:hover:border-blue-600 dark:hover:text-blue-200 dark:hover:bg-blue-900;
2026-06-05 14:31:12 -06:00
}
sup a {
@apply border-none font-bold text-blue-800 hover:text-blue-600;
2026-07-14 15:41:38 -06:00
@apply dark:text-blue-400 dark:hover:text-blue-300;
2026-07-17 19:22:30 -06:00
@apply underline bg-blue-100 dark:bg-blue-950;
@apply hover:bg-blue-200 dark:hover:bg-blue-900;
}
sup a:before {
2026-07-14 15:41:38 -06:00
/*content: "[";*/
}
sup a:after {
2026-07-14 15:41:38 -06:00
/*content: "]";*/
2026-07-17 19:22:30 -06:00
content: ", ";
}
sup a:last-child:after {
content: "";
}
a.scripture {
@apply border-green-400 hover:border-green-700 hover:text-green-800;
2026-06-23 21:33:12 -06:00
@apply dark:border-emerald-600 dark:hover:border-emerald-700 dark:hover:text-emerald-100 dark:hover:bg-emerald-900;
}
2026-06-29 20:07:20 -06:00
a.scripture.quote {
2026-06-12 15:18:53 -06:00
@apply font-bold bg-purple-50 border-purple-100 text-gray-800 hover:text-black;
2026-06-21 18:28:22 -06:00
@apply dark:bg-purple-950 dark:border-purple-900 dark:text-gray-300 dark:hover:text-gray-300;
}
2026-06-29 20:07:20 -06:00
a.scripture.quote[href]:not([href=""]) {
2026-06-12 15:18:53 -06:00
@apply border-purple-400 hover:border-purple-900 hover:text-purple-900;
2026-06-21 18:28:22 -06:00
@apply dark:border-purple-950 dark:hover:border-purple-900 dark:hover:text-gray-300;
}
2026-06-29 20:07:20 -06:00
a.scripture.christ {
2026-06-12 15:18:53 -06:00
@apply font-bold text-rose-900;
2026-06-11 22:33:12 -06:00
}
2026-06-29 20:07:20 -06:00
a.scripture.christ:not([href]) {
2026-06-12 15:18:53 -06:00
@apply border-none text-rose-900 hover:text-rose-900;
2026-06-23 21:33:12 -06:00
@apply dark:text-rose-400 dark:hover:text-rose-400 dark:hover:bg-transparent;
2026-06-11 22:33:12 -06:00
}
2026-06-29 20:07:20 -06:00
a.scripture.christ[href]:not([href=""]) {
2026-06-12 15:18:53 -06:00
@apply border-rose-900 hover:text-rose-800 hover:border-rose-800;
2026-06-21 18:28:22 -06:00
@apply dark:border-rose-400 dark:hover:text-rose-500 dark:hover:border-rose-500;
2026-06-11 22:33:12 -06:00
}
2026-06-29 20:07:20 -06:00
a.scripture.christ {
2026-06-12 15:18:53 -06:00
@apply border-rose-900 text-rose-900;
2026-06-21 18:28:22 -06:00
@apply dark:border-rose-400 dark:text-rose-400;
}
2026-06-05 14:31:12 -06:00
h1, h2, h3, h4, h5, h6 {
@apply font-bold mb-6 mt-6;
}
h1 {
@apply mt-2 text-4xl lg:text-6xl;
}
h2 {
@apply mt-10 mb-4 text-2xl lg:text-4xl;
}
h3 {
@apply mt-8 mb-4 text-xl lg:text-3xl;
}
h4 {
@apply text-lg lg:text-2xl;
}
h5 {
@apply font-bold;
}
h6 {
@apply font-semibold;
}
p {
@apply leading-8 mb-6 mt-2;
}
span.sc {
font-variant-caps: small-caps;
}
2026-06-05 14:31:12 -06:00
ul, ol {
2026-06-05 14:31:12 -06:00
list-style-type: revert;
@apply ml-4;
}
ol li::marker {
@apply text-neutral-500;
}
2026-06-05 14:31:12 -06:00
li {
@apply ml-4 mt-2 mb-2;
}
ol li a.source {
background-color: transparent;
@apply border-none bg-none hover:bg-none hover:text-black;
@apply dark:border-none dark:bg-none dark:hover:bg-none dark:hover:text-white;
}
ol li a.source:target {
animation-duration: 1.5s;
animation-name: color-cycle;
&:where(.dark, .dark *) {
animation-name: color-cycle-dark;
}
}
ol li a.source:hover {
@apply bg-none;
}
2026-06-05 14:31:12 -06:00
}
section#meta {
@apply text-gray-600 mb-2 text-lg;
2026-06-21 18:28:22 -06:00
@apply dark:text-gray-300;
2026-06-05 14:31:12 -06:00
time {
@apply inline;
}
time:after {
@apply pl-4 pr-4;
content: "/";
}
ul.tags, ul.tags li {
@apply inline;
}
ul.tags li:after {
@apply pl-4 pr-4;
content: "/";
}
ul.tags li:last-child:after{
content: "";
}
}
}
@keyframes color-cycle {
0% {
background-color: oklch(87.9% 0.169 91.605);
}
100% {
background-color: transparent;
}
}
@keyframes color-cycle-dark {
0% {
background-color: oklch(69.923% 0.17731 151.821);
}
100% {
background-color: transparent;
}
}
@keyframes spinner-expand {
0% {
transform: scale(2);
}
50% {
transform: scale(4);
}
100% {
transform: scale(2);
}
}
2026-06-05 14:31:12 -06:00
nav#pagination {
@apply flex items-center justify-center mt-6 mb-6 text-xl transition-colors duration-500;
2026-06-05 14:31:12 -06:00
}
nav#pagination {
ul, li {
@apply inline;
}
2026-08-10 14:39:11 -06:00
ul {
li {
@apply mr-1;
}
li:last-child {
@apply mr-0;
}
li a {
@apply bg-gray-100 font-bold mb-2 p-4 rounded-md text-cyan-900 text-sm hover:bg-gray-200 hover:text-black inline;
@apply dark:bg-gray-700 dark:text-blue-300 dark:hover:text-gray-300 dark:hover:bg-gray-600;
}
li a.disabled {
@apply text-gray-400 bg-gray-50 hover:bg-gray-50;
@apply dark:bg-gray-800 dark:text-gray-500 dark:hover:bg-gray-800;
}
2026-06-05 14:31:12 -06:00
}
}
article blockquote {
2026-06-21 18:28:22 -06:00
@apply border-l-4 border-l-green-200 text-gray-600 ml-2 md:ml-6 lg:ml-6 xl:ml-6 pl-4;
@apply dark:border-l-emerald-600 dark:text-gray-400;
2026-06-05 14:31:12 -06:00
}
article blockquote.scripture {
/*@apply italic;*/
@apply bg-gray-50 pt-1 pb-1 pl-4 pr-2;
2026-06-21 18:28:22 -06:00
@apply dark:bg-gray-700;
2026-06-05 14:31:12 -06:00
}
2026-06-12 15:36:47 -06:00
article blockquote.scripture {
&.christ, .christ {
@apply text-red-600 dark:text-red-400;
}
}
2026-06-12 15:36:47 -06:00
article blockquote.cite {
2026-06-29 20:21:02 -06:00
@apply bg-gray-50 border-l-cyan-200 pl-6 pr-6 pt-2 pb-2;
2026-06-12 15:36:47 -06:00
}
2026-06-05 14:31:12 -06:00
article#notes-page #content blockquote.scripture > p > a {
@apply border-b-green-200 text-lg text-gray-400 not-italic transition duration-500 ease-in-out hover:border-b-green-800 hover:text-gray-800;
2026-06-21 18:28:22 -06:00
@apply dark:border-b-emerald-600 dark:hover:text-emerald-300 dark:hover:border-b-emerald-500;
2026-06-05 14:31:12 -06:00
}