mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-28 16:45:32 +00:00
Cats
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
@import 'tailwindcss';
|
@import "tailwindcss";
|
||||||
|
|
||||||
@theme {
|
@theme {
|
||||||
--font-script: Rancho, ui-serif;
|
--font-script: Rancho, ui-serif;
|
||||||
--font-sans: 'Source Sans 3', 'Merriweather Sans', ui-sans-serif;
|
--font-sans: "Source Sans 3", "Merriweather Sans", ui-sans-serif;
|
||||||
--font-serif: 'Merriweather', ui-serif;
|
--font-serif: "Merriweather", ui-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -15,20 +15,17 @@
|
|||||||
color utility to any element that depends on these defaults.
|
color utility to any element that depends on these defaults.
|
||||||
*/
|
*/
|
||||||
@layer base {
|
@layer base {
|
||||||
*,
|
*,
|
||||||
::after,
|
::after,
|
||||||
::before,
|
::before,
|
||||||
::backdrop,
|
::backdrop,
|
||||||
::file-selector-button {
|
::file-selector-button {
|
||||||
border-color: var(--color-gray-200, currentColor);
|
border-color: var(--color-gray-200, currentColor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@utility font-variant-small-caps {
|
@utility font-variant-small-caps {
|
||||||
font-variant-caps: small-caps;
|
font-variant-caps: small-caps;
|
||||||
}
|
|
||||||
|
|
||||||
@layer base {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer components {
|
@layer components {
|
||||||
|
|||||||
@@ -34,6 +34,41 @@ func (p Piece) String() string {
|
|||||||
return string(data)
|
return string(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (p Piece) Categories() map[string]bool {
|
||||||
|
cats := make(map[string]bool)
|
||||||
|
for _, c := range p.CategoryRefs {
|
||||||
|
cats[c.Category] = true
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, i := range p.IssueRefs {
|
||||||
|
cats[i.Category] = true
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, i := range p.PlaceRefs {
|
||||||
|
cats[i.Category] = true
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, i := range p.AgentRefs {
|
||||||
|
if i.Category == "" {
|
||||||
|
cats["autor"] = true
|
||||||
|
}
|
||||||
|
cats[i.Category] = true
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, i := range p.WorkRefs {
|
||||||
|
if i.Category == "" {
|
||||||
|
cats["rezension"] = true
|
||||||
|
}
|
||||||
|
cats[i.Category] = true
|
||||||
|
}
|
||||||
|
|
||||||
|
for _, i := range p.PieceRefs {
|
||||||
|
cats[i.Category] = true
|
||||||
|
}
|
||||||
|
|
||||||
|
return cats
|
||||||
|
}
|
||||||
|
|
||||||
func (p Piece) Keys() []string {
|
func (p Piece) Keys() []string {
|
||||||
if len(p.keys) > 0 {
|
if len(p.keys) > 0 {
|
||||||
return p.keys
|
return p.keys
|
||||||
|
|||||||
Reference in New Issue
Block a user