From 487b051b4e1eedf5c236a991a275af75476a518e Mon Sep 17 00:00:00 2001 From: Dan Cormier Date: Tue, 20 Jan 2026 18:09:35 -0500 Subject: [PATCH 01/11] feat(post-summary): update to SHINE styles --- .../components/post-summary/post-summary.less | 217 ++++++++++++++++++ packages/stacks-docs/_data/post-summary.json | 64 +++++- .../product/components/post-summary.html | 132 +++++++++++ 3 files changed, 412 insertions(+), 1 deletion(-) diff --git a/packages/stacks-classic/lib/components/post-summary/post-summary.less b/packages/stacks-classic/lib/components/post-summary/post-summary.less index c52328047f..1b74a5f635 100644 --- a/packages/stacks-classic/lib/components/post-summary/post-summary.less +++ b/packages/stacks-classic/lib/components/post-summary/post-summary.less @@ -1,3 +1,220 @@ +.s-psx { + @psx-container-sm: 28rem; + --_ps-stats-answers-bg: unset; + --_ps-stats-answers-fc: unset; + --_ps-stats-answers-fw: unset; + --_ps-stats-answers-icon-fc: unset; + --_ps-title-link-fc: var(--theme-secondary-600); + + // Conditional styles + // Note: we cannot use CSS custom properties for container query values + @container post-summary (width <= @psx-container-sm) { + .s-psx--sm-hide { + display: none !important; + } + .s-psx--sm-show { + display: flex !important; + } + } + + @container post-summary (width > @psx-container-sm) { + .s-psx--sm-hide { + display: flex !important; + } + .s-psx--sm-show { + display: none !important; + } + } + + // MODIFIERS + &&__answered { + --_ps-stats-answers-bg: var(--green-400); + --_ps-stats-answers-fc: var(--white); + --_ps-stats-answers-fw: 600; + --_ps-stats-answers-icon-fc: var(--green-400); + } + + &&__deleted { + background-color: var(--red-100); + } + + &&__deleted, + &&__ignored { + --_ps-ignored-bg: var(--black-100); + --_ps-ignored-fc: var(--black-400); + + &.s-psx__answered { + --_ps-stats-answers-bg: var(--_ps-ignored-bg); + --_ps-stats-answers-fc: var(--_ps-ignored-fc); + --_ps-stats-answers-icon-fc: var(--_ps-ignored-fc); + } + + * { + &:not(.s-badge):not(.s-popover):not(.s-tag):not(.s-psx--stats-answers):not(.s-psx--stats-bounty) { + background-color: transparent !important; + } + + color: var(--_ps-ignored-fc) !important; + } + + .s-avatar { + opacity: 0.5; + } + .s-user-card--rep .s-bling:before { + background-color: var(--_ps-ignored-fc) !important; + } + + .s-badge, + .s-tag, + .s-psx--stats-bounty { + background-color: var(--_ps-ignored-bg) !important; + border-color: var(--_ps-ignored-bg) !important; + color: var(--_ps-ignored-fc) !important; + } + } + + // Child components + & &--content { + display: flex; + flex-direction: column; + gap: var(--su6); + } + + & &--content-meta { + align-items: center; + color: var(--black-400); + display: flex; + flex-wrap: wrap; + font-size: var(--fs-caption); + gap: var(--su6); + } + + & &--content-meta-views { + &:before { + aspect-ratio: 1/1; + background-color: var(--black-300); + content: ""; + display: block; + height: var(--su4); + } + + align-items: center; + display: flex; + gap: var(--su6); + } + + & &--stats { + &.s-psx--sm-hide { + .s-psx--stats-answers { + background-color: var(--_ps-stats-answers-bg); + color: var(--_ps-stats-answers-fc); + font-weight: var(--_ps-stats-answers-fw); + + align-items: center; + display: flex; + gap: var(--su4); + justify-content: center; + padding: var(--su4); + } + + .s-psx--stats-bounty { + align-items: center; + background-color: var(--blue-400); + color: var(--white); + display: flex; + gap: var(--su2); + font-weight: 600; + justify-content: center; + padding: var(--su4); + } + + .s-psx--stats-votes { + align-items: center; + aspect-ratio: 1/1; + border: var(--su1) solid var(--black-200); + display: flex; + justify-content: center; + font-size: var(--fs-body2); + font-weight: 600; + padding: var(--su4); + width: calc(var(--su48) + var(--su8)); // 3.5rem + } + + flex-direction: column; + } + + &.s-psx--sm-show { + .s-psx--stats-answers--icon { + color: var(--_ps-stats-answers-icon-fc); + } + + align-items: center; + justify-content: center; + padding: var(--su4); + } + + .s-psx--stats-bounty { + align-items: center; + justify-content: center; + background-color: var(--blue-400); + color: var(--white); + display: flex; + gap: var(--su1); + padding: 0 calc(var(--su4) - var(--su1)); + } + + display: flex; + gap: var(--su6); + font-size: var(--fs-caption); + } + + & &--tags { + display: flex; + flex-wrap: wrap; + gap: var(--su4); + margin-top: var(--su2); + } + + & &--title { + display: flex; + gap: var(--su6); + } + + & &--title-link { + &:hover { + --_ps-title-link-fc: var(--theme-secondary-500); + + &:visited { + color: var(--theme-secondary-600); + } + } + + // TODO: Since custom property is not being applied for some reason, we're changing the color directly. Remove this once the custom property is fixed. + &:visited { + color: var(--theme-secondary-400); + } + + color: var(--_ps-title-link-fc); + display: flex; + font-size: var(--fs-body3); + font-weight: 600; + gap: var(--su16); + line-height: var(--lh-sm); + margin-top: var(--su2); + } + + // Container query setup + container-type: inline-size; + container-name: post-summary; + + color: var(--black-500); + display: flex; + gap: var(--su16); + padding: var(--su8); + position: relative; +} + +// Reference .s-post-summary { // --_ps-state-* are custom properties to broadly override colors for a given post summary state --_ps-bb: var(--su1) solid var(--bc-light); diff --git a/packages/stacks-docs/_data/post-summary.json b/packages/stacks-docs/_data/post-summary.json index 80f0c84491..d65c57147d 100644 --- a/packages/stacks-docs/_data/post-summary.json +++ b/packages/stacks-docs/_data/post-summary.json @@ -110,5 +110,67 @@ "applies": ".s-post-summary--meta", "description": "A container for tags and other taxonomy." } + ], + "examples": [ + { + "type": "Default", + "title": "How to reduce hallucinations and improve source relevance in a RAG pipeline?", + "excerpt": "I have built a Retrieval-Augmented Generation (RAG) system using LangChain, a vector database, and an open-source LLM. While it works reasonably well, the model often hallucinates answers or cites sources that are only tangentially related to the user's query. My chunking strategy is set to a chunk size of 1000 tokens, which seems to be the sweet spot for the model.", + "tags": ["retrieval-augmented-generation", "langchain", "llm", "vector-database", "ai"], + "user": { + "avatar": "/assets/img/avatar-disgusted-16.svg", + "href": "#", + "reputation": 1, + "time": "2 hours ago", + "tooltip": "2026-01-09 12:15:39Z", + "username": "SofiaAlc" + }, + "answered": true, + "answers": 1, + "bounty": 50, + "views": 98, + "votes": "24", + "badge": { + "class": "s-badge__warning", + "text": "review", + "icon": "Eye16" + } + }, + { + "type": "Ignored", + "title": "How to reduce hallucinations and improve source relevance in a RAG pipeline?", + "excerpt": "I have built a Retrieval-Augmented Generation (RAG) system using LangChain, a vector database, and an open-source LLM. While it works reasonably well, the model often hallucinates answers or cites sources that are only tangentially related to the user's query. My chunking strategy is set to a chunk size of 1000 tokens, which seems to be the sweet spot for the model.", + "tags": ["retrieval-augmented-generation", "langchain", "llm", "vector-database", "ai"], + "user": { + "avatar": "/assets/img/avatar-disgusted-16.svg", + "href": "#", + "reputation": 1, + "time": "2 hours ago", + "tooltip": "2026-01-09 12:15:39Z", + "username": "SofiaAlc" + }, + "answered": true, + "answers": 1, + "views": 98, + "votes": "24" + }, + { + "type": "Deleted", + "title": "How to reduce hallucinations and improve source relevance in a RAG pipeline?", + "excerpt": "I have built a Retrieval-Augmented Generation (RAG) system using LangChain, a vector database, and an open-source LLM. While it works reasonably well, the model often hallucinates answers or cites sources that are only tangentially related to the user's query. My chunking strategy is set to a chunk size of 1000 tokens, which seems to be the sweet spot for the model.", + "tags": ["retrieval-augmented-generation", "langchain", "llm", "vector-database", "ai"], + "user": { + "avatar": "/assets/img/avatar-disgusted-16.svg", + "href": "#", + "reputation": 1, + "time": "2 hours ago", + "tooltip": "2026-01-09 12:15:39Z", + "username": "SofiaAlc" + }, + "answered": true, + "answers": 1, + "views": 98, + "votes": "24" + } ] -} \ No newline at end of file +} diff --git a/packages/stacks-docs/product/components/post-summary.html b/packages/stacks-docs/product/components/post-summary.html index 89da614064..86e88d98e6 100644 --- a/packages/stacks-docs/product/components/post-summary.html +++ b/packages/stacks-docs/product/components/post-summary.html @@ -5,6 +5,138 @@ description: The post summary component summarizes various content and associated meta data into a highly configurable component. tags: components --- + +
+ {% header "h2", "Examples" %} +
+ {% for example in post-summary.examples %} +

{{ example.type }}

+ {% assign modifier = "" %} + {% if example.type == "Ignored" %} + {% assign modifier = modifier | append: "s-psx__ignored" %} + {% elsif example.type == "Deleted" %} + {% assign modifier = modifier | append: "s-psx__deleted" %} + {% endif %} +
+
+
+{{ example.votes }}
+
+ {% if example.answered %} + {% icon "Answer16Fill" %} + {% else %} + {% icon "Answer16" %} + {% endif %} + {{ example.answers }} +
+ {% if example.bounty %} +
+ + + {{ example.bounty }} +
+ {% endif %} +
+
+
+ {% if example.badge %} + + {% if example.badge.icon %} + {% icon example.badge.icon %} + {% endif %} + {{ example.badge.text }} + + {% endif %} +
+ + +
+ {{ example.excerpt }} +
+
+ {% for tag in example.tags %} + {{ tag }} + {% endfor %} +
+
+
+ {% endfor %} + + + + + + + + + + + + +
+
{% header "h2", "Classes" %}
From e7907e1462b612a161d805a2c78caf2e71d68040 Mon Sep 17 00:00:00 2001 From: Dan Cormier Date: Tue, 20 Jan 2026 18:13:50 -0500 Subject: [PATCH 02/11] rename s-psx to s-post-summary --- .../components/post-summary/post-summary.less | 493 +----------------- .../product/components/post-summary.html | 42 +- 2 files changed, 36 insertions(+), 499 deletions(-) diff --git a/packages/stacks-classic/lib/components/post-summary/post-summary.less b/packages/stacks-classic/lib/components/post-summary/post-summary.less index 1b74a5f635..22f3e2c4a2 100644 --- a/packages/stacks-classic/lib/components/post-summary/post-summary.less +++ b/packages/stacks-classic/lib/components/post-summary/post-summary.less @@ -1,4 +1,4 @@ -.s-psx { +.s-post-summary { @psx-container-sm: 28rem; --_ps-stats-answers-bg: unset; --_ps-stats-answers-fc: unset; @@ -9,19 +9,19 @@ // Conditional styles // Note: we cannot use CSS custom properties for container query values @container post-summary (width <= @psx-container-sm) { - .s-psx--sm-hide { + .s-post-summary--sm-hide { display: none !important; } - .s-psx--sm-show { + .s-post-summary--sm-show { display: flex !important; } } @container post-summary (width > @psx-container-sm) { - .s-psx--sm-hide { + .s-post-summary--sm-hide { display: flex !important; } - .s-psx--sm-show { + .s-post-summary--sm-show { display: none !important; } } @@ -43,30 +43,27 @@ --_ps-ignored-bg: var(--black-100); --_ps-ignored-fc: var(--black-400); - &.s-psx__answered { + &.s-post-summary__answered { --_ps-stats-answers-bg: var(--_ps-ignored-bg); --_ps-stats-answers-fc: var(--_ps-ignored-fc); --_ps-stats-answers-icon-fc: var(--_ps-ignored-fc); } * { - &:not(.s-badge):not(.s-popover):not(.s-tag):not(.s-psx--stats-answers):not(.s-psx--stats-bounty) { - background-color: transparent !important; - } - color: var(--_ps-ignored-fc) !important; } .s-avatar { opacity: 0.5; } + .s-user-card--rep .s-bling:before { background-color: var(--_ps-ignored-fc) !important; } .s-badge, .s-tag, - .s-psx--stats-bounty { + .s-post-summary--stats-bounty { background-color: var(--_ps-ignored-bg) !important; border-color: var(--_ps-ignored-bg) !important; color: var(--_ps-ignored-fc) !important; @@ -104,8 +101,8 @@ } & &--stats { - &.s-psx--sm-hide { - .s-psx--stats-answers { + &.s-post-summary--sm-hide { + .s-post-summary--stats-answers { background-color: var(--_ps-stats-answers-bg); color: var(--_ps-stats-answers-fc); font-weight: var(--_ps-stats-answers-fw); @@ -117,7 +114,7 @@ padding: var(--su4); } - .s-psx--stats-bounty { + .s-post-summary--stats-bounty { align-items: center; background-color: var(--blue-400); color: var(--white); @@ -128,7 +125,7 @@ padding: var(--su4); } - .s-psx--stats-votes { + .s-post-summary--stats-votes { align-items: center; aspect-ratio: 1/1; border: var(--su1) solid var(--black-200); @@ -143,8 +140,8 @@ flex-direction: column; } - &.s-psx--sm-show { - .s-psx--stats-answers--icon { + &.s-post-summary--sm-show { + .s-post-summary--stats-answers--icon { color: var(--_ps-stats-answers-icon-fc); } @@ -153,7 +150,7 @@ padding: var(--su4); } - .s-psx--stats-bounty { + .s-post-summary--stats-bounty { align-items: center; justify-content: center; background-color: var(--blue-400); @@ -213,463 +210,3 @@ padding: var(--su8); position: relative; } - -// Reference -.s-post-summary { - // --_ps-state-* are custom properties to broadly override colors for a given post summary state - --_ps-bb: var(--su1) solid var(--bc-light); - --_ps-bg: unset; - --_ps-o: unset; - // Child components - --_ps-content-excerpt-fc: var(--_ps-state-fc, var(--fc-medium)); - --_ps-content-title-a-fc: var(--_ps-state-fc, var(--theme-post-title-color, var(--theme-link-color, var(--theme-secondary)))); - --_ps-content-title-a-fc-hover: var(--_ps-state-fc, var(--theme-post-title-color-hover, var(--theme-link-color-hover, var(--theme-secondary-500)))); - --_ps-content-title-a-fc-visited: var(--_ps-state-fc, var(--theme-post-title-color-visited, var(--theme-link-color-visited, var(--purple-500)))); - --_ps-content-title-a-fc-hover-visited: var(--_ps-state-fc, var(--theme-post-title-color-hover, var(--theme-link-color-hover, var(--purple-600)))); - --_ps-stats-ai: flex-end; - --_ps-stats-fc: var(--_ps-state-fc, var(--fc-light)); - --_ps-stats-fd: column; - --_ps-stats-w: calc(var(--su96) + var(--su12)); - // Stats item modifiers - --_ps-has-answers-bc: var(--green-400); - --_ps-has-answers-bg: unset; - --_ps-has-answers-fc: var(--green-400); - --_ps-has-accepted-answers-bc: var(--green-400); - --_ps-has-accepted-answers-bg: var(--green-400); - --_ps-has-accepted-answers-fc: var(--white); - --_ps-stats-item-emphasized-fc: var(--_ps-state-fc, var(--fc-dark)); - - // CONTEXTUAL STYLES - #stacks-internals #screen-md({ - --_ps-stats-ai: center; - --_ps-stats-fd: row; - --_ps-stats-w: auto; - - flex-direction: column; - }); - - // MODIFIERS - &&__minimal, - & &--answer { - --_ps-stats-ai: center; - --_ps-stats-fd: row; - --_ps-stats-w: auto; - } - - &&__minimal { - .s-post-summary--content { - width: 100%; - } - - flex-direction: column; - } - - // VARIANTS - &&__deleted, - &&__ignored { - --_ps-o: 0.75; - --_ps-has-answers-bc: var(--black-350); - --_ps-has-answers-bg: transparent; - --_ps-has-answers-fc: var(--_ps-state-fc); - --_ps-has-accepted-answers-bc: transparent; - --_ps-has-accepted-answers-bg: var(--black-150); - --_ps-has-accepted-answers-fc: var(--_ps-state-fc); - --_ps-meta-tags-tag-bg: var(--black-150); - --_ps-meta-tags-tag-fc: var(--_ps-state-fc); - --_ps-state-fc: var(--black-400); - - .s-post-summary--meta-tags { - a, // TODO: remove rule for `a` once Core replaces `.post-tag` with `.s-tag` - .post-tag, - .s-tag { - &, - &:active, - &:hover, - &:focus, - .focus-bordered { - .highcontrast-mode({ - border-color: currentColor; - }); - - background-color: var(--_ps-meta-tags-tag-bg); - color: var(--black-500); - border-color: var(--black-300); - } - } - } - - .s-user-card { - a, - .s-user-card--link, - .s-user-card--rep, - .s-user-card--time { - color: var(--_ps-state-fc); - } - - .s-badge { - filter: grayscale(100%); - } - } - } - &&__deleted, - &&__watched { - background-color: var(--_ps-bg); - } - - &&__deleted { - --_ps-bg: var(--red-100); - --_ps-has-accepted-answers-bg: var(--black-200); - --_ps-has-accepted-answers-fc: var(--black-500); - --_ps-meta-tags-tag-bg: var(--black-200); - - .is-deleted, - .s-badge__danger.s-badge__filled { - .dark-mode({ - background-color: var(--red-600); - color: var(--white); - }); - - background-color: var(--red-500); - } - } - - &&__watched { - &:not(.s-post-summary__deleted):not(.s-post-summary__ignored) { - --_ps-bg: var(--yellow-100); - --_ps-stats-fc: var(--black-400); - --_ps-content-title-a-fc: var(--theme-post-title-color, var(--theme-link-color, var(--theme-secondary))); - --_ps-content-title-a-fc-hover: var(--theme-post-title-color-hover, var(--theme-link-color-hover, var(--theme-secondary-500))); - --_ps-content-title-a-fc-visited: var(--theme-post-title-color-visited, var(--theme-link-color-visited, var(--purple-500))); - --_ps-content-title-a-fc-hover-visited: var(--theme-post-title-color-hover, var(--theme-link-color-hover, var(--purple-600))); - - .s-user-card { - a { - &:active, - &:hover { - color: var(--_ps-content-title-a-fc-hover); - } - - &:visited { - &:hover { - color: var(--_ps-content-title-a-fc-hover-visited); - } - - color: var(--_ps-content-title-a-fc-visited); - } - - color: var(--_ps-content-title-a-fc); - } - - .s-user-card--rep, - .s-user-card--time { - color: var(--black-500); - } - } - } - } - - &:last-child { - --_ps-bb: none; - } - - // Child Elements - & & { - &--answer { - & + & { - margin-top: var(--su16); - } - - &:before { - .highcontrast-mode({ - background: var(--black-500); - }); - - background: var(--black-250); - border-radius: var(--su8); - bottom: 0; - content: ""; - display: block; - left: 0; - position: absolute; - top: 0; - width: var(--su4); - } - - margin: var(--su16) 1em 0 1em; - padding: 0.5em 0 0.5em calc(1em + var(--su4)); - position: relative; - } - - &--answer-excerpt { - .v-truncate4; - color: var(--black-500); - margin-bottom: var(--su8); - } - - &--content { - > *:not(.s-post-summary--content-menu-button):not(.s-post-summary--meta):not(.s-popover) { - opacity: var(--_ps-o); - } - - flex-grow: 1; - max-width: 100%; - } - - &--content-excerpt { - &.s-post-summary--content-excerpt { - &__sm { - .v-truncate1; - } - - &__md { - .v-truncate3; - } - - &__lg { - .v-truncate4; - } - } - - .break-word; - .v-truncate2; - color: var( --_ps-content-excerpt-fc); - font-family: var(--theme-post-body-font-family, var(--theme-body-font-family)); - margin-top: var(--sun2); - margin-bottom: var(--su8); - } - - &--content-menu-button { - .svg-icon { - margin: 0 !important; - } - - &, - &.s-btn { // To override .s-btn class attributes - padding: var(--su8); - position: absolute; - } - - right: var(--su8); - top: var(--su8); - } - - &--content-title { - a { - &:active, - &:hover { - color: var(--_ps-content-title-a-fc-hover); - } - &:visited { - &:hover { - color: var(--_ps-content-title-a-fc-hover-visited); - } - - color: var(--_ps-content-title-a-fc-visited); - } - - .break-word; - color: var(--_ps-content-title-a-fc); - font-family: var(--theme-post-title-font-family, var(--theme-body-font-family)); - } - - .iconShield { - color: var(--fc-light); - } - - .svg-icon { - position: relative; - top: var(--sun1); - vertical-align: text-bottom; // Optical alignment - } - - .break-word; - display: block; - font-size: var(--fs-body3); - font-weight: normal; - line-height: var(--lh-md); - margin-bottom: 0.3365rem; - margin-top: -0.125rem; // Optical alignment to compensate for title's containing block - padding-right: var(--su24); - } - - &--content-type { - .svg-icon { - color: var(--fc-light); - margin-left: var(--sun2); - } - - color: var(--fc-medium); - margin-bottom: var(--su4); - } - - &--meta { - > *:not(.s-post-summary--meta-tags):not(.s-user-card) > * { - opacity: var(--_ps-o); - } - - .s-user-card { - > *:not(.magic-popup) { - opacity: var(--_ps-o); - } - - flex-wrap: wrap; - justify-content: flex-end; - margin-left: auto; - } - - align-items: center; - column-gap: var(--su6); - display: flex; - flex-wrap: wrap; - justify-content: space-between; - row-gap: var(--su8); - } - - &--meta-tags { - > ul > li > a, - > a, - .post-tag, - .s-tag { - opacity: var(--_ps-o); - } - - display: flex; - flex-wrap: wrap; - gap: var(--su4); - } - - &--stats { - > *:not(.s-badge__danger) { - opacity: var(--_ps-o); - } - - align-items: var(--_ps-stats-ai); - color: var(--_ps-stats-fc); - flex-direction: var(--_ps-stats-fd); - width: var(--_ps-stats-w); - - display: flex; - flex-shrink: 0; - flex-wrap: wrap; - font-size: var(--fs-body1); - gap: var(--su6); - margin-bottom: var(--su4); - margin-right: var(--su16); - } - - &--stats-item { - &:not(.s-badge) { - &.is-deleted { - color: var(--white); - } - - align-items: center; - border: var(--su1) solid transparent; - display: inline-flex; - gap: 0.3em; - justify-content: center; - white-space: nowrap; - } - - &.s-badge { - font-size: var(--fs-body1); - line-height: var(--lh-md); - padding: var(--su2) var(--su4); - } - - &.has-answers, - &.has-bounty, // TODO DEPRECATED: Remove .has-bounty styling - &.is-archived, - &.is-closed, - &.is-deleted, - &.is-draft, - &.is-pinned, - &.is-published, - &.is-review { - border-radius: var(--br-md); - padding: var(--su2) var(--su4); - } - - &.has-answers { - &.has-accepted-answer { - background-color: var(--_ps-has-accepted-answers-bg); - border-color: var(--_ps-has-accepted-answers-bc); - color: var(--_ps-has-accepted-answers-fc); - } - - background-color: var(--_ps-has-answers-bg); - border: var(--su1) solid var(--_ps-has-answers-bc); - color: var(--_ps-has-answers-fc); - } - - &.has-bounty { // TODO DEPRECATED: Remove and replace with references with `s-badge s-badge__bounty` - background-color: var(--blue-500); - color: var(--white); - } - - // Hotness - &.is-warm { - color: var(--_ps-state-fc, var(--yellow-500)); - } - - &.is-hot { - color: var(--_ps-state-fc, var(--orange-500)); - } - - &.is-supernova { - color: var(--_ps-state-fc, var(--red-500)); - } - - // Status - &.is-archived { // TODO DEPRECATED: Remove and replace with references with `s-badge s-badge__muted s-badge__icon` - background-color: var(--black-225); - border-color: var(--black-500); - color: var(--black-600); - } - - &.is-closed { // TODO DEPRECATED: Remove and replace with references with `s-badge s-badge__danger s-badge__icon` - background-color: var(--red-300); - border-color: var(--red-500); - color: var(--red-600); - } - - &.is-draft { // TODO DEPRECATED: Remove and replace with references with `s-badge s-badge__info s-badge__icon` - background-color: var(--blue-300); - border-color: var(--blue-500); - color: var(--blue-600); - } - - &.is-pinned { // TODO DEPRECATED: Remove and replace with references with `s-badge s-badge__muted s-badge__filled s-badge__icon` - background-color: var(--black-500); - color: var(--white); - } - - &.is-published { - background-color: var(--black-150); - color: var(--black-600); - } - - &.is-review { // TODO DEPRECATED: Remove and replace with references with `s-badge s-badge__warning s-badge__icon` - background-color: var(--yellow-300); - border-color: var(--yellow-500); - color: var(--yellow-600); - } - - &__emphasized { - color: var(--_ps-stats-item-emphasized-fc); - } - } - - &--stats-item-number { - font-weight: 500; - } - - } - - background-color: var(--_ps-bg); - border-bottom: var(--_ps-bb); - - display: flex; - padding: var(--su16); - position: relative; -} diff --git a/packages/stacks-docs/product/components/post-summary.html b/packages/stacks-docs/product/components/post-summary.html index 86e88d98e6..a02414fe40 100644 --- a/packages/stacks-docs/product/components/post-summary.html +++ b/packages/stacks-docs/product/components/post-summary.html @@ -13,14 +13,14 @@

{{ example.type }}

{% assign modifier = "" %} {% if example.type == "Ignored" %} - {% assign modifier = modifier | append: "s-psx__ignored" %} + {% assign modifier = modifier | append: "s-post-summary__ignored" %} {% elsif example.type == "Deleted" %} - {% assign modifier = modifier | append: "s-psx__deleted" %} + {% assign modifier = modifier | append: "s-post-summary__deleted" %} {% endif %} -
-
-
+{{ example.votes }}
-
+
+
+
+{{ example.votes }}
+
{% if example.answered %} {% icon "Answer16Fill" %} {% else %} @@ -29,14 +29,14 @@

{{ example.type }}

{{ example.answers }}
{% if example.bounty %} -
+
+ {{ example.bounty }}
{% endif %}
-
-
+
+
{% if example.badge %} {% if example.badge.icon %} @@ -46,7 +46,7 @@

{{ example.type }}

{% endif %}
-