A platform for community discussion. Free, open, simple.
UX: Foundation theme category updates (#40011)
Jordan Vidrine90ab88850dfb
diff --git a/app/assets/stylesheets/common/base/category-list.scss b/app/assets/stylesheets/common/base/category-list.scssindex c1dfeb2543d..4e267a40d1f 100644--- a/app/assets/stylesheets/common/base/category-list.scss+++ b/app/assets/stylesheets/common/base/category-list.scss@@ -14,16 +14,22 @@td,th {- padding: 12px 5px;- color: var(--primary-med-or-secondary-high);+ color: var(--d-topic-list-header-text-color);+ font-size: var(--d-topic-list-data-font-size);++ &:first-of-type {+ padding-inline-start: var(--d-topic-list-data-padding-inline-start);+ }++ &:last-of-type {+ padding-inline-end: var(--d-topic-list-data-padding-inline-end);+ }}td {+ padding: var(--d-topic-list-data-padding-y)+ var(--d-topic-list-data-padding-x);vertical-align: top;-- &:first-of-type {- padding-left: 10px;- }}th {@@ -103,14 +109,9 @@}.featured-topic {- margin: 10px 0 0;display: flex;align-items: baseline;- &:first-of-type {- margin-top: 13px;- }-a.last-posted-at,a.last-posted-at:visited {font-size: var(--font-down-1);diff --git a/app/assets/stylesheets/common/base/uc-modernize-foundation-theme/categories.scss b/app/assets/stylesheets/common/base/uc-modernize-foundation-theme/categories.scssindex 638619f22fd..c2c5c6afa16 100644--- a/app/assets/stylesheets/common/base/uc-modernize-foundation-theme/categories.scss+++ b/app/assets/stylesheets/common/base/uc-modernize-foundation-theme/categories.scss@@ -9,4 +9,8 @@.category-boxes-with-topics .category-box {--category-badge-title-color: var(--primary);}++ .category-list tbody .category {+ border-left-width: var(--d-category-border-accent-width);+ }}diff --git a/frontend/discourse/app/components/categories-only.gjs b/frontend/discourse/app/components/categories-only.gjsindex 7e0997127ac..2221ed572ce 100644--- a/frontend/discourse/app/components/categories-only.gjs+++ b/frontend/discourse/app/components/categories-only.gjs@@ -83,14 +83,16 @@ export default class CategoriesOnly extends Component {</div>{{else}}<table class="category-list {{if this.showTopics 'with-topics'}}">- <thead>+ <thead class="category-list-header"><tr>- <th class="category"><span+ <th class="category topic-list-data default"><spanrole="heading"aria-level="2"id="categories-only-category">{{i18n "categories.category"}}</span></th>- <th class="topics">{{i18n "categories.topics"}}</th>+ <th class="topics topic-list-data num">{{i18n+ "categories.topics"+ }}</th>{{#if this.showTopics}}<th class="latest">{{i18n "categories.latest"}}</th>{{/if}}diff --git a/frontend/discourse/app/components/parent-category-row.gjs b/frontend/discourse/app/components/parent-category-row.gjsindex 501175a059e..289761aacb3 100644--- a/frontend/discourse/app/components/parent-category-row.gjs+++ b/frontend/discourse/app/components/parent-category-row.gjs@@ -207,7 +207,7 @@ export default class ParentCategoryRow extends CategoryListItem {@name="category-list-topics-wrapper"@outletArgs={{lazyHash category=this.category}}>- <td class="topics">+ <td class="topics topic-list-data num"><div title={{this.category.statTitle}}>{{trustHTMLthis.category.stat}}</div>