decidim: mirror koopa-decidim setup (9027, docs for /sm showcase)

This commit is contained in:
Hernâni Marques 2026-08-24 08:47:22 +02:00
parent d519fb3c80
commit 9ae0dfa429
No known key found for this signature in database
21 changed files with 998 additions and 2 deletions

View file

@ -0,0 +1,10 @@
/* Essential-only consent; banner hidden via CSS. */
(function () {
var name = "decidim-consent";
if (document.cookie.indexOf(name + "=") !== -1) return;
document.cookie =
name +
"=" +
encodeURIComponent(JSON.stringify({ essential: true })) +
"; path=/; max-age=31536000; SameSite=Lax";
})();

View file

@ -0,0 +1,98 @@
/* hacktivism — same palette as bonfire/git/lemmy (exchange-dark) */
:root,
html {
--primary: #e8a838;
--primary-rgb: 232, 168, 56;
--secondary: #3ecfbf;
--secondary-rgb: 62, 207, 191;
--tertiary: #3d3128;
--success: #16a34a;
--warning: #f0d090;
--alert: #e7131a;
--highlight: #e8a838;
}
html,
body {
background-color: #1a1410 !important;
background-image:
radial-gradient(ellipse 90% 55% at 50% 108%, rgba(26, 107, 110, 0.35) 0%, transparent 55%),
radial-gradient(circle 420px at 12% 18%, rgba(232, 168, 56, 0.22) 0%, transparent 62%),
linear-gradient(165deg, #2c1e14 0%, #1a1410 38%, #12181a 72%, #0e1c1e 100%) !important;
background-attachment: fixed !important;
color: #fff6e8 !important;
}
a {
color: #e8a838 !important;
}
a:hover {
color: #f0d090 !important;
}
.title-bar,
.main-bar,
.navbar,
.topbar,
header.header,
.main-nav,
.footer,
.mini-footer,
.off-canvas,
.sidebar {
background-color: #14110e !important;
color: #fff6e8 !important;
border-color: #2a2018 !important;
}
.card,
.card__content,
.callout,
.flash,
.dialog,
.reveal,
.accordion-item,
.comment-thread,
.process-header,
.hero,
.home-section {
background-color: #221c16 !important;
color: #fff6e8 !important;
border-color: #2a2018 !important;
}
.button,
.button.primary,
.button--sc,
input[type="submit"].button {
background-color: #e8a838 !important;
border-color: #e8a838 !important;
color: #1a1410 !important;
}
.button.secondary {
background-color: #3d3128 !important;
border-color: #3d3128 !important;
color: #fff6e8 !important;
}
h1, h2, h3, h4, h5, h6,
.title-bar__title,
.card__title {
color: #f0c86a !important;
}
input,
textarea,
select,
.input-group-field {
background-color: #221c16 !important;
color: #fff6e8 !important;
border-color: #3d3128 !important;
}
/* No third-party trackers; hide stock GDPR banner (privacy by default). */
#dc-dialog-wrapper,
.cookies__container {
display: none !important;
}

View file

@ -0,0 +1,14 @@
# frozen_string_literal: true
# hacktivism theme + host allowlist for decidim.hacktivism.ch
Rails.application.config.hosts << "decidim.hacktivism.ch"
Rails.application.config.hosts << "127.0.0.1"
Rails.application.config.hosts << "localhost"
if Rails.application.config.respond_to?(:assume_ssl=)
Rails.application.config.assume_ssl = true
end
Decidim.configure do |config|
config.enable_html_header_snippets = true if config.respond_to?(:enable_html_header_snippets=)
end