Use classes instead of theme colors for tagging.
This commit is contained in:
parent
630aa275b5
commit
2a509b1ec3
2 changed files with 40 additions and 10 deletions
|
|
@ -8,21 +8,21 @@ import { titleCase } from '../utils/strings';
|
||||||
import { type CollectionEntry } from 'astro:content';
|
import { type CollectionEntry } from 'astro:content';
|
||||||
|
|
||||||
const scriptureStyles: {[index: string]:string} = {
|
const scriptureStyles: {[index: string]:string} = {
|
||||||
gospels: 'bg-gospels',
|
gospels: 'gospels',
|
||||||
pentateuch: 'bg-pentateuch',
|
pentateuch: 'pentateuch',
|
||||||
historic: 'bg-historic',
|
historic: 'historic',
|
||||||
acts: 'bg-acts',
|
acts: 'acts',
|
||||||
wisdom: 'bg-wisdom',
|
wisdom: 'wisdom',
|
||||||
pauline: 'bg-pauline',
|
pauline: 'pauline',
|
||||||
prophets: 'bg-prophets',
|
prophets: 'prophets',
|
||||||
revelation: 'bg-revelation',
|
revelation: 'revelation',
|
||||||
devotional: 'bg-devotional',
|
devotional: 'devotional',
|
||||||
};
|
};
|
||||||
const getScriptureStyle = (cat: any): string => {
|
const getScriptureStyle = (cat: any): string => {
|
||||||
if (cat in scriptureStyles) {
|
if (cat in scriptureStyles) {
|
||||||
return scriptureStyles[cat];
|
return scriptureStyles[cat];
|
||||||
}
|
}
|
||||||
return 'bg-gospels';
|
return 'gospels';
|
||||||
};
|
};
|
||||||
|
|
||||||
const base = import.meta.env.BASE_URL;
|
const base = import.meta.env.BASE_URL;
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,36 @@
|
||||||
--color-devotional: #b8c9d6;
|
--color-devotional: #b8c9d6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
@apply bg-sunday-theme p-4 text-white flex items-center justify-center text-3xl lg:text-4xl;
|
@apply bg-sunday-theme p-4 text-white flex items-center justify-center text-3xl lg:text-4xl;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue