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';
|
||||
|
||||
const scriptureStyles: {[index: string]:string} = {
|
||||
gospels: 'bg-gospels',
|
||||
pentateuch: 'bg-pentateuch',
|
||||
historic: 'bg-historic',
|
||||
acts: 'bg-acts',
|
||||
wisdom: 'bg-wisdom',
|
||||
pauline: 'bg-pauline',
|
||||
prophets: 'bg-prophets',
|
||||
revelation: 'bg-revelation',
|
||||
devotional: 'bg-devotional',
|
||||
gospels: 'gospels',
|
||||
pentateuch: 'pentateuch',
|
||||
historic: 'historic',
|
||||
acts: 'acts',
|
||||
wisdom: 'wisdom',
|
||||
pauline: 'pauline',
|
||||
prophets: 'prophets',
|
||||
revelation: 'revelation',
|
||||
devotional: 'devotional',
|
||||
};
|
||||
const getScriptureStyle = (cat: any): string => {
|
||||
if (cat in scriptureStyles) {
|
||||
return scriptureStyles[cat];
|
||||
}
|
||||
return 'bg-gospels';
|
||||
return 'gospels';
|
||||
};
|
||||
|
||||
const base = import.meta.env.BASE_URL;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,36 @@
|
|||
--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 {
|
||||
@apply bg-sunday-theme p-4 text-white flex items-center justify-center text-3xl lg:text-4xl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue