diff --git a/assets/scss/components/_wompum.scss b/assets/scss/components/_wompum.scss index af3fd8f..269037c 100644 --- a/assets/scss/components/_wompum.scss +++ b/assets/scss/components/_wompum.scss @@ -2,69 +2,44 @@ &-container { width: 100%; margin: 0 auto; + + & .wompum-grid, + & .wompum-article-grid { + gap: 2px; + } + + &--wide-gap .wompum-grid, + &--wide-gap .wompum-article-grid { + gap: 1rem; + } + + &--no-gap .wompum-grid, + &--no-gap .wompum-article-grid { + gap: 0; + } } &-grid, &-article-grid { display: grid; - gap: 0; - padding: 0; width: 100%; } - // General grid styles - &-grid { - gap: 2px; // Tighter spacing for general grids - - &[data-rows="1"] { - .wompum-cell { - height: 100%; - } - } - } - - // Article grid styles - &-article-grid { - gap: 3px; // Wider spacing for article grids - - .single-default &, - .single-article & { - gap: 1rem; - } - } - &-cell { width: 100%; transition: background-color 0.3s ease; - - // Default background for uninitialized cells background-color: var(--sand-500); - // Different styling for cells in article grids - .wompum-article-grid & { - &[data-section="narrator"] { - min-height: 35px; - } - &[data-section="subject"] { - min-height: 40px; - } - &[data-section="facilitator"] { - min-height: 35px; - } + &--narrator { + min-height: 35px; } - // Fallback patterns using prime numbers - // (these will be overridden by JS-generated colors when initialized) - &:nth-child(7n+1) { - background-color: var(--sand-100); + &--subject { + min-height: 40px; } - &:nth-child(5n+2) { - background-color: var(--sand-900); - } - - &:nth-child(11n+3) { - background-color: var(--sand-500); + &--facilitator { + min-height: 35px; } } } diff --git a/content/about.md b/content/about.md index c9bb6b6..2a408e2 100644 --- a/content/about.md +++ b/content/about.md @@ -1,5 +1,6 @@ --- title: "About" +wompum: "About The Protocol Oral History Project" include_partials: ["facilitator-list.html","wompum-demo.html"] --- diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 7af53b1..646d6fc 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,8 +1,10 @@ {{ define "main" }}
-
{{ partial "article-wompum.html" . }}
+
+
+
-
+

{{ .Title }}

{{ .Content }} diff --git a/layouts/articles/single.html b/layouts/articles/single.html index f79ce82..95bfa6b 100644 --- a/layouts/articles/single.html +++ b/layouts/articles/single.html @@ -2,9 +2,9 @@
-
{{ partial "article-wompum.html" . }}
+
{{ partial "article-wompum.html" . }}
-
+