From 7c1495d43c65aad16edb12987bf19a8dc6a274e6 Mon Sep 17 00:00:00 2001 From: Jonah Aragon Date: Mon, 18 May 2026 22:17:00 -0500 Subject: [PATCH] style: Retheme toolbox tip cards --- assets/css/custom.css | 454 +++++++++++++++++++++++++++++ content/activism/_index.md | 13 +- content/activism/toolbox/.meta.yml | 4 - content/activism/toolbox/_index.md | 288 +++++++++--------- hugo.yaml | 22 +- prebuild/layouts/index.html | 6 +- 6 files changed, 631 insertions(+), 156 deletions(-) delete mode 100644 content/activism/toolbox/.meta.yml diff --git a/assets/css/custom.css b/assets/css/custom.css index ac6b663f1..52daafa90 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -294,3 +294,457 @@ a.footnote-ref { .pg-unstyled-cards .hextra-card:hover { background-color: inherit; } + +/*********** Activism Section ***********/ + +/* Activism Button Colors*/ +.dpadirectory-bg { + background-color: #7dbd5b; + color: #2d2d2d !important; +} + +/* Toolbox Color Variables */ +:root { + --color-toolbox: #21bddc; + --color-toolbox-legal: #15678a; + --color-toolbox-tools: #457759; + --color-toolbox-perspective: #5c7e40; + --color-toolbox-community: #717924; + --color-toolbox-alliances: #847306; + --color-toolbox-accessibility: #926d07; + --color-toolbox-integrity: #ad5c14; + --color-toolbox-persistence: #ba4d13; + --color-toolbox-action: #a83410; +} + +/* Toolbox Button Style*/ +.toolbox-button-grid { + display: grid; + grid-template-columns: repeat(auto-fit, minmax(0, min(100%/0, max(150px, 100%/4)))); + grid-gap: 1em 5em; +} + +.toolbox-button-grid .toolbox-button { + display: flex; + flex-direction: column; + text-align: center; + align-items: center; + font-size: 0.8rem; + font-weight: bold; + line-height: 1; + height: 11em; + width: 11em; + color: white; + padding: 5px; + border: 2px solid var(--hx-color-primary-500); + border-radius: 12px; + cursor: pointer; +} + +.md-typeset .toolbox-button-grid .toolbox-button:hover, .md-typeset .toolbox-button-grid .toolbox-button:focus { + position: relative; + transform: scale(1.08); + /* box-shadow: 5px 10px 10px 5px rgba(0,0,0,0.3); */ + color: white; +} + +.toolbox-button-grid .toolbox-button-icon { + height: 7em; + display: inline-flex; + padding: 1.1em; + overflow: visible; +} + +.toolbox-button-grid .toolbox-button-icon svg { + width: 5em; + overflow: visible; +} + +/* Toolbox Button Colors*/ +.toolbox-bg { + background-color: var(--color-toolbox); + color: #2d2d2d !important; +} + +.toolbox-bg-legal { + background-color: var(--color-toolbox-legal); +} + +.toolbox-bg-tools { + background-color: var(--color-toolbox-tools); +} + +.toolbox-bg-perspective { + background-color: var(--color-toolbox-perspective); +} + +.toolbox-bg-community { + background-color: var(--color-toolbox-community); +} + +.toolbox-bg-alliances { + background-color: var(--color-toolbox-alliances); +} + +.toolbox-bg-accessibility { + background-color: var(--color-toolbox-accessibility); +} + +.toolbox-bg-integrity { + background-color: var(--color-toolbox-integrity); +} + +.toolbox-bg-persistence { + background-color: var(--color-toolbox-persistence); +} + +.toolbox-bg-action { + background-color: var(--color-toolbox-action); +} + +/* Toolbox Tip Card Style */ +.toolbox-tip-card { + padding-top: 0; + padding-left: 1.5rem; + padding-right: 1.5rem; + margin-bottom: 2rem; + border: 5px solid var(--hx-color-primary-500); + border-radius: 15px; +} + +.toolbox-tip-card-learn-more { + text-align: right; +} + +.toolbox-tip-card-list { + a, a:hover { + text-decoration: none; + color: + } +} + +.toolbox-tip-icon { + float: left; + height: 120px; + width: 120px; + margin-right: 20px; +} + +.toolbox-tip-card:hover { + position: relative; + transform: scale(1.01); + box-shadow: 0 10px 20px 0 rgba(0,0,0,0.5); +} + +.toolbox-tip-card a, .toolbox-tip-card a:hover { + color: var(--md-typeset-color); +} + +/* Toolbox Tip Card Colors */ +.toolbox-border-legal { + border-color: var(--color-toolbox-legal); +} + +.toolbox-border-tools { + border-color: var(--color-toolbox-tools); +} + +.toolbox-border-perspective { + border-color: var(--color-toolbox-perspective); +} + +.toolbox-border-community { + border-color: var(--color-toolbox-community); +} + +.toolbox-border-alliances { + border-color: var(--color-toolbox-alliances); +} + +.toolbox-border-accessibility { + border-color: var(--color-toolbox-accessibility); +} + +.toolbox-border-integrity { + border-color: var(--color-toolbox-integrity); +} + +.toolbox-border-persistence { + border-color: var(--color-toolbox-persistence); +} + +.toolbox-border-action { + border-color: var(--color-toolbox-action); +} + +/* Toolbox Button Top Style */ +.toolbox-button-top { + font-size: 0.7rem; + float: right; +} + +.toolbox-button-top a, .toolbox-button-top a:visited { + color: var(--md-default-fg-color--light); +} + +/* Toolbox Tip Button Next */ +.toolbox-tip-button-next { + float: right; + margin-top: 20px; + margin-bottom: 40px; +} + +/* Toolbox Tip Quote Box */ +.toolbox-quote { + margin-top: 15px !important; + font-family: bagnard !important; + font-size: 1em !important; + font-weight: 400 !important; + background: #9e9e9e1a !important; +} + +.toolbox-quote .admonition-title { + background-color: transparent !important; +} + +.toolbox-quote-source { + font-family: var(--md-text-font-family) !important; + text-align: right; + font-size: 0.7em !important; + font-weight: 400 !important; +} + +.toolbox-quote.quote>.admonition-title.toolbox-quote::before { + transform: rotate(180deg); +} +.toolbox-quote .admonition-title.toolbox-quote::after { + background-color: #9e9e9e; + mask-image: var(--md-admonition-icon--quote); + content: ""; + height: 1rem; + mask-position: center; + mask-repeat: no-repeat; + mask-size: contain; + position: absolute; + bottom: .75em; + width: 2rem; +} + +/* DPA Directory */ +.table-wrapper { + width: min(900px, 100% -3rem); + margin-inline: auto; +} + +.dpadirectory-table { + padding: 1rem; + border-collapse: collapse; + width: 100%; + line-height: 1.05rem; + table-layout: fixed; + width: 100%; + overflow-wrap: normal; + table-layout: fixed; +} + +/* Column Width - Region */ +.dpadirectory-table th:first-child { + min-width: 110px; + width: 110px; +} + +/* Column Width - Law */ +.dpadirectory-table th:nth-child(2) { + min-width: 140px; + width: 140px; +} + +/* Column Width - Abbreviation */ +.dpadirectory-table th:nth-child(3) { + min-width: 100px; + width: 100px; +} + +/* Column Width - DPA */ +.dpadirectory-table th:nth-child(4) { + min-width: 150px; + width: 150px; +} + +/* Column Width - Contact */ +.dpadirectory-table th:nth-child(5) { + min-width: 85px; + width: 85px; +} + +/* Column Width - Complaint */ +.dpadirectory-table th:nth-child(6) { + min-width: 110px; + width: 110px; +} + +.dpadirectory-table caption, th, td { + padding: 0.8rem; + font-size: 0.65rem; + text-align: left; +} + +.dpadirectory-table caption, th { + font-weight: 700; +} + +.dpadirectory-table caption { + text-transform: uppercase; + color: #000000 !important; + overflow: hidden; + background: #7dbd5b; + border-radius: 5px 5px 0 0; +} + +.dpadirectory-table th { + border-bottom: 3px solid var(--md-default-fg-color--light); +} + +.dpadirectory-table tr { + background: var(--md-default-bg-color--light); +} + +.dpadirectory-table tr:nth-of-type(2n) { + background: hsl(0 0% 0% / 0.03); +} + +.dpadirectory-table tr { + border: 3px solid transparent; + border-bottom: 0.5px solid var(--md-default-fg-color--light); +} + +.dpadirectory-table tr:hover { + border: 3px solid var(--md-default-fg-color--light); +} + +.dpadirectory-table td { + padding: 0.8rem; +} + +.dpadirectory-contact-cell hr { + margin: 0.3rem; + max-width: 100%; + margin-left:0; +} + +/* Table Colors Per Region */ +:root { + --color-dpadirectory-africa: #ffe26e; + --color-dpadirectory-asia: #91d16f; + --color-dpadirectory-europe: #7fbcfc; + --color-dpadirectory-northamerica: #ff8f75; + --color-dpadirectory-oceania: #c394de; + --color-dpadirectory-southamerica: #fcb249; +} + +.table-africa caption { + background: var(--color-dpadirectory-africa); +} + +.table-africa tbody { + border-bottom: 3px solid var(--color-dpadirectory-africa); +} + +.table-asia caption { + background: var(--color-dpadirectory-asia); +} + +.table-asia tbody { + border-bottom: 3px solid var(--color-dpadirectory-asia); +} + +.table-europe caption { + background: var(--color-dpadirectory-europe); +} + +.table-europe tbody { + border-bottom: 3px solid var(--color-dpadirectory-europe); +} + +.table-northamerica caption { + background: var(--color-dpadirectory-northamerica); +} + +.table-northamerica tbody { + border-bottom: 3px solid var(--color-dpadirectory-northamerica); +} + +.table-oceania caption { + background: var(--color-dpadirectory-oceania); +} + +.table-oceania tbody { + border-bottom: 3px solid var(--color-dpadirectory-oceania); +} + +.table-southamerica caption { + background: var(--color-dpadirectory-southamerica); +} + +.table-southamerica tbody { + border-bottom: 3px solid var(--color-dpadirectory-southamerica); +} + +/* DPA Directory Buttons */ +.dpadirectory-button { + color: #000000 !important; +} + +.dpadirectory-button-africa { + background-color: var(--color-dpadirectory-africa); +} + +.dpadirectory-button-asia { + background-color: var(--color-dpadirectory-asia); +} + +.dpadirectory-button-europe { + background-color: var(--color-dpadirectory-europe); +} + +.dpadirectory-button-northamerica { + background-color: var(--color-dpadirectory-northamerica); +} + +.dpadirectory-button-oceania { + background-color: var(--color-dpadirectory-oceania); +} + +.dpadirectory-button-southamerica { + background-color: var(--color-dpadirectory-southamerica); +} + +@media (max-width: 650px) { + .dpadirectory-table th { + display: none; + } + + .dpadirectory-table td { + display: grid; + gap: 0.5rem; + grid-template-columns: 12ch auto; + padding: 0.3rem 1rem; + } + + .dpadirectory-table td:first-child { + padding-top: 1.2rem; + grid-template-columns: 9ch auto; + font-size: 0.8rem; + font-weight: 700; + } + + .dpadirectory-table td:last-child { + padding-bottom: 1.2rem; + } + + .dpadirectory-table td::before { + content: attr(data-cell) ": "; + font-weight: 700; + } + +} diff --git a/content/activism/_index.md b/content/activism/_index.md index 12d998bd1..27fdf5990 100644 --- a/content/activism/_index.md +++ b/content/activism/_index.md @@ -20,14 +20,11 @@ Fighting to improve our privacy cannot *only* be a matter of individual protecti When [regulations keep attacking](https://www.privacyguides.org/articles/2025/09/08/chat-control-must-be-stopped/) the tools and services we rely on to protect our personal information, when corporations [exploit our data](../wiki/basics/common-threats/index.md#surveillance-as-a-business-model) more aggressively every day, and when platforms exponentially [erode online pseudonymity](https://www.privacyguides.org/articles/2025/10/15/real-name-policies/), we must broaden our reach to fight for our rights. -==For privacy to become a valued and respected human right, we must work together== to defend privacy rights as a community. +For privacy to become a valued and respected human right, we must work together to defend privacy rights as a community. This section will progressively grow with more tools to support the community in its privacy advocacy and activism effort. The Privacy Activist Toolbox and the DPA Directory are the first parts of this new development. -
- -[Privacy Activist Toolbox](toolbox/_index.md){ .toolbox-button .toolbox-bg } - -[DPA Directory](legal/dpa-directory/){ .toolbox-button .dpadirectory-bg } - -
+{{< cards >}} + {{< card link="toolbox" title="Privacy Activist Toolbox" >}} + {{< card link="legal/dpa-directory" title="DPA Directory" tag="New!" tagColor="green" tagIcon="sparkles" tagBorder=false >}} +{{< /cards >}} diff --git a/content/activism/toolbox/.meta.yml b/content/activism/toolbox/.meta.yml deleted file mode 100644 index 58cfcadce..000000000 --- a/content/activism/toolbox/.meta.yml +++ /dev/null @@ -1,4 +0,0 @@ -hide: - - toc -social: - cards_layout: toolbox diff --git a/content/activism/toolbox/_index.md b/content/activism/toolbox/_index.md index f567f7270..025261aed 100644 --- a/content/activism/toolbox/_index.md +++ b/content/activism/toolbox/_index.md @@ -1,9 +1,7 @@ --- title: "Privacy Activist Toolbox" description: The Privacy Activist Toolbox is a unique resource with tips for anyone interested in becoming a better privacy rights activist, or anyone who wants to start. -hide: - - feedback -cover: banner-activism-toolbox.webp +toc: true --- The **Privacy Activist Toolbox** is a resource for anyone interested in becoming a better privacy rights activist, or anyone who wants to start advocating for privacy rights. @@ -41,77 +39,84 @@ By clicking on any of the tips listed on this page, you can access more informat ## Check Your Laws - -